[Bug target/39767] libgcc2.c:562: internal compiler error: RTL check: expected code 'reg', have 'ashiftrt' in rhs_regno, at rtl.h:1005

2009-04-14 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-04-15 06:40 --- As I said, the branch is still open for regression bugfixes, so I don't see why this couldn't be added there provided sufficient testing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39767

[Bug middle-end/39764] ICE in set_lattice_value, at tree-ssa-ccp.c:468 with -ffinite-math-only

2009-04-14 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2009-04-15 05:14 --- NaN requires -mieee for SH target and you could avoid the ICE with -mieee or -fno-finite-math-only. Although the test case doesn't make much sense for this target without these options, the ICE might show the compil

[Bug libgomp/39746] [4.5 Regression] Fail pr34513.c and pr34513.C at -O1 and above

2009-04-14 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca 2009-04-15 05:07 --- Subject: Re: [4.5 Regression] Fail pr34513.c and pr34513.C at -O1 and above Attached .i. Dave --- Comment #8 from dave at hiauly1 dot hia dot nrc dot ca 2009-04-15 05:07 --- Created an

[Bug target/39767] libgcc2.c:562: internal compiler error: RTL check: expected code 'reg', have 'ashiftrt' in rhs_regno, at rtl.h:1005

2009-04-14 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2009-04-15 04:46 --- I'd like to add Jakub to the CC list because it's a build failure on 4.4.0-rc1 anyway, though I don't think this is a blocker. sh64 targets maybe not even tertiary. The patch below will fix the problem. Jakub, plea

[Bug target/39758] FAIL: gcc.dg/initpri1.c, g++.dg/special/initpri1.C on arm target

2009-04-14 Thread jingyu at google dot com
=x86_64-linux-gnu --host=x86_64-linux-gnu --with-gmp=/usr/local/google/tmp/gcc4.4_dejagnu/install --with-mpfr=/usr/local/google/tmp/gcc4.4_dejagnu/install --enable-multilib --with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c,c++ Thread model: single gcc version 4.4.0 20090414 (prerelease

[Bug target/39758] FAIL: gcc.dg/initpri1.c, g++.dg/special/initpri1.C on arm target

2009-04-14 Thread jingyu at google dot com
--- Comment #1 from jingyu at google dot com 2009-04-15 03:44 --- Created an attachment (id=17640) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17640&action=view) assembly of gcc.dg/initpri1.c This assembly was generated by this command: $arm-eabi-gcc gcc.dg/initpri1.c -S -o init

[Bug fortran/39587] Reading integer from "" gives end-of-file instead of reading a 0

2009-04-14 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2009-04-15 02:16 --- Without trying it. Your example is not a zero length file. You have written at least a LF or CR-LF. I am not convinced yet. I just want to know the basis. Is this standard conforming or is it an extension? Is

[Bug testsuite/39774] New: New: FAIL: g++/g++.dg-struct-layout-1//t004_x.C on arm target

2009-04-14 Thread sliao at google dot com
The toolchain is built with newlib C. 2 g++ failures in dejaGNU tests: FAIL tmpdir-g++.dg-struct-layout-1/t004 cp_compat_x_tst.o compile FAIL tmpdir-g++.dg-struct-layout-1/t004 cp_compat_y_tst.o compile Compiler error: "In file included from /usr/local/google/tmp/gcc4.4_dejagnu/obj/gcc-trunk

[Bug testsuite/39769] vmx tests fail due to reliance on floating point equality

2009-04-14 Thread meissner at gcc dot gnu dot org
--- Comment #4 from meissner at gcc dot gnu dot org 2009-04-14 22:58 --- Subject: Bug 39769 Author: meissner Date: Tue Apr 14 22:57:51 2009 New Revision: 146071 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146071 Log: PR testsuite/39769 Modified: branches/ibm/gcc-4_3-bra

[Bug testsuite/39769] vmx tests fail due to reliance on floating point equality

2009-04-14 Thread meissner at gcc dot gnu dot org
--- Comment #3 from meissner at gcc dot gnu dot org 2009-04-14 22:57 --- Subject: Bug 39769 Author: meissner Date: Tue Apr 14 22:56:52 2009 New Revision: 146070 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146070 Log: PR testsuite/39769 Modified: branches/ibm/power7-meis

[Bug testsuite/39769] vmx tests fail due to reliance on floating point equality

2009-04-14 Thread meissner at gcc dot gnu dot org
--- Comment #2 from meissner at gcc dot gnu dot org 2009-04-14 22:56 --- Subject: Bug 39769 Author: meissner Date: Tue Apr 14 22:55:52 2009 New Revision: 146068 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146068 Log: PR testsuite/39769 Modified: trunk/gcc/testsuite/Chan

[Bug middle-end/38694] gcc.c-torture/compile/pr11832.c and pr33009.c -frtl-abstract-sequences ICE on arm-linux-gnueabi on 4.3.2 and trunk

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2009-04-14 22:41 --- -frtl-abstract-sequences was removed from the trunk so closing as won't fix. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/38694] gcc.c-torture/compile/pr11832.c and pr33009.c -frtl-abstract-sequences ICE on arm-linux-gnueabi on 4.3.2 and trunk

2009-04-14 Thread jingyu at google dot com
/pr11832.c: Likewise. However, these two files are still in gcc-4.4 branch (gcc version 4.4.0 20090414 (prerelease)). Could someone delete these two files from gcc-4.4 branch? Thanks! -- jingyu at google dot com changed: What|Removed |Added

[Bug c/39773] error: object with variably modified type must have no linkage

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-04-14 22:08 --- (((long)(unsigned int)&(((ABC *)0)->abcC)) is not a valid C90/C99 constant expression. Use the offsetof macro from stdlib.h. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39773

[Bug c/39773] error: object with variably modified type must have no linkage

2009-04-14 Thread marcus at jet dot franken dot de
--- Comment #1 from marcus at jet dot franken dot de 2009-04-14 22:06 --- Created an attachment (id=17639) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17639&action=view) generated.i gcc -c -O2 generated.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39773

[Bug target/34780] Bootstrapping libstdc++-v3 failed

2009-04-14 Thread dominiq at lps dot ens dot fr
--- Comment #15 from dominiq at lps dot ens dot fr 2009-04-14 22:04 --- > No, I cannot reproduce it any more. So I close this PR as fixed. Please reopen if the failure reappears. -- dominiq at lps dot ens dot fr changed: What|Removed |Added --

[Bug c++/39770] Function template can find a struct in same namespace/other namespace but not inside a function

2009-04-14 Thread mlybbert at users dot sourceforge dot net
--- Comment #3 from mlybbert at users dot sourceforge dot net 2009-04-14 21:56 --- Thank you. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39770

[Bug target/34780] Bootstrapping libstdc++-v3 failed

2009-04-14 Thread Ralf dot Wildenhues at gmx dot de
--- Comment #14 from Ralf dot Wildenhues at gmx dot de 2009-04-14 21:50 --- Subject: Re: Bootstrapping libstdc++-v3 failed * dominiq at lps dot ens dot fr wrote on Sun, Apr 12, 2009 at 10:17:24AM CEST: > Is comment #11 still true? No, I cannot reproduce it any more. -- http://gc

[Bug c/39773] New: error: object with variably modified type must have no linkage

2009-04-14 Thread marcus at jet dot franken dot de
new with GCC TRUNK: LANG=C /home/marcus/projects/gcc.trunk/BIN/bin/gcc -m32 -c -O2 ~/generated.i /home/marcus/generated.i: In function 'test_pack_ABC': /home/marcus/generated.i:12: error: object with variably modified type must have no linkage This built fine with previous gcc. --

[Bug fortran/39772] add a correctness check for the size intrinsic to -fbounds-check

2009-04-14 Thread jv244 at cam dot ac dot uk
-- jv244 at cam dot ac dot uk changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39772

[Bug fortran/39772] New: add a correctness check for the size intrinsic to -fbounds-check

2009-04-14 Thread jv244 at cam dot ac dot uk
the following program INTEGER*8 :: N INTEGER, DIMENSION(:), ALLOCATABLE :: data N=2_8**32 write(6,*) N ALLOCATE(data(N)) write(6,*) SIZE(data,1) END prints 4294967296 0 It would be useful if a check for overflow of size could be added to e.g. -fbounds-check (a rather natu

[Bug target/39678] complex type isn't passed correctly

2009-04-14 Thread hjl at gcc dot gnu dot org
--- Comment #33 from hjl at gcc dot gnu dot org 2009-04-14 20:27 --- Subject: Bug 39678 Author: hjl Date: Tue Apr 14 20:27:30 2009 New Revision: 146061 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146061 Log: gcc/ 2009-04-14 H.J. Lu Backport from mainline:

[Bug target/9831] [ARM] Peephole for multiple load/store could be more effective.

2009-04-14 Thread alexandre dot nunes at gmail dot com
--- Comment #6 from alexandre dot nunes at gmail dot com 2009-04-14 20:11 --- (In reply to comment #5) > See the attached pqp.c file. > > [cut] > > With gcc 4.4.0 branch, built on 20090413, it fails: > This seems to be caused by the register order allocation. If I replace the source

[Bug middle-end/35412] Correctness with -ftrapv depended on libcall notes

2009-04-14 Thread jv244 at cam dot ac dot uk
--- Comment #7 from jv244 at cam dot ac dot uk 2009-04-14 20:08 --- I'm reopening this report. -ftrapv is still documented, so can be expected to work by users. For the particular problem I have right now, a functional version of this option would be a great thing to have. -- jv244

[Bug target/9831] [ARM] Peephole for multiple load/store could be more effective.

2009-04-14 Thread alexandre dot nunes at gmail dot com
--- Comment #5 from alexandre dot nunes at gmail dot com 2009-04-14 20:07 --- See the attached pqp.c file. With gcc 4.3.3, on such simplistic examples, peephole ldm and stm works: sum: ldr r2, .L3 ldmia r2, {r1, r3}@ phole ldm add r3, r0, r3

[Bug target/9831] [ARM] Peephole for multiple load/store could be more effective.

2009-04-14 Thread alexandre dot nunes at gmail dot com
--- Comment #4 from alexandre dot nunes at gmail dot com 2009-04-14 20:04 --- Created an attachment (id=17638) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17638&action=view) Testcase for gcc 4.4.0 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9831

[Bug middle-end/35412] Correctness with -ftrapv depended on libcall notes

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2009-04-14 19:59 --- *** Bug 39771 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/39771] ftrapv does not work

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-04-14 19:59 --- *** This bug has been marked as a duplicate of 35412 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug middle-end/39771] New: ftrapv does not work

2009-04-14 Thread jv244 at cam dot ac dot uk
rsion 4.4.0 20090414 (prerelease) [gcc-4_4-branch revision 146034] (GCC) gcc version 4.5.0 20090414 (experimental) [trunk revision 146031] (GCC) -- Summary: ftrapv does not work Product: gcc Version: 4.4.0 Status: UNCONFIRMED Sever

[Bug c++/39770] Function template can find a struct in same namespace/other namespace but not inside a function

2009-04-14 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2009-04-14 19:26 --- Yes. -- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|

[Bug c++/39770] Function template can find a struct in same namespace/other namespace but not inside a function

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-04-14 19:24 --- Local classes cannot be template arguments. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39770

[Bug c++/39770] New: Function template can find a struct in same namespace/other namespace but not inside a function

2009-04-14 Thread mlybbert at users dot sourceforge dot net
The following code does not compile ( error: no matching function for call to `::A::print(main()::B&) ): #include namespace { struct A { template void print(C c) { c.print(); } }; } int main() { A a

[Bug c++/39763] -Wshadow reports shadowed declarations for parameters of unnamed temp objects

2009-04-14 Thread jason at gcc dot gnu dot org
--- Comment #7 from jason at gcc dot gnu dot org 2009-04-14 18:54 --- Fixed. -- jason at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug testsuite/39769] vmx tests fail due to reliance on floating point equality

2009-04-14 Thread meissner at linux dot vnet dot ibm dot com
--- Comment #1 from meissner at linux dot vnet dot ibm dot com 2009-04-14 17:48 --- Created an attachment (id=17637) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17637&action=view) Patch to fix the tests not to use floating point equality. -- http://gcc.gnu.org/bugzilla/show

[Bug testsuite/39769] New: vmx tests fail due to reliance on floating point equality

2009-04-14 Thread meissner at linux dot vnet dot ibm dot com
3 of the vmx tests (3a-04.c, 3a-04m.c, and 3a-05.c) fail on different powerpc machines because the test relies on the Vector 2 Raised to the Exponent Estimate and Vector Reciprocal Estimate instructions producing the exact same bit value for each machine. Since these instructions are estitmate fun

[Bug c++/39763] -Wshadow reports shadowed declarations for parameters of unnamed temp objects

2009-04-14 Thread jason at gcc dot gnu dot org
--- Comment #6 from jason at gcc dot gnu dot org 2009-04-14 17:14 --- Subject: Bug 39763 Author: jason Date: Tue Apr 14 17:14:04 2009 New Revision: 146054 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146054 Log: PR c++/39763 * name-lookup.c (pushdecl_maybe_frie

[Bug c++/39763] -Wshadow reports shadowed declarations for parameters of unnamed temp objects

2009-04-14 Thread jason at gcc dot gnu dot org
--- Comment #5 from jason at gcc dot gnu dot org 2009-04-14 17:04 --- Subject: Bug 39763 Author: jason Date: Tue Apr 14 17:04:04 2009 New Revision: 146053 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146053 Log: PR c++/39763 * name-lookup.c (pushdecl_maybe_frie

[Bug target/39768] internal compiler error: RTL check: expected code 'const_int', have 'reg' in gen_rotlsi3, at config/bfin/bfin.md:1616

2009-04-14 Thread segher at kernel dot crashing dot org
--- Comment #1 from segher at kernel dot crashing dot org 2009-04-14 16:15 --- Created an attachment (id=17636) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17636&action=view) testcase, not minimised -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39768

[Bug target/39768] New: internal compiler error: RTL check: expected code 'const_int', have 'reg' in gen_rotlsi3, at config/bfin/bfin.md:1616

2009-04-14 Thread segher at kernel dot crashing dot org
This is with 4.4.0-RC-20090414, with --enable-checking=yes,rtl,tree . $ bfin-uclinux-gcc -S random.i In file included from /home/segher/src/kernel/include/linux/kernel.h:16, from /home/segher/src/kernel/include/linux/sched.h:53, from /home/segher/src/kernel

[Bug bootstrap/39767] New: libgcc2.c:562: internal compiler error: RTL check: expected code 'reg', have 'ashiftrt' in rhs_regno, at rtl.h:1005

2009-04-14 Thread segher at kernel dot crashing dot org
/src/gcc-4.4.0-RC-20090414/libgcc -I/n/17/segher/src/gcc-4.4.0-RC-20090414/libgcc/. -I/n/17/segher/src/gcc-4.4.0-RC-20090414/libgcc/../gcc -I/n/17/segher/src/gcc-4.4.0-RC-20090414/libgcc/../include -DHAVE_CC_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c /n/17/segher/src/gcc

[Bug debug/39766] internal compiler error: in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:12179

2009-04-14 Thread segher at kernel dot crashing dot org
--- Comment #1 from segher at kernel dot crashing dot org 2009-04-14 15:50 --- Created an attachment (id=17635) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17635&action=view) testcase, not minimised -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39766

[Bug debug/39766] New: internal compiler error: in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:12179

2009-04-14 Thread segher at kernel dot crashing dot org
This is with 4.4.0-RC-20090414, with --enable-checking=yes,rtl,tree if that matters. $ h8300-elf-gcc -mh -mint32 -g -fomit-frame-pointer -S read_write.i /home/segher/src/kernel/fs/read_write.c: In function 'sys_pwrite64': /home/segher/src/kernel/fs/read_write.c:455: internal compiler

[Bug middle-end/39765] internal compiler error: in copyprop_hardreg_forward_1

2009-04-14 Thread segher at kernel dot crashing dot org
--- Comment #1 from segher at kernel dot crashing dot org 2009-04-14 15:30 --- Created an attachment (id=17634) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17634&action=view) testcase, not minimised -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39765

[Bug middle-end/39765] New: internal compiler error: in copyprop_hardreg_forward_1

2009-04-14 Thread segher at kernel dot crashing dot org
This is with 4.4.0-RC-20090414, with --enable-checking=yes,rtl,tree if that matters. $ cris-linux-gcc -O2 -S buffer.i /home/segher/src/kernel/fs/buffer.c: In function 'block_page_mkwrite': /home/segher/src/kernel/fs/buffer.c:2409: error: insn does not satisfy its constraints: (insn 14

[Bug fortran/23169] INTENT information not used in the middle-end for optimizations

2009-04-14 Thread dfranke at gcc dot gnu dot org
--- Comment #11 from dfranke at gcc dot gnu dot org 2009-04-14 15:20 --- The original testcase in #0 appears to be fixed if compiled with -fwhole-file. Andrew's comment #4 appears to be still an issue?! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23169

[Bug fortran/24404] Poor Error Description, bad error order

2009-04-14 Thread dfranke at gcc dot gnu dot org
--- Comment #5 from dfranke at gcc dot gnu dot org 2009-04-14 15:18 --- Closing as WONTFIX. Workaround: use -fmax-errors=1 to get only one message at a time. See http://gcc.gnu.org/ml/fortran/2009-04/msg00149.html for discussion. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24404

[Bug fortran/38863] WHERE with multiple elemental defined assignments gives wrong answer

2009-04-14 Thread domob at gcc dot gnu dot org
--- Comment #15 from domob at gcc dot gnu dot org 2009-04-14 15:16 --- (In reply to comment #14) > In the case of the first, the dependency was missed. In this second, it is > detected OK but the components of the lhs that are not assigned to by the > module procedure are left indetermi

[Bug fortran/21203] gfortran doesn't work on targets/variants without two floating point types

2009-04-14 Thread dfranke at gcc dot gnu dot org
--- Comment #31 from dfranke at gcc dot gnu dot org 2009-04-14 15:16 --- Closing as WONTFIX. See http://gcc.gnu.org/ml/fortran/2009-04/msg00149.html for discussion. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug target/39601] xstormy16 target broken, cannot build newlib

2009-04-14 Thread nickc at redhat dot com
--- Comment #2 from nickc at redhat dot com 2009-04-14 15:15 --- Hi Paolo I am going to apply the uploaded patch to fix this problem. Cheers Nick -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39601

[Bug target/39601] xstormy16 target broken, cannot build newlib

2009-04-14 Thread nickc at redhat dot com
--- Comment #1 from nickc at redhat dot com 2009-04-14 15:14 --- Created an attachment (id=17633) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17633&action=view) Do not assume that comparisons with small integers will always produce a short branch -- http://gcc.gnu.org/bugzil

[Bug fortran/20896] ambiguous interface not detected

2009-04-14 Thread dfranke at gcc dot gnu dot org
--- Comment #14 from dfranke at gcc dot gnu dot org 2009-04-14 15:04 --- Reopen, closed wrong PR :( -- dfranke at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/39763] -Wshadow reports shadowed declarations for parameters of unnamed temp objects

2009-04-14 Thread jason at gcc dot gnu dot org
--- Comment #4 from jason at gcc dot gnu dot org 2009-04-14 15:04 --- Yeah, it would help to use -Wshadow... -- jason at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/39763] -Wshadow reports shadowed declarations for parameters of unnamed temp objects

2009-04-14 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-04-14 14:57 --- I certainly can, with e.g. fresly updated: GNU C++ (GCC) version 4.5.0 20090414 (experimental) (x86_64-unknown-linux-gnu) LC_ALL=C ./cc1plus -O2 -Wshadow z.C -quiet z.C: In function 'int foo()': z.C:1

[Bug middle-end/39764] New: ICE in set_lattice_value, at tree-ssa-ccp.c:468

2009-04-14 Thread rmansfield at qnx dot com
$ cat ice.ii class A; class B { }; extern const double NaN; B foo(A* exec, double d); inline B baz(A* a) { return foo(a, NaN); } B bar(A* a) { return baz(a); } extern const double NaN = (__builtin_nanf("")); $ ./xgcc -B. -m4 -ml -fvisibility=hidden -O2 -finline-functions ice.i

[Bug c/39748] [4.5 regression] warning "outside bounds of constant string" not suppressed in dead code

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-04-14 14:50 --- *** This bug has been marked as a duplicate of 35652 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/35652] [4.3 Regression] offset warning should be given in the front-end

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #28 from pinskia at gcc dot gnu dot org 2009-04-14 14:50 --- *** Bug 39748 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fortran/20896] ambiguous interface not detected

2009-04-14 Thread dfranke at gcc dot gnu dot org
--- Comment #13 from dfranke at gcc dot gnu dot org 2009-04-14 14:49 --- Closing as WONTFIX. See http://gcc.gnu.org/ml/fortran/2009-04/msg00149.html for discussion. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/39748] [4.5 regression] warning "outside bounds of constant string" not suppressed in dead code

2009-04-14 Thread falk at debian dot org
--- Comment #2 from falk at debian dot org 2009-04-14 14:47 --- The problem comes from some convoluted code that was apparently substituted for strlen to special-case constant arguments. It boils down to: int f(void) { if (0) return ((const char *) "")[2]; return 0; } (without

[Bug c++/38228] [4.3/4.4/4.5 regression] ICE with invalid use of bound member function

2009-04-14 Thread dodji at gcc dot gnu dot org
--- Comment #8 from dodji at gcc dot gnu dot org 2009-04-14 14:34 --- Created an attachment (id=17632) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17632&action=view) Fix candidate I am fully bootstrapping/regtesting this candidate patch at the moment ... -- http://gcc.gnu.o

[Bug c++/39763] -Wshadow reports shadowed declarations for parameters of unnamed temp objects

2009-04-14 Thread jason at gcc dot gnu dot org
--- Comment #2 from jason at gcc dot gnu dot org 2009-04-14 14:25 --- I can't reproduce this with 4.4 or 4.5. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39763

[Bug c++/38228] [4.3/4.4/4.5 regression] ICE with invalid use of bound member function

2009-04-14 Thread dodji at gcc dot gnu dot org
-- dodji at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |dodji at gcc dot gnu dot org |dot org

[Bug c++/39754] [4.5 Regression] ICE: tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:9248

2009-04-14 Thread jason at redhat dot com
--- Comment #4 from jason at redhat dot com 2009-04-14 14:07 --- Subject: Re: [4.5 Regression] ICE: tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:9248 I wonder if it only works on 4.4 because tree checking is disabled on release branches. Jason -- htt

[Bug middle-end/39744] component references with VIEW_CONVERT_EXPR should be canonicalized

2009-04-14 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-04-14 14:02 --- Testcase for the second case: struct Y { int z; }; struct X { struct Y y; }; int foo() { int z = 1; struct X *x = (struct X *)&z; return x->y.z; } a testcase for the first case is harder. -- http://gcc.g

[Bug rtl-optimization/39543] [4.4/4.5 Regression] Reload failure on mplayer from SVN

2009-04-14 Thread bonzini at gnu dot org
--- Comment #13 from bonzini at gnu dot org 2009-04-14 14:02 --- Subject: Re: [4.4/4.5 Regression] Reload failure on mplayer from SVN > That's one of the reasons why TER doesn't forward all expressions even if > they're used only once. Yes -- indeed in this case we'd need fo

[Bug rtl-optimization/39543] [4.4/4.5 Regression] Reload failure on mplayer from SVN

2009-04-14 Thread matz at gcc dot gnu dot org
--- Comment #12 from matz at gcc dot gnu dot org 2009-04-14 13:58 --- That's only possible sometimes and hence can't be relied upon. The RHS expression might not be available at the point of the use anymore (some operands might have been clobbered meanwhile, remember we aren't in SSA an

[Bug rtl-optimization/39543] [4.4/4.5 Regression] Reload failure on mplayer from SVN

2009-04-14 Thread bonzini at gnu dot org
--- Comment #11 from bonzini at gnu dot org 2009-04-14 13:52 --- > I don't see the connection to SSA expansion Well, now that you posted the patch my suppositions were partly true. The important thing is that now you have a way to get an SSA_NAME's RHS into expansion. So, if we can do

[Bug tree-optimization/39761] data-flow analysis does not discover constant real/imaginary parts

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2009-04-14 13:52 --- I Think the PRE/FRE part of this bug is really PR 38884 (for the complex) and PR 38885 (for the vector). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39761

[Bug tree-optimization/39761] data-flow analysis does not discover constant real/imaginary parts

2009-04-14 Thread bonzini at gnu dot org
--- Comment #11 from bonzini at gnu dot org 2009-04-14 13:41 --- Yes, but programs cannot use it so it does not really count. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39761

[Bug tree-optimization/39761] data-flow analysis does not discover constant real/imaginary parts

2009-04-14 Thread rguenther at suse dot de
--- Comment #10 from rguenther at suse dot de 2009-04-14 13:08 --- Subject: Re: data-flow analysis does not discover constant real/imaginary parts On Tue, 14 Apr 2009, bonzini at gnu dot org wrote: > --- Comment #8 from bonzini at gnu dot org 2009-04-14 13:00 --- > It seems

[Bug c++/39763] -Wshadow reports shadowed declarations for parameters of unnamed temp objects

2009-04-14 Thread caolanm at redhat dot com
--- Comment #1 from caolanm at redhat dot com 2009-04-14 13:06 --- Created an attachment (id=17631) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17631&action=view) trivial demo -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39763

[Bug c++/39763] New: -Wshadow reports shadowed declarations for parameters of unnamed temp objects

2009-04-14 Thread caolanm at redhat dot com
This is very similar to Bug 39526 except that the test-case there now (Fedora rawhide: gcc-4.4.0-0.32.x86_64) passes, while this similar one reports... g++ -c -Wshadow demo.cxx demo.cxx: In function ‘int foo()’: demo.cxx:11: warning: declaration of ‘infoo’ shadows a previous local demo.cxx:10: war

[Bug tree-optimization/39761] data-flow analysis does not discover constant real/imaginary parts

2009-04-14 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2009-04-14 13:04 --- Created an attachment (id=17630) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17630&action=view) hack Hack in-progress that even works. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39761

[Bug tree-optimization/39761] data-flow analysis does not discover constant real/imaginary parts

2009-04-14 Thread bonzini at gnu dot org
--- Comment #8 from bonzini at gnu dot org 2009-04-14 13:00 --- It seems easier to lower complex phis. Though it doesn't work with vectors, it shouldn't matter since we do not have vector extraction yet. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39761

[Bug tree-optimization/39761] data-flow analysis does not discover constant real/imaginary parts

2009-04-14 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2009-04-14 12:40 --- Ok, doesn't work. We get lattice transitions CONSTANT -> CONSTANT with different values which is unexpected (or even may break sth). If you remove that sanity check it substitutes the broken constant (huh, with zer

[Bug tree-optimization/39761] data-flow analysis does not discover constant real/imaginary parts

2009-04-14 Thread rguenther at suse dot de
--- Comment #6 from rguenther at suse dot de 2009-04-14 12:24 --- Subject: Re: data-flow analysis does not discover constant real/imaginary parts On Tue, 14 Apr 2009, bonzini at gnu dot org wrote: > --- Comment #5 from bonzini at gnu dot org 2009-04-14 12:16 --- > Right, sor

[Bug fortran/24878] subroutine getting called illegally as a function

2009-04-14 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2009-04-14 12:20 --- At revision 145996, this error is not detected with the -fwhole-file option: [karma] f90/bug% gfc -fwhole-file pr24878_db.f90 [karma] f90/bug% a.out Did NOT catch this error -- http://gcc.gnu.org/bugzilla/show

[Bug tree-optimization/39761] data-flow analysis does not discover constant real/imaginary parts

2009-04-14 Thread bonzini at gnu dot org
--- Comment #5 from bonzini at gnu dot org 2009-04-14 12:16 --- Right, sorry -- it is only at -Os that we don't get it. VRP and DOM say that the jump threading is not performed because the probability is too small, and PRE does not run at -Os at all. -- bonzini at gnu dot org change

[Bug tree-optimization/39761] PRE does not discover constant real/imaginary parts

2009-04-14 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-04-14 12:00 --- Huh? I see in .optimized foo (int i) { : if (i != 0) goto ; else goto ; : Invalid sum of incoming frequencies 5000, should be 7231 bar (); [tail call] : Invalid sum of incoming frequencies 12231, sh

[Bug tree-optimization/39761] PRE does not discover constant real/imaginary parts

2009-04-14 Thread bonzini at gnu dot org
--- Comment #3 from bonzini at gnu dot org 2009-04-14 11:56 --- No, it survives to RTL :-( Adjusting subject. -- bonzini at gnu dot org changed: What|Removed |Added

[Bug target/39740] unrecognizable insn on alpha using -O3 and -std=c99

2009-04-14 Thread ubizjak at gmail dot com
--- Comment #12 from ubizjak at gmail dot com 2009-04-14 10:37 --- Fixed also for 4.3 and 4.4. -- ubizjak at gmail dot com changed: What|Removed |Added Status

[Bug target/39740] unrecognizable insn on alpha using -O3 and -std=c99

2009-04-14 Thread uros at gcc dot gnu dot org
--- Comment #11 from uros at gcc dot gnu dot org 2009-04-14 10:31 --- Subject: Bug 39740 Author: uros Date: Tue Apr 14 10:31:29 2009 New Revision: 146030 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146030 Log: Backport from mainline: 2009-04-12 Uros Bizjak

[Bug target/39740] unrecognizable insn on alpha using -O3 and -std=c99

2009-04-14 Thread uros at gcc dot gnu dot org
--- Comment #10 from uros at gcc dot gnu dot org 2009-04-14 10:21 --- Subject: Bug 39740 Author: uros Date: Tue Apr 14 10:21:41 2009 New Revision: 146028 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146028 Log: Backport from mainline: 2009-04-12 Uros Bizjak

[Bug ada/39756] FAIL: c9a011b

2009-04-14 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-04-14 10:14 --- I also see this repeatedly. This test should be XFAILed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39756

[Bug c++/39754] [4.5 Regression] ICE: tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:9248

2009-04-14 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-04-14 10:14 --- I also see this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39754

[Bug c/39755] inline memcpy() incorrectly optimized on MIPS target

2009-04-14 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-04-14 10:13 --- GCC 3.2.1 is no longer maintained, please reproduce with at least GCC 4.3.3. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/39761] ccp does not fully propagate constant real/imaginary parts

2009-04-14 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-04-14 10:06 --- It is done by DOM, VRP and/or phicprop. CCP cannot do it because the PHI node is varying. Complex lowering does not split PHI nodes into a real/imag part either. For the same reason as CCP FRE won't do it either. PR

[Bug rtl-optimization/39762] [4.4/4.5 Regression] IRA ICE with -msoft-float

2009-04-14 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39762

[Bug tree-optimization/39675] [4.4 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-transform.c:1999

2009-04-14 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39675

[Bug tree-optimization/39612] [4.4/4.5 Regression] Incorrect warning issued Re variable *is* used uninitialized in this function

2009-04-14 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39612

[Bug tree-optimization/39604] [4.3/4.4/4.5 Regression] tree-ssa-sink breaks stack layout

2009-04-14 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39604

[Bug tree-optimization/38785] [4.3/4.4/4.5 Regression] huge performance regression on EEMBC bitmnp01

2009-04-14 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38785

[Bug c/39759] bug in optimalization O2

2009-04-14 Thread schwab at linux-m68k dot org
--- Comment #1 from schwab at linux-m68k dot org 2009-04-14 09:33 --- Signed integer overflow is undefined in C. Use -fwrapv if you want wrapping semantics. -- schwab at linux-m68k dot org changed: What|Removed |Added -

[Bug rtl-optimization/39762] [4.4/4.5 Regression] IRA ICE with -msoft-float

2009-04-14 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39762

[Bug rtl-optimization/39762] New: [4.4/4.5 Regression] IRA ICE with -msoft-float

2009-04-14 Thread jakub at gcc dot gnu dot org
/* { dg-do compile } */ /* { dg-options "-Os" } */ /* { dg-options "-Os -msoft-float" { target { { i?86-* x86_64-* } && ilp32 } } } */ extern void bar (void); void foo (unsigned int x, unsigned int y, unsigned int z) { unsigned int a, b, d, e; unsigned int f = (8 << 12) + 0.000122 * 4096; b

[Bug tree-optimization/39761] ccp does not fully propagate constant real/imaginary parts

2009-04-14 Thread bonzini at gnu dot org
--- Comment #1 from bonzini at gnu dot org 2009-04-14 08:57 --- This is currently caught by RTL jump bypassing, but not on all machines. -- bonzini at gnu dot org changed: What|Removed |Added

[Bug tree-optimization/39761] New: ccp does not fully propagate constant real/imaginary parts

2009-04-14 Thread bonzini at gnu dot org
>From this testcase: void bar(); void foo(int i) { __complex__ int k = 0; if (i) k = 1; if (k) bar(); } (cfr. gcc.c-torture/compile/pr35431.c) we get after cddce1: # k_1 = PHI <__complex__ (0, 0)(2), __complex__ (1, 0)(3)> D.1198_6 = REALPART_EXPR ; if (D.1198_6 != 0) got

[Bug target/39760] New: register allocation costs are not well described on AVR

2009-04-14 Thread bonzini at gnu dot org
The same alternative can produce very different instruction sequences. For example: if (compare_sign_p (insn)) { if (l) *l = 1; return AS1 (tst,%B0); } if (reg_unused_after (insn, op) && compare_eq_p (insn)) { /* Faster than sbiw if we can clobber the opera

[Bug target/39722] [cond-optab] worse code with bitfields on v850, mn10300, avr

2009-04-14 Thread bonzini at gnu dot org
--- Comment #1 from bonzini at gnu dot org 2009-04-14 08:29 --- Seems to be caused by a failure to simplify (if_then_else (ne (zero_extract:SI (const_int 0 [0x0]) (const_int 1 [0x1]) (const_int 0 [0x0])) (const_int 0 [0x0])) (label

[Bug fortran/39587] Reading integer from "" gives end-of-file instead of reading a 0

2009-04-14 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-04-14 08:09 --- > I think gfortran has this right. This is an attempt to read from an internal > unit of length zero. Try the same operation from a zero length file. I'm not sure whether gfortran is right, but my program from comme

[Bug c/39759] New: bug in optimalization O2

2009-04-14 Thread vcelakv at seznam dot cz
gcc --version gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291] code a.c: #include main() { int i; for (i = 1; i > 0; i *= 2) printf("%d\n",i); } 1. build: gcc -O a.c -o a Run: ./a 1 2 4 ... 4536870912 1073741824 2. build: gcc -O2 a.c -o a Run: ./a 1 2 4 ... 4536870912 1073741824 0 0 0

  1   2   >