[Bug middle-end/44554] Stack space after sigsetjmp is reused

2010-09-09 Thread christian dot eggers at kathrein dot de
--- Comment #10 from christian dot eggers at kathrein dot de 2010-09-09 06:17 --- (In reply to comment #9) I've submitted a patch solving PR40386. So now we can solve this problem by preventing slot sharing when setjmp is used. I'll send a patch soon. Could you please send me

[Bug c++/45609] New: 'is used uninitialized' becomes 'may be used uninitialized' on unrelated code changes (namespace addition)

2010-09-09 Thread gcc at abeckmann dot de
(I looked for duplicate -Wuninitialized bugs but didn't see anything similar) In the attached minimized testcase I get a clear 'is used uninitialized' warning downgraded to a 'may be used uninitialized' warning on unrelated code changes. The program compiles correctly with the following flags:

[Bug c++/8966] [Alpha OSF5.1] Lost exceptions across library boundaries

2010-09-09 Thread mt at debian dot org
--- Comment #10 from mt at debian dot org 2010-09-09 06:23 --- I have tried to reproduce the problem with g++ 4.5 and couldn't make it fail anymore. The problem, however, is that I couldn't make it fail with g++ 4.4 either. Whatever the essential change might have been, the PPL instance

[Bug c++/45609] 'is used uninitialized' becomes 'may be used uninitialized' on unrelated code changes (namespace addition)

2010-09-09 Thread gcc at abeckmann dot de
--- Comment #1 from gcc at abeckmann dot de 2010-09-09 06:24 --- Created an attachment (id=21746) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21746action=view) minimized testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45609

[Bug c++/45588] unused-but-set-variable false trigger building gold

2010-09-09 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-09-09 06:51 --- Subject: Bug 45588 Author: jakub Date: Thu Sep 9 06:50:56 2010 New Revision: 164051 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164051 Log: PR c++/45588 * pt.c (tsubst) case INTEGER_TYPE:

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread jobnoorman at gmail dot com
--- Comment #2 from jobnoorman at gmail dot com 2010-09-09 07:11 --- (In reply to comment #1) Note, if you really need the name __cxa_guard_acquire to trigger the bug, which is in the implementor namespace, due to the double underscore in front, this is a low priority ICE on

[Bug c++/45588] unused-but-set-variable false trigger building gold

2010-09-09 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2010-09-09 07:16 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c++/45601] explicit template instantiation problem

2010-09-09 Thread stephane at magnenat dot net
--- Comment #5 from stephane at magnenat dot net 2010-09-09 07:19 --- Thank you very much for these explanations, thanks to your pointer I managed to make a working version, which I will attach to this bug as reference. As a side-note, it is not easy to access C++ standard because the

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-09-09 07:20 --- I first triggered this bug in a freestanding environment You need to include -fno-threadsafe-statics to disable the use of __cxa_guard_acquire. This functions is part of the normal C++ ABI we follow (the IA64 C++

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread jobnoorman at gmail dot com
--- Comment #4 from jobnoorman at gmail dot com 2010-09-09 07:25 --- (In reply to comment #3) You need to include -fno-threadsafe-statics to disable the use of __cxa_guard_acquire. This functions is part of the normal C++ ABI we follow (the IA64 C++ ABI and it is included in the ARM

[Bug c++/45601] explicit template instantiation problem

2010-09-09 Thread stephane at magnenat dot net
--- Comment #6 from stephane at magnenat dot net 2010-09-09 07:20 --- Created an attachment (id=21747) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21747action=view) Working code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45601

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2010-09-09 07:27 --- I can use that as a quick workaround but I'll eventually need __cxa_guard_acquire. Then you should look into the ABI to see how it is defined. I think this ICE only happens when it is declared incorrectly. --

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread jobnoorman at gmail dot com
--- Comment #6 from jobnoorman at gmail dot com 2010-09-09 07:35 --- (In reply to comment #5) Then you should look into the ABI to see how it is defined. I think this ICE only happens when it is declared incorrectly. According to the ABI, it should be declared as extern C int

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2010-09-09 07:45 --- That's because the compiler's expectation is that if you define __cxa_guard_acquire, you also define __cxa_guard_release and __cxa_guard_abort. And, they should be declared throw() as well. --

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread jobnoorman at gmail dot com
--- Comment #8 from jobnoorman at gmail dot com 2010-09-09 08:00 --- (In reply to comment #7) That's because the compiler's expectation is that if you define __cxa_guard_acquire, you also define __cxa_guard_release and __cxa_guard_abort. And, they should be declared throw() as

[Bug c++/45609] [Regression 4.3/4.4/4.5/4.6] 'is used uninitialized' becomes 'may be used uninitialized' on unrelated code changes (namespace addition)

2010-09-09 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2010-09-09 08:00 --- In any case, this is a clear regression of the pretty printer. -- manu at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/41087] [4.5/4.6 Regression]: cris-elf gfortran.dg/zero_sized_3.f90 -O3 -funroll-loops execution

2010-09-09 Thread hp at gcc dot gnu dot org
--- Comment #9 from hp at gcc dot gnu dot org 2010-09-09 08:11 --- Created an attachment (id=21748) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21748action=view) patch The simplest solution is to correct noce_get_condition to not follow its documentation and not allow conditions

[Bug c++/45605] Missed devirtualization

2010-09-09 Thread rguenther at suse dot de
--- Comment #2 from rguenther at suse dot de 2010-09-09 08:43 --- Subject: Re: New: Missed devirtualization On Thu, 9 Sep 2010, hubicka at gcc dot gnu dot org wrote: The following testcase taken from testsuite (and many others): // PR 14535 // { dg-do run } // { dg-options -O

[Bug fortran/44334] rnflow.f90 ~27% slower with -fwhole-program -flto after revision 159852

2010-09-09 Thread burnus at gcc dot gnu dot org
--- Comment #11 from burnus at gcc dot gnu dot org 2010-09-09 09:00 --- [Move comment from IRC #gcc to bugzilla] (In reply to comment #9) For what it is worth, on AMD Athlon 64 X2 4800+ / x86-64-linux, [...] That's a +16% increase in run-time with -fwhole-program. (In reply to

[Bug c++/45601] explicit template instantiation problem

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2010-09-09 09:16 --- The current ISO document, C++98 or C++03 which contains some rather small amendments: if C++0x were different it would show only when -std=c++0x is passed. In any case, it's unfortunate but we cannot do much

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Severity|blocker |normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45603

[Bug libstdc++/45574] cin.getline() is extremely slow

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #15 from paolo dot carlini at oracle dot com 2010-09-09 09:25 --- If you write a patch it would be of course looked at. But *please* try first something that doesn't break the ABI, because we have *no* idea when you changes would be applied otherwise. About the *_unlocked

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2010-09-09 09:43 --- (In reply to comment #8) (BTW, where did you find that they should be declared throw()? If you open cxxabi.h, you can see _GLIBCXX_NOTHROW after release and abort. --

[Bug c++/45607] [4.3/4.4 Regression] Confusing error message

2010-09-09 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-09-09 09:47 --- 4.5 prints t.C:2:13: error: 'A::A' has the same name as the class in which it is declared 3.4 t.C:2: error: `enum A::A' has the same name as the class in which it is declared which is nicest. 4.0 to 4.4 exhibit

[Bug testsuite/45604] [4.6 regression] New test failures

2010-09-09 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45604

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2010-09-09 09:51 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/45589] [4.6 Regression] 200.sixtrack in SPEC CPU 2000 is miscompiled

2010-09-09 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-09-09 09:52 --- Was a dup (fixed). *** This bug has been marked as a duplicate of 45578 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/45578] [4.6 Regression] The polyhedron test mdbx is miscompiled with -O2 -ftree-vectorize at revision 163915

2010-09-09 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2010-09-09 09:52 --- *** Bug 45589 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/45610] New: misleading warning when operator paired with a constant - is it operator precedence?

2010-09-09 Thread alexander dot stohr at gmx dot de
gcc --version gcc (GCC) 4.3.1 Copyright (C) 2008 Free Software Foundation, Inc. found in package cairo-1.9.14 and file test/cairo-test.c with critical line 1597: if (ctx-thread == 0 ! RUNNING_ON_VALGRIND) build outputs: warning: logical '' with non-zero constant will always evaluate as true

[Bug bootstrap/45445] [4.6 regression] ARM bootstrap failure: comparison failures after stage 3

2010-09-09 Thread mikpe at it dot uu dot se
--- Comment #7 from mikpe at it dot uu dot se 2010-09-09 10:21 --- It's not a stage2/stage3 debug difference as far as I can tell. I've recompiled every differing .o file with the stage 1/2/3 xgccs -fcompare-debug without complaints. The test case showing the different code generation

[Bug bootstrap/45611] New: [4.6 regression] SIGBUS in generate_option_input_file on Solaris 2/SPARC

2010-09-09 Thread ro at gcc dot gnu dot org
Between rev 163993 and 164013, mainline bootstrap started failing on Solaris 2 SPARC. The stage2 libgcc fails to configure because the stage2 xgcc gets a SIGBUS for % ../../xgcc -B../../gcc/ -c -g -O2 conftest.c Bus Error Running xgcc under gdb, I find that the crash happens here: Program

[Bug bootstrap/45612] New: [4.6 regression] Reference to undefined label building libada no Solaris 2/SPARC

2010-09-09 Thread ro at gcc dot gnu dot org
Between 20100903 and 20100908, mainline bootstrap with Ada started failing when compiling the 32-bit g-debpoo.adb: % /var/gcc/gcc-4.6.0-20100908/11-gcc-gas/./gcc/xgcc -B/var/gcc/gcc-4.6.0-20100908/11-gcc-gas/./gcc/ -B/usr/local/sparc-sun-solaris2.11/bin/ -B/usr/local/sparc-sun-solaris2.11/lib/

[Bug c++/45603] cc1plus crashes in build_addr_func

2010-09-09 Thread jakub at gcc dot gnu dot org
--- Comment #11 from jakub at gcc dot gnu dot org 2010-09-09 10:28 --- templatetypename T struct Singleton { static T* get() { static T instance; return instance; } ~Singleton() {} }; struct Foo : SingletonFoo { }; #ifdef __ARM_EABI__ typedef int __guard; #else typedef

[Bug bootstrap/45612] [4.6 regression] Reference to undefined label building libada no Solaris 2/SPARC

2010-09-09 Thread ro at gcc dot gnu dot org
--- Comment #1 from ro at gcc dot gnu dot org 2010-09-09 10:29 --- Created an attachment (id=21749) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21749action=view) assembler output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45612

[Bug libstdc++/45613] New: bits/random.h misses include guards

2010-09-09 Thread gcc at abeckmann dot de
I just noticed that bits/random.h does not have include guards. -- Summary: bits/random.h misses include guards Product: gcc Version: 4.5.3 Status: UNCONFIRMED Severity: minor Priority: P3 Component: libstdc++

[Bug libstdc++/45574] cin.getline() is extremely slow

2010-09-09 Thread jakub at gcc dot gnu dot org
--- Comment #16 from jakub at gcc dot gnu dot org 2010-09-09 10:33 --- The *_unlocked versions are faster a lot actually, at least for the one character ops, because no locking is performed and the calls are inlined. But the question is whether libstdc++ can use them, unless there is

[Bug bootstrap/45611] [4.6 regression] SIGBUS in generate_option_input_file on Solaris 2/SPARC

2010-09-09 Thread ebotcazou at gcc dot gnu dot org
--- Comment #1 from ebotcazou at gcc dot gnu dot org 2010-09-09 10:38 --- Presumably 163997 then. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45611

[Bug libstdc++/45574] cin.getline() is extremely slow

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #17 from paolo dot carlini at oracle dot com 2010-09-09 10:42 --- At some point I tried quickly replacing some getc, did notice an improvement of course, but of the order of magnitude I mentioned. Worth further investigating sure (and simple, just replace in stdio_sync_ and

[Bug libstdc++/45613] bits/random.h misses include guards

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-09-09 10:44 --- You are right, random.tcc too actually. Should not be too risky because those are internal headers, not meant to be included directly by the users. Still, I'll fix momentarily, thanks. -- paolo dot carlini

[Bug c++/45605] Missed devirtualization

2010-09-09 Thread hubicka at gcc dot gnu dot org
--- Comment #3 from hubicka at gcc dot gnu dot org 2010-09-09 11:02 --- Hmm, is it? C equivalent IMO is: int a(void); typedef void (*ptr) (void); static const ptr array[1]={(ptr)a}; ptr t; main() { t=array[0]; } Here we have ctor represented as follows: nop_expr 0x76b53f30

[Bug c++/19816] C++ front-end produces a cast instead of just a.b (empty base class)

2010-09-09 Thread hubicka at gcc dot gnu dot org
--- Comment #2 from hubicka at gcc dot gnu dot org 2010-09-09 11:05 --- Hmm, my system compiles (4.3.2) gets: _Z1fv: .LFB2: subq$24, %rsp .LCFI0: leaq23(%rsp), %rdi call_ZN4baseC2Ev addq$24, %rsp ret .LFE2: this seems OK to me?

[Bug bootstrap/45612] [4.6 regression] Reference to undefined label building libada no Solaris 2/SPARC

2010-09-09 Thread ebotcazou at gcc dot gnu dot org
--- Comment #2 from ebotcazou at gcc dot gnu dot org 2010-09-09 11:09 --- This compiled fine on 20100907 for me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45612

[Bug libstdc++/45613] bits/random.h misses include guards

2010-09-09 Thread paolo at gcc dot gnu dot org
--- Comment #2 from paolo at gcc dot gnu dot org 2010-09-09 11:24 --- Subject: Bug 45613 Author: paolo Date: Thu Sep 9 11:23:39 2010 New Revision: 164074 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164074 Log: 2010-09-09 Paolo Carlini paolo.carl...@oracle.com PR

[Bug libstdc++/45613] bits/random.h misses include guards

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-09-09 11:25 --- Done. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/45605] Missed devirtualization

2010-09-09 Thread hubicka at gcc dot gnu dot org
--- Comment #4 from hubicka at gcc dot gnu dot org 2010-09-09 11:33 --- testing the following fix: Index: class.c === --- class.c (revision 163947) +++ class.c (working copy) @@ -7797,7 +7797,7 @@

[Bug c++/45605] Missed devirtualization

2010-09-09 Thread hubicka at gcc dot gnu dot org
--- Comment #5 from hubicka at gcc dot gnu dot org 2010-09-09 11:36 --- Created an attachment (id=21750) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21750action=view) WIP patch. Still misses some of Richi's earlier comments. --

[Bug c++/45609] [4.3/4.4/4.5/4.6 Regression] 'is used uninitialized' becomes 'may be used uninitialized' on unrelated code changes (namespace addition)

2010-09-09 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-09-09 11:56 --- I don't see any problem. All of current trunk, 4.5 and 4.4 print it as b.B::t.T::MBUUITF rather than b$t$MBUUITF and the other difference in the warning message is not caused by unrelated code changes, but actually

[Bug tree-optimization/45421] [4.6 regression] Ada bootstrap failure on IRIX 6.5: SIGBUS in sem_aggr.sort_case_table

2010-09-09 Thread ro at gcc dot gnu dot org
--- Comment #8 from ro at gcc dot gnu dot org 2010-09-09 12:05 --- Unfortunately not: bootstrap still fails as of rev. 164013. -- ro at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/35664] unable to find a register to spill in class 'FP_REGS' (sparc-linux)

2010-09-09 Thread mikpe at it dot uu dot se
--- Comment #4 from mikpe at it dot uu dot se 2010-09-09 12:06 --- This ICEs for me with 4.4-20100907 and the 4.5.1 release (-m32 -mno-fpu), but not with 4.5-20100902 or 4.6-20100904. -- mikpe at it dot uu dot se changed: What|Removed |Added

[Bug tree-optimization/45421] [4.6 regression] Ada bootstrap failure on IRIX 6.5: SIGBUS in sem_aggr.sort_case_table

2010-09-09 Thread ebotcazou at gcc dot gnu dot org
--- Comment #9 from ebotcazou at gcc dot gnu dot org 2010-09-09 12:15 --- Unfortunately not: bootstrap still fails as of rev. 164013. Not very surprising given that we now have a SIGBUS on the SPARC as well... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45421

[Bug c/45610] misleading warning when operator paired with a constant - is it operator precedence?

2010-09-09 Thread joseph at codesourcery dot com
--- Comment #1 from joseph at codesourcery dot com 2010-09-09 12:20 --- Subject: Re: New: misleading warning when operator paired with a constant - is it operator precedence? You don't give a self-contained testcase whose behavior with different versions can be compared, but the

[Bug bootstrap/45611] [4.6 regression] SIGBUS in generate_option_input_file on Solaris 2/SPARC

2010-09-09 Thread ro at CeBiTec dot Uni-Bielefeld dot DE
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld dot DE 2010-09-09 12:41 --- Subject: Re: [4.6 regression] SIGBUS in generate_option_input_file on Solaris 2/SPARC --- Comment #1 from ebotcazou at gcc dot gnu dot org 2010-09-09 10:38 --- Presumably 163997 then.

[Bug target/35664] unable to find a register to spill in class 'FP_REGS' (sparc-linux)

2010-09-09 Thread mikpe at it dot uu dot se
--- Comment #5 from mikpe at it dot uu dot se 2010-09-09 12:41 --- (In reply to comment #4) This ICEs for me with 4.4-20100907 and the 4.5.1 release (-m32 -mno-fpu), but not with 4.5-20100902 or 4.6-20100904. Oops, that was with a locally modified 4.5-20100902. A vanilla

[Bug bootstrap/45611] [4.6 regression] SIGBUS in generate_option_input_file on Solaris 2/SPARC

2010-09-09 Thread ro at gcc dot gnu dot org
--- Comment #3 from ro at gcc dot gnu dot org 2010-09-09 12:43 --- Richard, could you please have a look? -- ro at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/45614] New: [4.6 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1056 with -ftree-vectorize

2010-09-09 Thread zsojka at seznam dot cz
Compiler output: $ gcc -O -ftree-vectorize testcase.c testcase.c: In function 'foo': testcase.c:11:1: internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1056 Please submit a full bug report, with preprocessed source if appropriate. See

[Bug rtl-optimization/45614] [4.6 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1056 with -ftree-vectorize

2010-09-09 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-09-09 13:04 --- Created an attachment (id=21751) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21751action=view) reduced testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45614

[Bug c/45610] misleading warning when operator paired with a constant - is it operator precedence?

2010-09-09 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2010-09-09 13:15 --- We need a testcase http://gcc.gnu.org/bugs/minimize.html but I am pretty sure this is not warned anymore in GCC 4.6 (and probably GCC 4.4 and 4.5) -- manu at gcc dot gnu dot org changed: What

[Bug rtl-optimization/45614] [4.6 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1056 with -ftree-vectorize

2010-09-09 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2010-09-09 13:26 --- I think it is fixed by revision 164071: http://gcc.gnu.org/ml/gcc-cvs/2010-09/msg00363.html -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug bootstrap/45611] [4.6 regression] SIGBUS in generate_option_input_file on Solaris 2/SPARC

2010-09-09 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-09-09 13:27 --- (In reply to comment #3) Richard, could you please have a look? I don't have access to sparc-sun-solaris2*, so I can't bootstrap it (but at most build a cross cc1). So please attach a testcase (easiest is

[Bug rtl-optimization/45614] [4.6 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1056 with -ftree-vectorize

2010-09-09 Thread zsojka at seznam dot cz
--- Comment #3 from zsojka at seznam dot cz 2010-09-09 13:40 --- Indeed, r164077 no longer crashes. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45614

[Bug middle-end/40386] wrong code generation for several SPEC CPU2000 benchmarks (lucas, mgrid, face, applu, apsi) with -O1 -fno-ira-share-spill-slots

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #10 from vmakarov at gcc dot gnu dot org 2010-09-09 13:43 --- Subject: Bug 40386 Author: vmakarov Date: Thu Sep 9 13:42:51 2010 New Revision: 164095 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164095 Log: 2010-09-08 Vladimir Makarov vmaka...@redhat.com

[Bug middle-end/40386] wrong code generation for several SPEC CPU2000 benchmarks (lucas, mgrid, face, applu, apsi) with -O1 -fno-ira-share-spill-slots

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #11 from vmakarov at gcc dot gnu dot org 2010-09-09 13:47 --- Subject: Bug 40386 Author: vmakarov Date: Thu Sep 9 13:47:14 2010 New Revision: 164097 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164097 Log: 2010-09-08 Vladimir Makarov vmaka...@redhat.com

[Bug middle-end/40386] wrong code generation for several SPEC CPU2000 benchmarks (lucas, mgrid, face, applu, apsi) with -O1 -fno-ira-share-spill-slots

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #12 from vmakarov at gcc dot gnu dot org 2010-09-09 13:51 --- Subject: Bug 40386 Author: vmakarov Date: Thu Sep 9 13:51:25 2010 New Revision: 164100 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164100 Log: 2010-09-09 Vladimir Makarov vmaka...@redhat.com

[Bug middle-end/44554] Stack space after sigsetjmp is reused

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #11 from vmakarov at gcc dot gnu dot org 2010-09-09 13:54 --- Subject: Bug 44554 Author: vmakarov Date: Thu Sep 9 13:53:32 2010 New Revision: 164102 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164102 Log: 2010-09-09 Vladimir Makarov vmaka...@redhat.com

[Bug middle-end/44554] Stack space after sigsetjmp is reused

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #12 from vmakarov at gcc dot gnu dot org 2010-09-09 13:56 --- Subject: Bug 44554 Author: vmakarov Date: Thu Sep 9 13:55:35 2010 New Revision: 164105 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164105 Log: 2010-09-09 Vladimir Makarov vmaka...@redhat.com

[Bug middle-end/44554] Stack space after sigsetjmp is reused

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #13 from vmakarov at gcc dot gnu dot org 2010-09-09 13:58 --- Subject: Bug 44554 Author: vmakarov Date: Thu Sep 9 13:58:24 2010 New Revision: 164107 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164107 Log: 2010-09-09 Vladimir Makarov vmaka...@redhat.com

[Bug rtl-optimization/45614] [4.6 Regression] ICE: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1056 with -ftree-vectorize

2010-09-09 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2010-09-09 14:09 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|WAITING

[Bug fortran/45277] make bootstrap fails at:checking whether the GNU Fortran compiler is working... no

2010-09-09 Thread philippe_scelers at mentor dot com
--- Comment #7 from philippe_scelers at mentor dot com 2010-09-09 14:10 --- Previous comments describe encountered issue, including gmp/mpfr/mpc version. Below a summary of successfull build on Solaris 10 standalone build/install for gmp/mpfr/mpc, ABI=32 is mandatory gcc

[Bug libstdc++/45574] cin.getline() is extremely slow

2010-09-09 Thread tstarling at wikimedia dot org
--- Comment #18 from tstarling at wikimedia dot org 2010-09-09 14:12 --- Created an attachment (id=21752) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21752action=view) gprof output I haven't managed to get libstdc++ to compile with -pg, but compiling the test program with

[Bug libstdc++/45574] cin.getline() is extremely slow

2010-09-09 Thread tstarling at wikimedia dot org
--- Comment #19 from tstarling at wikimedia dot org 2010-09-09 14:28 --- (In reply to comment #16) The *_unlocked versions are faster a lot actually, at least for the one character ops, because no locking is performed and the calls are inlined. But the question is whether libstdc++

[Bug libstdc++/45574] cin.getline() is extremely slow

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #20 from paolo dot carlini at oracle dot com 2010-09-09 14:53 --- Good about POSIX, we would add a configure time test with some hope to enable the mechanism outside Linux too. Anyway, I'm sure your kind of loop would improve the performance a lot - if only we could have it

[Bug c++/45615] New: -Wshadow doesn't report class member shadowing

2010-09-09 Thread joseph dot h dot garvin at gmail dot com
The following simple test program when compiled with -Wshadow produces no output. I'd expect to get warnings for both the x and y declaration in class B. class A { static int x; int y; }; class B : public A { static int x; int y; }; int main() { B a;

[Bug libstdc++/45574] cin.getline() is extremely slow

2010-09-09 Thread jakub at gcc dot gnu dot org
--- Comment #21 from jakub at gcc dot gnu dot org 2010-09-09 15:07 --- #if __GNUC__ = 3 # define _IO_BE(expr, res) __builtin_expect ((expr), res) #else # define _IO_BE(expr, res) (expr) #endif #define _IO_getc_unlocked(_fp) \ (_IO_BE ((_fp)-_IO_read_ptr = (_fp)-_IO_read_end, 0)

[Bug target/44606] Wrong SPE floating point during computation

2010-09-09 Thread froydnj at gcc dot gnu dot org
--- Comment #7 from froydnj at gcc dot gnu dot org 2010-09-09 15:28 --- The problem is in the register allocator. What happens is that after register allocation, we have something like: r27:DF = [r11:SI] ... r27:SI = 0 ... and then the first def gets deleted because it's

[Bug tree-optimization/44328] switch/case optimization produces an invalid lookup table index

2010-09-09 Thread ibolton at gcc dot gnu dot org
--- Comment #36 from ibolton at gcc dot gnu dot org 2010-09-09 15:37 --- Fixed in 4.4, 4.5 and trunk. -- ibolton at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/44328] switch/case optimization produces an invalid lookup table index

2010-09-09 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44328

[Bug c/45616] New: internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243

2010-09-09 Thread paul dot chavent at fnac dot net
Here is the log : arm-oc8s-linux-gnueabi-gcc -Wall -std=gnu99 -mthumb -save-temps -DDEFAULT_GPIO=4 -c -o chrono.o chrono.c chrono.c: In function 'chrono_diff': chrono.c:188:1: error: insn does not satisfy its constraints: (insn 236 40 41 chrono.c:155 (set (reg:DF 63 s0) (reg:DF 1 r1))

[Bug c/45616] internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243

2010-09-09 Thread paul dot chavent at fnac dot net
--- Comment #1 from paul dot chavent at fnac dot net 2010-09-09 15:53 --- Created an attachment (id=21753) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21753action=view) the preprocessed file that triggers the bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45616

[Bug c/45616] internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243

2010-09-09 Thread paul dot chavent at fnac dot net
--- Comment #2 from paul dot chavent at fnac dot net 2010-09-09 15:54 --- Created an attachment (id=21754) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21754action=view) the options given when GCC was configured/built -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45616

[Bug target/35664] unable to find a register to spill in class 'FP_REGS' (sparc-linux)

2010-09-09 Thread mikpe at it dot uu dot se
--- Comment #6 from mikpe at it dot uu dot se 2010-09-09 15:57 --- This ICE stopped to appear on trunk with r162019: http://gcc.gnu.org/ml/gcc-cvs/2010-07/msg00373.html http://gcc.gnu.org/ml/gcc-patches/2010-07/msg00827.html Applying the generic bits of that to current 4.5 stops the

[Bug libstdc++/45574] cin.getline() is extremely slow

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #22 from paolo dot carlini at oracle dot com 2010-09-09 16:08 --- Jakub, when, by default, cin co boil down to stdio_sync_filebuf, the underlying basic_streambuf is unbuffered, everything is unbuffered in the C++ library. --

[Bug c++/45615] -Wshadow doesn't report class member shadowing

2010-09-09 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-09-09 16:31 --- I agree this would be useful, I've had problems with such shadowing when moving members higher in inheritance hierarchies and accidentally missing occurrences in some derived classes. 4.2 is unmaintained now, but

[Bug c++/45606] [4.5/4.6 Regresssion] match a method prototyped a typedef alias with the original type (using stdlib)

2010-09-09 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1

[Bug c++/45606] [4.5/4.6 Regresssion] match a method prototyped a typedef alias with the original type (using stdlib)

2010-09-09 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-09 16:56 --- H.J. can you do a binary search on this? -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug target/45616] internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243

2010-09-09 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-09-09 17:00 --- --with-cpu=arm926ej-s --with-tune=arm926ej-s --with-arch=armv5te --with-fpu=vfp --with-float=hard Hmm, these default CPUs don't support vfp in thumb. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45616

[Bug target/42070] FAIL: g++.dg/tree-prof/partition1.C compilation, -O3 -g -fprofile-use

2010-09-09 Thread howarth at nitro dot med dot uc dot edu
--- Comment #3 from howarth at nitro dot med dot uc dot edu 2010-09-09 17:19 --- Created an attachment (id=21755) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21755action=view) patch to prune bogus linker warnings from Xcode 3.2.x. --

[Bug rtl-optimization/45617] New: optimize bit shift+compare at RTL level

2010-09-09 Thread zsojka at seznam dot cz
+++ This bug was initially created as a clone of Bug #20517 +++ From comment #4: - testcase.c - _Bool foo(unsigned i) { return (i 5) 10; } _Bool bar(unsigned i) { return i (10 5) + 31; } int fooi(unsigned i) { return (i 5) 10; } int bari(unsigned i) {

[Bug rtl-optimization/45617] optimize bit shift+compare at RTL level

2010-09-09 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-09-09 17:51 --- Created an attachment (id=21756) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21756action=view) Jakub's patch from PR20517 comment #6 gcc bootstrapped fine The resulting code for foo() and fooi() is the same as for

[Bug tree-optimization/20517] bit shift/mask optimization potential

2010-09-09 Thread zsojka at seznam dot cz
--- Comment #7 from zsojka at seznam dot cz 2010-09-09 17:52 --- (In reply to comment #5) Yes, please, and assign to me (working on a simplify_comparison fix for that). Opened PR45617, attached your patch with results (bootstrapped fine, optimisation seems to work). Thank you for

[Bug testsuite/45604] [4.6 regression] New test failures

2010-09-09 Thread aoliva at gcc dot gnu dot org
--- Comment #1 from aoliva at gcc dot gnu dot org 2010-09-09 18:07 --- Mine, thanks, testing a patch. Sorry about the breakage, I seem to have compared test results with a baseline that already had the errors :-( -- aoliva at gcc dot gnu dot org changed: What

[Bug bootstrap/43847] test for plugin is using wrong objdump for host != target

2010-09-09 Thread doko at gcc dot gnu dot org
--- Comment #4 from doko at gcc dot gnu dot org 2010-09-09 18:23 --- Subject: Bug 43847 Author: doko Date: Thu Sep 9 18:22:48 2010 New Revision: 164113 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164113 Log: 2010-09-09 Matthias Klose d...@ubuntu.com PR

[Bug c++/45606] [4.5/4.6 Regression] match a method prototyped a typedef alias with the original type (using stdlib)

2010-09-09 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2010-09-09 18:23 --- It is caused by revision 156316: http://gcc.gnu.org/ml/gcc-cvs/2010-01/msg00784.html -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug bootstrap/43847] test for plugin is using wrong objdump for host != target

2010-09-09 Thread doko at gcc dot gnu dot org
--- Comment #5 from doko at gcc dot gnu dot org 2010-09-09 18:25 --- Subject: Bug 43847 Author: doko Date: Thu Sep 9 18:25:26 2010 New Revision: 164114 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164114 Log: 2010-09-09 Matthias Klose d...@ubuntu.com PR

[Bug middle-end/45312] [4.4 Regression] GCC 4.4.4 miscompiles the Linux kernel

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #19 from vmakarov at gcc dot gnu dot org 2010-09-09 18:36 --- Subject: Bug 45312 Author: vmakarov Date: Thu Sep 9 18:36:26 2010 New Revision: 164116 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164116 Log: 2010-09-09 Vladimir Makarov vmaka...@redhat.com

[Bug middle-end/45312] [4.4 Regression] GCC 4.4.4 miscompiles the Linux kernel

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #20 from vmakarov at gcc dot gnu dot org 2010-09-09 18:37 --- Subject: Bug 45312 Author: vmakarov Date: Thu Sep 9 18:37:17 2010 New Revision: 164117 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164117 Log: 2010-09-09 Vladimir Makarov vmaka...@redhat.com

[Bug middle-end/45312] [4.4 Regression] GCC 4.4.4 miscompiles the Linux kernel

2010-09-09 Thread vmakarov at gcc dot gnu dot org
--- Comment #21 from vmakarov at gcc dot gnu dot org 2010-09-09 18:38 --- Subject: Bug 45312 Author: vmakarov Date: Thu Sep 9 18:37:58 2010 New Revision: 164118 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=164118 Log: 2010-09-09 Vladimir Makarov vmaka...@redhat.com

[Bug fortran/45495] ICE: For character function with length specifier dependent on non-present arg

2010-09-09 Thread kargl at gcc dot gnu dot org
--- Comment #6 from kargl at gcc dot gnu dot org 2010-09-09 19:02 --- Fixed in trunk. No plans for back port to 4.5.x branch. I'll open a bug report about intent(out) issues with dummy arguments. -- kargl at gcc dot gnu dot org changed: What|Removed

[Bug c++/45618] New: GCC 4.4.4 strstream and ios::internal flag

2010-09-09 Thread anhtuyen at ca dot ibm dot com
The following code can be compiled with either g++ (GCC) 4.1.2 or g++ (GCC) 4.4.4. When running the executable with non-static library, it produces different output. The output linked with strstream on g++ (GCC) 4.4.4 seems to be incorrect. CODE: /* File name iosflag.C */ #include iostream

[Bug fortran/45619] New: intent(out) dummy arguements in specification statements

2010-09-09 Thread kargl at gcc dot gnu dot org
gfortran does not correctly check that an intent(out) dummy argument does not appear in a specification statement. The following code is invalid, yet gfortan compiles it without error. subroutine sub(n, s) integer, intent(out) :: n character(len=*), intent(out) :: s

[Bug target/45616] internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243

2010-09-09 Thread paul dot chavent at fnac dot net
--- Comment #4 from paul dot chavent at fnac dot net 2010-09-09 19:09 --- Subject: Re: internal compiler error: in note_invalid_constants, at config/arm/arm.c:11243 Sorry to haven't checking that. Thank you. pinskia at gcc dot gnu dot org wrote: --- Comment #3 from pinskia at

  1   2   >