Annotation of gcc/config/tm-aix386.h, revision 1.1.1.2

1.1       root        1: /* Definitions for IBM PS2 running AIX/386.
                      2:    From: Minh Tran-Le <[email protected]>
                      3:    Copyright (C) 1988 Free Software Foundation, Inc.
                      4: 
                      5: This file is part of GNU CC.
                      6: 
                      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 1, or (at your option)
                     10: any later version.
                     11: 
                     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.
                     16: 
                     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, 675 Mass Ave, Cambridge, MA 02139, USA.  */
                     20: 
                     21: 
                     22: #include "tm-i386.h"
                     23: 
                     24: /* Use the ATT assembler syntax.  */
                     25: 
                     26: #include "tm-att386.h"
                     27: 
                     28: /* By default, target has a 80387.  */
                     29: 
                     30: #define TARGET_DEFAULT 1
                     31: 
                     32: /* Use crt1.o as a startup file and crtn.o as a closing file.  */
                     33: 
                     34: #define STARTFILE_SPEC  \
                     35:   "%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
                     36: 
1.1.1.2 ! root       37: #define LIB_SPEC "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} -lc crtn.o%s"
1.1       root       38: 
                     39: /* Special flags for the linker.  I don't know what they do.  */
                     40: 
1.1.1.2 ! root       41: #define LINK_SPEC "%{!K:-K} %{!T*:-T0x00400000} %{z:-lm}"
1.1       root       42: 
                     43: /* Specify predefined symbols in preprocessor.  */
                     44: 
1.1.1.2 ! root       45: #define CPP_PREDEFINES "-D_I386 -Di386 -DAIX -D_AIX"
1.1       root       46: 
                     47: /* special flags for the aix assembler to generate the short form for all
                     48:    qualifying forward reference */
                     49: 
                     50: #define ASM_SPEC "-s2"
                     51: 
                     52: /* Allow #sccs in preprocessor.  */
                     53: 
                     54: #define SCCS_DIRECTIVE
                     55: 
                     56: /* Output #ident as a .ident.  */
                     57: 
                     58: #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
                     59: 
                     60: #undef ASM_FILE_START
                     61: #define ASM_FILE_START(FILE)                                   \
                     62:   do { fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name);    \
                     63:      } while (0)
1.1.1.2 ! root       64: /* This used to output .noopt if nonoptimizing and run ASM_FILE_START_1
        !            65:    if optimizing, but that loses with the AIX assembler.  */
1.1       root       66: 
                     67: /* This was suggested, but it shouldn't be right for DBX output. -- RMS
                     68:    #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
                     69: 
1.1.1.2 ! root       70: /* We want to output SDB debugging information. */
        !            71: 
        !            72: #define SDB_DEBUGGING_INFO
1.1       root       73: 
1.1.1.2 ! root       74: /* We don't want to output DBX debugging information. Becaus IBM AIX dbx
        !            75:    use COFF format */
        !            76: 
        !            77: #undef DBX_DEBUGGING_INFO
1.1       root       78: 
                     79: /* Implicit library calls should use memcpy, not bcopy, etc.  */
                     80: 
                     81: #define TARGET_MEM_FUNCTIONS
                     82: 
1.1.1.2 ! root       83: /* Writing `int' for a bitfield forces int alignment for the structure.  */
        !            84: 
        !            85: #define PCC_BITFIELD_TYPE_MATTERS 1
        !            86: 
1.1       root       87: /* Don't write a `.optim' pseudo; this assembler
                     88:    is said to have a bug when .optim is used.  */
                     89: 
1.1.1.2 ! root       90: #if 0
1.1       root       91: #undef ASM_FILE_START_1
                     92: #define ASM_FILE_START_1(FILE) fprintf (FILE, "\t.noopt\n");
1.1.1.2 ! root       93: #endif
1.1       root       94: 
                     95: /* Machines that use the AT&T assembler syntax
                     96:    also return floating point values in an FP register.  */
                     97: /* Define how to find the value returned by a function.
                     98:    VALTYPE is the data type of the value (as a tree).
                     99:    If the precise function being called is known, FUNC is its FUNCTION_DECL;
                    100:    otherwise, FUNC is 0.  */
                    101: 
                    102: #define VALUE_REGNO(MODE) \
                    103:   (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
                    104: 
                    105: /* 1 if N is a possible register number for a function value. */
                    106: 
                    107: #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
1.1.1.2 ! root      108: 
        !           109: /* Output assembler code to FILE to increment profiler label # LABELNO
        !           110:    for profiling a function entry.  */
        !           111: 
        !           112: #undef FUNCTION_PROFILER
        !           113: #define FUNCTION_PROFILER(FILE, LABELNO)  \
        !           114:    fprintf (FILE, "\tleal %sP%d,%%eax\n\tcall mcount\n", LPREFIX, (LABELNO));

unix.superglobalmegacorp.com

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