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 -DVSTA -Asystem=unix -Asystem=vsta"
32 #define EXTRA_SECTIONS in_ctor, in_dtor
34 #undef EXTRA_SECTION_FUNCTIONS
35 #define EXTRA_SECTION_FUNCTIONS \
36 CTOR_SECTION_FUNCTION \
39 #define CTOR_SECTION_FUNCTION \
43 if (in_section != in_ctor) \
45 fprintf (asm_out_file, "\t.section .ctor\n"); \
46 in_section = in_ctor; \
50 #define DTOR_SECTION_FUNCTION \
54 if (in_section != in_dtor) \
56 fprintf (asm_out_file, "\t.section .dtor\n"); \
57 in_section = in_dtor; \
61 #define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \
64 fputs (ASM_LONG, FILE); \
65 assemble_name (FILE, NAME); \
66 fprintf (FILE, "\n"); \
69 #define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \
72 fputs (ASM_LONG, FILE); \
73 assemble_name (FILE, NAME); \
74 fprintf (FILE, "\n"); \