From bd9534e28685da0b871cb3176727e110ee6b5dc2 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Mon, 30 Sep 2013 09:20:58 +0000 Subject: [PATCH] darwin.md (load_macho_picbase_si): Wrap machopic calls and defines in TARGET_MACHO conditional. 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 | 10 ++++++++++ gcc/config/rs6000/darwin.md | 21 ++++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3bebb34d29d..552893aee16 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2013-09-30 Iain Sandoe + + * 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 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs diff --git a/gcc/config/rs6000/darwin.md b/gcc/config/rs6000/darwin.md index 0fb2422eaaa..2f15c5389c6 100644 --- a/gcc/config/rs6000/darwin.md +++ b/gcc/config/rs6000/darwin.md @@ -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; })