Annotation of gcc/config/m68k/coff.h, revision 1.1

1.1     ! root        1: /* Definitions of target machine for GNU compiler.
        !             2:    m68k series COFF object files and debugging, version.
        !             3:    Copyright (C) 1994 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 2, 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, 59 Temple Place - Suite 330,
        !            20: Boston, MA 02111-1307, USA.  */
        !            21: 
        !            22: /* This file is included after m68k.h by CPU COFF specific files.  It
        !            23:    is not a complete target itself.  */
        !            24: 
        !            25: /* Generate sdb debugging information.  */
        !            26: 
        !            27: #undef DBX_DEBUGGING_INFO
        !            28: #define SDB_DEBUGGING_INFO
        !            29: 
        !            30: /* Output DBX (stabs) debugging information if using -gstabs.  */
        !            31: 
        !            32: #define DBX_DEBUGGING_INFO
        !            33: 
        !            34: #undef PREFERRED_DEBUGGING_TYPE
        !            35: #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
        !            36: 
        !            37: /* COFF symbols don't start with an underscore.  */
        !            38: 
        !            39: #undef USER_LABEL_PREFIX
        !            40: #define USER_LABEL_PREFIX ""
        !            41: 
        !            42: /* Use a prefix for local labels, just to be on the save side.  */
        !            43: 
        !            44: #undef LOCAL_LABEL_PREFIX
        !            45: #define LOCAL_LABEL_PREFIX "."
        !            46: 
        !            47: /* Use a register prefix to avoid clashes with external symbols (classic
        !            48:    example: `extern char PC;' in termcap).  */
        !            49: 
        !            50: #undef REGISTER_PREFIX
        !            51: #define REGISTER_PREFIX "%"
        !            52: 
        !            53: /* In the machine description we can't use %R, because it will not be seen
        !            54:    by ASM_FPRINTF.  (Isn't that a design bug?).  */
        !            55: 
        !            56: #undef REGISTER_PREFIX_MD
        !            57: #define REGISTER_PREFIX_MD "%%"
        !            58: 
        !            59: /* config/m68k.md has an explicit reference to the program counter,
        !            60:    prefix this by the register prefix.  */
        !            61: 
        !            62: #define ASM_RETURN_CASE_JUMP    return "jmp %%pc@(2,%0:w)"
        !            63: 
        !            64: /* Here are the new register names.  */
        !            65: 
        !            66: #undef REGISTER_NAMES
        !            67: #ifndef SUPPORT_SUN_FPA
        !            68: #define REGISTER_NAMES \
        !            69: {"%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7",       \
        !            70:  "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%a6", "%sp",       \
        !            71:  "%fp0", "%fp1", "%fp2", "%fp3", "%fp4", "%fp5", "%fp6", "%fp7" }
        !            72: #else /* SUPPORTED_SUN_FPA */
        !            73: #define REGISTER_NAMES \
        !            74: {"%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7",       \
        !            75:  "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%a6", "%sp",       \
        !            76:  "%fp0", "%fp1", "%fp2", "%fp3", "%fp4", "%fp5", "%fp6", "%fp7", \
        !            77:  "%fpa0", "%fpa1", "%fpa2", "%fpa3", "%fpa4", "%fpa5", "%fpa6", "%fpa7", \
        !            78:  "%fpa8", "%fpa9", "%fpa10", "%fpa11", "%fpa12", "%fpa13", "%fpa14", "%fpa15", \
        !            79:  "%fpa16", "%fpa17", "%fpa18", "%fpa19", "%fpa20", "%fpa21", "%fpa22", "%fpa23", \
        !            80:  "%fpa24", "%fpa25", "%fpa26", "%fpa27", "%fpa28", "%fpa29", "%fpa30", "%fpa31" }
        !            81: #endif /* defined SUPPORT_SUN_FPA */
        !            82: 
        !            83: #undef ASM_FILE_START
        !            84: #define ASM_FILE_START(FILE) \
        !            85:   output_file_directive ((FILE), main_input_filename)
        !            86: 
        !            87: /* Support the ctors and dtors sections for g++.  */
        !            88: 
        !            89: #define CTORS_SECTION_ASM_OP   ".section\t.ctors,\"x\""
        !            90: #define DTORS_SECTION_ASM_OP   ".section\t.dtors,\"x\""
        !            91: 
        !            92: /* A list of other sections which the compiler might be "in" at any
        !            93:    given time.  */
        !            94: 
        !            95: #undef EXTRA_SECTIONS
        !            96: #define EXTRA_SECTIONS in_ctors, in_dtors
        !            97: 
        !            98: /* A list of extra section function definitions.  */
        !            99: 
        !           100: #undef EXTRA_SECTION_FUNCTIONS
        !           101: #define EXTRA_SECTION_FUNCTIONS                                                \
        !           102:   CTORS_SECTION_FUNCTION                                               \
        !           103:   DTORS_SECTION_FUNCTION
        !           104: 
        !           105: #define CTORS_SECTION_FUNCTION                                         \
        !           106: void                                                                   \
        !           107: ctors_section ()                                                       \
        !           108: {                                                                      \
        !           109:   if (in_section != in_ctors)                                          \
        !           110:     {                                                                  \
        !           111:       fprintf (asm_out_file, "%s\n", CTORS_SECTION_ASM_OP);            \
        !           112:       in_section = in_ctors;                                           \
        !           113:     }                                                                  \
        !           114: }
        !           115: 
        !           116: #define DTORS_SECTION_FUNCTION                                         \
        !           117: void                                                                   \
        !           118: dtors_section ()                                                       \
        !           119: {                                                                      \
        !           120:   if (in_section != in_dtors)                                          \
        !           121:     {                                                                  \
        !           122:       fprintf (asm_out_file, "%s\n", DTORS_SECTION_ASM_OP);            \
        !           123:       in_section = in_dtors;                                           \
        !           124:     }                                                                  \
        !           125: }
        !           126: 
        !           127: #define INT_ASM_OP ".long"
        !           128: 
        !           129: /* A C statement (sans semicolon) to output an element in the table of
        !           130:    global constructors.  */
        !           131: #define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME)                              \
        !           132:   do {                                                                 \
        !           133:     ctors_section ();                                                  \
        !           134:     fprintf (FILE, "\t%s\t ", INT_ASM_OP);                             \
        !           135:     assemble_name (FILE, NAME);                                                \
        !           136:     fprintf (FILE, "\n");                                              \
        !           137:   } while (0)
        !           138: 
        !           139: /* A C statement (sans semicolon) to output an element in the table of
        !           140:    global destructors.  */
        !           141: #define ASM_OUTPUT_DESTRUCTOR(FILE,NAME)                                       \
        !           142:   do {                                                                 \
        !           143:     dtors_section ();                                                  \
        !           144:     fprintf (FILE, "\t%s\t ", INT_ASM_OP);                             \
        !           145:     assemble_name (FILE, NAME);                                        \
        !           146:     fprintf (FILE, "\n");                                              \
        !           147:   } while (0)
        !           148: 
        !           149: /* Don't assume anything about startfiles.  */
        !           150: 
        !           151: #define STARTFILE_SPEC ""

unix.superglobalmegacorp.com

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