Commit 5ffebee7 by Janis Johnson Committed by Janis Johnson

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
parent 3606b8bf
2008-09-05 Janis Johnson <janis187@us.ibm.com> 2008-09-05 Janis Johnson <janis187@us.ibm.com>
Samuel Tardieu <sam@rfc1149.net> Samuel Tardieu <sam@rfc1149.net>
* opts.c (decode_options): Combine nested if statements.
PR target/37283 PR target/37283
* opts.c (decode_options): Handle more relationships among * opts.c (decode_options): Handle more relationships among
unit-at-a-time, toplevel-reorder, and section-anchors. unit-at-a-time, toplevel-reorder, and section-anchors.
......
...@@ -1021,16 +1021,13 @@ decode_options (unsigned int argc, const char **argv) ...@@ -1021,16 +1021,13 @@ decode_options (unsigned int argc, const char **argv)
"is disabled."); "is disabled.");
flag_toplevel_reorder = 0; 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 flag_toplevel_reorder = 0;
reordering at -O0 to disable transformations that might be surprising flag_section_anchors = 0;
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;
}
} }
if (!flag_toplevel_reorder) if (!flag_toplevel_reorder)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment