1 /* Configuration for an i386 running VSTa micro-kernel.
2 Copyright (C) 1994 Free Software Foundation, Inc.
3 Contributed by Rob Savoye (rob@cygnus.com).
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 #define YES_UNDERSCORES
29 #define CPP_PREDEFINES "-Dunix -Di386 -DVSTA \
30 -Asystem(unix) -Asystem(vsta) -Acpu(i386) -Amachine(i386)"
33 #define EXTRA_SECTIONS in_ctor, in_dtor
35 #undef EXTRA_SECTION_FUNCTIONS
36 #define EXTRA_SECTION_FUNCTIONS \
37 CTOR_SECTION_FUNCTION \
40 #define CTOR_SECTION_FUNCTION \
44 if (in_section != in_ctor) \
46 fprintf (asm_out_file, "\t.section .ctor\n"); \
47 in_section = in_ctor; \
51 #define DTOR_SECTION_FUNCTION \
55 if (in_section != in_dtor) \
57 fprintf (asm_out_file, "\t.section .dtor\n"); \
58 in_section = in_dtor; \
62 #define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \
65 fprintf (FILE, "%s\t", ASM_LONG); \
66 assemble_name (FILE, NAME); \
67 fprintf (FILE, "\n"); \
70 #define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \
73 fprintf (FILE, "%s\t", ASM_LONG); \
74 assemble_name (FILE, NAME); \
75 fprintf (FILE, "\n"); \