Commit c1da383f by Doug Evans

toplev.c (main): Invoke OPTIMIZATION_OPTIONS after target_flags has been initialized so sets of...

	* toplev.c (main): Invoke OPTIMIZATION_OPTIONS after target_flags
	has been initialized so sets of target_flags aren't clobbered.

From-SVN: r10630
parent b89bcb59
......@@ -3398,6 +3398,11 @@ main (argc, argv, envp)
flag_inline_functions = 1;
}
/* Initialize target_flags before OPTIMIZATION_OPTIONS so the latter can
modify it. */
target_flags = 0;
set_target_switch ("");
#ifdef OPTIMIZATION_OPTIONS
/* Allow default optimizations to be specified on a per-machine basis. */
OPTIMIZATION_OPTIONS (optimize);
......@@ -3406,9 +3411,6 @@ main (argc, argv, envp)
/* Initialize register usage now so switches may override. */
init_reg_sets ();
target_flags = 0;
set_target_switch ("");
for (i = 1; i < argc; i++)
{
int j;
......
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