Annotation of gcc/config/i386/netbsd-i386.h, revision 1.1.1.1

1.1       root        1: /* This goes away when the math-emulator is fixed */
                      2: #define TARGET_CPU_DEFAULT 0400                /* TARGET_NO_FANCY_MATH_387 */
                      3: 
                      4: /* This is tested by i386gas.h.  */
                      5: #define YES_UNDERSCORES
                      6: 
                      7: #include "i386/gstabs.h"
                      8: 
                      9: /* Get perform_* macros to build libgcc.a.  */
                     10: #include "i386/perform.h"
                     11: 
                     12: /* Get generic NetBSD definitions.  */
                     13: #include "netbsd.h"
                     14: 
                     15: #undef CPP_PREDEFINES
                     16: #define CPP_PREDEFINES "-Dunix -Di386 -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(i386) -Amachine(i386)"
                     17: 
                     18: #undef SIZE_TYPE
                     19: #define SIZE_TYPE "unsigned int"
                     20: 
                     21: #undef PTRDIFF_TYPE
                     22: #define PTRDIFF_TYPE "int"
                     23: 
                     24: #undef WCHAR_TYPE
                     25: #define WCHAR_TYPE "short unsigned int"
                     26: 
                     27: #define WCHAR_UNSIGNED 1
                     28: 
                     29: #undef WCHAR_TYPE_SIZE
                     30: #define WCHAR_TYPE_SIZE 16
                     31: 
                     32: #define HANDLE_SYSV_PRAGMA
                     33: 
                     34: /* There are conflicting reports about whether this system uses
                     35:    a different assembler syntax.  [email protected] says # is right.  */
                     36: #undef COMMENT_BEGIN
                     37: #define COMMENT_BEGIN "#"
                     38: 
                     39: #undef ASM_APP_ON
                     40: #define ASM_APP_ON "#APP\n"
                     41: 
                     42: #undef ASM_APP_OFF
                     43: #define ASM_APP_OFF "#NO_APP\n"
                     44: 
                     45: /* The following macros are stolen from i386v4.h */
                     46: /* These have to be defined to get PIC code correct */
                     47: 
                     48: /* This is how to output an element of a case-vector that is relative.
                     49:    This is only used for PIC code.  See comments by the `casesi' insn in
                     50:    i386.md for an explanation of the expression this outputs. */
                     51: 
                     52: #undef ASM_OUTPUT_ADDR_DIFF_ELT
                     53: #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
                     54:   fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
                     55: 
                     56: /* Indicate that jump tables go in the text section.  This is
                     57:    necessary when compiling PIC code.  */
                     58: 
                     59: #define JUMP_TABLES_IN_TEXT_SECTION
                     60: 
                     61: /* Don't default to pcc-struct-return, because gcc is the only compiler, and
                     62:    we want to retain compatibility with older gcc versions.  */
                     63: #define DEFAULT_PCC_STRUCT_RETURN 0
                     64: 
                     65: /* Profiling routines, partially copied from i386/osfrose.h.  */
                     66: 
                     67: /* Redefine this to use %eax instead of %edx.  */
                     68: #undef FUNCTION_PROFILER
                     69: #define FUNCTION_PROFILER(FILE, LABELNO)  \
                     70: {                                                                      \
                     71:   if (flag_pic)                                                                \
                     72:     {                                                                  \
                     73:       fprintf (FILE, "\tcall mcount@PLT\n");                           \
                     74:     }                                                                  \
                     75:   else                                                                 \
                     76:     {                                                                  \
                     77:       fprintf (FILE, "\tcall mcount\n");                               \
                     78:     }                                                                  \
                     79: }

unix.superglobalmegacorp.com

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