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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139803
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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"