public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-813] rs6000: Conditionally define __ROP_PROTECT__
@ 2021-05-15 19:05 William Schmidt
0 siblings, 0 replies; only message in thread
From: William Schmidt @ 2021-05-15 19:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3ec3a9feb83d98715c97c0df4ae751a4eb582956
commit r12-813-g3ec3a9feb83d98715c97c0df4ae751a4eb582956
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date: Thu May 13 13:10:10 2021 -0500
rs6000: Conditionally define __ROP_PROTECT__
2021-05-13 Bill Schmidt <wschmidt@linux.ibm.com>
gcc/
* config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
__ROP_PROTECT__ if -mrop-protect is selected.
Diff:
---
gcc/config/rs6000/rs6000-c.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c
index 0f8a629ff5a..afcb5bb6e39 100644
--- a/gcc/config/rs6000/rs6000-c.c
+++ b/gcc/config/rs6000/rs6000-c.c
@@ -602,6 +602,9 @@ rs6000_target_modify_macros (bool define_p, HOST_WIDE_INT flags,
/* Whether pc-relative code is being generated. */
if ((flags & OPTION_MASK_PCREL) != 0)
rs6000_define_or_undefine_macro (define_p, "__PCREL__");
+ /* Tell the user -mrop-protect is in play. */
+ if (rs6000_rop_protect)
+ rs6000_define_or_undefine_macro (define_p, "__ROP_PROTECT__");
}
void
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-15 19:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-15 19:05 [gcc r12-813] rs6000: Conditionally define __ROP_PROTECT__ William Schmidt
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).