]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/sparc/aout.h
dbxout.c (dbxout_source_line_counter): New global variable.
[thirdparty/gcc.git] / gcc / config / sparc / aout.h
CommitLineData
de0a398e 1/* Definitions of target machine for GCC, for SPARC using a.out.
ae46c4e0 2 Copyright (C) 1994, 1996, 2002 Free Software Foundation, Inc.
b3ab657f
DE
3 Contributed by Michael Tiemann (tiemann@cygnus.com).
4
de0a398e 5This file is part of GCC.
b3ab657f 6
de0a398e 7GCC is free software; you can redistribute it and/or modify
b3ab657f
DE
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
de0a398e 12GCC is distributed in the hope that it will be useful,
b3ab657f
DE
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
de0a398e 18along with GCC; see the file COPYING. If not, write to
c15c9075
RK
19the Free Software Foundation, 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */
b3ab657f 21
0f7a7be7
DB
22/* Print subsidiary information on the compiler version in use. */
23
24#define TARGET_VERSION fprintf (stderr, " (sparc)");
25
0f7a7be7
DB
26/* These compiler options take an argument. We ignore -target for now. */
27
28#define WORD_SWITCH_TAKES_ARG(STR) \
29 (DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
30 || !strcmp (STR, "target") || !strcmp (STR, "assert"))
31
ae46c4e0 32#define TARGET_ASM_SELECT_SECTION sparc_aout_select_section
b64a1b53 33#define TARGET_ASM_SELECT_RTX_SECTION sparc_aout_select_rtx_section
0f7a7be7
DB
34
35/* Output the label for a function definition. */
36
37#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
38do { \
39 ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \
40 ASM_OUTPUT_LABEL (FILE, NAME); \
41} while (0)
42
43/* Output before read-only data. */
44
45#define TEXT_SECTION_ASM_OP "\t.text"
46
47/* Output before writable data. */
48
49#define DATA_SECTION_ASM_OP "\t.data"
50
51/* How to renumber registers for dbx and gdb. In the flat model, the frame
52 pointer is really %i7. */
53
54#define DBX_REGISTER_NUMBER(REGNO) \
563c12b0 55 (TARGET_FLAT && (REGNO) == HARD_FRAME_POINTER_REGNUM ? 31 : REGNO)
0f7a7be7
DB
56
57/* This is how to output a note to DBX telling it the line number
58 to which the following sequence of instructions corresponds.
59
60 This is needed for SunOS 4.0, and should not hurt for 3.2
61 versions either. */
a8d0467e
EB
62#define ASM_OUTPUT_SOURCE_LINE(file, line, counter) \
63 fprintf (file, ".stabn 68,0,%d,LM%d\nLM%d:\n", \
64 line, counter, counter)