Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/mips/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 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Definitions for MIPS running Linux-based GNU systems with ELF format. | 1 /* Definitions for MIPS running Linux-based GNU systems with ELF format. |
2 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 2 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
3 2007, 2008 Free Software Foundation, Inc. | 3 2007, 2008, 2010, 2011 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify | 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 | 8 it under the terms of the GNU General Public License as published by |
31 #if TARGET_ENDIAN_DEFAULT == 0 | 31 #if TARGET_ENDIAN_DEFAULT == 0 |
32 #define TARGET_VERSION fprintf (stderr, " (MIPSel GNU/Linux with ELF)"); | 32 #define TARGET_VERSION fprintf (stderr, " (MIPSel GNU/Linux with ELF)"); |
33 #else | 33 #else |
34 #define TARGET_VERSION fprintf (stderr, " (MIPS GNU/Linux with ELF)"); | 34 #define TARGET_VERSION fprintf (stderr, " (MIPS GNU/Linux with ELF)"); |
35 #endif | 35 #endif |
36 | |
37 #undef MD_EXEC_PREFIX | |
38 #undef MD_STARTFILE_PREFIX | |
39 | 36 |
40 /* If we don't set MASK_ABICALLS, we can't default to PIC. */ | 37 /* If we don't set MASK_ABICALLS, we can't default to PIC. */ |
41 #undef TARGET_DEFAULT | 38 #undef TARGET_DEFAULT |
42 #define TARGET_DEFAULT MASK_ABICALLS | 39 #define TARGET_DEFAULT MASK_ABICALLS |
43 | 40 |
70 #undef LINK_SPEC | 67 #undef LINK_SPEC |
71 #define LINK_SPEC \ | 68 #define LINK_SPEC \ |
72 "%(endian_spec) \ | 69 "%(endian_spec) \ |
73 %{shared:-shared} \ | 70 %{shared:-shared} \ |
74 %{!shared: \ | 71 %{!shared: \ |
75 %{!ibcs: \ | 72 %{!static: \ |
76 %{!static: \ | 73 %{rdynamic:-export-dynamic} \ |
77 %{rdynamic:-export-dynamic} \ | 74 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \ |
78 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \ | 75 %{static:-static}}" |
79 %{static:-static}}}" | |
80 | 76 |
81 #undef SUBTARGET_ASM_SPEC | 77 #undef SUBTARGET_ASM_SPEC |
82 #define SUBTARGET_ASM_SPEC \ | 78 #define SUBTARGET_ASM_SPEC \ |
83 "%{!mno-abicalls:%{mplt:-call_nonpic;:-KPIC}}" | 79 "%{!mno-abicalls:%{mplt:-call_nonpic;:-KPIC}}" |
84 | 80 |
145 | 141 |
146 #undef DRIVER_SELF_SPECS | 142 #undef DRIVER_SELF_SPECS |
147 #define DRIVER_SELF_SPECS \ | 143 #define DRIVER_SELF_SPECS \ |
148 BASE_DRIVER_SELF_SPECS, \ | 144 BASE_DRIVER_SELF_SPECS, \ |
149 LINUX_DRIVER_SELF_SPECS | 145 LINUX_DRIVER_SELF_SPECS |
146 | |
147 /* Similar to standard Linux, but adding -ffast-math support. */ | |
148 #undef ENDFILE_SPEC | |
149 #define ENDFILE_SPEC \ | |
150 "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ | |
151 %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" |