[Bug middle-end/38474] [4.3/4.4 Regression] slow compilation at -O0 (callgraph optimization, inline heuristics, expand )

2008-12-17 Thread jv244 at cam dot ac dot uk
--- Comment #31 from jv244 at cam dot ac dot uk 2008-12-17 08:36 --- (In reply to comment #30) > I think redoing this with 4.4.0 would be useful, to check if new code (like > IRA) uses this kind of non-linear algorithms. But the register renaming patch > hasn't changed between 4.3 and 4

[Bug target/38544] missed opportunity to use adc

2008-12-17 Thread ubizjak at gmail dot com
--- Comment #1 from ubizjak at gmail dot com 2008-12-17 08:56 --- There are various scary comments in ifcvt.c, noce_process_if_block() regarding memory operands, like: /* Only operate on register destinations, and even then avoid extending the lifetime of hard registers on small

[Bug rtl-optimization/38544] missed opportunity to use adc

2008-12-17 Thread ubizjak at gmail dot com
--- Comment #2 from ubizjak at gmail dot com 2008-12-17 08:58 --- Setting Component to Generic RTL optimization. -- ubizjak at gmail dot com changed: What|Removed |Added

[Bug c++/38545] [regression 4.4.0] Conflict between a type and an argument sharing the same name.

2008-12-17 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-12-17 08:59 --- See PR37302, the 4.4.0 behavior is IMHO correct. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug libobjc/27466] RFE: Support for libobjc equivalent of std::set_unexpected

2008-12-17 Thread rfm at gnu dot org
--- Comment #4 from rfm at gnu dot org 2008-12-17 09:36 --- Is anyone monitoring/progressing this bug? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27466

[Bug middle-end/38474] [4.3/4.4 Regression] slow compilation at -O0 (callgraph optimization, inline heuristics, expand )

2008-12-17 Thread jv244 at cam dot ac dot uk
--- Comment #32 from jv244 at cam dot ac dot uk 2008-12-17 12:58 --- The 9.3Gb for 4.4 is confirmed. I attached gdb to the process at that point (after about 70min of compilation), and that is the backtrace: #0 0x00b48a9a in bucket_allocno_compare_func (v1p=0x7fffe3592d98, v2p=

[Bug middle-end/38556] [4.4 Regression] Revision 142792 breaks bootrap

2008-12-17 Thread hjl at gcc dot gnu dot org
--- Comment #1 from hjl at gcc dot gnu dot org 2008-12-17 17:06 --- Subject: Bug 38556 Author: hjl Date: Wed Dec 17 17:05:05 2008 New Revision: 142794 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142794 Log: 2008-12-17 H.J. Lu PR middle-end/38556 * calls.c

[Bug libstdc++/38466] std::swap does not use std::swap for the components of a std::pair

2008-12-17 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2008-12-17 17:38 --- The __swap_impl idea makes sense but note that user code can tell it from the "standard" one when something throws. All in all, given that C++0x will be Ok wrt these issues, I'm not sure we want to attempt some

[Bug rtl-optimization/38495] ACATS tests cxa4004 cxa4005 cxa4026 fail

2008-12-17 Thread ebotcazou at gcc dot gnu dot org
-- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |major http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38495

[Bug rtl-optimization/38495] ACATS tests cxa4004 cxa4005 cxa4026 fail

2008-12-17 Thread ebotcazou at gcc dot gnu dot org
--- Comment #3 from ebotcazou at gcc dot gnu dot org 2008-12-17 17:19 --- Created an attachment (id=16917) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16917&action=view) Reduced testcase To be gnatchop-ed and compiled at -O2 -gnatp -mtune=i686. -- http://gcc.gnu.org/bugzil

[Bug middle-end/38533] [4.2/4.3/4.4 regression] tree-ssa-reassoc.c increases register pressure several times

2008-12-17 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2008-12-17 16:04 --- The problem with the patch is that useless insns (visited with has_zero_uses on lhs) are now scattered in the bbs and so aren't removed immediately. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38533

[Bug libstdc++/36801] config/cpu/generic/atomicity_mutex/atomicity.h incorrectly relies on global constructor ordering

2008-12-17 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2008-12-17 17:21 --- Benjamin, any feedback on this? Thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36801

[Bug middle-end/38556] [4.4 Regression] Revision 142792 breaks bootstrap

2008-12-17 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2008-12-17 17:34 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|UNCONFIRM

[Bug c++/37922] [4.3/4.4 Regression] code generation error

2008-12-17 Thread rwgk at yahoo dot com
--- Comment #18 from rwgk at yahoo dot com 2008-12-17 19:01 --- (In reply to comment #17) > A patch is posted at > > http://gcc.gnu.org/ml/gcc-patches/2008-12/msg00943.html > I tried this patch locally and I'm happy to report that it fixes the original problem. Thanks! -- http://

[Bug target/38553] New: [4.3 Regression] Segfault in ggc_set_mark with -maltivec

2008-12-17 Thread tbm at cyrius dot com
[ forwarded from http://bugs.debian.org/508576 ] Michael Buesch reported the following segfault with gcc 4.3 on powerpc with -maltivec. I confirmed that the bug is still present in 4.3 from SVN and that it's not present on the trunk. ./xgcc -B. -maltivec --param ggc-min-expand=0 --param ggc-min-

[Bug c++/38557] New: dynamic_cast should give a warning/error for non related classes

2008-12-17 Thread Woebbeking at web dot de
Hi, in this example struct A { virtual ~A() {} }; struct B { virtual ~B() {} }; int main() { A* a(0); dynamic_cast(a); static_cast(a); return 0; } the static_cast gives an error but the dynamic_cast not even a warning. Cheers, André -- Summary: dynam

[Bug c++/38552] New: Invalid function return path analysis error report

2008-12-17 Thread piotr dot wyderski at gmail dot com
The following snippet: 8<- #include typedef std::auto_ptr v_type; v_type fn(int v) { v_type r(new int(4)); switch(v) { case 1: case 2: { return v_type(new int(5)); } break; default: return r; } }

[Bug middle-end/38474] [4.3/4.4 Regression] slow compilation at -O0 (callgraph optimization, inline heuristics, expand )

2008-12-17 Thread steven at gcc dot gnu dot org
--- Comment #33 from steven at gcc dot gnu dot org 2008-12-17 19:40 --- cfgexpand.c:defer_stack_allocation() has this gem: /* Without optimization, *most* variables are allocated from the stack, which makes the quadratic problem large exactly when we want compilation to proc

[Bug c/38549] New: EICALL PROBLEM in WINAVR GCC

2008-12-17 Thread ilyasyilmaz at gmail dot com
Hello, i use winavr gcc for programming atmega2561 microcontroller. 2561 has 256 K program memory our code works good below 128 K but when our code becomes larger than 128 K byte, does not work properly. this is because eicall assembler command. there must be an EIND=1 command before accessing the

[Bug bootstrap/38523] [4.4 regression] arm build fails to link cc1-dummy

2008-12-17 Thread laurent at guerby dot net
--- Comment #6 from laurent at guerby dot net 2008-12-17 11:13 --- I confirm that on trunk adding to configure: --enable-stage1-checking=release allows a full bootstrap. I did not test STAGE1_CFLAGS="-g -O" yet. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38523

[Bug middle-end/36359] missed optimization in some cases with PRE VRP and other passes combined together

2008-12-17 Thread linuxl4 at sohu dot com
--- Comment #18 from linuxl4 at sohu dot com 2008-12-17 20:08 --- confirmed for linux kernel 2.6.28-rc8. -- linuxl4 at sohu dot com changed: What|Removed |Added

[Bug c++/38555] Invalid function return path analysis error report

2008-12-17 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2008-12-17 15:31 --- *** This bug has been marked as a duplicate of 38552 *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added ---

[Bug fortran/31822] Missing run-time bound checks for character pointer => target

2008-12-17 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-12-17 09:46 --- For completeness: The compile-time check works in gfortran character(len=10), target :: str character(len=5), pointer :: ptr ptr => str end Error: Different character lengths in pointer assignment at (1) Howe

[Bug c++/38552] Invalid function return path analysis error report

2008-12-17 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2008-12-17 15:31 --- *** Bug 38555 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38552

[Bug c++/37922] [4.3/4.4 Regression] code generation error

2008-12-17 Thread hjl dot tools at gmail dot com
--- Comment #17 from hjl dot tools at gmail dot com 2008-12-17 15:45 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2008-12/msg00943.html -- hjl dot tools at gmail dot com changed: What|Removed |Added -

[Bug target/38558] New: [avr] ICE on function attribute syntax for __vectorN()

2008-12-17 Thread jw at suse dot de
cross-avr-gcc-4.1.3_20080612 has the same issue as reported in bug#31331 for 4.1.1 Is this to be expected, or should it be fixed in 4.1.3? reported in https://bugzilla.novell.com/show_bug.cgi?id=458890 -- Summary: [avr] ICE on function attribute syntax for __vectorN() Pro

[Bug c/38554] ICE when compiling pamfunc.c in netpbm with -O1 enabled

2008-12-17 Thread r0bertz at gentoo dot org
--- Comment #1 from r0bertz at gentoo dot org 2008-12-17 14:43 --- http://www.gentoo-cn.org/~zhangle/pamfunc.i I can't upload the attachment. So I have uploaded the preprocessed file to my server. Please get it at the above link. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38554

[Bug libstdc++/37144] A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp

2008-12-17 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last re

[Bug c/38550] New: EICALL PROBLEM in WINAVR GCC

2008-12-17 Thread ilyasyilmaz at gmail dot com
Hello, i use winavr gcc for programming atmega2561 microcontroller. 2561 has 256 K program memory our code works good below 128 K but when our code becomes larger than 128 K byte, does not work properly. this is because eicall assembler command. there must be an EIND=1 command before accessing the

[Bug rtl-optimization/38495] ACATS tests cxa4004 cxa4005 cxa4026 fail

2008-12-17 Thread ebotcazou at gcc dot gnu dot org
--- Comment #4 from ebotcazou at gcc dot gnu dot org 2008-12-17 17:35 --- Vlad, I'd again need your help for this one, it's apparently a stack slot sharing problem. Ada testcase and instructions have been filed. The problematic excerpt of assembly is: movl%esi, -28(%ebp)

[Bug rtl-optimization/38495] ACATS tests cxa4004 cxa4005 cxa4026 fail

2008-12-17 Thread ebotcazou at gcc dot gnu dot org
--- Comment #2 from ebotcazou at gcc dot gnu dot org 2008-12-17 17:15 --- a-strfix.adb is miscompiled at -O2 -gnatp on i686 (not i586). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38495

[Bug fortran/38137] MERGE: -fbounds-check runtime check for same string length

2008-12-17 Thread domob at gcc dot gnu dot org
--- Comment #2 from domob at gcc dot gnu dot org 2008-12-17 10:18 --- Added the runtime check for -fbounds-check. Thus fixed on trunk (4.4), closing. -- domob at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/31822] Missing run-time bound checks for character pointer => target

2008-12-17 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2008-12-17 09:56 --- For Fortran 97 I found it; it is in the first sentence after the "Contrain:"s "The target shall have the same type parameters as the pointer-object" For Fortran 2003 I'm still searching (it does not seem to be in the

[Bug target/38553] [4.3 Regression] Segfault in ggc_set_mark with -maltivec

2008-12-17 Thread tbm at cyrius dot com
--- Comment #1 from tbm at cyrius dot com 2008-12-17 13:51 --- Program received signal SIGSEGV, Segmentation fault. 0x1006cda0 in ggc_set_mark (p=0x4) at gcc/ggc-page.c:605 605 return base[L1][L2]; (gdb) where #0 0x1006cda0 in ggc_set_mark (p=0x4) at gcc/ggc-page.c:605 #1 0x1000b

[Bug fortran/37848] internal compiler error: Segmentation fault. gfortran openmp

2008-12-17 Thread m dot c dot schaafsma at student dot tudelft dot nl
--- Comment #9 from m dot c dot schaafsma at student dot tudelft dot nl 2008-12-17 13:22 --- Thanks for all the advice, sorry for my absence last months. I am bound to ubuntu Hardy, which supports GCC 4.2.3 It is in my opinion too much work to manually install GCC I resolved my problem

[Bug c/38551] New: EICALL PROBLEM in WINAVR GCC

2008-12-17 Thread ilyasyilmaz at gmail dot com
Hello, i use winavr gcc for programming atmega2561 microcontroller. 2561 has 256 K program memory our code works good below 128 K but when our code becomes larger than 128 K byte, does not work properly. this is because eicall assembler command. there must be an EIND=1 command before accessing the

[Bug fortran/38324] Wrong lbound given to allocatable components

2008-12-17 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2008-12-17 12:20 --- This is, of course, confirmed! Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/38556] New: [4.4 Regression] Revision 142792 breaks bootrap

2008-12-17 Thread hjl dot tools at gmail dot com
On Linux/ia64, I got libbackend.a(calls.o): In function `expand_call': /export/gnu/import/svn/gcc-test/bld/gcc/../../src-trunk/gcc/calls.c:2289: undefined reference to `REG_PARM_STACK_SPACE' collect2: ld returned 1 exit status make[6]: *** [cc1-dummy] Error 1 -- Summary: [4.4 Regress

[Bug rtl-optimization/38495] [4.4 Regression] ACATS tests cxa4004 cxa4005 cxa4026 fail

2008-12-17 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Keywords||ra Summary|ACATS tests cxa4004 cxa4005 |[4.4 Regression] A

[Bug fortran/31822] Missing run-time bound checks for character pointer => target

2008-12-17 Thread domob at gcc dot gnu dot org
--- Comment #3 from domob at gcc dot gnu dot org 2008-12-17 10:14 --- Thanks for the analysis, Tobias, I will then take this on as supplement to PR 38137. -- domob at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38137] MERGE: -fbounds-check runtime check for same string length

2008-12-17 Thread domob at gcc dot gnu dot org
--- Comment #1 from domob at gcc dot gnu dot org 2008-12-17 10:17 --- Subject: Bug 38137 Author: domob Date: Wed Dec 17 10:16:28 2008 New Revision: 142791 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142791 Log: 2008-12-17 Daniel Kraft PR fortran/38137 * tr

[Bug c++/38555] New: Invalid function return path analysis error report

2008-12-17 Thread piotr dot wyderski at gmail dot com
-- Summary: Invalid function return path analysis error report Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org Rep

[Bug target/38553] [4.3 Regression] Segfault in ggc_set_mark with -maltivec

2008-12-17 Thread tbm at cyrius dot com
--- Comment #2 from tbm at cyrius dot com 2008-12-17 13:51 --- When I add -fno-tree-vrp, I get: libmpcodecs/ad_imaadpcm.c:155: internal compiler error: in c_expand_expr, at c-common.c:4543 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38553

[Bug middle-end/38533] [4.2/4.3/4.4 regression] tree-ssa-reassoc.c increases register pressure several times

2008-12-17 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2008-12-17 13:06 --- Created an attachment (id=16915) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16915&action=view) gcc44-pr38533.patch Patch that cures this. Bootstrapped/regtested on x86_64-linux, except for gfortran.dg/reasso

[Bug c/38554] New: ICE when compiling pamfunc.c in netpbm with -O1 enabled

2008-12-17 Thread r0bertz at gentoo dot org
= --enable-linux-futex --enable-checking Thread model: posix gcc version 4.4.0-pre built 20081217 (Gentoo SVN ebuild) rev. 142790 () This is the command line to trigger the bug: /usr/libexec/gcc/mips64el-unknown-linux-gnu/4.4.0-pre/cc1 -quiet -v -I. -Iimportinc -I/var/tmp/portage/media

[Bug target/38548] New: [4.4 Regression] bootstrap broken on arm-linux-gnu (not gnueabi)

2008-12-17 Thread debian-gcc at lists dot debian dot org
http://buildd.debian.org/fetch.cgi?&pkg=gcc-snapshot&ver=20081213-1&arch=arm&stamp=1229194077&file=log not sure how relevant this is, doesn't fail on the current gnueabi configuration. Matthias ar rc libbackend.a insn-attrtab.o insn-automata.o insn-emit.o insn-extract.o insn-modes.o insn-opini

[Bug target/38553] [4.3 Regression] Segfault in ggc_set_mark with -maltivec

2008-12-17 Thread tbm at cyrius dot com
--- Comment #3 from tbm at cyrius dot com 2008-12-17 13:53 --- Created an attachment (id=16916) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16916&action=view) Preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38553

[Bug tree-optimization/38465] [4.4 Regression] graphite libraries undocumented

2008-12-17 Thread spop at gcc dot gnu dot org
--- Comment #2 from spop at gcc dot gnu dot org 2008-12-17 21:49 --- Fixed with http://gcc.gnu.org/viewcvs?view=rev&revision=142798 -- spop at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/32593] Missed optimization of 'y = constant - x' operation

2008-12-17 Thread astrange at ithinksw dot com
--- Comment #4 from astrange at ithinksw dot com 2008-12-17 22:10 --- Causes silly code on i386 with this: void pred8x8l_vertical_add_c(unsigned char *pix, const short *block, int stride){ int i; for(i=0; i<8; i++){ int j; for (j=0; j<8; j++){ pix[j] =

[Bug middle-end/38559] New: [graphite] ICE :in build2_stat, at tree.c:3293

2008-12-17 Thread mitul dot thakkar at amd dot com
During compilation, getting build2_stat failure.. Following is the description for the same. gcc -O2 -floop-block error_build_stat.c error_build_stat.c: In function 'test': error_build_stat.c:1: internal compiler error: in build2_stat, at tree.c:3293 Please submit a full bug report, with preproce

[Bug middle-end/38559] [graphite] ICE :in build2_stat, at tree.c:3293

2008-12-17 Thread mitul dot thakkar at amd dot com
--- Comment #1 from mitul dot thakkar at amd dot com 2008-12-17 23:24 --- Created an attachment (id=16918) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16918&action=view) Reduced Test Case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38559

[Bug c++/38557] dynamic_cast should give a warning/error for non related classes

2008-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-17 23:25 --- I think this is basically the same as PR 12277. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38557

[Bug c/34252] DEC32_MIN_EXP, DEC32_MAX_EXP don't match TR 24732

2008-12-17 Thread janis at gcc dot gnu dot org
--- Comment #1 from janis at gcc dot gnu dot org 2008-12-17 23:37 --- I'm testing a fix. -- janis at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|u

[Bug c++/38560] New: [4.2/4.3/4.4 Regression] -Wall option no longer warns about `class XXX' has virtual functions but non-virtual destructor

2008-12-17 Thread arthur dot loiret at gmail dot com
from Debian bug : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502283 $ cat test.c class XXX { virtual void foo() = 0; }; int main () { } $ g++-4.1 -Wall test.c test.c:1: warning: ‘class XXX’ has virtual functions but non-virtual destructor starting at g++-4.2, there is no warning anymor

[Bug c++/38561] New: [4.4 Regression] Revision 142799 may cause C++ demangle failures

2008-12-17 Thread hjl dot tools at gmail dot com
On Linux/Intel64, I got FAIL at line 3615, options --format=gnu-v3 --no-params: FAIL at line 3621, options --format=gnu-v3 --no-params: FAIL: abi/demangle/regression/cw-16.cc execution test FAIL: abi/demangle/regression/cw-16.cc execution test FAIL: g++.dg/cpp0x/auto12.C scan-assembler _ZN1AIiE1gI

[Bug c++/38561] [4.4 Regression] Revision 142799 may cause C++ demangle failures

2008-12-17 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2008-12-18 00:33 --- I used RUNTESTFLAGS="--target_board 'unix{-m32,}'". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38561

[Bug c++/38562] New: mysql miscompiles and causes testsuite failures

2008-12-17 Thread kees at outflux dot net
Building mysql 5.0.67 with gcc 4.2 and 4.3.2 produce okay results. Building on 4.3.3 20081210 (prerelease) and 4.4.0 20081212 (experimental) [trunk revision 142725] causes problems. Compiling with -O1 (instead of the default -O2) fixes the issue. At least one of the failures was reduced to sql/l

[Bug c++/38562] mysql miscompiles and causes testsuite failures

2008-12-17 Thread kees at outflux dot net
--- Comment #1 from kees at outflux dot net 2008-12-18 00:35 --- Created an attachment (id=16919) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16919&action=view) mysql source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38562

[Bug c++/38562] mysql miscompiles and causes testsuite failures

2008-12-17 Thread kees at outflux dot net
--- Comment #2 from kees at outflux dot net 2008-12-18 00:36 --- Created an attachment (id=16920) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16920&action=view) obj file from -O2 gcc 4.3.2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38562

[Bug c++/38562] mysql miscompiles and causes testsuite failures

2008-12-17 Thread kees at outflux dot net
--- Comment #3 from kees at outflux dot net 2008-12-18 00:38 --- Created an attachment (id=16921) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16921&action=view) obj file from -O2 gcc 4.4.0 20081212 (experimental) [trunk revision 142725] -- http://gcc.gnu.org/bugzilla/show_bu

[Bug c++/38560] [4.2/4.3/4.4 Regression] -Wall option no longer warns about `class XXX' has virtual functions but non-virtual destructor

2008-12-17 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-12-18 00:39 --- See PR7302. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38560

[Bug c++/38562] mysql miscompiles and causes testsuite failures

2008-12-17 Thread kees at outflux dot net
--- Comment #6 from kees at outflux dot net 2008-12-18 00:41 --- Created an attachment (id=16924) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16924&action=view) obj file from -O1 gcc 4.4.0 20081212 (experimental) [trunk revision 142725] -- http://gcc.gnu.org/bugzilla/show_bu

[Bug c++/38562] mysql miscompiles and causes testsuite failures

2008-12-17 Thread kees at outflux dot net
--- Comment #4 from kees at outflux dot net 2008-12-18 00:39 --- Created an attachment (id=16922) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16922&action=view) obj file from -O2 gcc 4.4.0 20081212 (experimental) [trunk revision 142725] -- kees at outflux dot net changed:

[Bug c++/38562] mysql miscompiles and causes testsuite failures

2008-12-17 Thread kees at outflux dot net
--- Comment #5 from kees at outflux dot net 2008-12-18 00:40 --- Created an attachment (id=16923) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16923&action=view) obj file from -O2 gcc 4.3.2 -- kees at outflux dot net changed: What|Removed |A

[Bug c++/38562] [4.3/4.4 regression] mysql miscompiles and causes testsuite failures

2008-12-17 Thread kees at outflux dot net
--- Comment #7 from kees at outflux dot net 2008-12-18 01:07 --- Created an attachment (id=16925) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16925&action=view) 4.4.0 -E output of log_event.cc (bzip2) $ /usr/lib/gcc-snapshot/bin/g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\""

[Bug c/38563] New: sizeof(void) not diagnosed

2008-12-17 Thread derek at knosof dot co dot uk
void f(void) { void *p; sizeof(*p); sizeof(void); } The above code contains a constraint violation. gcc does not currently flag this as a constraint. Using the -pedantic option causes a warning to be generated. "The sizeof operator shall not be applied to an expression that has function type or

[Bug c/38563] sizeof(void) not diagnosed

2008-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-18 01:33 --- -pedantic-errors causes an error to be outputted. Since using pointer arithmetic on void pointers is an extension, using sizeof on void is valid and is defined as 1. *** This bug has been marked as a duplicate of 2

[Bug c/22086] void * dereferenced in sizeof() yields 1

2008-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-12-18 01:33 --- *** Bug 38563 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/16190] -Wnon-virtual-dtor, in -Wall, silenced only by pessimizing code

2008-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #24 from pinskia at gcc dot gnu dot org 2008-12-18 01:35 --- *** Bug 38560 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/38560] [4.2/4.3/4.4 Regression] -Wall option no longer warns about `class XXX' has virtual functions but non-virtual destructor

2008-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-12-18 01:35 --- This is expected, -Wnon-virtual-dtor was moved from -Wall to -Weffc++. See PR 16190. *** This bug has been marked as a duplicate of 16190 *** -- pinskia at gcc dot gnu dot org changed: What|Remo

[Bug tree-optimization/38564] New: ICE in insert_into_preds_of_block

2008-12-17 Thread daney at gcc dot gnu dot org
$ /home/ddaney/gccsvn/native-install/bin/gcc --version gcc (GCC) 4.4.0 20081217 (experimental) [trunk revision 142799] Configured as: ../trunk/configure --prefix=/home/ddaney/gccsvn/native-install --disable-multilib --enable-languages=c With the test case I will attach I get:$ /home/ddaney

[Bug tree-optimization/38564] [4.4 Regression] ICE in insert_into_preds_of_block

2008-12-17 Thread daney at gcc dot gnu dot org
--- Comment #1 from daney at gcc dot gnu dot org 2008-12-18 01:53 --- Created an attachment (id=16926) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16926&action=view) Test case. Here is the somewhat reduced test case. The original code comes from the Linux kernel mm/readahead.c.

[Bug tree-optimization/38564] [4.4 Regression] ICE in insert_into_preds_of_block

2008-12-17 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Summary|ICE in |[4.4 Regression] ICE in |insert_into_preds_of_block

[Bug tree-optimization/38564] [4.4 Regression] ICE in insert_into_preds_of_block

2008-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-12-18 02:09 --- Reduced testcase: struct list_head { struct list_head *next, *prev; }; struct list_head *__current_thread_info; void test_ti_thread_flag(void*); int __do_page_cache_readahead( int nr_to_read) {

[Bug middle-end/38565] New: [4.3 Regression] ICE with vector code

2008-12-17 Thread pinskia at gcc dot gnu dot org
Take: #define vector __attribute__((vector_size(16) )) vector unsigned int f(int a) { vector unsigned int mask = a ? (vector unsigned int){ 0x8000, 0x8000, 0x8000, 0x8000 } : (vector unsigned int){0}; return mask; } --- CUT --- This ICEs in 4.3.3 but not 4.4.0, it does not ICE i

[Bug middle-end/38565] [4.3 Regression] ICE with vector code

2008-12-17 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-18 02:34 --- Oh it only ICEs with the C++ front-end where we get a TARGET_EXPR. The simple fix is: Index: gimplify.c === --- gimplify.c (revision 142804) +++ gimpl

[Bug tree-optimization/38564] [4.4 Regression] Revision 142662 caused ICE in insert_into_preds_of_block

2008-12-17 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2008-12-18 05:57 --- It is caused by revision 142662: http://gcc.gnu.org/ml/gcc-patches/2008-12/msg00686.html -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug middle-end/38505] [4.4 Regression] Revision 142061 caused ICE on __builtin_memcpy

2008-12-17 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2008-12-18 07:53 --- Subject: Bug 38505 Author: jakub Date: Thu Dec 18 07:52:07 2008 New Revision: 142806 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142806 Log: PR middle-end/38505 * tree-ssa.c (useless_type_co

[Bug middle-end/38533] [4.2/4.3/4.4 regression] tree-ssa-reassoc.c increases register pressure several times

2008-12-17 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2008-12-18 07:56 --- Subject: Bug 38533 Author: jakub Date: Thu Dec 18 07:54:43 2008 New Revision: 142807 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142807 Log: PR middle-end/38533 * tree-ssa-reassoc.c (remove_

[Bug middle-end/38505] [4.4 Regression] Revision 142061 caused ICE on __builtin_memcpy

2008-12-17 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2008-12-18 07:55 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED