Update FSF address.
[official-gcc.git] / gcc / config / cris / cris_abi_symbol.c
blobe13c66c485befc3772564417683343b3267a1e7e
1 /* Define symbol to recognize CRIS ABI version 2, for a.out use.
2 Contributed by Axis Communications.
3 Written by Hans-Peter Nilsson <hp@axis.se>, c:a 1992.
5 Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
7 This file is part of GCC.
9 GCC is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by the
11 Free Software Foundation; either version 2, or (at your option) any
12 later version.
14 In addition to the permissions in the GNU General Public License, the
15 Free Software Foundation gives you unlimited permission to link the
16 compiled version of this file with other programs, and to distribute
17 those programs without any restriction coming from the use of this
18 file. (The General Public License restrictions do apply in other
19 respects; for example, they cover modification of the file, and
20 distribution when not linked into another program.)
22 This file is distributed in the hope that it will be useful, but
23 WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 General Public License for more details.
27 You should have received a copy of the GNU General Public License
28 along with this program; see the file COPYING. If not, write to
29 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
30 Boston, MA 02110-1301, USA.
32 As a special exception, if you link this library with files, some of
33 which are compiled with GCC, this library does not by itself cause
34 the resulting object or executable to be covered by the GNU General
35 Public License.
36 This exception does not however invalidate any other reasons why
37 the executable file or object might be covered by the GNU General
38 Public License. */
40 #include "tconfig.h"
41 #include "tm.h"
43 #ifdef __AOUT__
45 /* ELF support was not released before the ABI was changed, so we
46 restrict this awkwardness to a.out. This symbol is for gdb to
47 recognize, so it can debug both old and new programs successfully. */
48 __asm__ (".global " CRIS_ABI_VERSION_SYMBOL_STRING);
49 __asm__ (".set " CRIS_ABI_VERSION_SYMBOL_STRING ",0");
51 #else /* not __AOUT__ */
53 /* The file must not be empty (declaration/definition-wise) according to
54 ISO, IIRC. */
55 extern int _Dummy;
57 #endif /* not __AOUT__ */