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
This commit is contained in:
Iain Sandoe 2013-09-30 09:20:58 +00:00 committed by Iain Sandoe
parent 4494fbc9d3
commit bd9534e286
2 changed files with 30 additions and 1 deletions

View 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

View 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;
})