[Darwin, PPC, committed] Handle GCC target pragma.

Iain Sandoe iain@sandoe.co.uk
Sun Jun 23 19:25:00 GMT 2019


Primarily, for compatibility with other members of the port.

Note, that we do not handle the longcall attribute, since longcall is not
required/used on current Darwin (supported only for legacy cases).

2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>

	* config/rs6000/darwin.h: Handle GCC target pragma.

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 2df617d..705dd7f 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -400,6 +400,7 @@ extern int darwin_emit_picsym_stub;
   do \
     { \
       DARWIN_REGISTER_TARGET_PRAGMAS(); \
+      targetm.target_option.pragma_parse = rs6000_pragma_target_parse; \
       targetm.resolve_overloaded_builtin = altivec_resolve_overloaded_builtin; \
     } \
   while (0)



More information about the Gcc-patches mailing list