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