]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
darwin.md (load_macho_picbase_si): Wrap machopic calls and defines in TARGET_MACHO...
authorIain Sandoe <iain@codesourcery.com>
Mon, 30 Sep 2013 09:20:58 +0000 (09:20 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Mon, 30 Sep 2013 09:20:58 +0000 (09:20 +0000)
gcc:

* config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
calls and defines in TARGET_MACHO conditional.
(load_macho_picbase_di): Likewise.
(reload_macho_picbase): Likewise.
(reload_macho_picbase_si): Likewise.
(reload_macho_picbase_di): Likewise.
(nonlocal_goto_receiver): Likewise.

From-SVN: r203027

gcc/ChangeLog
gcc/config/rs6000/darwin.md

index 3bebb34d29d610835b5c0d107226d2dab777ac10..552893aee16150e7252adc156512af0db3960779 100644 (file)
@@ -1,3 +1,13 @@
+2013-09-30  Iain Sandoe  <iain@codesourcery.com>
+
+       * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
+       calls and defines in TARGET_MACHO conditional.
+       (load_macho_picbase_di): Likewise.
+       (reload_macho_picbase): Likewise.
+       (reload_macho_picbase_si): Likewise.
+       (reload_macho_picbase_di): Likewise.
+       (nonlocal_goto_receiver): Likewise.
+
 2013-09-30  Nick Clifton  <nickc@redhat.com>
 
        * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
index 0fb2422eaaa48b1d921543f34d5e4f18fbd424cc..2f15c5389c6bdcc86ee1369fcea8adfa1e5e878c 100644 (file)
@@ -261,7 +261,11 @@ You should have received a copy of the GNU General Public License
                    (pc)] UNSPEC_LD_MPIC))]
   "(DEFAULT_ABI == ABI_DARWIN) && flag_pic"
 {
+#if TARGET_MACHO
   machopic_should_output_picbase_label (); /* Update for new func.  */
+#else
+  gcc_unreachable ();
+#endif
   return "bcl 20,31,%0\\n%0:";
 }
   [(set_attr "type" "branch")
@@ -273,7 +277,11 @@ You should have received a copy of the GNU General Public License
                    (pc)] UNSPEC_LD_MPIC))]
   "(DEFAULT_ABI == ABI_DARWIN) && flag_pic && TARGET_64BIT"
 {
+#if TARGET_MACHO
   machopic_should_output_picbase_label (); /* Update for new func.  */
+#else
+  gcc_unreachable ();
+#endif
   return "bcl 20,31,%0\\n%0:";
 }
   [(set_attr "type" "branch")
@@ -397,6 +405,7 @@ You should have received a copy of the GNU General Public License
                    (pc)] UNSPEC_RELD_MPIC))]
   "(DEFAULT_ABI == ABI_DARWIN) && flag_pic"
 {
+#if TARGET_MACHO
   if (machopic_should_output_picbase_label ())
     {
       static char tmp[64];
@@ -405,6 +414,9 @@ You should have received a copy of the GNU General Public License
       return tmp;
     }
   else
+#else
+  gcc_unreachable ();
+#endif
     return "bcl 20,31,%0\\n%0:";
 }
   [(set_attr "type" "branch")
@@ -416,6 +428,7 @@ You should have received a copy of the GNU General Public License
                    (pc)] UNSPEC_RELD_MPIC))]
   "(DEFAULT_ABI == ABI_DARWIN) && flag_pic && TARGET_64BIT"
 {
+#if TARGET_MACHO
   if (machopic_should_output_picbase_label ())
     {
       static char tmp[64];
@@ -424,6 +437,9 @@ You should have received a copy of the GNU General Public License
       return tmp;
     }
   else
+#else
+  gcc_unreachable ();
+#endif
     return "bcl 20,31,%0\\n%0:";
 }
   [(set_attr "type" "branch")
@@ -438,6 +454,7 @@ You should have received a copy of the GNU General Public License
   "&& reload_completed"
   [(const_int 0)]
 {
+#if TARGET_MACHO
   if (crtl->uses_pic_offset_table)
     {
       static unsigned n = 0;
@@ -456,6 +473,8 @@ You should have received a copy of the GNU General Public License
   else
     /* Not using PIC reg, no reload needed.  */
     emit_note (NOTE_INSN_DELETED);
-
+#else
+  gcc_unreachable ();
+#endif
   DONE;
 })