Annotation of GNUtools/cc/config/i386/v3gas.h, revision 1.1

1.1     ! root        1: /* Definitions for Intel 386 running system V, using gas.
        !             2:    Copyright (C) 1992 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: #include "gas.h"
        !            21: 
        !            22: /* Add stuff that normally comes from i386v.h */
        !            23: 
        !            24: /* longjmp may fail to restore the registers if called from the same
        !            25:    function that called setjmp.  To compensate, the compiler avoids
        !            26:    putting variables in registers in functions that use both setjmp
        !            27:    and longjmp.  */
        !            28: 
        !            29: #define NON_SAVING_SETJMP \
        !            30:   (current_function_calls_setjmp && current_function_calls_longjmp)
        !            31: 
        !            32: /* longjmp may fail to restore the stack pointer if the saved frame
        !            33:    pointer is the same as the caller's frame pointer.  Requiring a frame
        !            34:    pointer in any function that calls setjmp or longjmp avoids this
        !            35:    problem, unless setjmp and longjmp are called from the same function.
        !            36:    Since a frame pointer will be required in such a function, it is OK
        !            37:    that the stack pointer is not restored.  */
        !            38: 
        !            39: #undef FRAME_POINTER_REQUIRED
        !            40: #define FRAME_POINTER_REQUIRED \
        !            41:   (current_function_calls_setjmp || current_function_calls_longjmp)
        !            42: 
        !            43: /* Modify ASM_OUTPUT_LOCAL slightly to test -msvr3-shlib, adapted to gas  */
        !            44: #undef ASM_OUTPUT_LOCAL
        !            45: #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)    \
        !            46:   do {                                                 \
        !            47:     int align = exact_log2 (ROUNDED);                  \
        !            48:     if (align > 2) align = 2;                          \
        !            49:     if (TARGET_SVR3_SHLIB)                             \
        !            50:       {                                                        \
        !            51:        data_section ();                                \
        !            52:        ASM_OUTPUT_ALIGN ((FILE), align == -1 ? 2 : align); \
        !            53:        ASM_OUTPUT_LABEL ((FILE), (NAME));              \
        !            54:        fprintf ((FILE), "\t.set .,.+%u\n", (ROUNDED)); \
        !            55:       }                                                        \
        !            56:     else                                               \
        !            57:       {                                                        \
        !            58:        fputs (".lcomm ", (FILE));                      \
        !            59:        assemble_name ((FILE), (NAME));                 \
        !            60:        fprintf ((FILE), ",%u\n", (ROUNDED));           \
        !            61:       }                                                        \
        !            62:   } while (0)
        !            63: 
        !            64: /* Add stuff that normally comes from i386v.h via svr3.h */
        !            65: 
        !            66: /* Define the actual types of some ANSI-mandated types.  These
        !            67:    definitions should work for most SVR3 systems.  */
        !            68: 
        !            69: #undef SIZE_TYPE
        !            70: #define SIZE_TYPE "unsigned int"
        !            71: 
        !            72: #undef PTRDIFF_TYPE
        !            73: #define PTRDIFF_TYPE "int"
        !            74: 
        !            75: #undef WCHAR_TYPE
        !            76: #define WCHAR_TYPE "long int"
        !            77: 
        !            78: #undef WCHAR_TYPE_SIZE
        !            79: #define WCHAR_TYPE_SIZE BITS_PER_WORD

unix.superglobalmegacorp.com

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