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

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.3 ! root       41: #define LINK_SPEC "%{K} %{!K:-K} %{T*} %{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)                                   \
1.1.1.3 ! root       62:   do {                                                         \
        !            63:     char *p = (char *) strrchr (main_input_filename, '/');     \
        !            64:     if (!p)                                                    \
        !            65:       p = main_input_filename;                                 \
        !            66:     else p++;                                                  \
        !            67:     fprintf ((FILE), "\t.file\t\"%s\"\n", p);                  \
        !            68:   } while (0)
        !            69: 
1.1.1.2   root       70: /* This used to output .noopt if nonoptimizing and run ASM_FILE_START_1
                     71:    if optimizing, but that loses with the AIX assembler.  */
1.1       root       72: 
                     73: /* This was suggested, but it shouldn't be right for DBX output. -- RMS
                     74:    #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
                     75: 
1.1.1.2   root       76: /* We want to output SDB debugging information. */
                     77: 
                     78: #define SDB_DEBUGGING_INFO
1.1       root       79: 
1.1.1.2   root       80: /* We don't want to output DBX debugging information. Becaus IBM AIX dbx
                     81:    use COFF format */
                     82: 
                     83: #undef DBX_DEBUGGING_INFO
1.1       root       84: 
                     85: /* Implicit library calls should use memcpy, not bcopy, etc.  */
                     86: 
                     87: #define TARGET_MEM_FUNCTIONS
                     88: 
1.1.1.2   root       89: /* Writing `int' for a bitfield forces int alignment for the structure.  */
                     90: 
                     91: #define PCC_BITFIELD_TYPE_MATTERS 1
                     92: 
1.1       root       93: /* Don't write a `.optim' pseudo; this assembler
                     94:    is said to have a bug when .optim is used.  */
                     95: 
1.1.1.2   root       96: #if 0
1.1       root       97: #undef ASM_FILE_START_1
                     98: #define ASM_FILE_START_1(FILE) fprintf (FILE, "\t.noopt\n");
1.1.1.2   root       99: #endif
1.1       root      100: 
                    101: /* Machines that use the AT&T assembler syntax
                    102:    also return floating point values in an FP register.  */
                    103: /* Define how to find the value returned by a function.
                    104:    VALTYPE is the data type of the value (as a tree).
                    105:    If the precise function being called is known, FUNC is its FUNCTION_DECL;
                    106:    otherwise, FUNC is 0.  */
                    107: 
                    108: #define VALUE_REGNO(MODE) \
                    109:   (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
                    110: 
                    111: /* 1 if N is a possible register number for a function value. */
                    112: 
                    113: #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
1.1.1.2   root      114: 
                    115: /* Output assembler code to FILE to increment profiler label # LABELNO
                    116:    for profiling a function entry.  */
                    117: 
                    118: #undef FUNCTION_PROFILER
                    119: #define FUNCTION_PROFILER(FILE, LABELNO)  \
                    120:    fprintf (FILE, "\tleal %sP%d,%%eax\n\tcall mcount\n", LPREFIX, (LABELNO));
1.1.1.3 ! root      121: 
        !           122: /* Note that using bss_section here caused errors
        !           123:    in building shared libraries on system V.3.
        !           124:    but AIX 1.2 does not have yet shareable libraries on PS2 */
        !           125: #undef ASM_OUTPUT_LOCAL
        !           126: #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)    \
        !           127:   (bss_section (),                                     \
        !           128:    ASM_OUTPUT_LABEL ((FILE), (NAME)),                  \
        !           129:    fprintf ((FILE), "\t.set .,.+%u\n", (ROUNDED)))

unix.superglobalmegacorp.com

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