Deleted Added
full compact
freebsd.h (34269) freebsd.h (34284)
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
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))

--- 142 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
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))

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

272 assemble_name (file, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\
273 fprintf (file, "\n.LM%d:\n", sym_lineno); \
274 sym_lineno += 1; \
275 } else { \
276 fprintf (file, "\t%s %d,0,%d\n", ASM_STABD_OP, N_SLINE, lineno); \
277 } \
278} while (0)
279
280/* in elf, the function stabs come first, before the relative offsets */
283#undef DBX_FUNCTION_FIRST
284#define DBX_CHECK_FUNCTION_FIRST TARGET_ELF
285
281#undef DBX_FUNCTION_FIRST
282#define DBX_CHECK_FUNCTION_FIRST TARGET_ELF
283
284/* tag end of file in elf mode */
285#undef DBX_OUTPUT_MAIN_SOURCE_FILE_END
286#define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME) \
287do { \
288 if (TARGET_ELF) { \
289 fprintf (FILE, "\t.text\n\t.stabs \"\",%d,0,0,.Letext\n.Letext:\n", N_SO); \
290 } \
291} while (0)
292
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 ---
293/* stabs-in-elf has offsets relative to function beginning */
294#undef DBX_OUTPUT_LBRAC
295#define DBX_OUTPUT_LBRAC(file,name) \
296do { \
297 fprintf (asmfile, "%s %d,0,0,", ASM_STABN_OP, N_LBRAC); \
298 assemble_name (asmfile, buf); \
299 if (TARGET_ELF) { \
300 fputc ('-', asmfile); \

--- 254 unchanged lines hidden ---