[Bug libfortran/34670] bounds checking for array intrinsics

2010-06-03 Thread tkoenig at gcc dot gnu dot org
--- Comment #18 from tkoenig at gcc dot gnu dot org 2010-06-04 06:51 --- Fixed (finally). Closing. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/34670] bounds checking for array intrinsics

2010-06-03 Thread tkoenig at gcc dot gnu dot org
--- Comment #17 from tkoenig at gcc dot gnu dot org 2010-06-04 06:50 --- Subject: Bug 34670 Author: tkoenig Date: Fri Jun 4 06:50:11 2010 New Revision: 160253 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160253 Log: 2010-06-04 Thomas Koenig PR libfortran/34670

[Bug target/44075] __builtin_eh_return miscompiled

2010-06-03 Thread amodra at gmail dot com
--- Comment #6 from amodra at gmail dot com 2010-06-04 04:59 --- fixed -- amodra at gmail dot com changed: What|Removed |Added Status|ASSIGNED

[Bug target/44075] __builtin_eh_return miscompiled

2010-06-03 Thread amodra at gcc dot gnu dot org
--- Comment #5 from amodra at gcc dot gnu dot org 2010-06-04 04:58 --- Subject: Bug 44075 Author: amodra Date: Fri Jun 4 04:58:05 2010 New Revision: 160248 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160248 Log: PR target/44075 * gcc/config/rs6000/rs6000.c (s

[Bug target/44075] __builtin_eh_return miscompiled

2010-06-03 Thread amodra at gcc dot gnu dot org
--- Comment #4 from amodra at gcc dot gnu dot org 2010-06-04 04:57 --- Subject: Bug 44075 Author: amodra Date: Fri Jun 4 04:57:21 2010 New Revision: 160247 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160247 Log: PR target/44075 * gcc/config/rs6000/rs6000.c (s

[Bug target/44075] __builtin_eh_return miscompiled

2010-06-03 Thread amodra at gcc dot gnu dot org
--- Comment #3 from amodra at gcc dot gnu dot org 2010-06-04 04:57 --- Subject: Bug 44075 Author: amodra Date: Fri Jun 4 04:56:54 2010 New Revision: 160246 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160246 Log: PR target/44075 * gcc/config/rs6000/rs6000.c (s

[Bug bootstrap/44379] [4.6 regression] Failed to bootstrap

2010-06-03 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2010-06-04 04:40 --- Fixed as of revision 160215. -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug c++/44294] [4.6 regression] FAIL: g++.dg/abi/bitfield12.C

2010-06-03 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2010-06-04 04:38 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|NEW

[Bug target/44266] stack frame lacks parameter save area

2010-06-03 Thread amodra at gmail dot com
--- Comment #6 from amodra at gmail dot com 2010-06-04 03:03 --- Fixed mainline. -- amodra at gmail dot com changed: What|Removed |Added Status|ASSIGNED

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #16 from Kyle dot D dot Moffett at boeing dot com 2010-06-04 02:17 --- Created an attachment (id=20832) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20832&action=view) Even tinier tc-lossings-floats.objdump -- Kyle dot D dot Moffett at boeing dot com changed:

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #15 from Kyle dot D dot Moffett at boeing dot com 2010-06-04 02:17 --- Created an attachment (id=20831) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20831&action=view) Even tinier tc-lossings-floats.c Spent a bit more time on the testcase and made it even smaller. T

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #14 from Kyle dot D dot Moffett at boeing dot com 2010-06-04 01:37 --- Created an attachment (id=20830) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20830&action=view) Updated tc-lossings-floats.objdump -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44364

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #13 from Kyle dot D dot Moffett at boeing dot com 2010-06-04 01:37 --- Created an attachment (id=20829) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20829&action=view) Updated tc-lossings-floats.c I sat down with GCC and vim for a couple hours narrowing down Sebastia

[Bug middle-end/21718] real.c rounding not perfect

2010-06-03 Thread exploringbinary at gmail dot com
--- Comment #9 from exploringbinary at gmail dot com 2010-06-04 01:31 --- I discovered two other examples of incorrect rounding in gcc: 1) 0.500166533453693773481063544750213623046875 2) 1.50011102230246251565404236316680908203125 These are both halfway cases.

[Bug tree-optimization/44258] [4.5/4.6 Regression] possible SRA wrong-code generation.

2010-06-03 Thread maksim at kde dot org
--- Comment #6 from maksim at kde dot org 2010-06-04 00:55 --- I can provide an .i file, but it would be on x86 (with 4.4.3). Is it likely to be of use? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44258

[Bug c++/44362] Bogus set-but-not-used warning

2010-06-03 Thread amylaar at gcc dot gnu dot org
--- Comment #6 from amylaar at gcc dot gnu dot org 2010-06-04 00:46 --- (In reply to comment #5) > Ok, let me open another PR. Would you suggest somebody to add in CC? Maybe we should have a meta-bug for all the issues with this warning flag. So that'd be at least this one, PR 44361, an

[Bug bootstrap/43170] gcc 4.5 20100218 bootstrap compare fails on os x 10.6

2010-06-03 Thread iains at gcc dot gnu dot org
--- Comment #73 from iains at gcc dot gnu dot org 2010-06-04 00:40 --- (In reply to comment #72) > Created an attachment (id=20822) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20822&action=view) [edit] > config patch for test > > config/tls.m4 - modified as per Jakub's suggesti

[Bug c++/44412] New: Another bogus set-but-not-used warning

2010-06-03 Thread paolo dot carlini at oracle dot com
This one causes tons of warnings in the libstdc++ testsuite (with -Wall in CXXFLAGS) and seems also bogus to me. struct ratio { static const int a = 3; }; const int ratio::a; int f() { ratio r; return r.a; } -- Summary: Another bogus set-but-not-used warning Produc

[Bug c++/44362] Bogus set-but-not-used warning

2010-06-03 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2010-06-04 00:28 --- Ok, let me open another PR. Would you suggest somebody to add in CC? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44362

[Bug c++/44362] Bogus set-but-not-used warning

2010-06-03 Thread amylaar at gcc dot gnu dot org
--- Comment #4 from amylaar at gcc dot gnu dot org 2010-06-04 00:25 --- (In reply to comment #3) > Is this also the same issue? Probably not, but it causes tons of warnings in > the libstdc++ testsuite (with -Wall in CXXFLAGS) and seems bogus to me. I don't see any connection (beyond th

[Bug c++/44362] Bogus set-but-not-used warning

2010-06-03 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-06-04 00:17 --- Is this also the same issue? Probably not, but it causes tons of warnings in the libstdc++ testsuite (with -Wall in CXXFLAGS) and seems bogus to me. struct ratio { static const int a = 3; }; const int ratio

[Bug middle-end/42505] [4.4/4.5/4.6 Regression] loop canonicalization causes a lot of unnecessary temporary variables

2010-06-03 Thread sandra at codesourcery dot com
--- Comment #4 from sandra at codesourcery dot com 2010-06-04 00:09 --- I've been looking at this problem today. Here's the stupid part coming out of ivopts: : # ivtmp.7_21 = PHI <0(2), ivtmp.7_20(4)> # ivtmp.10_22 = PHI count_25 = (int) ivtmp.10_22; if (count_25 != 0) got

[Bug libstdc++/44410] [4.6 Regression] Revision 160231 caused new libstdc++ test failures

2010-06-03 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-06-03 23:51 --- Fixed. -- paolo dot carlini at oracle dot com changed: What|Removed |Added Statu

[Bug libstdc++/44410] [4.6 Regression] Revision 160231 caused new libstdc++ test failures

2010-06-03 Thread paolo at gcc dot gnu dot org
--- Comment #2 from paolo at gcc dot gnu dot org 2010-06-03 23:50 --- Subject: Bug 44410 Author: paolo Date: Thu Jun 3 23:50:29 2010 New Revision: 160239 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160239 Log: 2010-06-03 Paolo Carlini PR libstdc++/44410 *

[Bug target/44132] [4.6 Regression] emutls is broken under a range of circumstances.

2010-06-03 Thread iains at gcc dot gnu dot org
--- Comment #38 from iains at gcc dot gnu dot org 2010-06-03 23:45 --- (In reply to comment #37) > (In reply to comment #35) > > Note the failures occur only with -m64, not with -m32. > > This may due to a misconfiguration of libjava similar to pr43170. I am > bootstrapping with the lat

[Bug libstdc++/44410] [4.6 Regression] Revision 160231 caused new libstdc++ test failures

2010-06-03 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-06-03 23:31 --- Actually, the testcases must be fixed, qualifying size_t with std::. I'll do that momentarily as obvious. -- paolo dot carlini at oracle dot com changed: What|Removed |Ad

[Bug c++/44409] explicit call of a defined copy constructor does not work

2010-06-03 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-06-03 23:27 --- see http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/ for more details of copy elision and why it is a good thing -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44409

[Bug c++/44409] explicit call of a defined copy constructor does not work

2010-06-03 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-06-03 23:23 --- Good luck with that. Your copy constructor doesn't copy the state of the source object. Complaints like this usually only come up in unrealistic examples created to test a compiler's behaviour. There are many, many si

[Bug libstdc++/44410] New: [4.6 Regression] Revision 160231 caused new libstdc++ test failures

2010-06-03 Thread hjl dot tools at gmail dot com
On Linux/ia32, revision 160231: http://gcc.gnu.org/ml/gcc-cvs/2010-06/msg00144.html caused: FAIL: g++.dg/eh/new1.C (test for excess errors) FAIL: g++.dg/init/new5.C (test for excess errors) FAIL: g++.old-deja/g++.jason/new.C (test for excess errors) FAIL: g++.old-deja/g++.law/operators27.C (test

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #12 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 23:18 --- (From update of attachment 20823) Scratch my test cases... "register asm(...)" doesn't work the way I thought it did... Sebastian's test case is the only one that I've found that works. -- Kyle dot D

[Bug c++/44409] explicit call of a defined copy constructor does not work

2010-06-03 Thread gcc at razorcam dot com
--- Comment #3 from gcc at razorcam dot com 2010-06-03 23:04 --- Thanks for your answers. From the above answers I understand that g++ respects the ISO c++ standard, and thus you can consider this is not a bug. But this is clearly an explicit call of the copy constructor, not an implicit

[Bug c++/44409] explicit call of a defined copy constructor does not work

2010-06-03 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-06-03 22:42 --- Yes, this is eligible for copy elision, see [class.copy] — when a temporary class object that has not been bound to a reference (12.2) would be copied/moved to a class object with the same cv-unqualified type, the copy/

[Bug c++/44409] explicit call of a defined copy constructor does not work

2010-06-03 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-03 22:37 --- I think this one case is where the copy constructor can be skipped. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44409

[Bug c++/44409] New: explicit call of a defined copy constructor does not work

2010-06-03 Thread gcc at razorcam dot com
the following command always outputs 1 instead of the expected 0 g++ bug_report.cpp && ./a.out ;echo $? g++ does not output anything during the compilation the output of g++ -v -save-temps follows the source file bug_report.cpp the preprocessed file bug_report.ii is at the end of this report struc

[Bug c/44407] int = int / unsigned int yields unexpected result

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-06-03 22:13 --- It does $ gcc-4.3 -S t.c -Wall -Wconversion t.c: In function ‘main’: t.c:13: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result t.c:13: warning: conversion to ‘int’ from ‘unsigned int

[Bug lto/44408] FAIL: gcc.dg/lto/20100603-2 c_lto_20100603-2_0.o-c_lto_20100603-2_0.o

2010-06-03 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-06-03 22:12 --- I got Executing on host: /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ c_lto_20100603-2_0.o -O0 -fwhopr -r -nostdlib -m32 -o gcc-dg-lto-20100603-2-01

[Bug libfortran/34670] bounds checking for array intrinsics

2010-06-03 Thread tkoenig at gcc dot gnu dot org
--- Comment #16 from tkoenig at gcc dot gnu dot org 2010-06-03 21:45 --- Looking at what is actually in there... > associated.c This doesn't have any bounds issues. > date_and_time.c I'll replace an assert with a runtime_error. > dtime.c No changes needed. > etime.c No changes n

[Bug c/44407] int = int / unsigned int yields unexpected result

2010-06-03 Thread okingsmith at nuvation dot com
--- Comment #2 from okingsmith at nuvation dot com 2010-06-03 21:38 --- I am confused why the compiler is not issuing a warning on the second division. Ir is sign converting the numerator to match the denominator (which makes sense at a certain level), and hence can produce unexpected r

[Bug c/44407] int = int / unsigned int yields unexpected result

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-06-03 21:22 --- There is nothing unexpected here. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/44403] vectorization does not maintain 'restrict' qualifier

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-06-03 21:12 --- Subject: Bug 44403 Author: rguenth Date: Thu Jun 3 21:12:38 2010 New Revision: 160235 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160235 Log: 2010-06-03 Richard Guenther PR tree-optimization/

[Bug tree-optimization/44403] vectorization does not maintain 'restrict' qualifier

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-06-03 21:12 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug target/44132] [4.6 Regression] emutls is broken under a range of circumstances.

2010-06-03 Thread dominiq at lps dot ens dot fr
--- Comment #37 from dominiq at lps dot ens dot fr 2010-06-03 20:57 --- (In reply to comment #35) > Note the failures occur only with -m64, not with -m32. This may due to a misconfiguration of libjava similar to pr43170. I am bootstrapping with the latest patch and I'll redo the testing

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #11 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 20:26 --- Created an attachment (id=20828) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20828&action=view) Multipart trivial testcase objdump result (Built with -O3) -- http://gcc.gnu.org/bugzilla/show_

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #10 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 20:26 --- Created an attachment (id=20827) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20827&action=view) Multipart trivial testcase objdump result (Built with -O0) -- http://gcc.gnu.org/bugzilla/show_

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #9 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 20:22 --- Created an attachment (id=20826) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20826&action=view) Multipart trivial testcase (For -O3) part 3 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44364

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #8 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 20:22 --- Created an attachment (id=20825) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20825&action=view) Multipart trivial testcase (For -O3) part 2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44364

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #7 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 20:22 --- Created an attachment (id=20824) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20824&action=view) Multipart trivial testcase (For -O3) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44364

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #6 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 20:21 --- Created an attachment (id=20823) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20823&action=view) Combined trivial testcase (For -O0) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44364

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread gcc at breakpoint dot cc
--- Comment #5 from gcc at breakpoint dot cc 2010-06-03 20:17 --- >So clearly the caller's assembly is wrong; it should be saving all 64-bits of >r9 (volatile gpr) first. Yes, that it what I've been pointing out. There is an optimization in the stack code which uses 32bit stores/loads i

[Bug lto/44408] New: FAIL: gcc.dg/lto/20100603-2 c_lto_20100603-2_0.o-c_lto_20100603-2_0.o

2010-06-03 Thread hjl dot tools at gmail dot com
On Linux/ia32, revision 160229 gave: FAIL: gcc.dg/lto/20100603-2 c_lto_20100603-2_0.o-c_lto_20100603-2_0.o link, -O0 -fwhopr (internal compiler error) FAIL: gcc.dg/lto/20100603-2 c_lto_20100603-2_0.o-c_lto_20100603-2_0.o link, -O2 -fwhopr (internal compiler error) FAIL: gcc.dg/lto/20100603-3

[Bug c/44407] New: int = int / unsigned int yields unexpected result

2010-06-03 Thread okingsmith at nuvation dot com
I have seen the following code produce an unexpected result on two different gcc compilers. I compile the following code #include int main() { int a, d1, r1, r2; unsigned int d2; a = -10; d1 = 2; d2 = 3; r1 = a / d1; r2 = a / d2;

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #4 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 20:09 --- Ok, I have a trivial 19-line testcase that triggers the bug on my native Debian GCC 4.4.4-2+powerpcspe1 (with PR44169 fix) with -O0 and -O3. The compiler was built with: --with-cpu=8548 --enable-e500_doub

[Bug bootstrap/43170] gcc 4.5 20100218 bootstrap compare fails on os x 10.6

2010-06-03 Thread iains at gcc dot gnu dot org
--- Comment #72 from iains at gcc dot gnu dot org 2010-06-03 20:06 --- Created an attachment (id=20822) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20822&action=view) config patch for test config/tls.m4 - modified as per Jakub's suggestion */configure regenerated as necessary.

[Bug tree-optimization/44403] vectorization does not maintain 'restrict' qualifier

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-06-03 19:39 --- Created an attachment (id=20821) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20821&action=view) patch Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Ad

[Bug target/44364] Wrong code with e500 double floating point

2010-06-03 Thread Kyle dot D dot Moffett at boeing dot com
--- Comment #3 from Kyle dot D dot Moffett at boeing dot com 2010-06-03 19:26 --- (In reply to comment #0) > So after looking at the code I saw now the following: > 1c24 <__floatdidf>: > 1c6c: 11 23 1a 2c evmergehi r9,r3,r3 > > This function is touching the complete 6

[Bug tree-optimization/44258] [4.5/4.6 Regression] possible SRA wrong-code generation.

2010-06-03 Thread torbenh at users dot sourceforge dot net
--- Comment #5 from torbenh at users dot sourceforge dot net 2010-06-03 19:15 --- (In reply to comment #4) > Unfortunately the preprocessed source from comment #1 seems to be > damaged, I get loads of errors like "error: stray '\336' in program." > Can you please re-upload it? Thanks.

[Bug c++/44406] wrong code generation with -ftree-sra

2010-06-03 Thread torbenh at users dot sourceforge dot net
--- Comment #2 from torbenh at users dot sourceforge dot net 2010-06-03 19:10 --- Created an attachment (id=20820) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20820&action=view) preprocessed signals_test.cc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44406

[Bug c++/44406] wrong code generation with -ftree-sra

2010-06-03 Thread torbenh at users dot sourceforge dot net
--- Comment #1 from torbenh at users dot sourceforge dot net 2010-06-03 19:08 --- Created an attachment (id=20819) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20819&action=view) code that crashes when compiled -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44406

[Bug c++/44406] New: wrong code generation with -ftree-sra

2010-06-03 Thread torbenh at users dot sourceforge dot net
attached code crashes, when compiled with -ftree-sra works fine with 4.4.2 its probably an incarnation of PR44258 -- Summary: wrong code generation with -ftree-sra Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal P

[Bug bootstrap/43170] gcc 4.5 20100218 bootstrap compare fails on os x 10.6

2010-06-03 Thread jakub at gcc dot gnu dot org
--- Comment #71 from jakub at gcc dot gnu dot org 2010-06-03 19:02 --- Yes. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43170

[Bug c++/44401] [4.5/4.6 regression] Doesn't correctly hide injected class name

2010-06-03 Thread jason at gcc dot gnu dot org
--- Comment #4 from jason at gcc dot gnu dot org 2010-06-03 18:55 --- The "naming the constructor" stuff is DR 147, but I agree that this testcase should be accepted since lookup doesn't find the injected-class-name. -- jason at gcc dot gnu dot org changed: What|Remov

[Bug lto/43467] LTO error "bytecode stream: trying to read 0 bytes after the end of the input buffer"

2010-06-03 Thread ccoutant at gcc dot gnu dot org
--- Comment #4 from ccoutant at gcc dot gnu dot org 2010-06-03 18:29 --- > Cary - why does lto-plugin get invoked when gold has errors? Gold doesn't stop on these kinds of errors -- it proceeds to the end of the link to try to diagnose as many errors as possible. I'm not sure why a mul

[Bug rtl-optimization/44404] auto-inc-dec generates an invalid assembly instruction

2010-06-03 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-06-03 18:25 --- (In reply to comment #2) > auto-inc-dec.c was introduced on Jul 2, 2006, and PR 20972 was filed > on April 12, 2005, so I'd think that PR 20972 is due to something > else. They do both involve the same assembler mes

[Bug bootstrap/43170] gcc 4.5 20100218 bootstrap compare fails on os x 10.6

2010-06-03 Thread dominiq at lps dot ens dot fr
--- Comment #70 from dominiq at lps dot ens dot fr 2010-06-03 18:23 --- (In reply to comment #68) > That makes sense, so all we need to do in config/tls.m4 is probably: > 1) move a_in_main_thread variable to file scope, and neither a_in_main_thread > nor a_in_other_thread should be stati

[Bug bootstrap/43170] gcc 4.5 20100218 bootstrap compare fails on os x 10.6

2010-06-03 Thread howarth at nitro dot med dot uc dot edu
--- Comment #69 from howarth at nitro dot med dot uc dot edu 2010-06-03 18:20 --- So the tls tests in the generated configure should be changed as follows? --- gcc-4.5.0/libgomp/configure.orig2010-06-03 13:05:23.0 -0400 +++ gcc-4.5.0/libgomp/configure 2010-06-03 13:41:14.00

[Bug rtl-optimization/44404] auto-inc-dec generates an invalid assembly instruction

2010-06-03 Thread kazu at gcc dot gnu dot org
--- Comment #2 from kazu at gcc dot gnu dot org 2010-06-03 18:18 --- Andrew, auto-inc-dec.c was introduced on Jul 2, 2006, and PR 20972 was filed on April 12, 2005, so I'd think that PR 20972 is due to something else. They do both involve the same assembler message though. -- http

[Bug bootstrap/44405] --enable-build-with-cxx bootstrap fails on i686-pc-linux-gnu (Fedora13)

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-03 18:01 --- *** This bug has been marked as a duplicate of 44362 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/44362] Bogus set-but-not-used warning

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-03 18:01 --- *** Bug 44405 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug bootstrap/44405] --enable-build-with-cxx bootstrap fails on i686-pc-linux-gnu (Fedora13)

2010-06-03 Thread amylaar at gcc dot gnu dot org
--- Comment #1 from amylaar at gcc dot gnu dot org 2010-06-03 17:59 --- I'm currently testing if the patch for PR 44361 helps for this failure too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44405

[Bug bootstrap/44405] New: --enable-build-with-cxx bootstrap fails on i686-pc-linux-gnu (Fedora13)

2010-06-03 Thread amylaar at gcc dot gnu dot org
I am trying to build mainline GCC (revision 160215) configured with -enable-build-with-cxx . I get the following error during bootstrap: /user/inria/fsf/bldxx-20100603/./prev-gcc/g++ -B/user/inria/fsf/bldxx-20100603/./prev-gcc/ -B/user/inria/cxx/i686-pc-linux-gnu/bin/ -nostdinc++ -I/user/inria

[Bug rtl-optimization/44404] auto-inc-dec generates an invalid assembly instruction

2010-06-03 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-03 17:27 --- Looks related to PR 20972. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44404

[Bug rtl-optimization/44404] New: auto-inc-dec generates an invalid assembly instruction

2010-06-03 Thread kazu at gcc dot gnu dot org
Consider: char buf[128]; extern void bar (int a, const char *p); extern char *strcpy (char *, const char *); void foo (int a) { if (a) bar (0, buf); strcpy (buf, "0123456789abcdefghijklmnopqrstuvwxyz"); bar (0, buf); } Compile this testcase with arm-none-linux-gnueabi-4.4. strcpy abo

[Bug c++/44401] Doesn't correctly hide injected class name

2010-06-03 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2010-06-03 17:00 --- Jason certainly followed these developments, I remember, let's CC him. -- paolo dot carlini at oracle dot com changed: What|Removed |Added ---

[Bug bootstrap/43170] gcc 4.5 20100218 bootstrap compare fails on os x 10.6

2010-06-03 Thread jakub at gcc dot gnu dot org
--- Comment #68 from jakub at gcc dot gnu dot org 2010-06-03 16:58 --- That makes sense, so all we need to do in config/tls.m4 is probably: 1) move a_in_main_thread variable to file scope, and neither a_in_main_thread nor a_in_other_thread should be static 2) move a_in_main_thread = &a;

[Bug c++/44401] Doesn't correctly hide injected class name

2010-06-03 Thread schaub-johannes at web dot de
--- Comment #2 from schaub-johannes at web dot de 2010-06-03 16:45 --- The Standard allows this at 9.2/13a ("In addition, if class T has a user-declared constructor (12.1), every nonstatic data member of class T shall have a name different from T."). In our case we don't have a user decl

[Bug c++/44366] [C++0x] g++ crashes when declaring a lambda expression using a typedef'd decltype.

2010-06-03 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-06-03 16:40 --- Let's CC Jason... -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/44294] [4.6 regression] FAIL: g++.dg/abi/bitfield12.C

2010-06-03 Thread hjl at gcc dot gnu dot org
--- Comment #5 from hjl at gcc dot gnu dot org 2010-06-03 16:36 --- Subject: Bug 44294 Author: hjl Date: Thu Jun 3 16:36:22 2010 New Revision: 160229 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160229 Log: Check MAX_FIXED_MODE_SIZE on bit-field in C++. gcc/ada/ 2010-06-03

[Bug bootstrap/43170] gcc 4.5 20100218 bootstrap compare fails on os x 10.6

2010-06-03 Thread iains at gcc dot gnu dot org
--- Comment #67 from iains at gcc dot gnu dot org 2010-06-03 16:12 --- I am puzzled by this apparent fail when the tests that depend on the variables being distinct are all passing. So, I think I've got a hunch; If the spawned thread finishes before pthread_create () returns, then the

[Bug c++/41921] Cross language don't work with typedef unnamed structs

2010-06-03 Thread rguenth at gcc dot gnu dot org
to/41921 * lib/lto.exp: Always load gcc.exp. (lto-obj): For C source files invoke gcc_target_compile. * g++.dg/lto/20100603-1_0.C: New testcase. * g++.dg/lto/20100603-1_1.c: Likewise. Modified: trunk/gcc/testsuite/lib/lto.exp -- http://gcc.gnu.org/bugzilla/show_bu

[Bug target/44132] [4.6 Regression] emutls is broken under a range of circumstances.

2010-06-03 Thread iains at gcc dot gnu dot org
--- Comment #36 from iains at gcc dot gnu dot org 2010-06-03 16:08 --- (In reply to comment #35) > Extracted from x86_64-apple-darwin10.3.0/libjava/testsuite/libjava.log: > > ... > set_ld_library_path_env_vars: > ld_library_path=.:/opt/gcc/build_w/x86_64-apple-darwin10.3.0/./libjava/.li

[Bug c++/41921] Cross language don't work with typedef unnamed structs

2010-06-03 Thread rguenth at gcc dot gnu dot org
to/41921 * lib/lto.exp: Always load gcc.exp. (lto-obj): For C source files invoke gcc_target_compile. * g++.dg/lto/20100603-1_0.C: New testcase. * g++.dg/lto/20100603-1_1.c: Likewise. Added: trunk/gcc/testsuite/g++.dg/lto/20100603-1_0.C trunk/gcc/testsuite/g+

[Bug tree-optimization/44403] vectorization does not maintain 'restrict' qualifier

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-03 16:03 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug tree-optimization/44403] vectorization does not maintain 'restrict' qualifier

2010-06-03 Thread roy dot 1rosen at gmail dot com
--- Comment #1 from roy dot 1rosen at gmail dot com 2010-06-03 15:49 --- Created an attachment (id=20818) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20818&action=view) preprocessed file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44403

[Bug tree-optimization/44403] New: vectorization does not maintain 'restrict' qualifier

2010-06-03 Thread roy dot 1rosen at gmail dot com
For the following function: void xxx(short* __restrict__ a, short* __restrict__ b) { int i; for (i = 0; i < 8; i++) { a[i] = b[i]; } } the following is generated in the .optimized file: xxx (short int * restrict a, short int * restrict b) { vector(2) short int * vect_p.27;

[Bug c++/44401] Doesn't correctly hide injected class name

2010-06-03 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-03 15:32 --- There was a defect report in the C++ standard about X::X; I cannot remember what happens with a member variable being named the same as the class name though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44401

[Bug lto/43467] LTO error "bytecode stream: trying to read 0 bytes after the end of the input buffer"

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-06-03 15:31 --- Cary - why does lto-plugin get invoked when gold has errors? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/43372] lto ICE in strip_extension with linker plugin

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-03 15:28 --- Fixed for 4.6. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|N

[Bug lto/43208] lto1: error: invalid conversion in return statement

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-06-03 15:26 --- Reconfirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Last reconfirmed|201

[Bug lto/43157] Segmentation fault in aggregate_value_p, asm aliases do not work

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-06-03 15:24 --- Re-confirmed on trunk. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44132] [4.6 Regression] emutls is broken under a range of circumstances.

2010-06-03 Thread dominiq at lps dot ens dot fr
--- Comment #35 from dominiq at lps dot ens dot fr 2010-06-03 15:21 --- Extracted from x86_64-apple-darwin10.3.0/libjava/testsuite/libjava.log: ... set_ld_library_path_env_vars: ld_library_path=.:/opt/gcc/build_w/x86_64-apple-darwin10.3.0/./libjava/.libs invoke: /opt/gcc/build_w/x86_64-

[Bug lto/43038] DECL_PRESERVE_P static globals not completely preserved with -flto

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-06-03 15:14 --- Ah, it does not work because we mangle foobar to foobar.1234, not because we eliminate it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43038

[Bug lto/43038] DECL_PRESERVE_P static globals not completely preserved with -flto

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-06-03 15:13 --- Re-confirmed on trunk. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Last recon

[Bug lto/42675] lto1 rejects -fdump-core option of gfortran

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-06-03 15:08 --- Similar to PR41844. *** This bug has been marked as a duplicate of 41844 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug driver/41844] lto1: warning: unknown register name: line-length-none

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-06-03 15:08 --- *** Bug 42675 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug lto/42453] Assertion `syms' failed in lto-plugin

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-06-03 15:07 --- The assert has been removed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/44402] New: GCC does not accept friend function declarations using a typedef for function type.

2010-06-03 Thread schaub-johannes at web dot de
This code is valid, but rejected by GCC: struct A { void f(); }; typedef void F(); struct B { friend F A::f; }; // error: type 'A' is not derived from type 'B' -- Summary: GCC does not accept friend function declarations using a typedef for function type.

[Bug c++/41921] Cross language don't work with typedef unnamed structs

2010-06-03 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2010-06-03 15:03 --- This is fixed. I have a testcase + testsuite patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44132] [4.6 Regression] emutls is broken under a range of circumstances.

2010-06-03 Thread iains at gcc dot gnu dot org
--- Comment #34 from iains at gcc dot gnu dot org 2010-06-03 15:03 --- (In reply to comment #33) > On x86_64-apple-darwin10.3.0 the patch in comment #26 applied on top of > r160219 > cause > > === libjava Summary for unix/-m64 === > > # of expected passes2

[Bug c++/44401] New: GCC does not correctly hide injected class name

2010-06-03 Thread schaub-johannes at web dot de
This code is valid, but GCC rejects it: struct X { int X; }; int X::*p = &X::X; // error: taking address of constructor 'X::X' GCC apparently seems to think that X::X looks up to the injected class name, and thus (by 3.4.3.1/1a) would name the constructor. But the name of the non-static data mem

[Bug tree-optimization/43688] ICE: in analyze_function, at ipa-reference.c:733 with -fipa-reference

2010-06-03 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2010-06-03 14:55 --- Fixed by revision 159343: http://gcc.gnu.org/ml/gcc-cvs/2010-05/msg00395.html -- hjl dot tools at gmail dot com changed: What|Removed |Added --

  1   2   >