public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [ubsan] Rename obsolete variable
@ 2013-07-30 15:57 Marek Polacek
  0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2013-07-30 15:57 UTC (permalink / raw)
  To: GCC Patches

Apparently I forgot to check rs6000.h when doing the flag_asan
-> flag_sanitize change.  This broke bootstrap on ppc.

Tested powerpc64-unknown-linux-gnu, applying to ubsan branch.

diff --git a/gcc/ChangeLog.ubsan b/gcc/ChangeLog.ubsan
index 311a15c..ac584ff 100644
--- a/gcc/ChangeLog.ubsan
+++ b/gcc/ChangeLog.ubsan
@@ -1,5 +1,10 @@
 2013-07-30  Marek Polacek  <polacek@redhat.com>
 
+	* config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
+	instead of flag_asan.
+
+2013-07-30  Marek Polacek  <polacek@redhat.com>
+
 	* ubsan.c (ubsan_source_location): Use build_constructor_va
 	instead of build_constructor.
 	(ubsan_type_descriptor): Likewise.
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index e5a6abd..f89b20d 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -1498,7 +1498,8 @@ extern enum reg_class rs6000_constraints[RS6000_CONSTRAINT_MAX];
 
    On the RS/6000, we grow upwards, from the area after the outgoing
    arguments.  */
-#define FRAME_GROWS_DOWNWARD (flag_stack_protect != 0 || flag_asan != 0)
+#define FRAME_GROWS_DOWNWARD (flag_stack_protect != 0			\
+			      || (flag_sanitize & SANITIZE_ADDRESS) != 0)
 
 /* Size of the outgoing register save area */
 #define RS6000_REG_SAVE ((DEFAULT_ABI == ABI_AIX			\

	Marek

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-30 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-30 15:57 [ubsan] Rename obsolete variable Marek Polacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).