This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[cond-optab] fix hpux bootstrap


>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]