Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 75585 | Differences between
and this patch

Collapse All | Expand All

(-)gcc-3.4.4-orig/gcc/config/arm/coff.h (-2 / +7 lines)
Lines 31-41 Link Here
31
#define TARGET_VERSION fputs (" (ARM/coff)", stderr)
31
#define TARGET_VERSION fputs (" (ARM/coff)", stderr)
32
32
33
#undef  TARGET_DEFAULT
33
#undef  TARGET_DEFAULT
34
#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
34
#define TARGET_DEFAULT		\
35
	( ARM_FLAG_SOFT_FLOAT	\
36
	| ARM_FLAG_VFP		\
37
	| ARM_FLAG_APCS_32	\
38
	| ARM_FLAG_APCS_FRAME	\
39
	| ARM_FLAG_MMU_TRAPS )
35
40
36
#ifndef MULTILIB_DEFAULTS
41
#ifndef MULTILIB_DEFAULTS
37
#define MULTILIB_DEFAULTS \
42
#define MULTILIB_DEFAULTS \
38
  { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" }
43
  { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
39
#endif
44
#endif
40
45
41
/* This is COFF, but prefer stabs.  */
46
/* This is COFF, but prefer stabs.  */
(-)gcc-3.4.4-orig/gcc/config/arm/elf.h (-3 / +10 lines)
Lines 46-52 Link Here
46
46
47
#ifndef SUBTARGET_ASM_FLOAT_SPEC
47
#ifndef SUBTARGET_ASM_FLOAT_SPEC
48
#define SUBTARGET_ASM_FLOAT_SPEC "\
48
#define SUBTARGET_ASM_FLOAT_SPEC "\
49
%{mapcs-float:-mfloat} %{msoft-float:-mfpu=softfpa}"
49
%{mapcs-float:-mfloat} \
50
%{mhard-float:-mfpu=fpa} \
51
%{!mhard-float: %{msoft-float:-mfpu=softvfp} %{!msoft-float:-mfpu=softvfp}}"
50
#endif
52
#endif
51
53
52
#ifndef ASM_SPEC
54
#ifndef ASM_SPEC
Lines 106-117 Link Here
106
#endif
108
#endif
107
109
108
#ifndef TARGET_DEFAULT
110
#ifndef TARGET_DEFAULT
109
#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
111
#define TARGET_DEFAULT		\
112
	(ARM_FLAG_SOFT_FLOAT	\
113
	| ARM_FLAG_VFP		\
114
	| ARM_FLAG_APCS_32	\
115
	| ARM_FLAG_APCS_FRAME	\
116
	| ARM_FLAG_MMU_TRAPS )
110
#endif
117
#endif
111
118
112
#ifndef MULTILIB_DEFAULTS
119
#ifndef MULTILIB_DEFAULTS
113
#define MULTILIB_DEFAULTS \
120
#define MULTILIB_DEFAULTS \
114
  { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
121
  { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
115
#endif
122
#endif
116
123
117
#define TARGET_ASM_FILE_START_APP_OFF true
124
#define TARGET_ASM_FILE_START_APP_OFF true
(-)gcc-3.4.4-orig/gcc/config/arm/linux-elf.h (-3 / +16 lines)
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
(-)gcc-3.4.4-orig/gcc/config/arm/t-linux (-1 / +4 lines)
Lines 4-10 Link Here
4
LIBGCC2_DEBUG_CFLAGS = -g0
4
LIBGCC2_DEBUG_CFLAGS = -g0
5
5
6
LIB1ASMSRC = arm/lib1funcs.asm
6
LIB1ASMSRC = arm/lib1funcs.asm
7
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
7
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
8
	_negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
9
	_truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
10
	_fixsfsi _fixunssfsi
8
11
9
# MULTILIB_OPTIONS = mhard-float/msoft-float
12
# MULTILIB_OPTIONS = mhard-float/msoft-float
10
# MULTILIB_DIRNAMES = hard-float soft-float
13
# MULTILIB_DIRNAMES = hard-float soft-float
(-)gcc-3.4.4-orig/gcc/config/arm/unknown-elf.h (-1 / +6 lines)
Lines 30-36 Link Here
30
30
31
/* Default to using APCS-32 and software floating point.  */
31
/* Default to using APCS-32 and software floating point.  */
32
#ifndef TARGET_DEFAULT
32
#ifndef TARGET_DEFAULT
33
#define TARGET_DEFAULT	(ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
33
#define TARGET_DEFAULT		\
34
	( ARM_FLAG_SOFT_FLOAT	\
35
	| ARM_FLAG_VFP		\
36
	| ARM_FLAG_APCS_32 	\
37
	| ARM_FLAG_APCS_FRAME 	\
38
	| ARM_FLAG_MMU_TRAPS )
34
#endif
39
#endif
35
40
36
/* Now we define the strings used to build the spec file.  */
41
/* Now we define the strings used to build the spec file.  */
(-)gcc-3.4.4-orig/gcc/config/arm/xscale-elf.h (-2 / +2 lines)
Lines 51-59 Link Here
51
		     
51
		     
52
#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
52
#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
53
  %{mhard-float:-mfpu=fpa} \
53
  %{mhard-float:-mfpu=fpa} \
54
  %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
54
  %{!mhard-float: %{msoft-float:-mfpu=softvfp} %{!msoft-float:-mfpu=softvfp}}"
55
55
56
#ifndef MULTILIB_DEFAULTS
56
#ifndef MULTILIB_DEFAULTS
57
#define MULTILIB_DEFAULTS \
57
#define MULTILIB_DEFAULTS \
58
  { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
58
  { "mlittle-endian", "mno-thumb-interwork", "marm" }
59
#endif
59
#endif

Return to bug 75585