This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] RS6000: rs6000.c checks options that have not yet been set


    gcc/
	* config/rs6000/rs6000.c (optimization_options): Do not test
	flag_toplevel_reorder here as it has not been set yet.
	flag_section_anchors will be reset if -fno-toplevel-reorder
	or -fno-unit-at-a-time are given by the user.

Ok for trunk?
---
 gcc/config/rs6000/rs6000.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 6ab3496..3ac8997 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -2178,11 +2178,8 @@ optimization_options (int level ATTRIBUTE_UNUSED, int size ATTRIBUTE_UNUSED)
 
   /* Enable section anchors by default.
      Skip section anchors for Objective C and Objective C++
-     until front-ends fixed.
-     Do not enable section anchors without toplevel reorder.  */
-  if (!TARGET_MACHO
-      && lang_hooks.name[4] != 'O'
-      && flag_toplevel_reorder != 0)
+     until front-ends fixed.  */
+  if (!TARGET_MACHO && lang_hooks.name[4] != 'O')
     flag_section_anchors = 2;
 }
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]