[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread davem at davemloft dot net
--- Comment #10 from davem at davemloft dot net 2010-03-24 06:43 --- Created an attachment (id=20179) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20179&action=view) source that emitted miscompiled function -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43385

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2010-03-24 06:38 --- Could you please also attach regexec.i (and what gcc options were used to compile it), so that I can inspect it with a cross-compiler? Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43385

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread davem at davemloft dot net
--- Comment #8 from davem at davemloft dot net 2010-03-24 06:02 --- Created an attachment (id=20178) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20178&action=view) miscompiled function -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43385

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread davem at davemloft dot net
--- Comment #7 from davem at davemloft dot net 2010-03-24 06:01 --- Created an attachment (id=20177) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20177&action=view) correctly compiled function -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43385

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread davem at davemloft dot net
--- Comment #6 from davem at davemloft dot net 2010-03-24 06:00 --- In the regex cases, glibc/posix/regexec.c:merge_state_with_log() is what gets miscompiled. I will attach match_good.s and match_bad.s match_good.s is a working compile of this function, using gcc-4.3.2 match_bad.s is

[Bug bootstrap/42529] Stage 1 compiler cannot compile

2010-03-23 Thread mckelvey at maskull dot com
--- Comment #14 from mckelvey at maskull dot com 2010-03-24 04:57 --- I now see that sjlj dll is back in /usr/local/bin, along with the other one. I delete them, and the new g++ works. At least it compiles to a .o again. We'll see if my project actually runs properly. So I guess that th

[Bug java/43504] many libjava testsuite regressions on x86_64-apple-darwin10

2010-03-23 Thread howarth at nitro dot med dot uc dot edu
--- Comment #1 from howarth at nitro dot med dot uc dot edu 2010-03-24 04:06 --- caused by... Author: mrs Date: Tue Mar 23 20:02:57 2010 New Revision: 157677 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157677 Log: PR target/33120 * config/darwin.h (ASM_OUTPUT

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread davem at davemloft dot net
--- Comment #5 from davem at davemloft dot net 2010-03-24 03:01 --- Yes, the failures mentioned in: http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01086.html are the same exact ones I am seeing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43385

[Bug java/43504] New: many libjava testsuite regressions on x86_64-apple-darwin10

2010-03-23 Thread howarth at nitro dot med dot uc dot edu
At r157681, x86_64-apple-darwin10 has developed numerous libjava testsuite failures... http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg02039.html These did not exist at r157609. -- Summary: many libjava testsuite regressions on x86_64-apple- darwin10

[Bug bootstrap/42529] Stage 1 compiler cannot compile

2010-03-23 Thread mckelvey at maskull dot com
: posix gcc version 4.5.0 20100323 (experimental) (GCC) mckel...@mckelvey-pc ~/PD $ which g++ /usr/local/bin/g++ mckel...@mckelvey-pc ~/PD $ cygcheck /usr/local/bin/g++ C:\cygwin\usr\local\bin\g++.exe C:\cygwin\bin\cygwin1.dll C:\Windows\system32\ADVAPI32.DLL C:\Windows\system32

[Bug c++/43503] field in-place decrement isn't optimized

2010-03-23 Thread yuri at tsoft dot com
--- Comment #2 from yuri at tsoft dot com 2010-03-24 01:14 --- I would put higher priority here over the other missed optimizations because this is the basic c/c++ construct and it's used very frequently. -- yuri at tsoft dot com changed: What|Removed

[Bug middle-end/43503] field in-place decrement isn't optimized

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-24 01:12 --- The problem comes from cross jumping happening late so it only gets rid of the conditional after register allocation. -- pinskia at gcc dot gnu dot org changed: What|Removed |A

[Bug c++/43503] New: field in-place decrement isn't optimized

2010-03-23 Thread yuri at tsoft dot com
Decrementing of the field causes 3 instructions for what could be one on i686 target. --- testcase --- struct C { int fld; }; extern void a(); extern void b(); void f(C *c) { if (--c->fld > 0) { a(); } else { a(); } } --- result of assembly with -O5 option --- _Z1fP1C: .LFB0:

[Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed

2010-03-23 Thread aflyhorse at foxmail dot com
--- Comment #4 from aflyhorse at foxmail dot com 2010-03-24 00:26 --- Hmmm... i don't know if it is useful to give you the configure option i did at that time... Happy i have a habit of recording every command i used during installation: $ ../src/configure --build=x86_64-w64-mingw32 --e

[Bug target/43469] [4.5 Regression] ICE trying to compile glibc for ARM thumb2

2010-03-23 Thread rearnsha at gcc dot gnu dot org
-- rearnsha at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |rearnsha at gcc dot gnu dot |dot org

[Bug c++/43502] uninitialised read in grokfndecl() with lambda functions cause -fcompare-debug failures

2010-03-23 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-03-24 00:05 --- Let's add Jason in CC -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/43502] uninitialised read in grokfndecl() with lambda functions cause -fcompare-debug failures

2010-03-23 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-03-24 00:03 --- Created an attachment (id=20176) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20176&action=view) reduced testcase showing -fcompare-debug failure Line numbers are random: $ /mnt/svn/gcc-trunk/binary-157675-lto/bin/

[Bug c++/43502] New: uninitialised read in grokfndecl() with lambda functions cause -fcompare-debug failures

2010-03-23 Thread zsojka at seznam dot cz
Command line: g++ -std=c++0x testcase.cpp testcase.cpp void f() { []{}(); } -- valgrind shows uninitialised read with this testcase Tested revisions: r157675 - fail Valgrind output: $ valgrind --trace-children=yes -q /mnt/svn/gcc-trunk/binary-157675-lto/bin/g++ -std

[Bug target/43484] [4.5 Regression] GCC 4.5 does not build gamess, zeusmp on powerpc -m32 with loop unrolling

2010-03-23 Thread meissner at gcc dot gnu dot org
--- Comment #8 from meissner at gcc dot gnu dot org 2010-03-23 23:43 --- I have tracked down the issue, and will submit a patch tomorrow after further testing. The issue is when a multi-word items is loaded to GPRS, and the address is of the form (r0+reg), the compiler was using r0 as

[Bug rtl-optimization/43413] Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used

2010-03-23 Thread meissner at gcc dot gnu dot org
--- Comment #12 from meissner at gcc dot gnu dot org 2010-03-23 23:40 --- This reduces the spills, and brings the performance backs up. I'm closing the bug. Thanks. -- meissner at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/43435] [4.3/4/4 Regression] SH: Bad registers are restored before ISR is leaved

2010-03-23 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2010-03-23 23:13 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-03-23 22:41 --- Wouldn't this be the same issue as http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01086.html ? On the trunk it wasn't just one commit, but several: 156888, 156889, 156893, 156903, 156913 If yes, would be interesting to k

[Bug c/43495] [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #2 from ghazi at gcc dot gnu dot org 2010-03-23 22:17 --- Testcase also fails on sparc64-unknown-linux-gnu with -fpic/-fPIC in both 32 and 64 bit modes: http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg00753.html -- ghazi at gcc dot gnu dot org changed: What

[Bug target/43498] No unwind info for thunks even with -fasynchronous-unwind-tables

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2010-03-23 22:10 --- At least when using CFI asm this is solvable easily, see how I've changed i386 PIC setup generation. Without CFI asm it would be much harder though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43498

[Bug debug/43501] [4.4/4.5 Regression] ICE: Segmentation fault with -g due to too deep recursion

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-03-23 22:05 --- I'd say this is a dup of PR43381. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43501

[Bug debug/43501] [4.4/4.5 Regression] ICE: Segmentation fault with -g due to too deep recursion

2010-03-23 Thread zsojka at seznam dot cz
--- Comment #2 from zsojka at seznam dot cz 2010-03-23 21:33 --- C89 + GNU extensions, that is -- zsojka at seznam dot cz changed: What|Removed |Added Keywords|

[Bug debug/43501] [4.4/4.5 Regression] ICE: Segmentation fault with -g due to too deep recursion

2010-03-23 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-03-23 21:31 --- Created an attachment (id=20175) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20175&action=view) better testcase This testcase is better as it is valid C89 code (I believe) -- http://gcc.gnu.org/bugzilla/show_b

[Bug middle-end/42181] [4.5 Regression][graphite] -fgraphite-identity miscompiles air.f90

2010-03-23 Thread spop at gcc dot gnu dot org
--- Comment #29 from spop at gcc dot gnu dot org 2010-03-23 21:27 --- Also note that with the fix in CLooG-PPL, gfortran -O2 -fgraphite-identity air.f90 -o air ./air passes without error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42181

[Bug middle-end/42181] [4.5 Regression][graphite] -fgraphite-identity miscompiles air.f90

2010-03-23 Thread spop at gcc dot gnu dot org
--- Comment #28 from spop at gcc dot gnu dot org 2010-03-23 21:24 --- I fixed this problem in CLooG-PPL: the code generated with the new version looks like the code generated by CLooG-ISL: for (c2=1;c2<=D.1554_10-3;c2++) { S1(c2); for (c4=0;c4<=c2-1;c4++) { S2(c2,c4);

[Bug debug/43501] New: [4.4/4.5 Regression] ICE: Segmentation fault with -g due to too deep recursion

2010-03-23 Thread zsojka at seznam dot cz
Command line: gcc -g testcase.c - testcase.c - void foo (int __attribute__ ((__mode__ (vector_size (8 x) {} void bar (int x[i()]) {} -- (reduced from testsuite/gcc.dg/parm-impl-decl-1.c) Tested revisions: r157675 - crash r157460 - crash r157122 - crash r153685 - cr

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread davem at gcc dot gnu dot org
--- Comment #3 from davem at gcc dot gnu dot org 2010-03-23 20:40 --- Sorry, it's taking a long time to sort out the test case. The GLIBC regex code is huge and non-trivial. However I did track down that it might be dependent upon optimization options, for example I can reproduce with

[Bug target/39254] [4.4 Regression] gcc.c-torture/execute/va-arg-trap-1.c ICEs on powerpc-apple-darwin9

2010-03-23 Thread dominiq at lps dot ens dot fr
--- Comment #22 from dominiq at lps dot ens dot fr 2010-03-23 20:32 --- > As noted in duplicate PR43500, I am able to reproduce this error on plain > powerpc-unknown-linux-gnu when adding -fPIC. I can run tests for the 4.4. > branch but it will take several days to get a baseline result

[Bug other/43357] fixincludes/tests/base/iso/math_c99.h check fails

2010-03-23 Thread danglin at gcc dot gnu dot org
--- Comment #3 from danglin at gcc dot gnu dot org 2010-03-23 20:24 --- Also don't see any more. -- danglin at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/33120] Data not put in BSS section on Mac OS

2010-03-23 Thread mrs at gcc dot gnu dot org
--- Comment #11 from mrs at gcc dot gnu dot org 2010-03-23 20:13 --- This should now be fixed. -- mrs at gcc dot gnu dot org changed: What|Removed |Added Stat

[Bug middle-end/42181] [4.5 Regression][graphite] -fgraphite-identity miscompiles air.f90

2010-03-23 Thread spop at gcc dot gnu dot org
--- Comment #27 from spop at gcc dot gnu dot org 2010-03-23 20:08 --- I just verified that the problem is well in CLooG-PPL. With CLooG-ISL we generate a correct code that looks like this: for (c2=1;c2<=D.1554_10-3;c2++) { S1(c2); for (c4=0;c4<=c2-1;c4++) { S2(c2,c4);

[Bug target/33120] Data not put in BSS section on Mac OS

2010-03-23 Thread mrs at gcc dot gnu dot org
--- Comment #10 from mrs at gcc dot gnu dot org 2010-03-23 20:03 --- Subject: Bug 33120 Author: mrs Date: Tue Mar 23 20:02:57 2010 New Revision: 157677 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157677 Log: PR target/33120 * config/darwin.h (ASM_OUTPUT_ALIGNE

[Bug target/39254] [4.4 Regression] gcc.c-torture/execute/va-arg-trap-1.c ICEs on powerpc-apple-darwin9

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #21 from ghazi at gcc dot gnu dot org 2010-03-23 19:55 --- As noted in duplicate PR43500, I am able to reproduce this error on plain powerpc-unknown-linux-gnu when adding -fPIC. I can run tests for the 4.4. branch but it will take several days to get a baseline result vs a p

[Bug target/39254] [4.4 Regression] gcc.c-torture/execute/va-arg-trap-1.c ICEs on powerpc-apple-darwin9

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #20 from pinskia at gcc dot gnu dot org 2010-03-23 19:25 --- *** Bug 43500 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/43500] gcc.c-torture/execute/va-arg-trap-1.c fails on powerpc-unknown-linux-gnu with -fPIC

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-23 19:25 --- *** This bug has been marked as a duplicate of 39254 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug middle-end/43500] New: gcc.c-torture/execute/va-arg-trap-1.c fails on powerpc-unknown-linux-gnu with -fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on powerpc-unknown-linux-gnu with extra passes containing -fPIC I get the following additional errors on the 4.4 branch: FAIL: gcc.c-torture/execute/va-arg-trap-1.c compilation, -O2 (internal compiler error) FAIL: gcc.c-torture/execute/va-arg-trap-1.c compilation, -O3

[Bug rtl-optimization/43413] Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used

2010-03-23 Thread vmakarov at gcc dot gnu dot org
--- Comment #11 from vmakarov at gcc dot gnu dot org 2010-03-23 19:19 --- Subject: Bug 43413 Author: vmakarov Date: Tue Mar 23 19:18:42 2010 New Revision: 157676 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157676 Log: 2010-03-23 Vladimir Makarov PR rtl-optimizati

[Bug target/43498] No unwind info for thunks even with -fasynchronous-unwind-tables

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2010-03-23 19:13 --- The x86-64 target writes directly out asm rather than going through some RTL code which causes unwind tables not to be written out for the thunks. -- pinskia at gcc dot gnu dot org changed: What|R

[Bug other/43357] fixincludes/tests/base/iso/math_c99.h check fails

2010-03-23 Thread zsojka at seznam dot cz
--- Comment #2 from zsojka at seznam dot cz 2010-03-23 19:06 --- I can't reproduce it anymore in r157675 with x86_64, probably fixed by r157573: http://gcc.gnu.org/viewcvs?view=revision&revision=157573 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43357

[Bug c/43495] [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #1 from ghazi at gcc dot gnu dot org 2010-03-23 19:05 --- Testcase also fails on powerpc-unknown-linux-gnu with -fpic/-fPIC: http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01630.html -- ghazi at gcc dot gnu dot org changed: What|Removed

[Bug middle-end/43498] No unwind info for thunks even with -fasynchronous-unwind-tables

2010-03-23 Thread lat at cern dot ch
--- Comment #6 from lat at cern dot ch 2010-03-23 19:04 --- Changing subject to be more descriptive of the actual bug. -- lat at cern dot ch changed: What|Removed |Added

[Bug libgomp/43499] libgomp.fortran/appendix-a/a.22.7.f90 and libgomp.fortran/omp_parse3.f90 fail on powerpc-unknown-linux-gnu with -fpic

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-23 19:02 --- And most likely fixed by: http://sourceware.org/ml/binutils/2008-11/msg00240.html :) Which is talking about TLS and the different models which gets changed by -fPIC. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?i

[Bug libgomp/43499] libgomp.fortran/appendix-a/a.22.7.f90 and libgomp.fortran/omp_parse3.f90 fail on powerpc-unknown-linux-gnu with -fpic

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-23 19:00 --- >BFD 2.17 Considering this is an old version of binutils, it might be a bug in binutils. Since this is openmp code, I would not doubt it is related to TLS. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43499

[Bug middle-end/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread lat at cern dot ch
--- Comment #5 from lat at cern dot ch 2010-03-23 18:58 --- OK, reopening bug then. -- lat at cern dot ch changed: What|Removed |Added Status|RESOLVED

[Bug libgomp/43499] New: libgomp.fortran/appendix-a/a.22.7.f90 and libgomp.fortran/omp_parse3.f90 fail on powerpc-unknown-linux-gnu with -fpic

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on powerpc-unknown-linux-gnu with extra passes containing -fpic I get the following additional error on the 4.3 branch: Running target unix/-fpic FAIL: libgomp.fortran/appendix-a/a.22.7.f90 -Os (test for excess errors) UNRESOLVED: libgomp.fortran/appendix-a/a.22.7.f90

[Bug middle-end/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-03-23 18:56 --- (In reply to comment #3) > Ah, that would explain it. Does it mean that all omissions and inaccuracies in > unwind information are bugs? Like the lack of unwind info for thunks? yes thunks should have unwind tables

[Bug c++/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread lat at cern dot ch
--- Comment #3 from lat at cern dot ch 2010-03-23 18:54 --- Ah, that would explain it. Does it mean that all omissions and inaccuracies in unwind information are bugs? Like the lack of unwind info for thunks? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43498

[Bug c++/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread lat at cern dot ch
--- Comment #2 from lat at cern dot ch 2010-03-23 18:52 --- Created an attachment (id=20174) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20174&action=view) Random C source file for testing Random C source file for additional testing. Compile on Linux with and without -fasynchron

[Bug c++/43498] -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-03-23 18:47 --- -fasynchronous-unwind-tables is the default on x86_64. -- jakub at gcc dot gnu dot org changed: What|Removed |Added --

[Bug rtl-optimization/43413] Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used

2010-03-23 Thread vmakarov at redhat dot com
--- Comment #10 from vmakarov at redhat dot com 2010-03-23 18:45 --- (In reply to comment #5) > > Still I'll investigate a bit more why there are a lot of unexpected spills > during assignment with -mvsx for the current code. > The problem is in that part of VSX_REGS (altivec regs) do

[Bug c++/43498] New: -fasynchronous-unwind-tables does not seem to do anything

2010-03-23 Thread lat at cern dot ch
I have compiled various C and C++ source files in attempt to generate async unwind tables for better stack trace accuracy with asynchronous signals, adding -fasynchronous-unwind-tables to compile options. I have so far been completely unable to come up with any example where the option would produc

[Bug pch/43497] gcc.dg/pch/static-1.c and gcc.dg/pch/static-2.c fail on powerpc-unknown-linux-gnu with -fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #1 from ghazi at gcc dot gnu dot org 2010-03-23 18:39 --- The "-O0" vs "-O0 -g" diffs appear to be the same except for line number changes. So here is just the "-O0 -g" diffs for both testcases: line #69 < .LCL1: > .LCL0: line #70 < .long .LCTOC1-.LCF1 > .long .

[Bug pch/43497] New: gcc.dg/pch/static-1.c and gcc.dg/pch/static-2.c fail on powerpc-unknown-linux-gnu with -fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on powerpc-unknown-linux-gnu with extra passes containing -fPIC I get the following additional error on the 4.3 branch: FAIL: gcc.dg/pch/static-1.c -O0 -g assembly comparison FAIL: gcc.dg/pch/static-1.c -O0 assembly comparison FAIL: gcc.dg/pch/static-2.c -O0 -g assembl

[Bug rtl-optimization/43494] gcc.c-torture/execute/vector-2.c fails with -fpic/-fPIC

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-23 18:22 --- This sounds like an aliasing issue which is only exposed on ia64. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug testsuite/43496] gcc.target/powerpc/gcse-1.c fails on powerpc-unknown-linux-gnu with -fpic/-fPIC

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-23 18:20 --- >I don't speak ppc, so is this expected or is it a GCC bug? The testcase just needs to be changed for -fPIC/-fpic really, maybe just skipped. The @ha means taking the high part of the address for relocations. --

[Bug c/43496] New: gcc.target/powerpc/gcse-1.c fails on powerpc-unknown-linux-gnu with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on powerpc-unknown-linux-gnu with extra passes containing -fpic/-fPIC I get the following additional error: FAIL: gcc.target/powerpc/gcse-1.c scan-assembler-times @ha 1 The error happens on the 4.3/4.4 branches and 4.5 trunk: http://gcc.gnu.org/ml/gcc-testresults/201

[Bug fortran/43492] f951: internal compiler error: in gfc_add_component_ref, at fortran/expr.c:352

2010-03-23 Thread sfilippone at uniroma2 dot it
--- Comment #2 from sfilippone at uniroma2 dot it 2010-03-23 18:01 --- Forgot to highlight that this only applies to fortran-dev branch, with a fresh 4.5 build it compiles cleanly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43492

[Bug debug/43479] Missing DW_TAG_lexical_block+DW_TAG_variable

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-03-23 17:54 --- It is update_equiv_regs that does this. Will look into it tomorrow. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/43495] New: [4.5 regression] gcc.c-torture/execute/20000603-1.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on ia64-unknown-linux-gnu with extra passes containing -fpic/-fPIC I get the following additional error on the 4.5 trunk: FAIL: gcc.c-torture/execute/2603-1.c execution, -O2 FAIL: gcc.c-torture/execute/2603-1.c execution, -O3 -fomit-frame-pointer FAIL: gcc.c-to

[Bug target/43493] exception ignores catch-clause when std::ostringstream helps in throwing

2010-03-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-03-23 17:37 --- Most likely related to PR 43277. I want to say Darwin10's unwinder is broken ... -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/43494] gcc.c-torture/execute/vector-2.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
--- Comment #1 from ghazi at gcc dot gnu dot org 2010-03-23 17:36 --- 4.4.4 ia64 results with error: http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01631.html 4.5.0 ia64 results with error: http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01997.html -- ghazi at gcc dot gnu dot org

[Bug rtl-optimization/43413] Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used

2010-03-23 Thread law at redhat dot com
--- Comment #9 from law at redhat dot com 2010-03-23 17:36 --- Subject: Re: Powerpc generates worse code for -mvsx on gromacs even though there are no VSX instructions used On 03/22/10 16:20, vmakarov at redhat dot com wrote: > --- Comment #6 from vmakarov at redhat dot com 2010-

[Bug c/43494] New: gcc.c-torture/execute/vector-2.c fails with -fpic/-fPIC

2010-03-23 Thread ghazi at gcc dot gnu dot org
When running the testsuite on ia64-unknown-linux-gnu with extra passes containing -fpic/-fPIC I get the following additional error on the 4.4 branch: FAIL: gcc.c-torture/execute/vector-2.c execution, -O2 FAIL: gcc.c-torture/execute/vector-2.c execution, -Os on 4.5 trunk I get: FAIL: gcc.c-tort

[Bug c++/43493] New: exception ignores catch-clause when std::ostringstream helps in throwing

2010-03-23 Thread gcc at cohi dot at
See following code snippet; when the MY_THROW macro is changed to do { throw ::my_error( MeSSaGe ); } while( 1 ) then I get the expected result, i.e. invocation of the executable prints "error foo" and returns 1 to the shell... This is on an i7 iMac with Mac OS X 10.6.2 with 64bit Kernel and curr

[Bug debug/43479] Missing DW_TAG_lexical_block+DW_TAG_variable

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-03-23 17:24 --- Created an attachment (id=20173) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20173&action=view) gcc45-pr43479-test.patch This testcase is fixed on x86_64-linux by the PR19192 proposed patch (second or third).

[Bug fortran/43492] f951: internal compiler error: in gfc_add_component_ref, at fortran/expr.c:352

2010-03-23 Thread sfilippone at uniroma2 dot it
--- Comment #1 from sfilippone at uniroma2 dot it 2010-03-23 17:10 --- Created an attachment (id=20172) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20172&action=view) test case If I switch the comments on lines 27-28 the code compiles, i.e. it is the GENERIC interface that is no

[Bug fortran/43492] New: f951: internal compiler error: in gfc_add_component_ref, at fortran/expr.c:352

2010-03-23 Thread sfilippone at uniroma2 dot it
Hi, The attached code produces the subject error. [sfili...@donald bug14]$ gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/local/gnudev/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../fortran-dev/configure

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread matz at gcc dot gnu dot org
--- Comment #18 from matz at gcc dot gnu dot org 2010-03-23 16:46 --- It should mostly not matter anymore as expand_expr_real_[12] and friends use an explicit location parameter, stored away before expanding operands. But to be safe, yes, expand_expr_real() should instead also restore th

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #17 from jakub at gcc dot gnu dot org 2010-03-23 16:37 --- Created an attachment (id=20171) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20171&action=view) gcc45-pr19192.patch Patch that does that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19192

[Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed

2010-03-23 Thread aflyhorse at foxmail dot com
--- Comment #3 from aflyhorse at foxmail dot com 2010-03-23 16:30 --- (In reply to comment #2) > We need a testcase to reproduce the bug (preprocessed source). You also > might want to try removing -mcmodel=large (you really shouldn't need that). I've tryed to remove all newly added op

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #16 from jakub at gcc dot gnu dot org 2010-03-23 16:19 --- Actually it is not, it restores neither curr_insn_block or curr_insn_source_location. Perhaps the fix would be to fix that function though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19192

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #15 from jakub at gcc dot gnu dot org 2010-03-23 16:17 --- Created an attachment (id=20170) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20170&action=view) gcc45-pr19192.patch Updated patch that also fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43479#c1 testcase.

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread matz at gcc dot gnu dot org
--- Comment #14 from matz at gcc dot gnu dot org 2010-03-23 16:16 --- Simply replace the recursive call to expand_expr_real_1 with a call to expand_expr_real. That's the wrapper setting locations. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19192

[Bug debug/42959] g++ does not emit DW_AT_default_value

2010-03-23 Thread tromey at gcc dot gnu dot org
--- Comment #7 from tromey at gcc dot gnu dot org 2010-03-23 16:11 --- In the case where the default value is an expression, would it be possible to just emit the expression as a string? I believe that would be sufficient for gdb's purposes. -- http://gcc.gnu.org/bugzilla/show_bug.c

[Bug target/43484] [4.5 Regression] GCC 4.5 does not build gamess, zeusmp on powerpc -m32 with loop unrolling

2010-03-23 Thread meissner at gcc dot gnu dot org
--- Comment #7 from meissner at gcc dot gnu dot org 2010-03-23 16:10 --- I forgot Peter was on vacation. I'll take it. -- meissner at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #13 from jakub at gcc dot gnu dot org 2010-03-23 15:56 --- Created an attachment (id=20169) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20169&action=view) gcc45-pr19192.patch Untested fix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19192

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread jakub at gcc dot gnu dot org
--- Comment #12 from jakub at gcc dot gnu dot org 2010-03-23 15:22 --- Thus we are talking about: extern int printf (const char *, ...); __attribute__((noinline)) int add2 (int a, int b) { return a + b; } static inline int add3 (int a, int b, int c) { return a + add2 (b, c); } int

[Bug preprocessor/7263] __extension__ keyword doesn't suppress warning on LL or ULL constants

2010-03-23 Thread tromey at gcc dot gnu dot org
--- Comment #21 from tromey at gcc dot gnu dot org 2010-03-23 15:19 --- > What is missing from this patch? Is it only the macro location tracked or the > parameter expanded within the macro? The biggest problem with the patch is that I didn't finish debugging it. It causes regressions

[Bug target/43484] [4.5 Regression] GCC 4.5 does not build gamess, zeusmp on powerpc -m32 with loop unrolling

2010-03-23 Thread meissner at gcc dot gnu dot org
--- Comment #6 from meissner at gcc dot gnu dot org 2010-03-23 15:10 --- The rs6000 change on 2010-03-17 is the culprit. If I do a svn update for the sandbox, and then do: $ svn update -r157529 gcc/config/rs6000 There is no error. -- meissner at gcc dot gnu dot org changed:

[Bug rtl-optimization/43473] hword size destination variable induces suboptimal code generation compared to full word size var

2010-03-23 Thread mirq-gccboogs at rere dot qmqm dot pl
--- Comment #2 from mirq-gccboogs at rere dot qmqm dot pl 2010-03-23 14:37 --- Sorry, I try to split encountered problems into simple testcases and after a few I forgot to add the common things to bugreports. The difference between ma() and mb() in the example is a global's size: ma()

[Bug rtl-optimization/43491] New: Unnecessary temporary for global register variable

2010-03-23 Thread mirq-gccboogs at rere dot qmqm dot pl
gcc sometimes allocates a temporary register for a variable that is global and has a fixed register. This happens when: a. the global is a register-fixed variable b. global is a pointer to structure c. an address of structure's field is passed as argument to inlined function d. the global is ma

[Bug target/43469] [4.5 Regression] ICE trying to compile glibc for ARM thumb2

2010-03-23 Thread tschwinge at gcc dot gnu dot org
--- Comment #5 from tschwinge at gcc dot gnu dot org 2010-03-23 14:14 --- Also got hit by this. -- tschwinge at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/43471] Unnecessary reload of asm "m" operand address

2010-03-23 Thread mirq-gccboogs at rere dot qmqm dot pl
--- Comment #5 from mirq-gccboogs at rere dot qmqm dot pl 2010-03-23 14:04 --- The problem is that gcc sometimes emits instructions that are copying the global r4 (even when it's marked as const) into temporary. Originally I thought that the simplies case was this asm statememt, but it

[Bug target/43484] [4.5 Regression] GCC 4.5 does not build gamess, zeusmp on powerpc -m32 with loop unrolling

2010-03-23 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Component|rtl-optimization|target Priority|P3 |P1 http://gc

[Bug target/43469] [4.5 Regression] ICE trying to compile glibc for ARM thumb2

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-03-23 13:41 --- Not exactly a primary or secondary target. CCing maintainer. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/43385] [4.5 Regression] glibc regex testsuite failures

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-23 13:39 --- David? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43385

[Bug target/43358] [4.5 Regression] IRA: internal compiler error: in pool_free, at alloc-pool.c:335

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-03-23 13:39 --- CCing mips maintainer -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/19192] [4.3/4.4/4.5 Regression] Current development gcc generates inaccurate line info for example code

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2010-03-23 13:37 --- Unassinging Andrew. Raising priority to P2. At -O2 we now optimize main () to main () { : # DEBUG a => 2 # DEBUG b => 3 # DEBUG c => 4 # DEBUG a => 3 # DEBUG b => 4 [t.c : 13:22] printf ([t.c : 13] &

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread simon dot fenney at imgtec dot com
--- Comment #8 from simon dot fenney at imgtec dot com 2010-03-23 13:37 --- (In reply to comment #6) > you can test two different implementations: > 1). '-O2 -m32 -fno-builtin' - force libm.so calls and test libc > implementation. > 2). '-O2 -m32' to test gcc compile-time evaluation.

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-03-23 13:28 --- This is a glibc problem. Confirmed by LD_PRELOADing a different libm which makes it work. Please report to glibc bugzilla instead. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug target/40722] [4.5 Regression] ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls

2010-03-23 Thread hjl at gcc dot gnu dot org
--- Comment #9 from hjl at gcc dot gnu dot org 2010-03-23 13:24 --- Subject: Bug 40722 Author: hjl Date: Tue Mar 23 13:24:37 2010 New Revision: 157665 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157665 Log: Fix stdlib.h for mingw. 2010-03-23 H.J. Lu PR target/407

[Bug rtl-optimization/43473] hword size destination variable induces suboptimal code generation compared to full word size var

2010-03-23 Thread rearnsha at gcc dot gnu dot org
--- Comment #1 from rearnsha at gcc dot gnu dot org 2010-03-23 13:21 --- You haven't explained what you think is wrong, and you haven't even said what options you used to generated the code. If the optimizer is not on the generated code *will* be very poor. That's why we have an optim

[Bug rtl-optimization/43471] Unnecessary reload of asm "m" operand address

2010-03-23 Thread rearnsha at gcc dot gnu dot org
--- Comment #4 from rearnsha at gcc dot gnu dot org 2010-03-23 13:18 --- This second example clearly has nothing to do with the stated bug report summary line (there's no "m" constraint anywhere in the test case), and you make no attempt to explain what you think is wrong. Please see t

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread pluto at agmk dot net
--- Comment #6 from pluto at agmk dot net 2010-03-23 13:17 --- (In reply to comment #3) > (In reply to comment #2) > > duplicate of PR43405. > Using maple and computing the result to 30 decimal places, I get > -.852200849767188801772705893753 > so it looks like there is

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x

2010-03-23 Thread simon dot fenney at imgtec dot com
--- Comment #5 from simon dot fenney at imgtec dot com 2010-03-23 13:10 --- (In reply to comment #4) > > BUT sin(x) becomes progressively more inaccurate with increasing magnitude > > of > > x, as with the above version (on x86). At a guess, it would seem like > > something > > has br

[Bug preprocessor/7263] __extension__ keyword doesn't suppress warning on LL or ULL constants

2010-03-23 Thread manu at gcc dot gnu dot org
--- Comment #20 from manu at gcc dot gnu dot org 2010-03-23 13:05 --- (In reply to comment #19) > > I wanted to record my unfinished patch to track macro expansion locations, > and this bug seemed like an appropriate place. What is missing from this patch? Is it only the macro location

  1   2   >