Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/alpha/linux-elf.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 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Definitions of target machine for GNU compiler | 1 /* Definitions of target machine for GNU compiler |
2 for Alpha Linux-based GNU systems using ELF. | 2 for Alpha Linux-based GNU systems using ELF. |
3 Copyright (C) 1996, 1997, 1998, 2001, 2002, 2003, 2006, 2007 | 3 Copyright (C) 1996, 1997, 1998, 2001, 2002, 2003, 2006, 2007, 2010 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 Contributed by Richard Henderson. | 5 Contributed by Richard Henderson. |
6 | 6 |
7 This file is part of GCC. | 7 This file is part of GCC. |
8 | 8 |
27 #define EXTRA_SPECS \ | 27 #define EXTRA_SPECS \ |
28 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, | 28 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, |
29 | 29 |
30 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | 30 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
31 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" | 31 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
32 #if UCLIBC_DEFAULT | 32 #if DEFAULT_LIBC == LIBC_UCLIBC |
33 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:%{muclibc:%e-mglibc and -muclibc used together}" G ";:" U "}" | 33 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}" |
34 #elif DEFAULT_LIBC == LIBC_GLIBC | |
35 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}" | |
34 #else | 36 #else |
35 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:%{mglibc:%e-mglibc and -muclibc used together}" U ";:" G "}" | 37 #error "Unsupported DEFAULT_LIBC" |
36 #endif | 38 #endif |
37 #define LINUX_DYNAMIC_LINKER \ | 39 #define LINUX_DYNAMIC_LINKER \ |
38 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER) | 40 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER) |
39 | 41 |
40 #define ELF_DYNAMIC_LINKER LINUX_DYNAMIC_LINKER | 42 #define ELF_DYNAMIC_LINKER LINUX_DYNAMIC_LINKER |
43 %{O*:-O3} %{!O*:-O1} \ | 45 %{O*:-O3} %{!O*:-O1} \ |
44 %{shared:-shared} \ | 46 %{shared:-shared} \ |
45 %{!shared: \ | 47 %{!shared: \ |
46 %{!static: \ | 48 %{!static: \ |
47 %{rdynamic:-export-dynamic} \ | 49 %{rdynamic:-export-dynamic} \ |
48 %{!dynamic-linker:-dynamic-linker %(elf_dynamic_linker)}} \ | 50 -dynamic-linker %(elf_dynamic_linker)} \ |
49 %{static:-static}}" | 51 %{static:-static}}" |
50 | 52 |
51 #undef LIB_SPEC | 53 #undef LIB_SPEC |
52 #define LIB_SPEC \ | 54 #define LIB_SPEC \ |
53 "%{pthread:-lpthread} %{shared:-lc}%{!shared:%{profile:-lc_p}%{!profile:-lc}} " | 55 "%{pthread:-lpthread} %{shared:-lc}%{!shared:%{profile:-lc_p}%{!profile:-lc}} " |