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:
parent
4494fbc9d3
commit
bd9534e286
|
@ -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>
|
2013-09-30 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
|
* config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
|
||||||
|
|
|
@ -261,7 +261,11 @@ You should have received a copy of the GNU General Public License
|
||||||
(pc)] UNSPEC_LD_MPIC))]
|
(pc)] UNSPEC_LD_MPIC))]
|
||||||
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic"
|
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic"
|
||||||
{
|
{
|
||||||
|
#if TARGET_MACHO
|
||||||
machopic_should_output_picbase_label (); /* Update for new func. */
|
machopic_should_output_picbase_label (); /* Update for new func. */
|
||||||
|
#else
|
||||||
|
gcc_unreachable ();
|
||||||
|
#endif
|
||||||
return "bcl 20,31,%0\\n%0:";
|
return "bcl 20,31,%0\\n%0:";
|
||||||
}
|
}
|
||||||
[(set_attr "type" "branch")
|
[(set_attr "type" "branch")
|
||||||
|
@ -273,7 +277,11 @@ You should have received a copy of the GNU General Public License
|
||||||
(pc)] UNSPEC_LD_MPIC))]
|
(pc)] UNSPEC_LD_MPIC))]
|
||||||
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic && TARGET_64BIT"
|
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic && TARGET_64BIT"
|
||||||
{
|
{
|
||||||
|
#if TARGET_MACHO
|
||||||
machopic_should_output_picbase_label (); /* Update for new func. */
|
machopic_should_output_picbase_label (); /* Update for new func. */
|
||||||
|
#else
|
||||||
|
gcc_unreachable ();
|
||||||
|
#endif
|
||||||
return "bcl 20,31,%0\\n%0:";
|
return "bcl 20,31,%0\\n%0:";
|
||||||
}
|
}
|
||||||
[(set_attr "type" "branch")
|
[(set_attr "type" "branch")
|
||||||
|
@ -397,6 +405,7 @@ You should have received a copy of the GNU General Public License
|
||||||
(pc)] UNSPEC_RELD_MPIC))]
|
(pc)] UNSPEC_RELD_MPIC))]
|
||||||
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic"
|
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic"
|
||||||
{
|
{
|
||||||
|
#if TARGET_MACHO
|
||||||
if (machopic_should_output_picbase_label ())
|
if (machopic_should_output_picbase_label ())
|
||||||
{
|
{
|
||||||
static char tmp[64];
|
static char tmp[64];
|
||||||
|
@ -405,6 +414,9 @@ You should have received a copy of the GNU General Public License
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#else
|
||||||
|
gcc_unreachable ();
|
||||||
|
#endif
|
||||||
return "bcl 20,31,%0\\n%0:";
|
return "bcl 20,31,%0\\n%0:";
|
||||||
}
|
}
|
||||||
[(set_attr "type" "branch")
|
[(set_attr "type" "branch")
|
||||||
|
@ -416,6 +428,7 @@ You should have received a copy of the GNU General Public License
|
||||||
(pc)] UNSPEC_RELD_MPIC))]
|
(pc)] UNSPEC_RELD_MPIC))]
|
||||||
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic && TARGET_64BIT"
|
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic && TARGET_64BIT"
|
||||||
{
|
{
|
||||||
|
#if TARGET_MACHO
|
||||||
if (machopic_should_output_picbase_label ())
|
if (machopic_should_output_picbase_label ())
|
||||||
{
|
{
|
||||||
static char tmp[64];
|
static char tmp[64];
|
||||||
|
@ -424,6 +437,9 @@ You should have received a copy of the GNU General Public License
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#else
|
||||||
|
gcc_unreachable ();
|
||||||
|
#endif
|
||||||
return "bcl 20,31,%0\\n%0:";
|
return "bcl 20,31,%0\\n%0:";
|
||||||
}
|
}
|
||||||
[(set_attr "type" "branch")
|
[(set_attr "type" "branch")
|
||||||
|
@ -438,6 +454,7 @@ You should have received a copy of the GNU General Public License
|
||||||
"&& reload_completed"
|
"&& reload_completed"
|
||||||
[(const_int 0)]
|
[(const_int 0)]
|
||||||
{
|
{
|
||||||
|
#if TARGET_MACHO
|
||||||
if (crtl->uses_pic_offset_table)
|
if (crtl->uses_pic_offset_table)
|
||||||
{
|
{
|
||||||
static unsigned n = 0;
|
static unsigned n = 0;
|
||||||
|
@ -456,6 +473,8 @@ You should have received a copy of the GNU General Public License
|
||||||
else
|
else
|
||||||
/* Not using PIC reg, no reload needed. */
|
/* Not using PIC reg, no reload needed. */
|
||||||
emit_note (NOTE_INSN_DELETED);
|
emit_note (NOTE_INSN_DELETED);
|
||||||
|
#else
|
||||||
|
gcc_unreachable ();
|
||||||
|
#endif
|
||||||
DONE;
|
DONE;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue