Deleted Added
full compact
targparam.h (91587) targparam.h (212513)
1/* $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:20 thorpej Exp $ */
2
3/*
4 * Copyright (c) 1994, 1995 Jochen Pohl
5 * All Rights Reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 15 unchanged lines hidden (view full) ---

24 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1/* $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:20 thorpej Exp $ */
2
3/*
4 * Copyright (c) 1994, 1995 Jochen Pohl
5 * All Rights Reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 15 unchanged lines hidden (view full) ---

24 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD: head/usr.bin/xlint/arch/powerpc/targparam.h 212513 2010-09-13 01:20:53Z imp $
32 */
33
34/*
35 * Machine-dependent target parameters for lint1.
36 */
37
34 */
35
36/*
37 * Machine-dependent target parameters for lint1.
38 */
39
40#ifdef __powerpc64__
41#include "lp64.h"
42#else
38#include "ilp32.h"
43#include "ilp32.h"
44#endif
39
40/*
41 * Should be set to 1 if the difference of two pointers is of type long
42 * or the value of sizeof is of type unsigned long. Note this MUST be
43 * kept in sync with the compiler!
44 */
45
45
46/*
47 * Should be set to 1 if the difference of two pointers is of type long
48 * or the value of sizeof is of type unsigned long. Note this MUST be
49 * kept in sync with the compiler!
50 */
51
52#ifdef __powerpc64__
53#define PTRDIFF_IS_LONG 1
54#define SIZEOF_IS_ULONG 1
55#else
46#define PTRDIFF_IS_LONG 0
47#define SIZEOF_IS_ULONG 0
56#define PTRDIFF_IS_LONG 0
57#define SIZEOF_IS_ULONG 0
58#endif
48
49#define FLOAT_SIZE (4 * CHAR_BIT)
50#define DOUBLE_SIZE (8 * CHAR_BIT)
51#define LDOUBLE_SIZE (8 * CHAR_BIT)
52
53#define ENUM_SIZE (4 * CHAR_BIT)
59
60#define FLOAT_SIZE (4 * CHAR_BIT)
61#define DOUBLE_SIZE (8 * CHAR_BIT)
62#define LDOUBLE_SIZE (8 * CHAR_BIT)
63
64#define ENUM_SIZE (4 * CHAR_BIT)