This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[cond-optab] fix hpux bootstrap
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: dave dot anglin at nrc dot ca, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 22 Apr 2009 16:48:01 +0200
- Subject: [cond-optab] fix hpux bootstrap
- References: <20090422131722.BCB2D431A@hiauly1.hia.nrc.ca> <49EF2B61.8070900@gnu.org>
>> It failed in stage1:
>
> Got it, I think.
The testcase is simply
void *f() { return __builtin_return_address(0); }
but it does not show up in hppa-linux testing (only hppa-hpux).
Committed to the branch.
2009-04-22 Paolo Bonzini <bonzini@gnu.org>
* config/pa/pa.c (return_addr_rtx): Go through expand.
Index: gcc/config/pa/pa.c
===================================================================
--- gcc/config/pa/pa.c (branch cond-optab)
+++ gcc/config/pa/pa.c (working copy)
@@ -4428,8 +4428,7 @@ return_addr_rtx (int count, rtx frameadd
{
rtx op0 = gen_rtx_MEM (SImode, plus_constant (ins, i * 4));
rtx op1 = GEN_INT (insns[i]);
- rtx test = gen_rtx_NE (VOIDmode, op0, op1);
- emit_jump_insn (gen_cbranchsi4 (test, op0, op1, label));
+ emit_cmp_and_jump_insns (op0, op1, NE, NULL, SImode, 0, label);
}
/* Here we know that our return address points to an export
Paolo