[Bug lto/44966] weak aliases LTO with gold causes ICE in lto_symtab_merge_decls_1

2010-07-26 Thread andi-gcc at firstfloor dot org
--- Comment #15 from andi-gcc at firstfloor dot org 2010-07-27 06:56 --- I'm working on a solution for the lost code problem. It will require -ffunction/data-sections so that it can be undone section by section. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44966

[Bug fortran/45081] [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-07-26 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2010-07-27 06:56 --- > It also regresses (diagnostics) in gfortran.dg/transfer_simplify_2.f90 / > gfortran.dg/transfer_simplify_7.f90. I also see a regression for gfortran.dg/parameter_array_section_1.f90 [macbook] f90/bug% gfc /opt/gcc

[Bug c/45079] [4.5/4.6 Regression] function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression')

2010-07-26 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Summary|function names in error |[4.5/4.6 Regression] |message |

[Bug fortran/45092] [4.6 Regression] ICE in output_constructor_regular_field, at varasm.c:5016

2010-07-26 Thread kargl at gcc dot gnu dot org
--- Comment #7 from kargl at gcc dot gnu dot org 2010-07-27 06:15 --- (In reply to comment #5) > From the error location it looks like a duplicate of PR 44857. > Yes, I think you're right. I've reduced it further in comment #6. The code compiles if the array constructor is changed.

[Bug fortran/45092] [4.6 Regression] ICE in output_constructor_regular_field, at varasm.c:5016

2010-07-26 Thread kargl at gcc dot gnu dot org
--- Comment #6 from kargl at gcc dot gnu dot org 2010-07-27 06:11 --- Here's an even shorter testcase. MODULE FunctionTypes IMPLICIT NONE integer, parameter :: OpconNameLength = 4 TYPE, PUBLIC :: TTermDefinition CHARACTER (OpconNameLength) :: termName(2) END TYPE TTer

[Bug fortran/45092] [4.6 Regression] ICE in output_constructor_regular_field, at varasm.c:5016

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2010-07-27 06:08 --- >From the error location it looks like a duplicate of PR 44857. -- burnus at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/45081] [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2010-07-27 06:04 --- (In reply to comment #2) > Untested patch. > + return (e->symtree->n.sym->attr.flavour == FL_PARAMETER); s/flavour/flavor/ It also regresses (diagnostics) in gfortran.dg/transfer_simplify_2.f90 / gfortran.dg/tra

[Bug fortran/45092] internal compiler error regression bug in the latest trunk build of the gfortran compiler

2010-07-26 Thread kargl at gcc dot gnu dot org
--- Comment #4 from kargl at gcc dot gnu dot org 2010-07-27 04:54 --- Reset severity to normal. Fortran bugs are rarely anything but normal. -- kargl at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fortran/45092] internal compiler error regression bug in the latest trunk build of the gfortran compiler

2010-07-26 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2010-07-27 04:53 --- Created an attachment (id=21323) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21323&action=view) Reduced testcase Here's a reduced testcase. -- kargl at gcc dot gnu dot org changed: What|R

[Bug fortran/45092] internal compiler error regression bug in the latest trunk build of the gfortran compiler

2010-07-26 Thread clerman at fuse dot net
--- Comment #1 from clerman at fuse dot net 2010-07-26 23:29 --- Subject: gfortran bug 45092 Hello, Attached is the file, bug8.tar.gz needed to recreate the problem described in bug 45092. Norm Clerman --- Comment #2 from clerman at fuse dot net 2010-07-26 23:29 --- Creat

[Bug fortran/45092] New: internal compiler error regression bug in the latest trunk build of the gfortran compiler

2010-07-26 Thread clerman at fuse dot net
Hello, I am e-mailing to gcc-bugzi...@gcc.gnu.org file bug8.tar.gz. Please unpack it and then invoke the shell script bug8.sh (the name of the compiler I'm symbolically linked to is gfortran-trunk). The following message appears compiling file functiontypeM.f90 (see file functiontypesM.xyz): n

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

2010-07-26 Thread rth at gcc dot gnu dot org
--- Comment #43 from rth at gcc dot gnu dot org 2010-07-26 22:58 --- Emutls now re-written in a way that should support LTO. -- rth 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-07-26 Thread rth at gcc dot gnu dot org
--- Comment #42 from rth at gcc dot gnu dot org 2010-07-26 22:54 --- Subject: Bug 44132 Author: rth Date: Mon Jul 26 22:53:50 2010 New Revision: 162549 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162549 Log: PR target/44132 Emulated TLS rewrite. Added: trunk/gcc/testsuit

[Bug c++/45091] Optimization levels produce (the same) different result for static_cast(double)

2010-07-26 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-07-26 22:05 --- 6.3.1.4 says: If the value of the integral part cannot be represented by the integer type, the behavior is undefined. -- pinskia at gcc dot gnu dot org changed: What|Removed |A

[Bug c++/45091] Optimization levels produce (the same) different result for static_cast(double)

2010-07-26 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-07-26 22:04 --- Well considering 2^50 is outside the range of unsigned, this code does not have a specified value. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45091

[Bug c++/45091] New: Optimization levels produce (the same) different result for static_cast(double)

2010-07-26 Thread helder dot pereira dot correia at gmail dot com
The following test case will produce 0 when compile without compiler optimizations, and 255 with optimizations: = #include #include int main() { double d = pow(2.0, 50.0); std::cout << static_cast(static_cast(d)) << std::endl;

[Bug middle-end/45090] x86_64 passing structure by value to a non-inlined function causes register-resident structures to flush to stack

2010-07-26 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-07-26 21:24 --- I think this is correct behavior dealing with how x86_64 ABI describes struct passing and almost all registers are volatile. Oh on the trunk test3 gets compiled into a simple loop without any struct being saved and

[Bug lto/44390] LTO strips out symbols that are actually needed

2010-07-26 Thread hubicka at gcc dot gnu dot org
--- Comment #8 from hubicka at gcc dot gnu dot org 2010-07-26 21:16 --- I fixed number of similar problems on Mozilla build recently. Can you, please, re-try with current mainline? Otherwise we will need to get some testcase for this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4

[Bug c++/45090] New: x86_64 passing structure by value to a non-inlined function causes register-resident structures to flush to stack

2010-07-26 Thread dickie at acm dot org
I am running 4.5.0, built locally from a gcc.gnu.org distribution, on Ubuntu 10.04. When switching from -m32 to -m64 a dispatch loop in my code gets noticeably slower (20% slower in 4.3.4 and 4.4.3, 10% slower in 4.5.0). Investigation of the generated assembly shows that register-resident struct

[Bug lto/44802] -flto -fuse-linker-plugin causes undefined references from libc in the link phase

2010-07-26 Thread hubicka at gcc dot gnu dot org
--- Comment #5 from hubicka at gcc dot gnu dot org 2010-07-26 21:14 --- I fixed similar problem on mainline (it was bogus visibility handling for external symbols). Can you re-try? -- hubicka at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/44966] weak aliases LTO with gold causes ICE in lto_symtab_merge_decls_1

2010-07-26 Thread hubicka at gcc dot gnu dot org
--- Comment #14 from hubicka at gcc dot gnu dot org 2010-07-26 21:09 --- Hmm, hard to tell. The assembler .o files are not LTO and they will be incrementally linked into non-LTO part of GCC produced fat .o files during incremental linking and I guess it is hard to undo? -- http://

[Bug lto/45089] -Os -g -fwhopr dwarf2out ICE

2010-07-26 Thread hubicka at gcc dot gnu dot org
--- Comment #1 from hubicka at gcc dot gnu dot org 2010-07-26 21:04 --- Created an attachment (id=21321) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21321&action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45089

[Bug fortran/45087] -fwhole-program: Miscompiled due to wrong decls

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2010-07-26 21:03 --- Looking at the reduced test case for gas_dyn.f90, it looks like a duplicate of PR 44945: module ints INTERFACE SUBROUTINE NOZZLE() END SUBROUTINE NOZZLE END INTERFACE end module ints SUBROUTI

[Bug lto/45089] New: -Os -g -fwhopr dwarf2out ICE

2010-07-26 Thread hubicka at gcc dot gnu dot org
This is introduced by the new type merging code j...@evans:~> /abuild/jh/trunk-install/bin/g++ -r -nostdlib -Os -g ~/d?.ii -fwhopr In file included from ../../../dist/include/nsThreadUtils.h:49:0, from /abuild/jh/mozilla-central/accessible/src/base/a11yGeneric.h:42,

[Bug fortran/40873] -fwhole-file -fwhole-program: Wrong decls cause too much to be optimized away

2010-07-26 Thread dominiq at lps dot ens dot fr
--- Comment #26 from dominiq at lps dot ens dot fr 2010-07-26 21:00 --- The patch in comment #25 fixes the ICE for PR 31867 comment 6, but causes also several regressions with "... must have an explicit interface" errors: FAIL: gfortran.dg/allocatable_function_1.f90 (test for excess er

[Bug fortran/45081] [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2010-07-26 20:19 --- Untested patch. Index: expr.c === --- expr.c (Revision 162542) +++ expr.c @@ -913,7 +913,7 @@ gfc_is_constant_expr (gfc_expr *e)

[Bug target/45026] Empty function compiles to many loads and stores

2010-07-26 Thread sje at cup dot hp dot com
--- Comment #1 from sje at cup dot hp dot com 2010-07-26 20:07 --- It doesn't result in any loads, just stores. This code is storing the first part of the structure argument which was passed (partially) in registers into memory. Obviously it doesn't need to do this since the argument i

[Bug debug/45088] New: pointer type information lost in debuginfo

2010-07-26 Thread tromey at gcc dot gnu dot org
I'm using r162345 on x86 Fedora 13. This test case comes from the gdb test suite. struct A { virtual ~A (); int a1; }; A::~A() { a1 = 800; } struct B : public A { virtual ~B (); int b1; int b2; }; B::~B() { a1 = 900; b1 = 901; b2 = 902; } struct C : public B { A *c1; A *

[Bug fortran/45086] For whole-file checking, also check whether an INTERFACE matches

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2010-07-26 19:17 --- Related - the original version of gfortran.dg/char_result_4.f90 shows: pure elemental function double (x) 1 Error: ELEMENTAL procedure 'double' at (1) must have an explicit interface Expected: This message i

[Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] strange warning text from gcc

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2010-07-26 19:16 --- Created an attachment (id=21320) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21320&action=view) gcc46-pr45083.patch Untested fix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45083

[Bug tree-optimization/45083] [4.3/4.4/4.5/4.6 Regression] strange warning text from gcc

2010-07-26 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-07-26 18:55 --- Confirmed, this was working in 4.2.4: t.c: In function ‘test’: t.c:9: warning: ‘cs[0u].b’ is used uninitialized in this function t.c:8: note: ‘cs[0u].b’ was declared here t.c:13: warning: ‘cs[0u].a’ i

[Bug tree-optimization/45083] strange warning text from gcc

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-07-26 18:50 --- Reduced testcase: /* { dg-do compile } */ /* { dg-options "-O2 -Wuninitialized" } */ struct S { char *a; unsigned b; unsigned c; }; extern int foo (const char *); extern void bar (int, int); static void baz (void) {

[Bug middle-end/44817] Stage2/stage3 genautomata has invalid memory access

2010-07-26 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2010-07-26 18:41 --- It is a valgrind bug. I opened: https://bugzilla.redhat.com/show_bug.cgi?id=618360 -- hjl dot tools at gmail dot com changed: What|Removed |Added -

[Bug target/42240] [4.3/4.4 Regression, avr] wrong epilogue on naked function

2010-07-26 Thread eric dot weddington at atmel dot com
-- eric dot weddington at atmel dot com changed: What|Removed |Added Severity|normal |major GCC target triplet||avr

[Bug target/42240] wrong epilogue on naked function

2010-07-26 Thread eric dot weddington at atmel dot com
--- Comment #11 from eric dot weddington at atmel dot com 2010-07-26 17:37 --- Anitha, can you please check 4.5.x and HEAD? -- eric dot weddington at atmel dot com changed: What|Removed |Added --

[Bug fortran/45081] [4.3/4.4/4.5/4.6 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-07-26 Thread burnus at gcc dot gnu dot org
-- burnus at gcc dot gnu dot org changed: What|Removed |Added Keywords||ice-on-valid-code Summary|ICE in |[4.3

[Bug fortran/45087] New: -fwhole-program: Miscompiled due to wrong decls

2010-07-26 Thread burnus at gcc dot gnu dot org
Follow up to PR 40873. There are still some -fwhole-program issues left; for instance: The polyhedron tests gas_dyn.f90 and test_fpu.f90 do not link -- Summary: -fwhole-program: Miscompiled due to wrong decls Product: gcc Version: 4.6.0 Status: UNCO

[Bug target/44834] pr44707.c FAILs on sparc -m32: asm operand requires impossible reload

2010-07-26 Thread mikpe at it dot uu dot se
--- Comment #2 from mikpe at it dot uu dot se 2010-07-26 17:10 --- Fixed by Eric's patch for PR44707. -- mikpe at it dot uu dot se changed: What|Removed |Added

[Bug fortran/40873] -fwhole-file -fwhole-program: Wrong decls cause too much to be optimized away

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #25 from burnus at gcc dot gnu dot org 2010-07-26 17:03 --- (In reply to comment #23) > Created an attachment (id=21315) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21315&action=view) [edit] > New trans-decl.c patch - seems to work well Dominique has found a failure

[Bug fortran/40873] -fwhole-file -fwhole-program: Wrong decls cause too much to be optimized away

2010-07-26 Thread dominiq at lps dot ens dot fr
--- Comment #24 from dominiq at lps dot ens dot fr 2010-07-26 17:02 --- With the patch in comment #23, the polyhedron tests gas_dyn.f90 and test_fpu.f90 do not link and compiling the test in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31867#c6 gives an ICE (Segmentation fault). Otherwise

[Bug fortran/45086] New: For whole-file checking, also check whether an INTERFACE matches

2010-07-26 Thread burnus at gcc dot gnu dot org
The check should be done in resolve_global_procedure. NAG has: Error: fjkff.f90: Inconsistent INTERFACE block for procedure FOO from $main$ Argument X (no. 1) should be an assumed-shape array g95 has: Error: Passing array at (1) to assumed-shape actual argument at (2) via an implicit int

[Bug c++/45069] Instruction wrong with graphite on i486 geode

2010-07-26 Thread spop at gcc dot gnu dot org
--- Comment #1 from spop at gcc dot gnu dot org 2010-07-26 16:45 --- This looks like a duplicate of a binutils bug: http://sourceware.org/bugzilla/show_bug.cgi?id=6957 I fail to see how this is related to Graphite: you may find other codes that are padded with NOPL that are triggering th

[Bug c++/45082] Static const signed int class member causes undefined symbol.

2010-07-26 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-07-26 16:37 --- (In reply to comment #3) > > If you only want it to be used as an integral constant, don't use it in a > context that requires a variable (e.g. reference binding) e.g. funky((int)myclass::BUFF_SIZE); This means th

[Bug c++/45082] Static const signed int class member causes undefined symbol.

2010-07-26 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-07-26 16:32 --- (In reply to comment #2) > The bug/feature may be that re-typing BUFF_SIZE to static const unsigned int > allows the compiler to not report a problem. You're not "re-typing" it, you're providing a definition for a vari

[Bug c++/41201] #pragma GCC target ("sse2") doesn't alter __SSE2__ in C++ (as it does in C)

2010-07-26 Thread justin dot lebar+bug at gmail dot com
--- Comment #5 from justin dot lebar+bug at gmail dot com 2010-07-26 16:20 --- FWIW, it seems that MSVC is perfectly happy to compile code with intrinsics inside a file which doesn't have any special flags. It would be awesome if there were some way to do the same with GCC, even if it

[Bug tree-optimization/45085] incorrect -Wuninitialized warning

2010-07-26 Thread tromey at gcc dot gnu dot org
--- Comment #1 from tromey at gcc dot gnu dot org 2010-07-26 16:12 --- Created an attachment (id=21319) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21319&action=view) compressed .i file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45085

[Bug tree-optimization/45085] New: incorrect -Wuninitialized warning

2010-07-26 Thread tromey at gcc dot gnu dot org
I'm using a relatively recent svn trunk gcc on an x86 Fedora 13 machine. I'm trying to compile gdb with it. I got this error: ../../archer/gdb/remote.c: In function ‘remote_wait’: ../../archer/gdb/remote.c:5561:10: error: ‘event_ptid.tid’ may be used uninitialized in this function [-Werror=uninit

[Bug libstdc++/45084] New: configure: error: no 8-bit type

2010-07-26 Thread ivbx at bk dot ru
Use binutils 2.20.1. Configure gcc: ../configure --prefix=/usr/local/m68k-elf \ --enable-interwork \ --enable-multilib \ --without-headers \ --disable-shared \ --disable-libssp \ --enable-languages=c,c++ \ --verbose \ --with-newlib \ --program-prefix=m68k-elf- \ --with-as=/usr/local/m68k-elf/bin/

[Bug tree-optimization/43784] [4.6 Regression] -Os -fkeep-inline-functions causes FAIL: gcc.c-torture/execute/builtins/pr22237.c execution

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2010-07-26 16:02 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNE

[Bug tree-optimization/43784] [4.6 Regression] -Os -fkeep-inline-functions causes FAIL: gcc.c-torture/execute/builtins/pr22237.c execution

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2010-07-26 16:02 --- Subject: Bug 43784 Author: rguenth Date: Mon Jul 26 16:01:55 2010 New Revision: 162539 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162539 Log: 2010-07-26 Richard Guenther PR tree-optimizatio

[Bug tree-optimization/45083] strange warning text from gcc

2010-07-26 Thread tromey at gcc dot gnu dot org
--- Comment #2 from tromey at gcc dot gnu dot org 2010-07-26 15:59 --- Forgot some info: opsy. gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/space/tromey/Trunk/install/bin/../libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: .

[Bug c++/45082] Static const signed int class member causes undefined symbol.

2010-07-26 Thread rwitmer at xmission dot com
--- Comment #2 from rwitmer at xmission dot com 2010-07-26 15:59 --- I agree with your assessment. Adding const int myclass::BUFF_SIZE; resolves the issue. The bug/feature may be that re-typing BUFF_SIZE to static const unsigned int allows the compiler to not report a problem. It doe

[Bug tree-optimization/45083] strange warning text from gcc

2010-07-26 Thread tromey at gcc dot gnu dot org
--- Comment #1 from tromey at gcc dot gnu dot org 2010-07-26 15:53 --- Created an attachment (id=21318) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21318&action=view) compressed .i file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45083

[Bug tree-optimization/45083] New: strange warning text from gcc

2010-07-26 Thread tromey at gcc dot gnu dot org
While compiling gdb with a relatively recent svn trunk gcc, I saw: gcc -g -O2 -I. -I../../archer/gdb -I../../archer/gdb/common -I../../archer/gdb/config -DLOCALEDIR="\"/home/tromey/gnu/archer/install/share/locale\"" -DHAVE_CONFIG_H -I../../archer/gdb/../include/opcode -I../../archer/gdb/../opcod

[Bug c++/45082] Static const signed int class member causes undefined symbol.

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-07-26 15:32 --- This is not valid C++. See [class.static.data]/4: If a static data member is of const integral or const enumeration type, its declaration in the class definition can specify a constant-initializer which shall be an in

[Bug c++/45082] New: Static const signed int class member causes undefined symbol.

2010-07-26 Thread rwitmer at xmission dot com
A class that has a static const signed int data member when passed to a function as a const int& parameter will cause the data member to be an undefined symbol. If the static const signed int data member is re-typed as const unsigned int the error goes away. I've verified this on g++ 3.4.6 and 4.

[Bug fortran/45081] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-07-26 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2010-07-26 15:22 --- Confirmed as a regression: it compiles with 4.2.4 (ppc-darwin), gives an ICE with 4.3.4, 4.4.2, 4.5.0 and trunk. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45081

[Bug fortran/45081] New: ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-07-26 Thread ohl at physik dot uni-wuerzburg dot de
compiler error: in gfc_conv_array_initializer, at fortran/trans-array.c:4208 in GNU Fortran (GCC) 4.6.0 20100726 (experimental) The code compiles with the NAG compiler, as it should. gfortran also compiles the equivalent code for INTEGERS instead of the derived type. Maybe there is a relation to

[Bug tree-optimization/43784] [4.6 Regression] -Os -fkeep-inline-functions causes FAIL: gcc.c-torture/execute/builtins/pr22237.c execution

2010-07-26 Thread matz at gcc dot gnu dot org
--- Comment #9 from matz at gcc dot gnu dot org 2010-07-26 15:06 --- Here's a testcase (nicer in the sense of not requiring inlining) that shows the current compiler botching the nrv <-> retslot optimizations: struct S {int x, y, makemelarge[5];}; S __attribute__((noinline)) f (S &s) {

[Bug tree-optimization/45073] [4.6 Regression] gfortran.dg/assumed_charlen_function_3.f90 ICEs with -fprofile-generate

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-07-26 14:49 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/45073] [4.6 Regression] gfortran.dg/assumed_charlen_function_3.f90 ICEs with -fprofile-generate

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-07-26 14:49 --- Subject: Bug 45073 Author: rguenth Date: Mon Jul 26 14:48:43 2010 New Revision: 162537 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162537 Log: 2010-07-26 Richard Guenther PR middle-end/45073

[Bug tree-optimization/45034] [4.3/4.4/4.5/4.6 Regression] "safe" conversion from unsigned to signed char gives broken code

2010-07-26 Thread rakdver at gcc dot gnu dot org
--- Comment #7 from rakdver at gcc dot gnu dot org 2010-07-26 14:47 --- By the time the code reaches ivopts, it looks (modulo SSA form) this way: signed char x = -128, tmp; for (;;) { tmp = -x; foo ((int) x, (int) tmp, x==-128); ... if (x == 127) break; x++;

[Bug c/45079] function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression')

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-07-26 14:47 --- Created an attachment (id=21317) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21317&action=view) gcc46-pr45079.patch Untested fix. -- jakub at gcc dot gnu dot org changed: What|Removed

[Bug target/44290] [4.5 only] __naked attribute is broken

2010-07-26 Thread jiez at gcc dot gnu dot org
--- Comment #25 from jiez at gcc dot gnu dot org 2010-07-26 14:37 --- Ramana, I will ask for permission to commit it on 4.5 branch when it's unfrozen. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44290

[Bug c++/45080] [C++0x] Rejects lambda to function pointer conversion inside function template

2010-07-26 Thread piotr dot rak at gmail dot com
--- Comment #1 from piotr dot rak at gmail dot com 2010-07-26 14:21 --- Created an attachment (id=21316) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21316&action=view) Test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45080

[Bug c++/45080] New: [C++0x] Rejects lambda to function pointer conversion inside function template

2010-07-26 Thread piotr dot rak at gmail dot com
cat lambda-convX.C // { dg-options -std=c++0x } typedef void(*pfn)(); template void f1 () { pfn fn = []{}; } template void f2() { pfn fn = []{}; } void test() { f1<>(); f2<>(); } [p...@a tmp] g++-trunk -v lambda-convX.C -c -std=c++0x Using built-in specs.

[Bug c/45079] New: function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression')

2010-07-26 Thread doko at ubuntu dot com
4.4 doesn't print the function names in the error message, while 4.5 and 4.6 do so: $ cat foo.c void foo(const char *p, int cond, int a, int b) { p[cond ? a : b] = '\0'; } $ gcc-4.4 -c foo.c foo.c: In function 'foo': foo.c:3: error: assignment of read-only location '*(p + (cond != 0 ? (l

[Bug tree-optimization/45059] [4.6 Regression] error: invalid operands in binary operation, leads to ICE: verify_stmts failed

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2010-07-26 14:15 --- The reassoc issue is caused by http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159189 BTW, the C++ FE uses T instead of unsigned type for values in the ctor and thus the testcase works there. -- jakub at gcc dot

[Bug plugins/45078] New: config/vxworks-dummy.h not installed as a plugin header on some archs

2010-07-26 Thread doko at ubuntu dot com
dehydra fails to build with the following error: /usr/bin/gcc-4.5 -MD -g3 -Wall -fPIC -DXP_UNIX -DIN_GCC -DPLUGIN_NO_POISON -DHAVE_CONFIG_H -I/usr/lib/gcc/sparc-linux-gnu/4.5.1/plugin/include -I/usr/include/mozjs -I/usr/lib -I//home/buildd/local/include/js/ -g -O2 -c dehydra_plugin.c In file inc

[Bug fortran/45076] gfortran.dg/dynamic_dispatch_6.f03 ICEs with -fprofile-use

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-07-26 13:56 --- struct class$field_p struct class$field_p looks more like a frontend issue. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING

2010-07-26 Thread dominiq at lps dot ens dot fr
--- Comment #11 from dominiq at lps dot ens dot fr 2010-07-26 13:45 --- (In reply to comment #10) > > Note that since revision 162531 (-fwhole-file is now the default) the tests > > in > > this pr no longer give ICEs. However these ICEs reappear when the tests are > > compiled with -fno

[Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #10 from burnus at gcc dot gnu dot org 2010-07-26 13:31 --- (In reply to comment #9) > Note that since revision 162531 (-fwhole-file is now the default) the tests in > this pr no longer give ICEs. However these ICEs reappear when the tests are > compiled with -fno-whole-file.

[Bug fortran/40994] ICE in gfc_undo_symbols

2010-07-26 Thread dominiq at lps dot ens dot fr
--- Comment #7 from dominiq at lps dot ens dot fr 2010-07-26 13:30 --- This pr looks like a duplicate of pr37744, or at least the ICEs disappear with -fwhole-file (now the default: see http://gcc.gnu.org/ml/gcc-bugs/2010-07/msg02853.html#c9 ). -- http://gcc.gnu.org/bugzilla/show_bug

[Bug tree-optimization/45056] [4.6 Regression] ICE: in refs_may_alias_p_1, at tree-ssa-alias.c:1023

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2010-07-26 13:29 --- Subject: Bug 45056 Author: rguenth Date: Mon Jul 26 13:29:14 2010 New Revision: 162536 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162536 Log: 2010-07-26 Richard Guenther PR middle-end/45056

[Bug tree-optimization/45056] [4.6 Regression] ICE: in refs_may_alias_p_1, at tree-ssa-alias.c:1023

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2010-07-26 13:29 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/45073] [4.6 Regression] gfortran.dg/assumed_charlen_function_3.f90 ICEs with -fprofile-generate

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-07-26 13:26 --- I have a patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|

[Bug fortran/40873] -fwhole-file -fwhole-program: Wrong decls cause too much to be optimized away

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #23 from burnus at gcc dot gnu dot org 2010-07-26 13:25 --- Created an attachment (id=21315) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21315&action=view) New trans-decl.c patch - seems to work well New patch. Found the problem with the help of Jakub (thanks!); not

[Bug fortran/37744] ICE-on-invalid with ISO_C_BINDING

2010-07-26 Thread dominiq at lps dot ens dot fr
--- Comment #9 from dominiq at lps dot ens dot fr 2010-07-26 13:25 --- Note that since revision 162531 (-fwhole-file is now the default) the tests in this pr no longer give ICEs. However these ICEs reappear when the tests are compiled with -fno-whole-file. -- http://gcc.gnu.org/bugz

[Bug fortran/40011] Problems with -fwhole-file

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #72 from burnus at gcc dot gnu dot org 2010-07-26 13:15 --- (In reply to comment #70) > With the patch of PR 40873 comment 18 applied [...] There is now a new patch which fixes tons of issues including the test case of comment 0 number 4, but not the one from comment 47. >

[Bug fortran/45077] New: ICE with -fwhole-file in fold_convert_loc, at fold-const.c:2021

2010-07-26 Thread burnus at gcc dot gnu dot org
+++ This bug was initially created as a clone of Bug #40011 +++ The program of PR 40011 comment 47 (attachment 18427) works -fno-whole-file but fails otherwise with an ICE in fold_convert_loc, at fold-const.c:2021. -- Summary: ICE with -fwhole-file in fold_convert_loc, at fold-

[Bug tree-optimization/45059] [4.6 Regression] error: invalid operands in binary operation, leads to ICE: verify_stmts failed

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-07-26 12:58 --- Works if b[] has unsigned int type instead of T. Sounds like a type mismatch. The VAR_DECL b has ARRAY_TYPE with T element type and b's CONSTRUCTOR has the same type, but the values in the constructor doesn't have T ty

[Bug tree-optimization/45076] New: gfortran.dg/dynamic_dispatch_6.f03 ICEs with -fprofile-use

2010-07-26 Thread zsojka at seznam dot cz
Command line: $ gfortran -O[0123] -fprofile-generate dynamic_dispatch_6.f03 $ rm dynamic_dispatch_6.gcda $ ./a.out $ gfortran -O[0123] -fprofile-use dynamic_dispatch_6.f03 Compiler output: $ gfortran -fprofile-generate dynamic_dispatch_6.f03 $ rm dynamic_dispatch_6.gcda $ ./a.out $ gfortran -fprof

[Bug tree-optimization/45071] [4.6 Regression] ICE: tree check: expected ssa_name, have integer_cst in inhibit_phi_insertion, at tree-ssa-pre.c:3278 with -ftree-pre -ftree-vectorize

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-07-26 12:49 --- Subject: Bug 45071 Author: rguenth Date: Mon Jul 26 12:48:37 2010 New Revision: 162534 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162534 Log: 2010-07-26 Richard Guenther PR tree-optimization/

[Bug tree-optimization/45071] [4.6 Regression] ICE: tree check: expected ssa_name, have integer_cst in inhibit_phi_insertion, at tree-ssa-pre.c:3278 with -ftree-pre -ftree-vectorize

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-07-26 12:48 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug target/44903] [4.6 Regression] FAIL: gcc.dg/pr35258.c execution test

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #19 from rguenth at gcc dot gnu dot org 2010-07-26 12:45 --- Mine again (only for restoring the pre-MEM_REF behavior). -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug target/44903] [4.6 Regression] FAIL: gcc.dg/pr35258.c execution test

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #18 from rguenth at gcc dot gnu dot org 2010-07-26 12:45 --- Created an attachment (id=21314) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21314&action=view) patch Please check whether the attached patch fixes the testcase this bug is about. -- http://gcc.gnu.or

[Bug tree-optimization/45059] [4.6 Regression] error: invalid operands in binary operation, leads to ICE: verify_stmts failed

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2010-07-26 12:39 --- Simplified testcase: typedef unsigned int T; extern void foo (unsigned char *, int); static signed char a; static T b[1] = { -1 }; static unsigned char c; static inline short int bar (short v) { c |= a < b[0]; r

[Bug target/44903] [4.6 Regression] FAIL: gcc.dg/pr35258.c execution test

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #17 from rguenth at gcc dot gnu dot org 2010-07-26 12:21 --- One of the issues is /* For a MEM rtx, the alignment in bits. We can use the alignment of the mode as a default when STRICT_ALIGNMENT, but not if not. */ #define MEM_ALIGN(RTX)

[Bug tree-optimization/44997] [4.6 regression] tree-chrec introduces broken asm code

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2010-07-26 11:51 --- Isn't this dup of PR45075? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44997

[Bug c/45062] [4.6 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in start_decl, at c-decl.c:4064

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-07-26 11:47 --- This is caused also by http://gcc.gnu.org/ml/gcc-cvs/2010-07/msg00577.html but likely unrelated to the other PR, this is in C FE, that one is in C++ FE. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45062

[Bug tree-optimization/45073] [4.6 Regression] gfortran.dg/assumed_charlen_function_3.f90 ICEs with -fprofile-generate

2010-07-26 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-07-26 11:34 --- Introduced by r161655 aka MEM-REF merge. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/45056] [4.6 Regression] ICE: in refs_may_alias_p_1, at tree-ssa-alias.c:1023

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2010-07-26 11:00 --- Invalid MEMs in debug-insns (invalid as in not folded). Why does the scheduler query the alias oracle about them? (debug_insn 49 48 50 7 t.cc:22 (var_location:DI D#3 (mem/s/f/j:DI (plus:DI (reg/f:DI 54 virtual-stac

[Bug rtl-optimization/45061] [4.6 Regression] ICE: in check_allocation, at ira.c:1677 with -O2 -ftracer -fira-coalesce

2010-07-26 Thread bernds at gcc dot gnu dot org
--- Comment #3 from bernds at gcc dot gnu dot org 2010-07-26 11:00 --- Vlad intends to remove flag_ira_coalesce anyway, so there's probably not too much point investigating this. -- bernds at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug tree-optimization/45073] [4.6 Regression] gfortran.dg/assumed_charlen_function_3.f90 ICEs with -fprofile-generate

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

[Bug tree-optimization/45072] [4.6 Regression] 23_containers/vector/bool/modifiers/erase/1.cc FAILs with -fprofile-generate

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

[Bug tree-optimization/45071] [4.6 Regression] ICE: tree check: expected ssa_name, have integer_cst in inhibit_phi_insertion, at tree-ssa-pre.c:3278 with -ftree-pre -ftree-vectorize

2010-07-26 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-07-26 10:33 --- I have a patch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|

[Bug fortran/45066] [4.6 Regression] ICE in namelist read in snapshot of 7/24/2010

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #10 from burnus at gcc dot gnu dot org 2010-07-26 10:32 --- (In reply to comment #8) > I wonder how many other issues this patch fixes. Seemingly none of those -fwhole-file/-fwhole-program issues which I wanted to see fixed :-( Well, at least this PR is now FIXED. Thanks fo

[Bug fortran/45066] [4.6 Regression] ICE in namelist read in snapshot of 7/24/2010

2010-07-26 Thread burnus at gcc dot gnu dot org
--- Comment #9 from burnus at gcc dot gnu dot org 2010-07-26 10:31 --- Subject: Bug 45066 Author: burnus Date: Mon Jul 26 10:30:45 2010 New Revision: 162532 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162532 Log: 2010-07-26 Tobias Burnus PR fortran/45066 *

[Bug bootstrap/45067] [4.6 regression] ARM bootstrap failure: internal compiler error: in expand_widen_pattern_expr, at optabs.c:522

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

[Bug middle-end/45017] miscompile with bitfield and optimization

2010-07-26 Thread borntraeger at de dot ibm dot com
--- Comment #14 from borntraeger at de dot ibm dot com 2010-07-26 10:13 --- I have seen the original problem only with bitfields. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45017

  1   2   >