Lines 44-63
Link Here
|
44 |
#define TARGET_LINKER_EMULATION "armelf_linux" |
44 |
#define TARGET_LINKER_EMULATION "armelf_linux" |
45 |
#endif |
45 |
#endif |
46 |
|
46 |
|
47 |
/* Default is to use APCS-32 mode. */ |
47 |
/* |
|
|
48 |
* Default is to use APCS-32 mode with soft-vfp. |
49 |
* The old Linux default for floats can be achieved with -mhard-float |
50 |
* or with the configure --with-float=hard option. |
51 |
* If -msoft-float or --with-float=soft is used then software float |
52 |
* support will be used just like the default but with the legacy |
53 |
* big endian word ordering for double float representation instead. |
54 |
*/ |
48 |
#undef TARGET_DEFAULT |
55 |
#undef TARGET_DEFAULT |
49 |
#define TARGET_DEFAULT \ |
56 |
#define TARGET_DEFAULT \ |
50 |
( ARM_FLAG_APCS_32 | \ |
57 |
( ARM_FLAG_APCS_32 | \ |
|
|
58 |
ARM_FLAG_SOFT_FLOAT | \ |
59 |
ARM_FLAG_VFP | \ |
51 |
ARM_FLAG_MMU_TRAPS | \ |
60 |
ARM_FLAG_MMU_TRAPS | \ |
52 |
TARGET_ENDIAN_DEFAULT ) |
61 |
TARGET_ENDIAN_DEFAULT ) |
53 |
|
62 |
|
|
|
63 |
#undef SUBTARGET_EXTRA_ASM_SPEC |
64 |
#define SUBTARGET_EXTRA_ASM_SPEC "%{mhard-float:-mfpu=fpa} \ |
65 |
%{!mhard-float: %{msoft-float:-mfpu=softvfp} %{!msoft-float:-mfpu=softvfp}}" |
66 |
|
54 |
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6 |
67 |
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6 |
55 |
|
68 |
|
56 |
#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p" |
69 |
#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p" |
57 |
|
70 |
|
58 |
#undef MULTILIB_DEFAULTS |
71 |
#undef MULTILIB_DEFAULTS |
59 |
#define MULTILIB_DEFAULTS \ |
72 |
#define MULTILIB_DEFAULTS \ |
60 |
{ "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" } |
73 |
{ "marm", TARGET_ENDIAN_OPTION, "mapcs-32", "mno-thumb-interwork" } |
61 |
|
74 |
|
62 |
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__" |
75 |
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__" |
63 |
|
76 |
|
Lines 72-78
Link Here
|
72 |
%{shared:-lc} \ |
85 |
%{shared:-lc} \ |
73 |
%{!shared:%{profile:-lc_p}%{!profile:-lc}}" |
86 |
%{!shared:%{profile:-lc_p}%{!profile:-lc}}" |
74 |
|
87 |
|
75 |
#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc" |
88 |
#define LIBGCC_SPEC "-lgcc" |
76 |
|
89 |
|
77 |
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add |
90 |
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add |
78 |
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which |
91 |
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which |