[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 d12048e..4242c98 100644 (file)
@@ -1,5 +1,9 @@
 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.
 
 2019-06-22  Jeff Law  <law@redhat.com>
index 2df617d..705dd7f 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)