diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2008-08-30 13:44:22 +0000 |
---|---|---|
committer | Samuel Tardieu <sam@gcc.gnu.org> | 2008-08-30 13:44:22 +0000 |
commit | b1bdaf4061096a0e4d4259acbf27cf97542ea9de (patch) | |
tree | 6a080afd5905857ae0a666201a595045c8a25887 /gcc | |
parent | a2a9208308a0bd367921b7f2ae154c7abd71e003 (diff) | |
download | gcc-b1bdaf4061096a0e4d4259acbf27cf97542ea9de.zip gcc-b1bdaf4061096a0e4d4259acbf27cf97542ea9de.tar.gz gcc-b1bdaf4061096a0e4d4259acbf27cf97542ea9de.tar.bz2 |
re PR target/37283 (Cannot build crtbegin.o for ARM)
gcc/
PR target/37283
* config/arm/arm.c (arm_optimization_options): Set
flag_section_anchors to 2 instead of 1 to distinguish it from
-fsection-anchors given explicitely on the command line.
From-SVN: r139803
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b6186bb..f3a3b0b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2008-08-30 Samuel Tardieu <sam@rfc1149.net> + + PR target/37283 + * config/arm/arm.c (arm_optimization_options): Set + flag_section_anchors to 2 instead of 1 to distinguish it from + -fsection-anchors given explicitely on the command line. + 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com> * recog.c (split_insn): Consider attaching a REG_EQUAL note to the diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 888a242..4de60bb 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -19112,8 +19112,11 @@ arm_order_regs_for_local_alloc (void) void arm_optimization_options (int level, int size ATTRIBUTE_UNUSED) { - /* Enable section anchors by default at -O1 or higher. */ - flag_section_anchors = (level > 0 ? 1 : 0); + /* Enable section anchors by default at -O1 or higher. + Use 2 to distinguish from an explicit -fsection-anchors + given on the command line. */ + if (level > 0) + flag_section_anchors = 2; } #include "gt-arm.h" |