Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/m32r/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 Renesas M32R running Linux-based GNU systems using ELF. | 1 /* Definitions for Renesas M32R running Linux-based GNU systems using ELF. |
2 Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc. | 2 Copyright (C) 2003, 2004, 2006, 2007, 2010, 2011 |
3 Free Software Foundation, Inc. | |
3 | 4 |
4 This file is part of GCC. | 5 This file is part of GCC. |
5 | 6 |
6 GCC is free software; you can redistribute it and/or modify it | 7 GCC is free software; you can redistribute it and/or modify it |
7 under the terms of the GNU General Public License as published | 8 under the terms of the GNU General Public License as published |
21 | 22 |
22 /* A lie, I guess, but the general idea behind linux/ELF is that we are | 23 /* A lie, I guess, but the general idea behind linux/ELF is that we are |
23 supposed to be outputting something that will assemble under SVr4. | 24 supposed to be outputting something that will assemble under SVr4. |
24 This gets us pretty close. */ | 25 This gets us pretty close. */ |
25 | 26 |
26 #define HANDLE_SYSV_PRAGMA | |
27 | |
28 #undef HANDLE_PRAGMA_PACK | |
29 | |
30 #undef TARGET_VERSION | 27 #undef TARGET_VERSION |
31 #define TARGET_VERSION fprintf (stderr, " (M32R GNU/Linux with ELF)"); | 28 #define TARGET_VERSION fprintf (stderr, " (M32R GNU/Linux with ELF)"); |
32 | 29 |
33 #undef SIZE_TYPE | 30 #undef SIZE_TYPE |
34 #define SIZE_TYPE "unsigned int" | 31 #define SIZE_TYPE "unsigned int" |
43 #define WCHAR_TYPE_SIZE BITS_PER_WORD | 40 #define WCHAR_TYPE_SIZE BITS_PER_WORD |
44 | 41 |
45 /* Provide a LINK_SPEC appropriate for Linux. Here we provide support | 42 /* Provide a LINK_SPEC appropriate for Linux. Here we provide support |
46 for the special GCC options -static and -shared, which allow us to | 43 for the special GCC options -static and -shared, which allow us to |
47 link things in one of these three modes by applying the appropriate | 44 link things in one of these three modes by applying the appropriate |
48 combinations of options at link-time. We like to support here for | 45 combinations of options at link-time. |
49 as many of the other GNU linker options as possible. But I don't | |
50 have the time to search for those flags. I am sure how to add | |
51 support for -soname shared_object_name. H.J. | |
52 | |
53 I took out %{v:%{!V:-V}}. It is too much :-(. They can use | |
54 -Wl,-V. | |
55 | 46 |
56 When the -shared link option is used a final link is not being | 47 When the -shared link option is used a final link is not being |
57 done. */ | 48 done. */ |
58 | |
59 /* If ELF is the default format, we should not use /lib/elf. */ | |
60 | 49 |
61 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | 50 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
62 | 51 |
63 #undef LINK_SPEC | 52 #undef LINK_SPEC |
64 #if TARGET_LITTLE_ENDIAN | 53 #if TARGET_LITTLE_ENDIAN |
65 #define LINK_SPEC "%(link_cpu) -m m32rlelf_linux %{shared:-shared} \ | 54 #define LINK_SPEC "%(link_cpu) -m m32rlelf_linux %{shared:-shared} \ |
66 %{!shared: \ | 55 %{!shared: \ |
67 %{!ibcs: \ | 56 %{!static: \ |
68 %{!static: \ | 57 %{rdynamic:-export-dynamic} \ |
69 %{rdynamic:-export-dynamic} \ | 58 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \ |
70 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \ | 59 %{static:-static}}" |
71 %{static:-static}}}" | |
72 #else | 60 #else |
73 #define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \ | 61 #define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \ |
74 %{!shared: \ | 62 %{!shared: \ |
75 %{!ibcs: \ | 63 %{!static: \ |
76 %{!static: \ | 64 %{rdynamic:-export-dynamic} \ |
77 %{rdynamic:-export-dynamic} \ | 65 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \ |
78 %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}} \ | 66 %{static:-static}}" |
79 %{static:-static}}}" | |
80 #endif | 67 #endif |
81 | 68 |
82 #undef LIB_SPEC | 69 #undef LIB_SPEC |
83 #define LIB_SPEC \ | 70 #define LIB_SPEC \ |
84 "%{pthread:-lpthread} \ | 71 "%{pthread:-lpthread} \ |