Annotation of gcc/config/tm-sun386i.h, revision 1.1.1.4

1.1       root        1: /* Definitions for Intel 386 running SunOS 4.0.
                      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 1, 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 "tm-i386.h"
                     22: 
                     23: /* Use the Sun assembler syntax.  */
                     24: 
                     25: #include "tm-sun386.h"
                     26: 
                     27: /* By default, target has a 80387.  */
                     28: 
                     29: #define TARGET_DEFAULT 1
                     30: 
                     31: /* Use crt0.o as a startup file.  */
                     32: 
                     33: #define STARTFILE_SPEC  \
                     34:   "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
                     35: 
                     36: #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}\
                     37: %{sun386:}"
                     38: /* That last item is just to prevent a spurious error.  */
                     39: 
1.1.1.2   root       40: /* It is hard to debug with shared libraries,
                     41:    so don't use them if going to debug.  */
                     42: 
1.1.1.4 ! root       43: #undef LINK_SPEC
        !            44: #define LINK_SPEC "%{!e*:-e _start} -dc -dp %{g:-Bstatic} %{static:-Bstatic} %{-Bstatic}"
1.1.1.2   root       45: 
1.1       root       46: /* Extra switches to give the assembler.  */
                     47: 
                     48: #define ASM_SPEC "-i386"
                     49: 
                     50: /* Specify predefined symbols in preprocessor.  */
                     51: 
                     52: #define CPP_PREDEFINES "-Dunix -Di386 -Dsun386 -Dsun"
                     53: 
                     54: /* Allow #sccs in preprocessor.  */
                     55: 
                     56: #define SCCS_DIRECTIVE
                     57: 
                     58: /* Output #ident as a .ident.  */
                     59: 
                     60: #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
                     61: 
                     62: /* We don't want to output SDB debugging information.  */
                     63: 
                     64: #undef SDB_DEBUGGING_INFO
                     65: 
                     66: /* We want to output DBX debugging information.  */
                     67: 
                     68: #define DBX_DEBUGGING_INFO
                     69: 
                     70: /* Implicit library calls should use memcpy, not bcopy, etc.  */
                     71: 
                     72: #define TARGET_MEM_FUNCTIONS
                     73: 
1.1.1.3   root       74: /* Force structure alignment to the type used for a bitfield.  */
                     75: 
1.1.1.4 ! root       76: #define PCC_BITFIELD_TYPE_MATTERS 1
1.1       root       77: 
                     78: /* Define how to find the value returned by a function.
                     79:    VALTYPE is the data type of the value (as a tree).
                     80:    If the precise function being called is known, FUNC is its FUNCTION_DECL;
                     81:    otherwise, FUNC is 0.  */
                     82: 
                     83: #define VALUE_REGNO(MODE) \
                     84:   (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
                     85: 
                     86: /* 1 if N is a possible register number for a function value. */
                     87: 
                     88: #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
                     89: 
                     90: /* This is partly guess.  */
                     91: 
                     92: #undef DBX_REGISTER_NUMBER
                     93: #define DBX_REGISTER_NUMBER(n) \
                     94:   ((n) == 0 ? 11 : (n)  == 1 ? 9 : (n) == 2 ? 10 : (n) == 3 ? 8        \
                     95:    : (n) == 4 ? 5 : (n) == 5 ? 4 : (n) == 6 ? 6 : (n))
                     96: 
                     97: /* Every debugger symbol must be in the text section.
                     98:    Otherwise the assembler or the linker screws up.  */
                     99: 
                    100: #define DEBUG_SYMS_TEXT
1.1.1.2   root      101: 
                    102: /* This NOP insn makes profiling not fail.  */
                    103: 
                    104: #define ASM_IDENTIFY_GCC(FILE) \
                    105: fprintf (FILE, (profile_flag ? "gcc_compiled.:\n\tnop\n" : "gcc_compiled.:\n"))

unix.superglobalmegacorp.com

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