Annotation of gcc/config/i386v.h, revision 1.1.1.2

1.1       root        1: /* Definitions for Intel 386 running system V.
                      2:    Copyright (C) 1988 Free Software Foundation, Inc.
                      3: 
                      4: This file is part of GNU CC.
                      5: 
                      6: GNU CC is free software; you can redistribute it and/or modify
                      7: it under the terms of the GNU General Public License as published by
                      8: the Free Software Foundation; either version 2, or (at your option)
                      9: any later version.
                     10: 
                     11: GNU CC is distributed in the hope that it will be useful,
                     12: but WITHOUT ANY WARRANTY; without even the implied warranty of
                     13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     14: GNU General Public License for more details.
                     15: 
                     16: You should have received a copy of the GNU General Public License
                     17: along with GNU CC; see the file COPYING.  If not, write to
                     18: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
                     19: 
                     20: 
                     21: #include "i386.h"
                     22: 
                     23: /* Use default settings for system V.3.  */
                     24: 
                     25: #include "svr3.h"
                     26: 
                     27: /* Use the ATT assembler syntax.
                     28:    This overrides at least one macro (ASM_OUTPUT_LABELREF) from svr3.h.  */
                     29: 
                     30: #include "att386.h"
                     31: 
                     32: /* By default, target has a 80387.  */
                     33: 
                     34: #define TARGET_DEFAULT 1
                     35: 
                     36: /* Use crt1.o as a startup file and crtn.o as a closing file.  */
                     37: 
                     38: #define STARTFILE_SPEC  \
                     39:   "%{pg:gcrt1.o%s}%{!pg:%{posix:%{p:mcrtp1.o%s}%{!p:crtp1.o%s}}%{!posix:%{p:mcrt1.o%s}%{!p:crt1.o%s}}} crtbegin.o%s\
                     40:    %{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp}"
                     41: 
1.1.1.2 ! root       42: /* ??? There is a suggestion that -lg is needed here.
        !            43:    Does anyone know whether this is right?  */
1.1       root       44: #define LIB_SPEC "%{posix:-lcposix} %{shlib:-lc_s} -lc crtend.o%s crtn.o%s"
                     45: 
                     46: /* Specify predefined symbols in preprocessor.  */
                     47: 
                     48: #define CPP_PREDEFINES "-Dunix -Di386"
                     49: 
                     50: #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
                     51: 
                     52: /* Writing `int' for a bitfield forces int alignment for the structure.  */
                     53: 
                     54: #define PCC_BITFIELD_TYPE_MATTERS 1
                     55: 
                     56: /* Don't write a `.optim' pseudo; this assembler doesn't handle them.  */
                     57: 
                     58: #undef ASM_FILE_START_1
                     59: #define ASM_FILE_START_1(FILE)
                     60: 
                     61: /* Machines that use the AT&T assembler syntax
                     62:    also return floating point values in an FP register.  */
                     63: /* Define how to find the value returned by a function.
                     64:    VALTYPE is the data type of the value (as a tree).
                     65:    If the precise function being called is known, FUNC is its FUNCTION_DECL;
                     66:    otherwise, FUNC is 0.  */
                     67: 
                     68: #define VALUE_REGNO(MODE) \
                     69:   (((MODE) == SFmode || (MODE) == DFmode) ? FIRST_FLOAT_REG : 0)
                     70: 
                     71: /* 1 if N is a possible register number for a function value. */
                     72: 
                     73: #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
                     74: 
                     75: #if 0 /* This symbol is expected to exist only on BSD,
                     76:         and besides, it describes the host rather than the target.
                     77:         It certainly does not belong here.  */
                     78: #ifndef MAXPATHLEN
                     79: #define MAXPATHLEN 1024
                     80: #endif
                     81: #endif
                     82: 
                     83: /* longjmp may fail to restore the registers if called from the same
                     84:    function that called setjmp.  To compensate, the compiler avoids
                     85:    putting variables in registers in functions that use both setjmp
                     86:    and longjmp.  */
                     87: 
                     88: #define NON_SAVING_SETJMP \
                     89:   (current_function_calls_setjmp && current_function_calls_longjmp)
                     90: 
                     91: /* longjmp may fail to restore the stack pointer if the saved frame
                     92:    pointer is the same as the caller's frame pointer.  Requiring a frame
                     93:    pointer in any function that calls setjmp or longjmp avoids this
                     94:    problem, unless setjmp and longjmp are called from the same function.
                     95:    Since a frame pointer will be required in such a function, it is OK
                     96:    that the stack pointer is not restored.  */
                     97: 
                     98: #undef FRAME_POINTER_REQUIRED
                     99: #define FRAME_POINTER_REQUIRED \
                    100:   (current_function_calls_setjmp || current_function_calls_longjmp)
                    101: 
1.1.1.2 ! root      102: /* Define a few machine-specific details of the implementation of
        !           103:    constructors.
1.1       root      104: 
1.1.1.2 ! root      105:    The __CTORS_LIST__ goes in the .init section.  Define CTOR_LIST_BEGIN
        !           106:    and CTOR_LIST_END to contribute to the .init section an instruction to
        !           107:    push a word containing 0 (or some equivalent of that).
1.1       root      108: 
1.1.1.2 ! root      109:    ASM_OUTPUT_CONSTRUCTOR should be defined to push the address of the
        !           110:    constructor.  */
1.1       root      111: 
                    112: #undef INIT_SECTION_ASM_OP
                    113: #define INIT_SECTION_ASM_OP     ".section .init,\"x\""
                    114: 
1.1.1.2 ! root      115: #define CTOR_LIST_BEGIN                                \
        !           116:   asm (INIT_SECTION_ASM_OP);                   \
        !           117:   asm ("pushl $0")
        !           118: #define CTOR_LIST_END CTOR_LIST_BEGIN
1.1       root      119: 
                    120: #define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME)      \
                    121:   do {                                         \
                    122:     init_section ();                           \
                    123:     fprintf (FILE, "\tpushl $");               \
                    124:     assemble_name (FILE, NAME);                        \
                    125:     fprintf (FILE, "\n");                      \
                    126:   } while (0)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.