https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114759
--- Comment #5 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to Peter Bergner from comment #4)
> If instead we want to just silently ignore (or with a warning), we'd just
> need to modify the rs6000.cc hunk to disable rs6000_rop_protect instead of
> calling error().
Like so:
- /* If we are inserting ROP-protect instructions, disable shrink wrap. */
+
if (rs6000_rop_protect)
- flag_shrink_wrap = 0;
+ {
+ if (!TARGET_POWER8 || DEFAULT_ABI != ABI_ELFv2)
+ rs6000_rop_protect = 0;
+ else
+ /* If we are inserting ROP-protect instructions, disable shrink wrap.
*/
+ flag_shrink_wrap = 0;
+ }