xref: /netbsd-src/usr.bin/xlint/arch/or1k/targparam.h (revision c6b618e6da67863242fc9161f10bd378d7fe2630)
1*c6b618e6Srillig /*	$NetBSD: targparam.h,v 1.5 2021/06/27 08:43:48 rillig Exp $	*/
227620987Smatt 
327620987Smatt /*
427620987Smatt  * Copyright (c) 1994, 1995 Jochen Pohl
527620987Smatt  * All Rights Reserved.
627620987Smatt  *
727620987Smatt  * Redistribution and use in source and binary forms, with or without
827620987Smatt  * modification, are permitted provided that the following conditions
927620987Smatt  * are met:
1027620987Smatt  * 1. Redistributions of source code must retain the above copyright
1127620987Smatt  *    notice, this list of conditions and the following disclaimer.
1227620987Smatt  * 2. Redistributions in binary form must reproduce the above copyright
1327620987Smatt  *    notice, this list of conditions and the following disclaimer in the
1427620987Smatt  *    documentation and/or other materials provided with the distribution.
1527620987Smatt  * 3. All advertising materials mentioning features or use of this software
1627620987Smatt  *    must display the following acknowledgement:
1727620987Smatt  *	This product includes software developed by Jochen Pohl for
1827620987Smatt  *	The NetBSD Project.
1927620987Smatt  * 4. The name of the author may not be used to endorse or promote products
2027620987Smatt  *    derived from this software without specific prior written permission.
2127620987Smatt  *
2227620987Smatt  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2327620987Smatt  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2427620987Smatt  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2527620987Smatt  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2627620987Smatt  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2727620987Smatt  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2827620987Smatt  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2927620987Smatt  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3027620987Smatt  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3127620987Smatt  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3227620987Smatt  */
3327620987Smatt 
3427620987Smatt /*
3527620987Smatt  * Machine-dependent target parameters for lint1.
3627620987Smatt  */
3727620987Smatt #include "schar.h"
3827620987Smatt #include "ilp32.h"
3927620987Smatt 
4027620987Smatt /*
41*c6b618e6Srillig  * Should be set to LONG if the difference of two pointers is of type long
4227620987Smatt  * or the value of sizeof is of type unsigned long.  Note this MUST be
4327620987Smatt  * kept in sync with the compiler!
4427620987Smatt  */
458b04e96aSrillig #define	PTRDIFF_TSPEC		INT
468b04e96aSrillig #define	SIZEOF_TSPEC		UINT
478b04e96aSrillig #define	INTPTR_TSPEC		INT
4827620987Smatt 
4963bde020Srillig #define	FLOAT_SIZE		32
5063bde020Srillig #define	DOUBLE_SIZE		64
5163bde020Srillig #define	LDOUBLE_SIZE		64
5227620987Smatt 
5363bde020Srillig #define	ENUM_SIZE		32
54