This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/48043] [4.6 Regression] pr47201: var-tracking loc_order_check fails for type punning examples
- From: "krebbel at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Mar 2011 14:27:30 +0000
- Subject: [Bug debug/48043] [4.6 Regression] pr47201: var-tracking loc_order_check fails for type punning examples
- Auto-submitted: auto-generated
- References: <bug-48043-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48043
--- Comment #6 from Andreas Krebbel <krebbel at gcc dot gnu.org> 2011-03-10 14:27:19 UTC ---
(In reply to comment #5)
> Created attachment 23608 [details]
> gcc46-pr48043.patch
>
> Fix (tested just with cross on the pr47201.c testcase). Could you please
> bootstrap/regtestit, it might take a while for me to test it on s390x.
Done. Bootstraps fine on s390 and s390x. No regression. The testcase is fixed
with this.
But your fix only applies if the mode mismatch comes from an address. Wouldn't
it be possible to trigger this situation with a normal value not going through
delegitimize_address?