Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/pa/pa32-linux.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
rev | line source |
---|---|
0 | 1 /* Definitions for PA_RISC with ELF-32 format |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
2 Copyright (C) 2000, 2002, 2004, 2006, 2007, 2010 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
3 Free Software Foundation, Inc. |
0 | 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 3, 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 COPYING3. If not see | |
19 <http://www.gnu.org/licenses/>. */ | |
20 | |
21 /* Turn off various SOM crap we don't want. */ | |
22 #undef TARGET_ELF32 | |
23 #define TARGET_ELF32 1 | |
24 | |
25 /* The libcall __canonicalize_funcptr_for_compare is referenced in | |
26 crtend.o and the reference isn't resolved in objects that don't | |
27 compare function pointers. Thus, we need to play games to provide | |
28 a reference in crtbegin.o. The rest of the define is the same | |
29 as that in crtstuff.c */ | |
30 #define CTOR_LIST_BEGIN \ | |
31 asm (".type __canonicalize_funcptr_for_compare,@function\n" \ | |
32 " .text\n" \ | |
33 " .word __canonicalize_funcptr_for_compare-$PIC_pcrel$0"); \ | |
34 STATIC func_ptr __CTOR_LIST__[1] \ | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
35 __attribute__ ((__used__, section(".ctors"), \ |
0 | 36 aligned(sizeof(func_ptr)))) \ |
37 = { (func_ptr) (-1) } | |
38 | |
39 /* This is a PIC version of CRT_CALL_STATIC_FUNCTION. The PIC | |
40 register has to be saved before the call and restored after | |
41 the call. We assume that register %r4 is available for this | |
42 purpose. The hack prevents GCC from deleting the restore. */ | |
43 #ifdef CRTSTUFFS_O | |
44 #define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \ | |
45 static void __attribute__((__used__)) \ | |
46 call_ ## FUNC (void) \ | |
47 { \ | |
48 asm (SECTION_OP); \ | |
49 asm volatile ("bl " #FUNC ",%%r2\n\t" \ | |
50 "copy %%r19,%%r4\n\t" \ | |
51 "copy %%r4,%%r19\n" \ | |
52 : \ | |
53 : \ | |
54 : "r1", "r2", "r4", "r20", "r21", \ | |
55 "r22", "r23", "r24", "r25", "r26", \ | |
56 "r27", "r28", "r29", "r31"); \ | |
57 asm (TEXT_SECTION_ASM_OP); \ | |
58 } | |
59 #endif | |
60 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
61 #undef WCHAR_TYPE |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
62 #define WCHAR_TYPE "long int" |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
63 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
64 #undef WCHAR_TYPE_SIZE |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
65 #define WCHAR_TYPE_SIZE BITS_PER_WORD |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
66 |
0 | 67 #define MD_UNWIND_SUPPORT "config/pa/linux-unwind.h" |