https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31679
--- Comment #8 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #7)
> HWI is always 64bit these days so I doubt this can be reproduced.
Plus The tree level uses wide_int so maybe this was fixed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31679
--- Comment #7 from Andrew Pinski ---
HWI is always 64bit these days so I doubt this can be reproduced.
--- Comment #6 from tromey at gcc dot gnu dot org 2007-06-02 21:52 ---
I see this bug when I compile the test case without -O.
I tried svn trunk and also 4.1.1 20070105 (Red Hat 4.1.1-51)
--
tromey at gcc dot gnu dot org changed:
What|Removed
--- Comment #5 from ian dot rogers at manchester dot ac dot uk 2007-05-16
14:01 ---
For the following code given in [1] GCC produces identical multiplication by
constant code [2]. I think as 0x0 is one of the parameters in this bug
the fact we generate identical multiplication
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-04-24 12:39 ---
test.c: In function 'main':
test.c:5: warning: incompatible implicit declaration of built-in function
'printf'
include stdio.h
--
rguenth at gcc dot gnu dot org changed:
What|Removed
--- Comment #2 from vlasenko at bifit dot com dot ua 2007-04-24 13:16
---
Yes, it compiles with warning... so what? The bug is not in the warning. If you
insert #include stdio.h in the top of source the bug reproduces and the
problem will not leave.
ÎÊ, if you want to play in
--- Comment #3 from vlasenko at bifit dot com dot ua 2007-04-24 14:21
---
The bug also reproduces with GCC 4.1.2 compiled under FreeBSD:
gcc -save-temps -v test.c -o test
Using built-in specs.
Target: i386-unknown-freebsd6.0
Configured with: ../gcc-4.1.2/configure --enable-languages=c
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-04-24 15:17 ---
I can reproduce this on i?86 with 32bit HWI (even with optimization if you
trick around CCP):
int one(void) { return 1; }
int printf (const char *, ...);
int main()
{
long long qhat = one();
long long res =