comparison gcc/config/cris/cris_abi_symbol.c @ 0:a06113de4d67

first commit
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2009 14:47:48 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a06113de4d67
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.
4
5 Copyright (C) 2000, 2001, 2003, 2009 Free Software Foundation, Inc.
6
7 This file is part of GCC.
8
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 3, or (at your option) any
12 later version.
13
14 This file is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 Under Section 7 of GPL version 3, you are granted additional
20 permissions described in the GCC Runtime Library Exception, version
21 3.1, as published by the Free Software Foundation.
22
23 You should have received a copy of the GNU General Public License and
24 a copy of the GCC Runtime Library Exception along with this program;
25 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
26 <http://www.gnu.org/licenses/>. */
27
28 #include "tconfig.h"
29 #include "tm.h"
30
31 #ifdef __AOUT__
32
33 /* ELF support was not released before the ABI was changed, so we
34 restrict this awkwardness to a.out. This symbol is for gdb to
35 recognize, so it can debug both old and new programs successfully. */
36 __asm__ (".global " CRIS_ABI_VERSION_SYMBOL_STRING);
37 __asm__ (".set " CRIS_ABI_VERSION_SYMBOL_STRING ",0");
38
39 #else /* not __AOUT__ */
40
41 /* The file must not be empty (declaration/definition-wise) according to
42 ISO, IIRC. */
43 extern int _Dummy;
44
45 #endif /* not __AOUT__ */