[Bug other/41809] escaping address of packed field should trigger warning

2009-10-26 Thread hp at gcc dot gnu dot org
--- Comment #1 from hp at gcc dot gnu dot org 2009-10-26 21:46 --- To whomever will fix this: beware not to introduce warnings for targets where the packed layout is the default. (As has happened in the past for other packed warnings.) -- hp at gcc dot gnu dot org changed:

[Bug tree-optimization/41775] [4.5 Regression] IPA-SRA: ice in rewrite_stmt, at tree-into-ssa.c:1302

2009-10-26 Thread jamborm at gcc dot gnu dot org
--- Comment #3 from jamborm at gcc dot gnu dot org 2009-10-26 21:53 --- Created an attachment (id=18903) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18903action=view) Proposed fix Indeed, the users of build_ref_for_offset in ipa-prop.c and ipa-cp.c do not unshare the base

[Bug lto/41832] lto1: internal compiler error: verify_stmts failed

2009-10-26 Thread b3timmons at speedymail dot org
--- Comment #6 from b3timmons at speedymail dot org 2009-10-26 21:59 --- Right, I just tried it with a later gcc build and now cannot reproduce it. Looks like we should close it. -- b3timmons at speedymail dot org changed: What|Removed |Added

[Bug c/41837] New: Using '-O -fipa-struct-reorg -fwhole-program -combine -fprofile-generate' gives 'internal compiler error: Segmentation fault'

2009-10-26 Thread b3timmons at speedymail dot org
/gcc/configure --with-mpfr=/usr/local --with-gmp=/usr/local --with-ppl=/usr/local --with-cloog=/usr/local --with-mpc=/usr/local --with-libelf=/usr/local --enable-languages=c,c++ --enable-__cxa_atexit --enable-targets=all Thread model: posix gcc version 4.5.0 20091026 (experimental) (GCC

[Bug c/41837] Using '-O -fipa-struct-reorg -fwhole-program -combine -fprofile-generate' gives 'internal compiler error: Segmentation fault'

2009-10-26 Thread b3timmons at speedymail dot org
--- Comment #1 from b3timmons at speedymail dot org 2009-10-26 22:27 --- Created an attachment (id=18904) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18904action=view) preprocessed source triggering failure -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41837

[Bug c/41837] Using '-O -fipa-struct-reorg -fwhole-program -combine -fprofile-generate' gives 'internal compiler error: Segmentation fault'

2009-10-26 Thread b3timmons at speedymail dot org
--- Comment #2 from b3timmons at speedymail dot org 2009-10-26 22:28 --- Created an attachment (id=18905) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18905action=view) preprocessed source triggering failure -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41837

[Bug c/41837] Using '-O -fipa-struct-reorg -fwhole-program -combine -fprofile-generate' gives 'internal compiler error: Segmentation fault'

2009-10-26 Thread b3timmons at speedymail dot org
--- Comment #3 from b3timmons at speedymail dot org 2009-10-26 22:30 --- Created an attachment (id=18906) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18906action=view) preprocessed source triggering failure -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41837

[Bug c/41837] Using '-O -fipa-struct-reorg -fwhole-program -combine -fprofile-generate' gives 'internal compiler error: Segmentation fault'

2009-10-26 Thread b3timmons at speedymail dot org
--- Comment #4 from b3timmons at speedymail dot org 2009-10-26 22:33 --- Created an attachment (id=18907) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18907action=view) gzipped preprocessed source triggering failure Had to gzip file due to submission timing out --

[Bug fortran/41831] Bug with management of NaNs

2009-10-26 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2009-10-26 22:39 --- My conclusion is that there is a problem when the NAN is passed from the C to the fortran. That's not my conclusion. :) double C2F(returnanan)(void) { (snip) PROGRAM test DATA ONE/1.0D0/

[Bug c++/41838] Incorrect dereferencing pointer 'anonymous' does break strict-aliasing rules

2009-10-26 Thread jyasskin at gmail dot com
--- Comment #1 from jyasskin at gmail dot com 2009-10-26 23:04 --- Created an attachment (id=18908) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18908action=view) File with incorrect strict-aliasing warning -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41838

[Bug c++/41838] New: Incorrect dereferencing pointer 'anonymous' does break strict-aliasing rules

2009-10-26 Thread jyasskin at gmail dot com
The attached Triple.i, when compiled with `g++ -c -O2 -Wstrict-aliasing Triple.i`, returns: Triple.i: In function 'void setOSName(const StringRef)': Triple.i:9: warning: dereferencing pointer 'anonymous' does break strict-aliasing rules Triple.i:9: note: initialized from here Line 9 is: if

[Bug debug/41828] DW_AT_name should not be present for anonymous aggregates

2009-10-26 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-10-26 23:11 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug bootstrap/41345] [4.5 Regression] bootstrap comparison failure with --disable-checking

2009-10-26 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2009-10-26 23:12 --- Fixed. x86_64-linux and i686-linux bootstrapped/regtested with --disable-checking just fine. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/41838] Incorrect dereferencing pointer 'anonymous' does break strict-aliasing rules

2009-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-10-26 23:42 --- There's no aliasing through the void*. This is not true. In fact aliasing is not about what the type of the pointers are but what the dynamic type of what the pointer points to and the access type. But that is

[Bug other/41820] cc1: error: Cannot load plugin ./selfassign.so

2009-10-26 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca 2009-10-26 23:43 --- Subject: Re: cc1: error: Cannot load plugin ./selfassign.so There is configure fluff in gcc/configure.ac at the --enable-plugin handling that should deal with this (it tries -rdynamic at the moment).

[Bug lto/41808] error: non-trivial conversion at assignment

2009-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-10-27 00:26 --- I have a C testcase which shows the same issue do you want it? It shows up while building libxml2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41808

[Bug lto/41821] ICE in LTO when linking

2009-10-26 Thread mckelvey at maskull dot com
--- Comment #5 from mckelvey at maskull dot com 2009-10-27 01:04 --- (In reply to comment #4) Subject: Re: ICE in LTO when linking On Sun, 25 Oct 2009, mckelvey at maskull dot com wrote: --- Comment #3 from mckelvey at maskull dot com 2009-10-25 16:32 ---

[Bug lto/41808] error: non-trivial conversion at assignment

2009-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2009-10-27 01:14 --- (In reply to comment #4) I have a C testcase which shows the same issue do you want it? It shows up while building libxml2. Actually looks related but different, there is no inlining involved there. --

[Bug lto/41821] ICE in LTO when linking

2009-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2009-10-27 01:17 --- stest0.o and libPatternDriver.a Actually since you are not using the gold linker plugin we only really need the preprocessed source for stest0.o . Since collect2 does not understand archives right now. --

[Bug lto/41839] New: ICE with lto and incomplete types

2009-10-26 Thread pinskia at gcc dot gnu dot org
Take the following two files: typedef struct _xmlDict xmlDict; struct _xmlDict { int ref_counter; }; void xmlDictCreate(void) { xmlDict * dict; } --- CUT --- typedef struct _xmlDict xmlDict; struct _xmlDoc { struct _xmlDict *dict; }; void xmlAddEntity(struct _xmlDoc *a) { xmlDict * dict =

[Bug lto/41839] ICE with lto and incomplete types

2009-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-10-27 02:31 --- Note this originally comes from libxml2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41839

[Bug lto/41836] LTO and profile-generate is broken

2009-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-10-27 02:38 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug c++/41819] [4.5 regression] ICE with try/catch and -fno-exceptions

2009-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-10-27 02:42 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/41817] elfutils triggers bogus may be uninitialized with -O3 -mtune=k8

2009-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2009-10-27 02:44 --- These might not be bogus as there is extra inlining at -O3 which causes us to strip out the address taking and make search_table_entries, etc. look like real variables. --

[Bug c++/41840] New: g++ compiler giving error for array of pointers of abstract base class

2009-10-26 Thread ganesh dot borse at credit-suisse dot com
Following code is not compiling with g++ 4.2.3, but compiles fine with g++ 3.3.3: == #includeiostream class mybase { public: virtual int afunc()=0; }; main() { mybase (*ptrs)[10]; } == Error given by g++4.2.3 is as below for the above code.

[Bug c/41841] New: segfault using '-O -fipa-cp -fipa-struct-reorg -fwhole-program -combine -fprofile-generate'

2009-10-26 Thread b3timmons at speedymail dot org
with: /home/b3po/build/gcc/gcc/configure --with-mpfr=/usr/local --with-gmp=/usr/local --with-ppl=/usr/local --with-cloog=/usr/local --with-mpc=/usr/local --with-libelf=/usr/local --enable-languages=c,c++ --enable-__cxa_atexit --enable-targets=all Thread model: posix gcc version 4.5.0 20091026 (experimental

[Bug c/41841] segfault using '-O -fipa-cp -fipa-struct-reorg -fwhole-program -combine -fprofile-generate'

2009-10-26 Thread b3timmons at speedymail dot org
--- Comment #1 from b3timmons at speedymail dot org 2009-10-27 05:07 --- Created an attachment (id=18910) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18910action=view) gzipped preprocessed source triggering failure -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41841

[Bug c/41842] New: ICE on invalid variable length array declaration

2009-10-26 Thread truedfx at gentoo dot org
This happened in real code, where a required header file was missing. $ cat bug.i void f() { char x[g(h)]; } $ gcc-4.4.2 -c bug.i bug.i: In function ‘f’: bug.i:2: error: ‘h’ undeclared (first use in this function) bug.i:2: error: (Each undeclared identifier is reported only once bug.i:2:

<    1   2