Deleted Added
full compact
freebsd.h (34230) freebsd.h (34269)
1/* Definitions for Intel 386 running FreeBSD with either a.out or ELF format
2 Copyright (C) 1994, 1995 Free Software Foundation, Inc.
3 Contributed by Eric Youngdale.
4 Modified for stabs-in-ELF by H.J. Lu.
5 Adapted from Linux version by John Polstra.
6 Added support for generating "old a.out gas" on the fly by Peter Wemm.
7
8This file is part of GNU CC.

--- 105 unchanged lines hidden (view full) ---

114#undef ASM_FILE_START
115#define ASM_FILE_START(FILE) \
116 do { \
117 output_file_directive (FILE, main_input_filename); \
118 if (TARGET_ELF) \
119 fprintf (FILE, "\t.version\t\"01.01\"\n"); \
120 } while (0)
121
1/* Definitions for Intel 386 running FreeBSD with either a.out or ELF format
2 Copyright (C) 1994, 1995 Free Software Foundation, Inc.
3 Contributed by Eric Youngdale.
4 Modified for stabs-in-ELF by H.J. Lu.
5 Adapted from Linux version by John Polstra.
6 Added support for generating "old a.out gas" on the fly by Peter Wemm.
7
8This file is part of GNU CC.

--- 105 unchanged lines hidden (view full) ---

114#undef ASM_FILE_START
115#define ASM_FILE_START(FILE) \
116 do { \
117 output_file_directive (FILE, main_input_filename); \
118 if (TARGET_ELF) \
119 fprintf (FILE, "\t.version\t\"01.01\"\n"); \
120 } while (0)
121
122/* don't override the defauts, in case gdb gets upset */
123#undef ASM_IDENTIFY_GCC
124
122/* This is how to store into the string BUF
123 the symbol_ref name of an internal numbered label where
124 PREFIX is the class of label and NUM is the number within the class.
125 This is suitable for output with `assemble_name'. */
126#undef ASM_GENERATE_INTERNAL_LABEL
127#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
128 sprintf ((BUF), "*%s%s%d", (TARGET_UNDERSCORES) ? "" : ".", \
129 (PREFIX), (NUMBER))

--- 29 unchanged lines hidden (view full) ---

159 fprintf ((FILE), "\t.p2align %d,0x90\n", i386_align_jumps)
160
161/* Align start of loop at 4-byte boundary. */
162#undef ASM_OUTPUT_LOOP_ALIGN
163#define ASM_OUTPUT_LOOP_ALIGN(FILE) \
164 fprintf ((FILE), "\t.p2align %d,0x90\n", i386_align_loops)
165
166
125/* This is how to store into the string BUF
126 the symbol_ref name of an internal numbered label where
127 PREFIX is the class of label and NUM is the number within the class.
128 This is suitable for output with `assemble_name'. */
129#undef ASM_GENERATE_INTERNAL_LABEL
130#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
131 sprintf ((BUF), "*%s%s%d", (TARGET_UNDERSCORES) ? "" : ".", \
132 (PREFIX), (NUMBER))

--- 29 unchanged lines hidden (view full) ---

162 fprintf ((FILE), "\t.p2align %d,0x90\n", i386_align_jumps)
163
164/* Align start of loop at 4-byte boundary. */
165#undef ASM_OUTPUT_LOOP_ALIGN
166#define ASM_OUTPUT_LOOP_ALIGN(FILE) \
167 fprintf ((FILE), "\t.p2align %d,0x90\n", i386_align_loops)
168
169
167/* A C statement to output assembler commands which will identify the object
168 file as having been compile with GNU CC. We don't need or want this for
169 GDB. */
170#undef ASM_IDENTIFY_GCC
171#define ASM_IDENTIFY_GCC(FILE)
172
173/* conditionalize the use of ".section rodata" on elf mode - otherwise .text */
174#undef USE_CONST_SECTION
175#define USE_CONST_SECTION TARGET_ELF
176
177/* A C statement (sans semicolon) to output an element in the table of
178 global constructors. */
179#undef ASM_OUTPUT_CONSTRUCTOR
180#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \

--- 97 unchanged lines hidden (view full) ---

278 assemble_name (file, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\
279 fprintf (file, "\n.LM%d:\n", sym_lineno); \
280 sym_lineno += 1; \
281 } else { \
282 fprintf (file, "\t%s %d,0,%d\n", ASM_STABD_OP, N_SLINE, lineno); \
283 } \
284} while (0)
285
170/* conditionalize the use of ".section rodata" on elf mode - otherwise .text */
171#undef USE_CONST_SECTION
172#define USE_CONST_SECTION TARGET_ELF
173
174/* A C statement (sans semicolon) to output an element in the table of
175 global constructors. */
176#undef ASM_OUTPUT_CONSTRUCTOR
177#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \

--- 97 unchanged lines hidden (view full) ---

275 assemble_name (file, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\
276 fprintf (file, "\n.LM%d:\n", sym_lineno); \
277 sym_lineno += 1; \
278 } else { \
279 fprintf (file, "\t%s %d,0,%d\n", ASM_STABD_OP, N_SLINE, lineno); \
280 } \
281} while (0)
282
283#undef DBX_FUNCTION_FIRST
284#define DBX_CHECK_FUNCTION_FIRST TARGET_ELF
285
286/* stabs-in-elf has offsets relative to function beginning */
287#undef DBX_OUTPUT_LBRAC
288#define DBX_OUTPUT_LBRAC(file,name) \
289do { \
290 fprintf (asmfile, "%s %d,0,0,", ASM_STABN_OP, N_LBRAC); \
291 assemble_name (asmfile, buf); \
292 if (TARGET_ELF) { \
293 fputc ('-', asmfile); \

--- 254 unchanged lines hidden ---
286/* stabs-in-elf has offsets relative to function beginning */
287#undef DBX_OUTPUT_LBRAC
288#define DBX_OUTPUT_LBRAC(file,name) \
289do { \
290 fprintf (asmfile, "%s %d,0,0,", ASM_STABN_OP, N_LBRAC); \
291 assemble_name (asmfile, buf); \
292 if (TARGET_ELF) { \
293 fputc ('-', asmfile); \

--- 254 unchanged lines hidden ---