1 /* Configuration for GNU compiler for processor running Interix
2 Copyright (C) 1993, 1995, 1999 Free Software Foundation, Inc.
3 Donn Terry, Softway Systems, Inc,
5 Contributed by Douglas B. Rupp (drupp@cs.washington.edu)
7 This file is part of GNU CC.
9 GNU CC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 GNU CC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GNU CC; see the file COPYING. If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
28 #ifndef ONLY_INT_FIELDS
30 #define ONLY_INT_FIELDS 1
34 #ifndef USE_PROTOTYPES
35 #define USE_PROTOTYPES 1
38 /* If not compiled with GNU C, use the portable alloca. */
40 #define USE_C_ALLOCA 1
43 /* Our strategy for finding global constructors is a bit different, although
45 #define DO_GLOBAL_CTORS_BODY \
48 unsigned long nptrs; \
51 " .section .ctor_head, \"rw\"\n" \
54 ASM_LOAD_ADDR(1b,%0) \
55 : "=r" (p) : : "cc"); \
56 for (nptrs = 0; p[nptrs] != 0; nptrs++); \
57 for (i = nptrs-1; i >= 0; i--) \
61 #define DO_GLOBAL_DTORS_BODY \
65 " .section .dtor_head, \"rw\"\n" \
68 ASM_LOAD_ADDR(1b,%0) \
69 : "=r" (p) : : "cc"); \