This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/32636] [4.3 Regression] 25_algorithms/search_n/iterator.cc: miscompiled on hppa2.0w-hp-hpux11.11
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Dec 2007 21:44:17 -0000
- Subject: [Bug rtl-optimization/32636] [4.3 Regression] 25_algorithms/search_n/iterator.cc: miscompiled on hppa2.0w-hp-hpux11.11
- References: <bug-32636-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #36 from dave at hiauly1 dot hia dot nrc dot ca 2007-12-11 21:44 -------
Subject: Re: [4.3 Regression] 25_algorithms/search_n/iterator.cc: miscompiled
on hppa2.0w-hp-hpux11.11
> 2) the instruction to load lo_sum of the address has not been dropped, I posted
> only part of the function's assembly. The bug is that dbr decides to put
> ldil LR'L$C0002,%r28 instruction from branch target (L$0026) into a delay
> slot
> even when %r28 is in fact live (passed from caller, unmodified to foo1)
>
> I guess we need to ensure somehow that df knows struct_value_rtx regs are live
> at the beginning of function for functions that return struct.
I guess dbr must find a REG_DEAD note for %r28.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32636