PR middle-end/64340
* gcc-interface/trans.c (gigi): Recreate optimization_default_node
and optimization_current_node after tweaking global_options.
From-SVN: r220504
+2015-02-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/64340
+ * gcc-interface/trans.c (gigi): Recreate optimization_default_node
+ and optimization_current_node after tweaking global_options.
+
2015-02-05 Robert Dewar <dewar@adacore.com>
* prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
if (No_Strict_Aliasing_CP)
flag_strict_aliasing = 0;
+ /* Save the current optimization options again after the above possible
+ global_options changes. */
+ optimization_default_node = build_optimization_node (&global_options);
+ optimization_current_node = optimization_default_node;
+
/* Now translate the compilation unit proper. */
Compilation_Unit_to_gnu (gnat_root);