aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2008-09-05 20:27:48 +0000
committerJanis Johnson <janis@gcc.gnu.org>2008-09-05 20:27:48 +0000
commit5ffebee7bbf8edb14dd1acdc45b1f5b481964d11 (patch)
tree0b9404431a1979ad7aaf6ca535968521c3ede8f9
parent3606b8bf7748532a34900596674a517b3e153753 (diff)
downloadgcc-5ffebee7bbf8edb14dd1acdc45b1f5b481964d11.zip
gcc-5ffebee7bbf8edb14dd1acdc45b1f5b481964d11.tar.gz
gcc-5ffebee7bbf8edb14dd1acdc45b1f5b481964d11.tar.bz2
opts.c (decode_options): Combine nested if statements.
* opts.c (decode_options): Combine nested if statements. Co-Authored-By: Samuel Tardieu <sam@rfc1149.net> From-SVN: r140044
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/opts.c15
2 files changed, 8 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 053b508..11743b4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,8 @@
2008-09-05 Janis Johnson <janis187@us.ibm.com>
Samuel Tardieu <sam@rfc1149.net>
+ * opts.c (decode_options): Combine nested if statements.
+
PR target/37283
* opts.c (decode_options): Handle more relationships among
unit-at-a-time, toplevel-reorder, and section-anchors.
diff --git a/gcc/opts.c b/gcc/opts.c
index 080f8af..591094d 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1021,16 +1021,13 @@ decode_options (unsigned int argc, const char **argv)
"is disabled.");
flag_toplevel_reorder = 0;
}
- if (!optimize)
+ /* Unless the user has asked for section anchors, we disable toplevel
+ reordering at -O0 to disable transformations that might be surprising
+ to end users and to get -fno-toplevel-reorder tested. */
+ if (!optimize && flag_toplevel_reorder == 2 && flag_section_anchors != 1)
{
- /* Unless the user has asked for section anchors, we disable toplevel
- reordering at -O0 to disable transformations that might be surprising
- to end users and to get -fno-toplevel-reorder tested. */
- if (flag_toplevel_reorder == 2 && flag_section_anchors != 1)
- {
- flag_toplevel_reorder = 0;
- flag_section_anchors = 0;
- }
+ flag_toplevel_reorder = 0;
+ flag_section_anchors = 0;
}
if (!flag_toplevel_reorder)
{