Merge lp:~cltang/gcc-linaro/lp-602745 into lp:gcc-linaro/4.4

Proposed by Chung-Lin Tang
Status: Merged
Merged at revision: 93544
Proposed branch: lp:~cltang/gcc-linaro/lp-602745
Merge into: lp:gcc-linaro/4.4
Diff against target: 61 lines (+23/-2)
3 files modified
ChangeLog.linaro (+12/-0)
gcc/config/arm/arm.c (+1/-1)
gcc/config/arm/arm.h (+10/-1)
To merge this branch: bzr merge lp:~cltang/gcc-linaro/lp-602745
Reviewer Review Type Date Requested Status
Andrew Stubbs (community) Approve
Review via email: mp+31623@code.launchpad.net

Description of the change

Backport from mainline: ARM soft/hard-float preprocessor symbol patch, for fixing Launchpad bug #602745.

To post a comment you must log in.
Revision history for this message
Andrew Stubbs (ams-codesourcery) wrote :

This is good, thanks. :)

Andrew

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog.linaro'
2--- ChangeLog.linaro 2010-07-29 13:52:03 +0000
3+++ ChangeLog.linaro 2010-08-03 10:02:03 +0000
4@@ -1,3 +1,15 @@
5+2010-08-03 Chung-Lin Tang <cltang@codesourcery.com>
6+
7+ Backport from mainline for Launchpad Bug #602745:
8+
9+ 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
10+
11+ gcc/
12+ * config/arm/arm.c (arm_pcs_default): Remove static.
13+ * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
14+ __ARM_PCS_VFP to indicate soft/hard-float calling convention.
15+ (arm_pcs_default): Declare.
16+
17 2010-07-23 Ulrich Weigand <uweigand@de.ibm.com>
18
19 Revert most PowerPC-related patches:
20
21=== modified file 'gcc/config/arm/arm.c'
22--- gcc/config/arm/arm.c 2010-07-07 07:24:43 +0000
23+++ gcc/config/arm/arm.c 2010-08-03 10:02:03 +0000
24@@ -686,7 +686,7 @@
25 /* The maximum number of insns to be used when loading a constant. */
26 static int arm_constant_limit = 3;
27
28-static enum arm_pcs arm_pcs_default;
29+enum arm_pcs arm_pcs_default;
30
31 /* For an explanation of these variables, see final_prescan_insn below. */
32 int arm_ccfsm_state;
33
34=== modified file 'gcc/config/arm/arm.h'
35--- gcc/config/arm/arm.h 2010-06-17 08:44:15 +0000
36+++ gcc/config/arm/arm.h 2010-08-03 10:02:03 +0000
37@@ -84,7 +84,13 @@
38 if (arm_arch_iwmmxt) \
39 builtin_define ("__IWMMXT__"); \
40 if (TARGET_AAPCS_BASED) \
41- builtin_define ("__ARM_EABI__"); \
42+ { \
43+ if (arm_pcs_default == ARM_PCS_AAPCS_VFP) \
44+ builtin_define ("__ARM_PCS_VFP"); \
45+ else if (arm_pcs_default == ARM_PCS_AAPCS) \
46+ builtin_define ("__ARM_PCS"); \
47+ builtin_define ("__ARM_EABI__"); \
48+ } \
49 if (arm_tune_marvell_f) \
50 builtin_define ("__ARM_TUNE_MARVELL_F__"); \
51 if (low_irq_latency) \
52@@ -1682,6 +1688,9 @@
53 ARM_PCS_UNKNOWN
54 };
55
56+/* Default procedure calling standard of current compilation unit. */
57+extern enum arm_pcs arm_pcs_default;
58+
59 /* We can't define this inside a generator file because it needs enum
60 machine_mode. */
61 /* A C type for declaring a variable that is used as the first argument of

Subscribers

People subscribed via source and target branches