mirror of git://gcc.gnu.org/git/gcc.git
re PR bootstrap/39929 (Bootstrapping fails at stage 1 on powerpc-ibm-aix)
2009-04-28 Andrew Pinski <pinskia@gmail.com> PR target/39929 * config/darwin.c (machopic_gen_offset): Check currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE. * config/arm/arm.c (require_pic_register): Likewise. From-SVN: r146894
This commit is contained in:
parent
26946a3f56
commit
04ef80ce92
|
@ -1,3 +1,10 @@
|
||||||
|
2009-04-28 Andrew Pinski <pinskia@gmail.com>
|
||||||
|
|
||||||
|
PR target/39929
|
||||||
|
* config/darwin.c (machopic_gen_offset): Check
|
||||||
|
currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
|
||||||
|
* config/arm/arm.c (require_pic_register): Likewise.
|
||||||
|
|
||||||
2009-04-28 Paolo Bonzini <bonzini@gnu.org>
|
2009-04-28 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
* config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
|
* config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
|
||||||
|
|
|
@ -3565,7 +3565,7 @@ require_pic_register (void)
|
||||||
/* Play games to avoid marking the function as needing pic
|
/* Play games to avoid marking the function as needing pic
|
||||||
if we are being called as part of the cost-estimation
|
if we are being called as part of the cost-estimation
|
||||||
process. */
|
process. */
|
||||||
if (current_ir_type () != IR_GIMPLE)
|
if (current_ir_type () != IR_GIMPLE || currently_expanding_to_rtl)
|
||||||
crtl->uses_pic_offset_table = 1;
|
crtl->uses_pic_offset_table = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -3578,7 +3578,7 @@ require_pic_register (void)
|
||||||
/* Play games to avoid marking the function as needing pic
|
/* Play games to avoid marking the function as needing pic
|
||||||
if we are being called as part of the cost-estimation
|
if we are being called as part of the cost-estimation
|
||||||
process. */
|
process. */
|
||||||
if (current_ir_type () != IR_GIMPLE)
|
if (current_ir_type () != IR_GIMPLE || currently_expanding_to_rtl)
|
||||||
{
|
{
|
||||||
crtl->uses_pic_offset_table = 1;
|
crtl->uses_pic_offset_table = 1;
|
||||||
start_sequence ();
|
start_sequence ();
|
||||||
|
|
|
@ -281,7 +281,7 @@ machopic_gen_offset (rtx orig)
|
||||||
{
|
{
|
||||||
/* Play games to avoid marking the function as needing pic if we
|
/* Play games to avoid marking the function as needing pic if we
|
||||||
are being called as part of the cost-estimation process. */
|
are being called as part of the cost-estimation process. */
|
||||||
if (current_ir_type () != IR_GIMPLE)
|
if (current_ir_type () != IR_GIMPLE || currently_expanding_to_rtl)
|
||||||
crtl->uses_pic_offset_table = 1;
|
crtl->uses_pic_offset_table = 1;
|
||||||
orig = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, orig),
|
orig = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, orig),
|
||||||
UNSPEC_MACHOPIC_OFFSET);
|
UNSPEC_MACHOPIC_OFFSET);
|
||||||
|
|
Loading…
Reference in New Issue