[Bug middle-end/41429] gomp tests timeout with -fpic

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2009-09-22 06:47 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/41429] gomp tests timeout with -fpic

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-09-22 06:42 --- Subject: Bug 41429 Author: jakub Date: Tue Sep 22 06:42:26 2009 New Revision: 151966 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151966 Log: PR middle-end/41429 * tree-cfg.c (remove_useless_

[Bug bootstrap/41432] [4.5 Regression] Gcc is getting slower and slower

2009-09-21 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2009-09-22 03:08 --- My Linux/ia32 machine may be dying. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41432

[Bug middle-end/41260] [4.5 Regression] major regressions on *-apple-darwin10 at -m64 caused by r147995

2009-09-21 Thread pogma at gcc dot gnu dot org
--- Comment #42 from pogma at gcc dot gnu dot org 2009-09-22 02:28 --- Subject: Bug 41260 Author: pogma Date: Tue Sep 22 02:28:19 2009 New Revision: 151960 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151960 Log: PR middle-end/41260 * gcc/config.gcc: Use darwin9.h and darwin10

[Bug middle-end/41357] libgomp build fail

2009-09-21 Thread davek at gcc dot gnu dot org
--- Comment #29 from davek at gcc dot gnu dot org 2009-09-22 01:34 --- Subject: Bug 41357 Author: davek Date: Tue Sep 22 01:33:53 2009 New Revision: 151959 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151959 Log: PR middle-end/41357 * varasm.c (default_encode_s

[Bug bootstrap/41404] expr.c undefined reference while linking jc1

2009-09-21 Thread davek at gcc dot gnu dot org
--- Comment #23 from davek at gcc dot gnu dot org 2009-09-22 01:17 --- Subject: Bug 41404 Author: davek Date: Tue Sep 22 01:17:24 2009 New Revision: 151958 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151958 Log: PR bootstrap/41404 * dwarf2out.c (mem_loc_descri

[Bug bootstrap/41432] [4.5 Regression] Gcc is getting slower and slower

2009-09-21 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2009-09-21 23:15 --- Gcc is configured with --enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld Linux/x86-64 seems OK. Use --enable-clocale=gnu --with-system-zlib --enable-checking=assert --with-demangler-in

[Bug bootstrap/41432] New: [4.5 Regression] Gcc is getting slower and slower

2009-09-21 Thread hjl dot tools at gmail dot com
On Linux/ia32, gcc becomes slower and slower. Here are the bootstrap timings: r151702: 12788.41user 452.16system 2:01:15elapsed 181%CPU r151707: 13228.29user 458.77system 2:05:31elapsed 181%CPU r151710: 13890.39user 478.57system 2:11:31elapsed 182%CPU r151716: 14319.75user 494.71system 2:14:51elap

[Bug c++/41431] New: &main should be allowed within unevaluated operands.

2009-09-21 Thread schaub-johannes at web dot de
The following code snippet is wrongly rejected int main() { sizeof(&main); } --- main.cpp: In function 'int main()': main.cpp:1: warning: ISO C++ forbids taking address of function '::main' --- But the Standard allows that within a sizeof, because according to 3.2/2 it does not constitute a "use

[Bug fortran/33439] OpenMP: Incorrect error message for chunksize variable

2009-09-21 Thread longb at cray dot com
--- Comment #9 from longb at cray dot com 2009-09-21 21:31 --- The OpenMP spec does require (requirement is on the user): "chunk_size must be a loop invariant integer expression with a positive value", so detection of a chunk size of -7 at run time would be a user-friendly thing to do.

[Bug libgomp/41418] Can't build libgomp without --enable-languages=fortran

2009-09-21 Thread rwild at gcc dot gnu dot org
--- Comment #10 from rwild at gcc dot gnu dot org 2009-09-21 20:15 --- Created an attachment (id=18629) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18629&action=view) proposed patch Please try out this patch. The problem is, libtool turns off language compiler detection reliabl

[Bug bootstrap/41395] [4.5 regression] Revision 151800 failed bootstrap

2009-09-21 Thread hjl dot tools at gmail dot com
--- Comment #25 from hjl dot tools at gmail dot com 2009-09-21 19:53 --- (In reply to comment #24) > OK, so I have finally got to the root of the assert failure in > reg-stack.c described in the bug description. The file is indeed > miscompiled, and the miscompiled function is VEC_cha

[Bug bootstrap/41395] [4.5 regression] Revision 151800 failed bootstrap

2009-09-21 Thread jamborm at gcc dot gnu dot org
--- Comment #24 from jamborm at gcc dot gnu dot org 2009-09-21 19:49 --- OK, so I have finally got to the root of the assert failure in reg-stack.c described in the bug description. The file is indeed miscompiled, and the miscompiled function is VEC_char_base_replace. A very short one

[Bug middle-end/41411] [4.5 Regression] ICE: mem_loc_descriptor, at dwarf2out.c:11616

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2009-09-21 18:59 --- I think it is safe to ignore it, as you've done. It is target specific which bits are masked away and how. It is enough that for LO_SUM we look up the SYMBOL_REF referenced by the second operand. -- http://gcc.gn

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread developer at sandoe-acoustics dot co dot uk
--- Comment #31 from developer at sandoe-acoustics dot co dot uk 2009-09-21 18:50 --- OK. this is what I've done (a) bootstrapped with Jakub's path but modified thus >> Common Report Var(dwarf_strict) Init(1) - bootstrap succeeds (with the four errors mentioned in #26). (b) I then ha

[Bug middle-end/41411] [4.5 Regression] ICE: mem_loc_descriptor, at dwarf2out.c:11616

2009-09-21 Thread joel at gcc dot gnu dot org
--- Comment #4 from joel at gcc dot gnu dot org 2009-09-21 18:45 --- The patch allowed my build of sparc-rtems4.10 C/C++ to complete. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41411

[Bug debug/41353] VTA missed-debug issues

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #11 from jakub at gcc dot gnu dot org 2009-09-21 18:32 --- The #c10 problem is that df marks pseudo 60 used last in j += i; (and then just in 2 DEBUG_INSNs following it) as REG_DEAD in that instruction and drops the DEBUG_INSN uses below it on the floor. -- http://gcc.gn

[Bug fortran/41219] libgfortran build warnings

2009-09-21 Thread nightstrike at gmail dot com
--- Comment #20 from nightstrike at gmail dot com 2009-09-21 18:12 --- (In reply to comment #19) > (In reply to comment #18) > > (In reply to comment #17) > > > > ../../../../../build/gcc/gcc/libgfortran/intrinsics/iso_c_binding.c:98:24: > > > > warning: 'str' may be used uninitialized i

[Bug middle-end/41429] gomp tests timeout with -fpic

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-09-21 18:06 --- Created an attachment (id=18628) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18628&action=view) gcc45-pr41429.patch Patch I'm going to bootstrap/regtest. -- jakub at gcc dot gnu dot org changed:

[Bug fortran/41219] libgfortran build warnings

2009-09-21 Thread kargl at gcc dot gnu dot org
--- Comment #19 from kargl at gcc dot gnu dot org 2009-09-21 18:01 --- (In reply to comment #18) > (In reply to comment #17) > > > ../../../../../build/gcc/gcc/libgfortran/intrinsics/iso_c_binding.c:98:24: > > > warning: 'str' may be used uninitialized in this function > > > > I think t

[Bug libgomp/41418] Can't build libgomp without --enable-languages=fortran

2009-09-21 Thread davek at gcc dot gnu dot org
--- Comment #9 from davek at gcc dot gnu dot org 2009-09-21 17:57 --- Created an attachment (id=18627) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18627&action=view) bad config log -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41418

[Bug libgomp/41418] Can't build libgomp without --enable-languages=fortran

2009-09-21 Thread davek at gcc dot gnu dot org
--- Comment #8 from davek at gcc dot gnu dot org 2009-09-21 17:57 --- Created an attachment (id=18626) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18626&action=view) good config log -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41418

[Bug libgomp/41418] Can't build libgomp without --enable-languages=fortran

2009-09-21 Thread Ralf dot Wildenhues at gmx dot de
--- Comment #7 from Ralf dot Wildenhues at gmx dot de 2009-09-21 17:51 --- Subject: Re: Can't build libgomp without --enable-languages=fortran * davek at gcc dot gnu dot org wrote on Mon, Sep 21, 2009 at 07:44:49PM CEST: > Created an attachment (id=18625) --> (http://gcc.gnu.org/bug

[Bug libgomp/41418] Can't build libgomp without --enable-languages=fortran

2009-09-21 Thread davek at gcc dot gnu dot org
--- Comment #6 from davek at gcc dot gnu dot org 2009-09-21 17:44 --- Created an attachment (id=18625) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18625&action=view) bad rebuild log -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41418

[Bug libgomp/41418] Can't build libgomp without --enable-languages=fortran

2009-09-21 Thread davek at gcc dot gnu dot org
--- Comment #5 from davek at gcc dot gnu dot org 2009-09-21 17:44 --- Created an attachment (id=18624) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18624&action=view) good rebuild log -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41418

[Bug c/41206] Segmentation fault from two "#pragma GCC optimize" lines

2009-09-21 Thread ktietz at gcc dot gnu dot org
--- Comment #4 from ktietz at gcc dot gnu dot org 2009-09-21 17:36 --- By using this code and compiling with gcc test.c -O2 I can reproduce this for i686-pc-linux, x86_64-pc-linux, x86_64-pc-mingw32, and for i686-pc-mingw32. -- ktietz at gcc dot gnu dot org changed: What

[Bug fortran/41219] libgfortran build warnings

2009-09-21 Thread nightstrike at gmail dot com
--- Comment #18 from nightstrike at gmail dot com 2009-09-21 17:36 --- (In reply to comment #17) > > ../../../../../build/gcc/gcc/libgfortran/intrinsics/iso_c_binding.c:98:24: > > warning: 'str' may be used uninitialized in this function > > I think this warning is bogus: > index_

[Bug middle-end/39227] ICE with -fstack-protector in add_stack_var_conflict, at cfgexpand.c:269

2009-09-21 Thread ubizjak at gmail dot com
--- Comment #3 from ubizjak at gmail dot com 2009-09-21 17:34 --- The testcase compiles OK with 4.3.5, 4.4.2 and 4.5.0. -- ubizjak at gmail dot com changed: What|Removed |Added ---

[Bug bootstrap/40972] libtool fails to detect pe-x86-64 import library

2009-09-21 Thread ktietz at gcc dot gnu dot org
-- ktietz at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfir

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #30 from jakub at gcc dot gnu dot org 2009-09-21 17:25 --- Yes, we know for certain binutils are fine. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41405

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread howarth at nitro dot med dot uc dot edu
--- Comment #29 from howarth at nitro dot med dot uc dot edu 2009-09-21 17:07 --- Do we even know for certain that older versions of bintuils really work properly with the newer dwarf3/dwarf4? I wonder how much of the general instability in the recent bootstraps might be related these t

[Bug fortran/41219] libgfortran build warnings

2009-09-21 Thread burnus at gcc dot gnu dot org
--- Comment #17 from burnus at gcc dot gnu dot org 2009-09-21 17:01 --- > ../../../../../build/gcc/gcc/libgfortran/intrinsics/iso_c_binding.c:98:24: > warning: 'str' may be used uninitialized in this function I think this warning is bogus: index_type size, str; for (i = 0; i

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread developer at sandoe-acoustics dot co dot uk
--- Comment #28 from developer at sandoe-acoustics dot co dot uk 2009-09-21 16:46 --- (In reply to comment #27) > I believe I've caught all DW_OP_{implicit,stack}_value uses in dwarf2out.c, so > likely -gstrict-dwarf wasn't used when compiling something that has been > linked > into th

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread Woebbeking at web dot de
--- Comment #9 from Woebbeking at web dot de 2009-09-21 16:46 --- So it's ok to change the behavior in a minor release? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425

[Bug other/37210] Prohibit Default Builds in the GCC Source Tree

2009-09-21 Thread rwild at gcc dot gnu dot org
--- Comment #4 from rwild at gcc dot gnu dot org 2009-09-21 16:44 --- With PR 35619 fixed in trunk it works fine for me to build in the source tree. Feel free to Cc: me on new bugs arising from an in-tree build. (Leaving bug open as it addresses 4.4 not trunk.) -- http://gcc.gnu.org

[Bug fortran/41219] libgfortran build warnings

2009-09-21 Thread nightstrike at gmail dot com
--- Comment #16 from nightstrike at gmail dot com 2009-09-21 16:33 --- (In reply to comment #14) > Subject: Bug 41219 > > Author: jvdelisle > Date: Sat Sep 12 15:08:27 2009 > New Revision: 151653 As of r151914, this warning still exists when the host=linux64 and the target=win64. --

[Bug fortran/41219] libgfortran build warnings

2009-09-21 Thread nightstrike at gmail dot com
--- Comment #15 from nightstrike at gmail dot com 2009-09-21 16:30 --- Current list: ../../../../../build/gcc/gcc/libgfortran/io/list_read.c:1847:10: warning: variable 'elem' might be clobbered by 'longjmp' or 'vfork' ../../../../../build/gcc/gcc/libgfortran/io/list_read.c:1849:10: warn

[Bug c++/41421] [C++0x] Trivial types should require trivial default constructor.

2009-09-21 Thread jason at gcc dot gnu dot org
--- Comment #3 from jason at gcc dot gnu dot org 2009-09-21 16:30 --- Fixed, thanks. -- jason at gcc dot gnu dot org changed: What|Removed |Added Status|UNCON

[Bug c/41049] conversion from integer to decimal float loses trailing zeros

2009-09-21 Thread janis at gcc dot gnu dot org
--- Comment #3 from janis at gcc dot gnu dot org 2009-09-21 16:22 --- Subject: Bug 41049 Author: janis Date: Mon Sep 21 16:22:43 2009 New Revision: 151934 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151934 Log: PR c/41049 * real.c decimal_from_integer, decimal

[Bug c++/41421] [C++0x] Trivial types should require trivial default constructor.

2009-09-21 Thread jason at gcc dot gnu dot org
--- Comment #2 from jason at gcc dot gnu dot org 2009-09-21 16:11 --- Subject: Bug 41421 Author: jason Date: Mon Sep 21 16:11:26 2009 New Revision: 151932 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151932 Log: PR c++/41421 * tree.c (trivial_type_p): Fix logic

[Bug objc++/41430] [4.5 Regression] exception handling testsuite failures in objc++

2009-09-21 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-09-21 15:59 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCON

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #27 from jakub at gcc dot gnu dot org 2009-09-21 15:37 --- I believe I've caught all DW_OP_{implicit,stack}_value uses in dwarf2out.c, so likely -gstrict-dwarf wasn't used when compiling something that has been linked into those libraries. No idea if Mach-O has any tools simi

[Bug objc++/41430] New: [4.5 Regression] exception handling testsuite failures in objc++

2009-09-21 Thread ghazi at gcc dot gnu dot org
Somewhere between mainline revisions 151661 and 151676 I started getting new testsuite failures from objc++ as shown here: Clean: http://gcc.gnu.org/ml/gcc-testresults/2009-09/msg01158.html FAIL: http://gcc.gnu.org/ml/gcc-testresults/2009-09/msg01244.html The new failures are: FAIL: obj-c++.dg/e

[Bug middle-end/41429] gomp tests timeout with -fpic

2009-09-21 Thread ghazi at gcc dot gnu dot org
--- Comment #1 from ghazi at gcc dot gnu dot org 2009-09-21 15:04 --- To reproduce, target x86_64-unknown-linux-gnu and compile g++.dg/gomp/pr37189.C with: cc1plus -quiet -v pr37189.C -dumpbase pr37189.C -mtune=generic -auxbase pr37189 -version -fopenmp -fpic -o pr37189.s --

[Bug middle-end/41429] New: gomp tests timeout with -fpic

2009-09-21 Thread ghazi at gcc dot gnu dot org
Somewhere between mainline revision 151676 and 151704 I started getting several gomp failures which manifest as timeouts in the testsuite when using -fpic/-fPIC. Here are the differing testsuite results: Clean: http://gcc.gnu.org/ml/gcc-testresults/2009-09/msg01244.html FAIL: http://gcc.gnu.org/ml

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2009-09-21 14:45 --- Agreed, unspecified, as the actual citation says. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread schwab at linux-m68k dot org
--- Comment #7 from schwab at linux-m68k dot org 2009-09-21 14:25 --- (In reply to comment #3) > As far as I can see, you are triggering undefined behavior. There is a big difference between undefined and unspecified behaviour. With unspecified behaviour the implementation must chose a

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread developer at sandoe-acoustics dot co dot uk
--- Comment #26 from developer at sandoe-acoustics dot co dot uk 2009-09-21 14:24 --- (In reply to comment #23) > Created an attachment (id=18621) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18621&action=view) [edit] > gcc45-pr41405.patch as pre previous comment - this bootstra

[Bug c++/2288] Variable declared in for-loop-header is in wrong scope

2009-09-21 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2009-09-21 14:22 --- *** Bug 41427 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/41427] variables with the same name as a "for" variable should be invalid

2009-09-21 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-09-21 14:22 --- *** This bug has been marked as a duplicate of 2288 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug tree-optimization/41428] CCP doesn't fold all comparisons it could

2009-09-21 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-09-21 14:06 --- Mine. I'm going to disentangle the maze in substitute_and_fold by introducing another hook in the generic SSA propagator to fold a stmt. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug tree-optimization/41428] New: CCP doesn't fold all comparisons it could

2009-09-21 Thread rguenth at gcc dot gnu dot org
extern "C" void abort (void); inline void *operator new (__SIZE_TYPE__, void *__p) throw () { return __p; } int __attribute__((noinline)) foo(void) { float f = 0; int *i = new (&f) int (1); return *(int *)&f; } CCP produces : f = 0.0; D.2121_3 = &f; D.2107_4 = (int *) &f; if (D.210

[Bug c++/41427] New: variables with the same name as a "for" variable should be invalid

2009-09-21 Thread ciobi at inbox dot com
Consider this code: void f1() { for (int i = 0;;) int i; } void f2() { for (int i = 0;;) { int i; } } void f3() { for (int i = 0;;) { { int i; } } } Only f3() should compile, yet f1() and f2() compile too. While f1() seems

[Bug target/41025] v4.3.3, 4.4.1, etc -ftracer sometimes fails by "is already defined"

2009-09-21 Thread mahatma at eu dot by
--- Comment #3 from mahatma at eu dot by 2009-09-21 13:12 --- Created an attachment (id=18623) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18623&action=view) linux-2.6.31 deconfig x86_64 error -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41025

[Bug target/41025] v4.3.3, 4.4.1, etc -ftracer sometimes fails by "is already defined"

2009-09-21 Thread mahatma at eu dot by
--- Comment #2 from mahatma at eu dot by 2009-09-21 13:08 --- (In reply to comment #1) > Can you provide the preprocessed source? > Yes. After make/error: http://mahatma.bspu.unibel.by/download/transit/glibc-2.10.1-error.tar.bz2 (gentoo flavored, sorry) New info: it happened on -O2 or

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-09-21 13:08 --- Switch assembly is optimized if you handle all valid cases (which you do) into if (i != 0) case B else case A -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425

[Bug rtl-optimization/39779] ICE shifting byte to the right with constant > 7FFFFFFF

2009-09-21 Thread ubizjak at gmail dot com
--- Comment #11 from ubizjak at gmail dot com 2009-09-21 13:02 --- Another week, another patch in testing: Index: c-typeck.c === --- c-typeck.c (revision 151915) +++ c-typeck.c (working copy) @@ -9465,6 +9465,7 @@ build_b

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread Woebbeking at web dot de
--- Comment #5 from Woebbeking at web dot de 2009-09-21 12:53 --- Paolo, but std::cout << static_cast(i); prints 5, so it's not the conversion but the switch statement which is "broken". Richard, if it's only truncation shouldn't case B be triggered? -- http://gcc.gnu.org/bugzilla/

[Bug c++/41426] New: User defined conversion on return ignores array types

2009-09-21 Thread roger dot ferrer at bsc dot es
I think g++ simplifies too early array types into pointers when looking for a conversion sequence in a return statement. --- struct B { B (int (&v)[10]); B(); }; B g2() { int c[10]; return c; } --- results in test.cc: In function ‘B g2()’: test.cc:10: error: conversion from ‘int

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread developer at sandoe-acoustics dot co dot uk
--- Comment #25 from developer at sandoe-acoustics dot co dot uk 2009-09-21 12:45 --- (In reply to comment #23) > Created an attachment (id=18621) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18621&action=view) [edit] > gcc45-pr41405.patch thanks for the patch. I bootstrapped

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-09-21 12:44 --- In C++ an enum type only has the minimum number of bits that is required to store all its values, thus 1 in your case. So (foo)5 is a truncation. -- rguenth at gcc dot gnu dot org changed: What|R

[Bug c++/41425] switch with enums doesn't work

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

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2009-09-21 12:41 --- As far as I can see, you are triggering undefined behavior. Per 5.2.9/7: "A value of integral or enumeration type can be explicitly converted to an enumeration type. The value is unchanged if the original value

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread Woebbeking at web dot de
-- Woebbeking at web dot de changed: What|Removed |Added Severity|normal |critical http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread Woebbeking at web dot de
--- Comment #2 from Woebbeking at web dot de 2009-09-21 12:21 --- g++ case.cpp is sufficient to reproduce this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425

[Bug c++/41425] switch with enums doesn't work

2009-09-21 Thread Woebbeking at web dot de
--- Comment #1 from Woebbeking at web dot de 2009-09-21 12:19 --- Created an attachment (id=18622) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18622&action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread dominiq at lps dot ens dot fr
--- Comment #24 from dominiq at lps dot ens dot fr 2009-09-21 12:19 --- > Patch implementing -gstrict-dwarf (darwin would need to set it to 1 unless > explicitly set on the command line). I went through all the DWARF 3 and DWARF > 4 additions used by dwarf2out.c, except DW_CFA_* so far.

[Bug c++/41425] New: switch with enums doesn't work

2009-09-21 Thread Woebbeking at web dot de
If I cast an int to the enum type all values outside the enum triggers the first case-statement. The number of enum values is important. It must be a power of 2. This works in GCC 4.3.4. -- Summary: switch with enums doesn't work Product: gcc Version: 4.4.1

[Bug c++/41153] [4.4 Regression] ICE in building Qt4 src/core

2009-09-21 Thread t66667 at gmail dot com
--- Comment #14 from t7 at gmail dot com 2009-09-21 11:05 --- I can confirm this is fixed in gcc-4_4-branch. Thank you. -- t7 at gmail dot com changed: What|Removed |Added

[Bug target/41424] Heavily optimized x86_64-w64 binary produces negative effects

2009-09-21 Thread xxcv07 at gmail dot com
--- Comment #2 from xxcv07 at gmail dot com 2009-09-21 10:47 --- Sorry about this invalid report, my mistake in building ffmpeg. -- xxcv07 at gmail dot com changed: What|Removed |Added ---

[Bug target/41424] Heavily optimized x86_64-w64 binary produces negative effects

2009-09-21 Thread xxcv07 at gmail dot com
--- Comment #1 from xxcv07 at gmail dot com 2009-09-21 10:25 --- Looks like I may have made a mistake in compiling a library which was causing this issue, will report back later. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41424

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #23 from jakub at gcc dot gnu dot org 2009-09-21 10:22 --- Created an attachment (id=18621) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18621&action=view) gcc45-pr41405.patch Patch implementing -gstrict-dwarf (darwin would need to set it to 1 unless explicitly set on

[Bug fortran/41309] 4.4.1 build of fortran fails on T5140

2009-09-21 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2009-09-21 10:04 --- (In reply to comment #5) > Please mark the bug as user error. > Sorry for the false alert. Great that it now works for you. (Closed as INVALID.) -- burnus at gcc dot gnu dot org changed: What|

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread developer at sandoe-acoustics dot co dot uk
--- Comment #22 from developer at sandoe-acoustics dot co dot uk 2009-09-21 09:04 --- Dominique has confirmed what I've found, that some changes beyond 151814->151815 are also significant. test results for powerpc-apple-darwin8 and i686-apple-darwin9 http://gcc.gnu.org/ml/gcc-testresul

[Bug bootstrap/41399] [4.5 Regression] Internal error compiling fortran/intrinsic.c

2009-09-21 Thread ramana at gcc dot gnu dot org
-- ramana at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41399

[Bug inline-asm/41422] incorrect code generated with asm function pointers when compiled with -fPIC on x84_64

2009-09-21 Thread scott dot gccbugs dot 2009 at scottrix dot co dot uk
--- Comment #4 from scott dot gccbugs dot 2009 at scottrix dot co dot uk 2009-09-21 08:46 --- Thanks for the help, I have got the intermediate files out and can see what you mean. I'll raise the issue with binutils. Again, thanks for the help and very quick response. -- http://gc

[Bug bootstrap/41404] expr.c undefined reference while linking jc1

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #22 from jakub at gcc dot gnu dot org 2009-09-21 08:40 --- Created an attachment (id=18620) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18620&action=view) gcc45-pr41404.patch This fixes the bug, unfortunately doesn't do any good with CONST_STRINGs. CONST_STRING as em

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815

2009-09-21 Thread dominiq at lps dot ens dot fr
--- Comment #21 from dominiq at lps dot ens dot fr 2009-09-21 08:05 --- Changed the subject to reflect the comments. > [this might not be quite enough; backing out of only 151814->151815 for trunk > version 151904 produced a working bootstrap but with still some dsymutil > fails]. I do

[Bug fortran/41309] 4.4.1 build of fortran fails on T5140

2009-09-21 Thread ian dot james at bnymellon dot com
--- Comment #5 from ian dot james at bnymellon dot com 2009-09-21 07:59 --- I separated the directories of Solaris packaged GNU (/usr/sfw), open built GNU (/usr/local) and locally built GNU components (usr/gnu) components, putting the built ones earlier in LD_LIBRARY_PATH and PATH. I th

[Bug libgomp/41418] Can't build libgomp without --enable-languages=fortran

2009-09-21 Thread davek at gcc dot gnu dot org
--- Comment #4 from davek at gcc dot gnu dot org 2009-09-21 07:53 --- (In reply to comment #3) > First off, do you happen to know whether this is a regression? 'fraid not, I never thought to try this before. > Then, please show more of the build output of the failing build: > everyth

[Bug libgomp/41418] Can't build libgomp without --enable-languages=fortran

2009-09-21 Thread rwild at gcc dot gnu dot org
--- Comment #3 from rwild at gcc dot gnu dot org 2009-09-21 07:46 --- First off, do you happen to know whether this is a regression? Then, please show more of the build output of the failing build: everything starting from toplevel target 'configure-target-libgomp'. You can recreate that

[Bug fortran/41389] problem compiling file

2009-09-21 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-09-21 07:45 --- > Thank you for your response. I would appreciate very much if you could you > please supply me with a web site and the name of the particular version of > binutils. The generic place is http://www.gnu.org/software/b

[Bug bootstrap/41405] [4.5 Regression] Bootstrap fails at revision 151873 on *-apple-darwin9

2009-09-21 Thread jakub at gcc dot gnu dot org
--- Comment #20 from jakub at gcc dot gnu dot org 2009-09-21 07:01 --- Wonder why gcc on darwin should always work around darwin toolchain bugs, but on most other OSes if you have bugs in tools, you just require those bugs to be fixed, gcc doesn't work around them. What is so special ab