toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD) instead of preprocessor...
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 Jun 2005 08:05:27 +0000 (10:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 Jun 2005 08:05:27 +0000 (10:05 +0200)
* toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
instead of preprocessor conditionals.

From-SVN: r101350

gcc/ChangeLog
gcc/toplev.c

index dde7e57375efa4ee6648616fae64a7ab98c48f75..9fe1c391e7091b68e0989db143e5245adb5e5b03 100644 (file)
@@ -1,5 +1,8 @@
 2005-06-27  Jakub Jelinek  <jakub@redhat.com>
 
+       * toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
+       instead of preprocessor conditionals.
+
        * targhooks.c (default_hidden_stack_protect_fail): Fall back to
        default_external_stack_protect_fail if visibility is not supported
        or not flag_pic.
index 495e104dd6a4882b6d12cf9b3dcc0d2ad0f8ec49..6107c04818200c8a6c3161c767a1237a97bfba41 100644 (file)
@@ -1748,15 +1748,13 @@ process_options (void)
   if (flag_cx_limited_range)
     flag_complex_method = 0;
 
-#ifndef FRAME_GROWS_DOWNWARD
   /* Targets must be able to place spill slots at lower addresses.  If the
      target already uses a soft frame pointer, the transition is trivial.  */
-  if (flag_stack_protect)
+  if (!FRAME_GROWS_DOWNWARD && flag_stack_protect)
     {
       warning (0, "-fstack-protector not supported for this target");
       flag_stack_protect = 0;
     }
-#endif
   if (!flag_stack_protect)
     warn_stack_protect = 0;
 }