diff options
author | Andrew Pinski <pinskia@gmail.com> | 2009-04-28 07:19:00 -0700 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2009-04-28 07:19:00 -0700 |
commit | 04ef80ce924df919d1f8232dca5d0880f3e831f1 (patch) | |
tree | 8b90511bb77cfe45e8dbf462a3cdbedf32a994c1 /gcc/config | |
parent | 26946a3f560f6f9c869d958af265f75ffcc804ac (diff) | |
download | gcc-04ef80ce924df919d1f8232dca5d0880f3e831f1.zip gcc-04ef80ce924df919d1f8232dca5d0880f3e831f1.tar.gz gcc-04ef80ce924df919d1f8232dca5d0880f3e831f1.tar.bz2 |
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
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arm/arm.c | 4 | ||||
-rw-r--r-- | gcc/config/darwin.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 0b4a06c..055cb36 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -3565,7 +3565,7 @@ require_pic_register (void) /* Play games to avoid marking the function as needing pic if we 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; } else @@ -3578,7 +3578,7 @@ require_pic_register (void) /* Play games to avoid marking the function as needing pic if we 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; start_sequence (); diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index f8c982e..88d032f 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -281,7 +281,7 @@ machopic_gen_offset (rtx orig) { /* Play games to avoid marking the function as needing pic if we 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; orig = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, orig), UNSPEC_MACHOPIC_OFFSET); |