[Bug c++/41985] New: Internal compiler error reported.

2009-11-08 Thread philippe dot hoogvorst at neuf dot fr
= >uname -a Linux saturne 2.6.30-2-686 #1 SMP Sat Sep 26 01:16:22 UTC 2009 i686 GNU/Linux = >cat check-pshuf.cpp ty

[Bug c++/41986] New: incorrect execution via addition of -finline-functions

2009-11-08 Thread tim dot dawborn at gmail dot com
Compiling with "-Wall -O2" results in the correct execution of this code. Compiling with "-Wall -O2 -finline-functions" with the code as attached, causes the assertion to fail, which should not happen. However, if you uncomment either of the std::cout lines in Decoder.cc or DecoderDerivs.cc and rec

[Bug c++/41986] incorrect execution via addition of -finline-functions

2009-11-08 Thread tim dot dawborn at gmail dot com
--- Comment #1 from tim dot dawborn at gmail dot com 2009-11-08 09:45 --- Created an attachment (id=18992) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18992&action=view) the code required to reproduce the bug $ tar -zxf test.tgz $ cd test $ make clean all $ ./main main: Decoder

[Bug c/41979] GCC fails to compile MPC-HC's ffmpeg/libavcodec

2009-11-08 Thread brunorex at gmail dot com
--- Comment #4 from brunorex at gmail dot com 2009-11-08 10:28 --- Created an attachment (id=18993) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18993&action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41979

[Bug c/41979] GCC fails to compile MPC-HC's ffmpeg/libavcodec

2009-11-08 Thread brunorex at gmail dot com
--- Comment #5 from brunorex at gmail dot com 2009-11-08 10:29 --- Preprocessed source added. Got this but should be normal: gcc.exe: warning: -pipe ignored because -save-temps specified -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41979

[Bug target/41985] Internal compiler error reported.

2009-11-08 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-11-08 11:31 --- There's a typo here: asm( "pshufd $0x55,%1,%&" : "=x"(A) : "g"(S) ); %& is not valid. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/41986] incorrect execution via addition of -finline-functions

2009-11-08 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-11-08 11:36 --- You seem to run afoul generic floating point equality comparison issues. best_score possibly modifies scores and calls back to best_equiv. Roudning issues with the accumulation can lead to the failure. So, we need

[Bug target/41979] GCC fails to compile MPC-HC's ffmpeg/libavcodec

2009-11-08 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-11-08 12:04 --- I can't reproduce it on i?86-linux even before the PR41928 fix. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug rtl-optimization/41928] [4.5 Regression] segfault at gcc/bitmap.c:297

2009-11-08 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2009-11-08 12:10 --- Subject: Bug 41928 Author: rguenth Date: Sun Nov 8 12:10:32 2009 New Revision: 154008 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154008 Log: 2009-11-08 Richard Guenther PR rtl-optimization/4

[Bug rtl-optimization/41928] [4.5 Regression] segfault at gcc/bitmap.c:297

2009-11-08 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2009-11-08 12:10 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug target/41985] Internal compiler error reported.

2009-11-08 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-11-08 13:45 --- http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00432.html -- jakub at gcc dot gnu dot org changed: What|Removed |Added -

[Bug tree-optimization/41987] New: [4.5 Regression] expected class �constant�, have �binary� (rdiv_expr) in build_complex, at tree.c:1485

2009-11-08 Thread jv244 at cam dot ac dot uk
> gfortran -c -O1 bug.f90 bug.f90: In function ‘__colvar_methods_MOD_qparm_colvar’: bug.f90:13:0: internal compiler error: tree check: expected class ‘constant’, have ‘binary’ (rdiv_expr) in build_complex, at tree.c:1485 Please submit a full bug report, with preprocessed source if appropriat

[Bug c++/41986] incorrect execution via addition of -finline-functions

2009-11-08 Thread tim dot dawborn at gmail dot com
--- Comment #3 from tim dot dawborn at gmail dot com 2009-11-08 14:15 --- Thanks. Your comment sparked an idea. There is no bug in the logic of the source code itself, nor should there be any floating point differences anywhere. There should be no floating point differences as for every

[Bug tree-optimization/41987] [4.5 Regression] expected class �constant�, have �binary� (rdiv_expr) in build_complex, at tree.c:1485

2009-11-08 Thread jv244 at cam dot ac dot uk
-- jv244 at cam dot ac dot uk changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41987

[Bug debug/41988] New: [4.5 Regression] FAIL: g++.dg/debug/*.C -gdwarf-2 -g1 (internal compiler error)

2009-11-08 Thread dominiq at lps dot ens dot fr
Since at least revision 152615, I see the following failures on i686-apple-darwin9 in 32 bit mode (see http://gcc.gnu.org/ml/gcc-testresults/2009-11/msg00699.html): Running target unix FAIL: g++.dg/debug/anonunion1.C -gdwarf-2 -g1 (internal compiler error) FAIL: g++.dg/debug/anonunion1.C -gdwarf-2

[Bug tree-optimization/41987] [4.5 Regression] expected class �constant�, have �binary� (rdiv_expr) in build_complex, at tree.c:1485

2009-11-08 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-11-08 14:55 --- Works for me on i?86-linux, so which target and which revision? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41987

[Bug tree-optimization/41987] [4.5 Regression] expected class �constant�, have �binary� (rdiv_expr) in build_complex, at tree.c:1485

2009-11-08 Thread jv244 at cam dot ac dot uk
ran --disable-multilib --with-ppl=/data03/vondele/gcc_trunk/build/ --with-cloog=/data03/vondele/gcc_trunk/build/ --with-libelf=/data03/vondele/libelf-0.8.12/build/ --enable-gold --enable-lto --enable-plugins Thread model: posix gcc version 4.5.0 20091108 (experimental) [trunk revision 154009] (

[Bug debug/41988] [4.5 Regression] FAIL: g++.dg/debug/*.C -gdwarf-2 -g1 (internal compiler error)

2009-11-08 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41988

[Bug debug/41988] [4.5 Regression] FAIL: g++.dg/debug/*.C -gdwarf-2 -g1 (internal compiler error)

2009-11-08 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-11-08 17:03 --- This was more likely caused by HJL's stack alignment patches based on the context of the ICE. I had also saw this the last time I ran the testsuite on x86-darwin. -- pinskia at gcc dot gnu dot org changed:

[Bug middle-end/41963] [4.5 Regression] 177.mesa in SPEC CPU 2K is miscompiled

2009-11-08 Thread uros at gcc dot gnu dot org
--- Comment #8 from uros at gcc dot gnu dot org 2009-11-08 18:10 --- Subject: Bug 41963 Author: uros Date: Sun Nov 8 18:10:10 2009 New Revision: 154011 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154011 Log: Backport from mainline: 2009-11-06 Michael Matz

[Bug tree-optimization/41987] [4.5 Regression] expected class �constant�, have �binary� (rdiv_expr) in build_complex, at tree.c:1485

2009-11-08 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2009-11-08 18:34 --- Reduced test case. SUBROUTINE qparm_colvar COMPLEX ylm ylm = 0 nbond = 0 ylm = ylm / nbond END SUBROUTINE qparm_colvar EMOVE:kargl[218] gfc4x -c -O -v jj.f90 Using built-in specs. COLLECT_GCC=gfortran COLLECT

[Bug c/41989] New: Code optimized for AMD Geode is slower than generic

2009-11-08 Thread rootkit85 at yahoo dot it
I noticed that when compiling with -march=geode the code is actually slower than the one generated with generic options (i386 or i686). This happens with any program, not just with dhrystone # CFLAGS='-march=i386' ./dry.c Dhrystones per Second: 643501 # CFLAGS='-march=i4

[Bug c/41989] Code optimized for AMD Geode is slower than generic

2009-11-08 Thread rootkit85 at yahoo dot it
--- Comment #1 from rootkit85 at yahoo dot it 2009-11-08 18:51 --- Created an attachment (id=18994) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18994&action=view) the dhrystone benchmark -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41989

[Bug target/41989] Code optimized for AMD Geode is slower than generic

2009-11-08 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-11-08 18:55 --- On which Geode is this on? Is this with the first generation Geode or the one AMD made? Because if it is the latter, it is not really a Geode but a k6/k7 based processor. -- http://gcc.gnu.org/bugzilla/show_

[Bug target/41989] Code optimized for AMD Geode is slower than generic

2009-11-08 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-11-08 19:00 --- Try -march=native instead. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41989

[Bug libstdc++/41622] [DR 1245] [c++0x] std::hash::operator() copies its argument

2009-11-08 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2009-11-08 19:06 --- DR submitted, preview here, will be in R68: http://home.roadrunner.com/~hinnant/issue_review/lwg-active.html#1245 Actually, the proposed resolution at the moment lacks the adjustments to the hash and hash b

[Bug libstdc++/41622] [DR 1245] [c++0x] std::hash::operator() copies its argument

2009-11-08 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |paolo dot carlini at oracle |dot org

[Bug libstdc++/41622] [DR 1245] [c++0x] std::hash::operator() copies its argument

2009-11-08 Thread paolo dot carlini at oracle dot com
-- paolo dot carlini at oracle dot com changed: What|Removed |Added Status|ASSIGNED|SUSPENDED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41622

[Bug target/41989] Code optimized for AMD Geode is slower than generic

2009-11-08 Thread rootkit85 at yahoo dot it
--- Comment #4 from rootkit85 at yahoo dot it 2009-11-08 19:52 --- # cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 5 model : 10 model name : Geode(TM) Integrated Processor by AMD PCS stepping: 2 cpu MHz : 498.060 cac

Re: [Bug target/41989] Code optimized for AMD Geode is slower than generic

2009-11-08 Thread Andrew Pinski
Sent from my iPhone On Nov 8, 2009, at 11:52 AM, "rootkit85 at yahoo dot it" > wrote: --- Comment #4 from rootkit85 at yahoo dot it 2009-11-08 19:52 --- # cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 5 model : 10 model name

[Bug target/41989] Code optimized for AMD Geode is slower than generic

2009-11-08 Thread pinskia at gmail dot com
--- Comment #5 from pinskia at gmail dot com 2009-11-08 19:57 --- Subject: Re: Code optimized for AMD Geode is slower than generic Sent from my iPhone On Nov 8, 2009, at 11:52 AM, "rootkit85 at yahoo dot it" wrote: > > > --- Comment #4 from rootkit85 at yahoo dot it 2009-11-0

[Bug c/41990] New: Incorrect stack setup on x86_64

2009-11-08 Thread cube at cubidou dot net
Provided a somewhat specific set of local variables, and as long as the code of the function doesn't make any other function calls, gcc will decrease %rsp but an incorrect and too small value. This leads to local variables being corrupted when the execution is interrupted; this happens notably in

[Bug c/41990] Incorrect stack setup on x86_64

2009-11-08 Thread cube at cubidou dot net
--- Comment #1 from cube at cubidou dot net 2009-11-08 20:27 --- Created an attachment (id=18995) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18995&action=view) Test case This very simple C file will expose the bug. In the assembler output, see how only 152 is substracted to %r

Re: [Bug c/41990] New: Incorrect stack setup on x86_64

2009-11-08 Thread Andrew Pinski
The x86_64 abi includes a red zone. So I doubt this a bug in gcc unless netbsd's abi does not match what gcc does. Sent from my iPhone On Nov 8, 2009, at 12:25 PM, "cube at cubidou dot net" > wrote: Provided a somewhat specific set of local variables, and as long as the code of the functio

[Bug c/41990] Incorrect stack setup on x86_64

2009-11-08 Thread pinskia at gmail dot com
--- Comment #2 from pinskia at gmail dot com 2009-11-08 20:29 --- Subject: Re: New: Incorrect stack setup on x86_64 The x86_64 abi includes a red zone. So I doubt this a bug in gcc unless netbsd's abi does not match what gcc does. Sent from my iPhone On Nov 8, 2009, at 12:25 PM, "

[Bug c/41990] Incorrect stack setup on x86_64

2009-11-08 Thread cube at cubidou dot net
--- Comment #3 from cube at cubidou dot net 2009-11-08 20:37 --- Subject: Re: Incorrect stack setup on x86_64 On Sun, Nov 08, 2009 at 08:29:44PM -, pinskia at gmail dot com wrote: > > > --- Comment #2 from pinskia at gmail dot com 2009-11-08 20:29 --- > Subject: Re: Ne

[Bug c/41990] Incorrect stack setup on x86_64

2009-11-08 Thread cube at cubidou dot net
--- Comment #4 from cube at cubidou dot net 2009-11-08 20:38 --- Subject: Re: Incorrect stack setup on x86_64 On Sun, Nov 08, 2009 at 08:37:25PM -, cube at cubidou dot net wrote: [...] > 152 is too small even for the total size of the local variables (268 in I meant 260 here. --

[Bug c/41990] Incorrect stack setup on x86_64

2009-11-08 Thread cube at cubidou dot net
--- Comment #5 from cube at cubidou dot net 2009-11-08 20:56 --- Ok, I get it now. Not a gcc bug, we have to compile our kernel modules with -fno-red-zone like the rest of the kernel. Sorry for the noise. -- cube at cubidou dot net changed: What|Removed

[Bug target/41985] Internal compiler error reported.

2009-11-08 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-11-08 21:13 --- Subject: Bug 41985 Author: jakub Date: Sun Nov 8 21:12:52 2009 New Revision: 154014 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154014 Log: PR target/41985 * config/i386/i386.c (get_some_lo

[Bug target/41985] Internal compiler error reported.

2009-11-08 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2009-11-08 21:15 --- Fixed on the trunk. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|

[Bug target/37290] [4.4 Regression] Endless recursion in cse_cc_succs

2009-11-08 Thread jason at gcc dot gnu dot org
--- Comment #5 from jason at gcc dot gnu dot org 2009-11-08 22:27 --- Subject: Bug 37290 Author: jason Date: Sun Nov 8 22:27:39 2009 New Revision: 154018 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154018 Log: PR c++/37290 * pt.c (tsubst) [TYPEOF_TYPE]: Set c

[Bug target/41989] Code optimized for AMD Geode is slower than generic

2009-11-08 Thread rootkit85 at yahoo dot it
--- Comment #6 from rootkit85 at yahoo dot it 2009-11-08 22:34 --- (In reply to comment #5) > Subject: Re: Code optimized for AMD Geode is slower than generic > > > > Sent from my iPhone > > On Nov 8, 2009, at 11:52 AM, "rootkit85 at yahoo dot it" > > wrote: > > > > > > > ---

[Bug c++/40315] template instantiation fails when using const typename

2009-11-08 Thread jason at gcc dot gnu dot org
--- Comment #6 from jason at gcc dot gnu dot org 2009-11-08 23:06 --- Actually, I'm not so sure: template struct A { typedef A arr[3]; }; template void f(const typename A::arr) { } template void f(const A::arr); // #1 template struct B { void g(T); }; template void B::g(const

[Bug c++/37920] ICE (segv) with typename typeof in local struct

2009-11-08 Thread jason at gcc dot gnu dot org
--- Comment #6 from jason at gcc dot gnu dot org 2009-11-08 23:11 --- Fixed for 4.5. -- jason at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIG

[Bug c++/17910] wrong order of static initialization

2009-11-08 Thread jason at gcc dot gnu dot org
--- Comment #6 from jason at gcc dot gnu dot org 2009-11-08 23:24 --- 14.7.4.1 [temp.point] says: ...the point of instantiation for such a specialization immediately follows the namespace scope declaration or definition that refers to the specialization. So, the point of instantiation

[Bug tree-optimization/41987] [4.5 Regression] expected class �constant�, have �binary� (rdiv_expr) in build_complex, at tree.c:1485

2009-11-08 Thread kargl at gcc dot gnu dot org
--- Comment #4 from kargl at gcc dot gnu dot org 2009-11-08 23:19 --- (In reply to comment #2) > I guess this could be related to the fact that MPC is not linked in. But here > is the info I think Joost is correct about the missing MPC library. I just installed MPC-0.8 and rebuilt gcc.

[Bug c++/10112] static data member is not correctly initialised

2009-11-08 Thread jason at gcc dot gnu dot org
--- Comment #16 from jason at gcc dot gnu dot org 2009-11-08 23:27 --- It's not clear to me that there's anything to be fixed; the reduced testcase in this PR works, and the testcase for 17910 seems to work the way the point of instantiation rules say it ought to. And people can always

[Bug c++/40315] template instantiation fails when using const typename

2009-11-08 Thread jason at gcc dot gnu dot org
--- Comment #7 from jason at gcc dot gnu dot org 2009-11-08 23:32 --- Created an attachment (id=18996) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18996&action=view) patch Here's a patch that fixes the testcase and passes regression testing, but I don't think it's the right way

[Bug c++/40315] template instantiation fails when using const typename

2009-11-08 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2009-11-08 23:41 --- Jason, the extra const in the library code is definitely unintended, I'm going to remove it anyway. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40315

[Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin*

2009-11-08 Thread howarth at nitro dot med dot uc dot edu
The gcj compiler in 4.4.x and gcc trunk segfaults when compiling sample java code like... public class testme { public static void main(String args[]){ System.out.println("Hello"); } } with "gcj --main=testme -O testme.java" with a failure of... gcj: Internal error: Abort trap (prog

[Bug java/41991] gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin*

2009-11-08 Thread howarth at nitro dot med dot uc dot edu
--- Comment #1 from howarth at nitro dot med dot uc dot edu 2009-11-09 00:44 --- A backtrace of the segfault under i686-apple-darwin10 for gcc trunk is... gdb /sw/lib/gcc4.5/libexec/gcc/i686-apple-darwin9/4.5.0/ecj1 ... (gdb) r testme.java -fbootclasspath=./:/sw/lib/gcc4.5/share/java/l

[Bug java/41991] gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin*

2009-11-08 Thread howarth at nitro dot med dot uc dot edu
--- Comment #2 from howarth at nitro dot med dot uc dot edu 2009-11-09 00:45 --- (In reply to comment #1) > A backtrace of the segfault under i686-apple-darwin10 for gcc trunk is... > This should have read... A backtrace of the segfault under i686-apple-darwin9 for gcc trunk is...

[Bug tree-optimization/41984] ICE from '-fno-exceptions -O -fprofile-arcs -fgraphite-identity'

2009-11-08 Thread spop at gcc dot gnu dot org
--- Comment #6 from spop at gcc dot gnu dot org 2009-11-09 01:09 --- This works in the graphite branch that will be merged soon into trunk. Sebastian -- spop at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/41992] New: ICE on invalid dereferencing of void *

2009-11-08 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
Hi This piece of invalid code (the dereference shouldn't be there) triggers an ICE. The crash happens on 4.3.2, 4.4.1 and 4.4.2. It happens with or without optimizations. static void MONITOR(void *ptr) { __asm__ volatile (" \n\ XORL%%ECX, %%ECX

[Bug c/41993] New: [sh] ICE in create_pre_exit, at mode-switching.c:399

2009-11-08 Thread iwamatsu at nigauri dot org
Hi, When I built gnustep-base, I got the following errors. - mframe.m:1250: warning: cast increases required alignment of target type mframe.m: In function 'retframe_short': mframe.m:863: internal compiler error: in create_pre_exit, at mode-switching.c:399 Please submit a full bug report, with

[Bug target/41989] Code optimized for AMD Geode is slower than generic

2009-11-08 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2009-11-09 03:31 --- -march=geode disables cmov because the real geode does not have cmov :). This is why it is much slower. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/36503] x86 can use x >> -y for x >> 32-y

2009-11-08 Thread ubizjak at gmail dot com
--- Comment #6 from ubizjak at gmail dot com 2009-11-09 07:38 --- (In reply to comment #5) > bt with a memory object and a register index will _not_ truncate the argument: Actually, we avoid bt with memory objects just because of this (handling of memory op is not consistent with regist