This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/38469] Wrong code for a function with long long argument returning int.
- From: "niva at niisi dot msk dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2008 10:47:04 -0000
- Subject: [Bug target/38469] Wrong code for a function with long long argument returning int.
- References: <bug-38469-5860@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from niva at niisi dot msk dot ru 2008-12-18 10:47 -------
Subject: Re: Wrong code for a function with long long
argument returning int.
Unfortunately it doesn't.
I have added the necessary static functions (reg_truncated_to_mode,
record_truncated_value, check_conversions) which are missing in
combine.c in gcc-4.1.x and the invocation of check_conversions.
But it didn't help.
Gcc-4.1.3 generates proper code for this test if I just substitute the
whole combine.c with the one from gcc-4.2.x (with minimal changes to
conform the infrastructure of gcc-4.1.x).
÷ ðÎÄ, 15/12/2008 × 21:40 +0000, rsandifo at gcc dot gnu dot org ÐÉÛÅÔ:
>
> ------- Comment #1 from rsandifo at gcc dot gnu dot org 2008-12-15 21:40 -------
> I think this was fixed by:
>
> http://gcc.gnu.org/ml/gcc-patches/2006-01/msg01996.html
>
> Could you check whether it works for you?
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38469