1281168Spfg/*	$NetBSD: targparam.h,v 1.3 2002/01/31 23:31:34 he Exp $	*/
291586Smarkm
391586Smarkm/*
491586Smarkm * Copyright (c) 1994, 1995 Jochen Pohl
591586Smarkm * All Rights Reserved.
691586Smarkm *
791586Smarkm * Redistribution and use in source and binary forms, with or without
891586Smarkm * modification, are permitted provided that the following conditions
991586Smarkm * are met:
1091586Smarkm * 1. Redistributions of source code must retain the above copyright
1191586Smarkm *    notice, this list of conditions and the following disclaimer.
1291586Smarkm * 2. Redistributions in binary form must reproduce the above copyright
1391586Smarkm *    notice, this list of conditions and the following disclaimer in the
1491586Smarkm *    documentation and/or other materials provided with the distribution.
1591586Smarkm * 3. All advertising materials mentioning features or use of this software
1691586Smarkm *    must display the following acknowledgement:
1791586Smarkm *	This product includes software developed by Jochen Pohl for
1891586Smarkm *	The NetBSD Project.
1991586Smarkm * 4. The name of the author may not be used to endorse or promote products
2091586Smarkm *    derived from this software without specific prior written permission.
2191586Smarkm *
2291586Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2391586Smarkm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2491586Smarkm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2591586Smarkm * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2691586Smarkm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2791586Smarkm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2891586Smarkm * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2991586Smarkm * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3091586Smarkm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3191586Smarkm * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32281168Spfg *
33281168Spfg * $FreeBSD: releng/10.3/usr.bin/xlint/arch/sparc64/targparam.h 281168 2015-04-06 19:56:27Z pfg $
3491586Smarkm */
3591586Smarkm
3691586Smarkm/*
3791586Smarkm * Machine-dependent target parameters for lint1.
3891586Smarkm */
3991586Smarkm
4091586Smarkm#include "lp64.h"
4191586Smarkm
4291586Smarkm/*
4391586Smarkm * Should be set to 1 if the difference of two pointers is of type long
4491586Smarkm * or the value of sizeof is of type unsigned long.  Note this MUST be
4591586Smarkm * kept in sync with the compiler!
4691586Smarkm */
4791586Smarkm
4891586Smarkm#define	PTRDIFF_IS_LONG		1
4991586Smarkm#define	SIZEOF_IS_ULONG		1
5091586Smarkm
5191586Smarkm#define	FLOAT_SIZE		(4 * CHAR_BIT)
5291586Smarkm#define	DOUBLE_SIZE		(8 * CHAR_BIT)
5391586Smarkm#define	LDOUBLE_SIZE		(16 * CHAR_BIT)
5491586Smarkm
5591586Smarkm#define	ENUM_SIZE		(4 * CHAR_BIT)
56