[Darwin, PPC] Handle GCC target pragma.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 23 Jun 2019 19:23:51 +0000 (19:23 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 23 Jun 2019 19:23:51 +0000 (19:23 +0000)
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.

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

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

From-SVN: r272603

gcc/ChangeLog
gcc/config/rs6000/darwin.h

index d12048e9c1801445004381d87063b46f0758ba84..4242c9869ffc6d43f70bcc2ee1c3c295cb40826a 100644 (file)
@@ -1,3 +1,7 @@
+2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/rs6000/darwin.h: Handle GCC target pragma.
+
 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
 
        * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
index 2df617dc6c235360cc5c51def02e39cf15d2050c..705dd7fdd9455eda19e0b958a1bc47df21e32be4 100644 (file)
@@ -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)