diff options
author | Iain Sandoe <iain@codesourcery.com> | 2013-09-30 09:20:58 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2013-09-30 09:20:58 +0000 |
commit | bd9534e28685da0b871cb3176727e110ee6b5dc2 (patch) | |
tree | 90c8243a471f18b3cf82ca0c8bee914d732bfedd /gcc | |
parent | 4494fbc9d3210cdffcdfdaa5f9d27ce8cbb6049f (diff) | |
download | gcc-bd9534e28685da0b871cb3176727e110ee6b5dc2.zip gcc-bd9534e28685da0b871cb3176727e110ee6b5dc2.tar.gz gcc-bd9534e28685da0b871cb3176727e110ee6b5dc2.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/rs6000/darwin.md | 21 |
2 files changed, 30 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3bebb34..552893a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/rs6000/darwin.md b/gcc/config/rs6000/darwin.md index 0fb2422..2f15c53 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; }) |