aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-06-27 10:05:27 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2005-06-27 10:05:27 +0200
commitfd5431bc0333a8cbf12e3a567b39a03063300200 (patch)
treecf1914cfc123c78e68c5ba890b0608d10243c20e
parent7ce918c59e949e79c05c730c8720feea0442b4d9 (diff)
downloadgcc-fd5431bc0333a8cbf12e3a567b39a03063300200.zip
gcc-fd5431bc0333a8cbf12e3a567b39a03063300200.tar.gz
gcc-fd5431bc0333a8cbf12e3a567b39a03063300200.tar.bz2
toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD) instead of preprocessor conditionals.
* toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD) instead of preprocessor conditionals. From-SVN: r101350
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/toplev.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dde7e57..9fe1c39 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 495e104..6107c04 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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;
}