OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / config / sparc / aout.h
1 /* Definitions of target machine for GCC, for SPARC using a.out.
2    Copyright (C) 1994, 1996, 2002 Free Software Foundation, Inc.
3    Contributed by Michael Tiemann (tiemann@cygnus.com).
4
5 This file is part of GCC.
6
7 GCC 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 GCC 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 GCC; 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 /* Print subsidiary information on the compiler version in use.  */
23
24 #define TARGET_VERSION fprintf (stderr, " (sparc)");
25
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
32 #define TARGET_ASM_SELECT_SECTION  sparc_aout_select_section
33 #define TARGET_ASM_SELECT_RTX_SECTION  sparc_aout_select_rtx_section
34
35 /* Output the label for a function definition.  */
36
37 #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL)                     \
38 do {                                                                    \
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 /* This is how to output a note to DBX telling it the line number
52    to which the following sequence of instructions corresponds.
53
54    This is needed for SunOS 4.0, and should not hurt for 3.2
55    versions either.  */
56 #define ASM_OUTPUT_SOURCE_LINE(file, line, counter)     \
57   fprintf (file, ".stabn 68,0,%d,LM%d\nLM%d:\n",        \
58            line, counter, counter)