[Bug fortran/39304] ICE with MATMUL, specific/generic functions and rank checking

2009-08-11 Thread jv244 at cam dot ac dot uk
--- Comment #8 from jv244 at cam dot ac dot uk 2009-08-11 07:10 --- Further reduced testcase MODULE deriv_class INTEGER, PARAMETER :: n = 3 TYPE func REAL :: value, x(n), xx(n*(n+1)/2) END TYPE func INTERFACE value MODULE PROCEDURE value_array END INTERFACE INTERFA

[Bug tree-optimization/41031] [4.5 Regression]: build breakage for cris-elf building newlib, ICE in insert_value_copy_on_edge

2009-08-11 Thread krebbel at gcc dot gnu dot org
--- Comment #3 from krebbel at gcc dot gnu dot org 2009-08-11 07:56 --- The same happens when bootstrapping on s390x while building libdecnumber. Here is a reduced testcase: typedef struct { unsigned char bits; unsigned short int lsu[1]; } decNumber; void decCompareOp (decNumber *

[Bug tree-optimization/41026] invariant address load inside loop with -Os.

2009-08-11 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-08-11 08:35 --- Well, the issue is that even LIM doesn't move the load because loop header copying is not run at -Os which usually makes loop analysis hard. At -O2 -fno-tree-pre it works, but at -Os it doesn't. We should be better

[Bug tree-optimization/41031] [4.5 Regression]: build breakage for cris-elf building newlib, ICE in insert_value_copy_on_edge

2009-08-11 Thread hp at gcc dot gnu dot org
--- Comment #4 from hp at gcc dot gnu dot org 2009-08-11 09:26 --- (In reply to comment #3) > The same happens when bootstrapping on s390x while building libdecnumber. Here > is a reduced testcase: At -O1, the simplified test-case exposes the bug for cris-elf too. FWIW, I guess you must

[Bug target/40959] build fails - No rule to make target `/usr/ports/lang/gcc43/work/build/ia64-portbld-freebsd8.0/libgcc/crtfastmath.o', needed by `T_TARGET'. Stop.

2009-08-11 Thread mexas at bristol dot ac dot uk
--- Comment #3 from mexas at bristol dot ac dot uk 2009-08-11 11:14 --- Some very basic analysis. gcc43 builds on alpha, but not on ia64, so I was trying to spot the difference. # pwd /usr/ports/lang/gcc43 # grep -C3 crtfastmath ./work/build/gcc/Makefile # List of extra object files th

[Bug lto/41032] New: Wrong code from TBAA because not completing structs during merging

2009-08-11 Thread rguenth at gcc dot gnu dot org
We do not complete structs during type merging nor do we consider types which just differ in completeness as equal. t1.c: struct X; struct Y { struct X *p; int i; }; void foo (struct Y *p) { p->i = 1; } t2.c: /* struct X is complete in this TU, this causes us to not merge Y and thus assi

[Bug lto/41032] Wrong code from TBAA because not completing structs during merging

2009-08-11 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-08-11 11:17 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned

[Bug bootstrap/40788] [4.5 regression] ICE on sparc: tree check: expected class 'expression', have 'declaration' (var_decl) in gimplify_va_arg_expr, at builtins.c:5107

2009-08-11 Thread guerby at gcc dot gnu dot org
--- Comment #8 from guerby at gcc dot gnu dot org 2009-08-11 11:40 --- Subject: Bug 40788 Author: guerby Date: Tue Aug 11 11:39:43 2009 New Revision: 150648 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150648 Log: 2009-08-11 Richard Guenther PR bootstrap/40788

[Bug bootstrap/40788] [4.5 regression] ICE on sparc: tree check: expected class 'expression', have 'declaration' (var_decl) in gimplify_va_arg_expr, at builtins.c:5107

2009-08-11 Thread laurent at guerby dot net
--- Comment #9 from laurent at guerby dot net 2009-08-11 11:43 --- Fixed. -- laurent at guerby dot net changed: What|Removed |Added Status|NEW

[Bug fortran/39304] ICE with MATMUL, specific/generic functions and rank checking

2009-08-11 Thread jv244 at cam dot ac dot uk
--- Comment #9 from jv244 at cam dot ac dot uk 2009-08-11 11:56 --- (In reply to comment #8) > Further reduced testcase looking a this more, this testcase really looks different from what Paul suggested in comment #6 (i.e. there is no pointer to the component of an array of derived type

[Bug rtl-optimization/41033] New: RTL alias-oracle does not honor -fno-strict-aliasing

2009-08-11 Thread rguenth at gcc dot gnu dot org
struct X { int i; int j; }; int foo(struct X *p, struct X *q) { p->j = 1; q->i = 0; return p->j; } extern void abort (void); int main() { struct X x; if (foo (&x, (struct X *)&x.j) != 0) abort (); return 0; } is miscompiled at -O1. -- Summary: RTL alias-oracle

[Bug tree-optimization/40985] [4.4 regression] Bug 32893 come back (-msse -ftree-vectorize cause segfaults (zlib))

2009-08-11 Thread mahatma at eu dot by
--- Comment #9 from mahatma at eu dot by 2009-08-11 12:49 --- Simplest way to save Bug 32893 solution: replace MAX_STACK_ALIGNMENT by STACK_BOUNDARY in vect_can_force_dr_alignment_p (tree-vectorizer.c / ...). No error more. -- mahatma at eu dot by changed: What|Remove

[Bug tree-optimization/40985] [4.4 regression] Bug 32893 come back (-msse -ftree-vectorize cause segfaults (zlib))

2009-08-11 Thread mahatma at eu dot by
--- Comment #10 from mahatma at eu dot by 2009-08-11 13:00 --- Created an attachment (id=18340) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18340&action=view) patch For gcc 4.4.1. Moved to tree-vect-data-refs.c in cvs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40985

[Bug middle-end/20937] BLK ptr's losing original ptr's static-constant readonly attribute.

2009-08-11 Thread eric dot weddington at atmel dot com
--- Comment #9 from eric dot weddington at atmel dot com 2009-08-11 13:29 --- Closing old bug as WONTFIX. Open up a new bug if it is still a problem. -- eric dot weddington at atmel dot com changed: What|Removed |Added

[Bug c++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')

2009-08-11 Thread jwakely dot gcc at gmail dot com
--- Comment #12 from jwakely dot gcc at gmail dot com 2009-08-11 14:16 --- revised 'Explicit Virtual Function Overrides' paper: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2928.htm -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31397

[Bug c++/20423] Warning -Woverloaded-virtual triggers to often

2009-08-11 Thread jwakely dot gcc at gmail dot com
--- Comment #10 from jwakely dot gcc at gmail dot com 2009-08-11 14:24 --- as with bug 31937, there is overlap between this enhancement and the 'Explicit Virtual Function Overrides' paper, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2928.htm the attributes proposed in that

[Bug c++/41019] Variate_generator with mt19937 and normal_distribution produces wrong sequence for "-O3".

2009-08-11 Thread m_albert137 at yahoo dot com
-- m_albert137 at yahoo dot com changed: What|Removed |Added Severity|normal |major Component|libstdc++ |c++ http://gcc.

[Bug bootstrap/37739] [4.4 Regression] bootstrap broken with core gcc > gcc-4.2.x

2009-08-11 Thread giffordj at la dot twcbc dot com
--- Comment #31 from giffordj at la dot twcbc dot com 2009-08-11 15:09 --- http://sourceware.org/ml/binutils/2009-08/msg00163.html appears to have fixed this issue. See http://sourceware.org/bugzilla/show_bug.cgi?id=10474 for details. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=

[Bug tree-optimization/41019] Variate_generator with mt19937 and normal_distribution produces wrong sequence for "-O3".

2009-08-11 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-08-11 15:24 --- Disabling vectorization fixes the problem (-fno-tree-vectorize), happens on trunk as well. 4.3 doesn't like the testcase, so it's not yet a regression. -- rguenth at gcc dot gnu dot org changed: What

[Bug fortran/41034] New: [4.5 Regression] Wrongly rejected proc pointer assignment with CDECL (compiler-directive_1.f90)

2009-08-11 Thread burnus at gcc dot gnu dot org
http://gcc.gnu.org/ml/fortran/2009-08/msg00095.html Excess errors: /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/compiler-directive_1.f90:33: Error: Mismatch in the procedure pointer assignment at (1): mismatch in the calling convention /usr/home/sgk/gcc/gcc4x/gcc/testsuite/gfortran.dg/compile

[Bug target/8603] [Alpha] s?addl pattern doesn't work

2009-08-11 Thread uros at gcc dot gnu dot org
--- Comment #8 from uros at gcc dot gnu dot org 2009-08-11 17:06 --- Subject: Bug 8603 Author: uros Date: Tue Aug 11 17:05:38 2009 New Revision: 150654 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150654 Log: PR target/8603 * config/alpha/alpha.md (addsi3): Rem

[Bug middle-end/40952] version 150336 broke bootstrap on ia64-hp-hpux11.23

2009-08-11 Thread sje at cup dot hp dot com
--- Comment #23 from sje at cup dot hp dot com 2009-08-11 17:18 --- I don't have complete results because my builds failed due to a bad libstdc++ checkin (that has been fixed) but the C and Fortran parts all looked good. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40952

[Bug c++/41036] New: SIGSEGV with register asm esp

2009-08-11 Thread sergey dot senozhatsky at mail dot by
Hello, Following code (written just for fun) leads to: Program received signal SIGSEGV, Segmentation fault. main () at main-general.cpp:95 95 printf("%d\n", x_reg); BTW, there is warning when using ecx, eax, edx. should there be any warning for esp? gcc svn://gcc.gnu.org/svn/gcc/b

[Bug tree-optimization/41035] New: AIX cexp builtin underflow

2009-08-11 Thread dje at gcc dot gnu dot org
gcc.dg/tortore/builtin-math-5.c /* Check for overflow/underflow. */ TESTIT (cexp, 1e20); TESTIT (cexp, -1e20); produces foof (__builtin_cexpf (__complex__ (1.0002004087734272e+20, 0.0))); foo (__builtin_cexp (__complex__ (1.0e+20, 0.0))); fool (__builtin_cexpl (__complex__ (1.0e

[Bug debug/40990] bad .debug_pubnames entry from gcj

2009-08-11 Thread dodji at gcc dot gnu dot org
--- Comment #1 from dodji at gcc dot gnu dot org 2009-08-11 18:40 --- Subject: Bug 40990 Author: dodji Date: Tue Aug 11 18:39:54 2009 New Revision: 150659 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150659 Log: Fix PR debug/40990 PR debug/40990 * lang.c (put_

[Bug c++/41036] SIGSEGV with register asm esp

2009-08-11 Thread ubizjak at gmail dot com
--- Comment #1 from ubizjak at gmail dot com 2009-08-11 18:41 --- (In reply to comment #0) > Following code (written just for fun) leads to: > > Program received signal SIGSEGV, Segmentation fault. > main () at main-general.cpp:95 > 95 printf("%d\n", x_reg); > > > BTW, t

[Bug fortran/41034] [4.5 Regression] Wrongly rejected proc pointer assignment with CDECL (compiler-directive_1.f90)

2009-08-11 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-08-11 19:06 --- The following patch is needed to initialize the variables; however, it does not solve the actual problem - here, we only make the checks tighter. For some reason, the LHS seems to be 0 all the time while the RHS gets

[Bug c++/41036] SIGSEGV with register asm esp

2009-08-11 Thread sergey dot senozhatsky at gmail dot com
--- Comment #2 from sergey dot senozhatsky at gmail dot com 2009-08-11 19:18 --- Subject: Re: SIGSEGV with register asm esp On (08/11/09 18:41), ubizjak at gmail dot com wrote: > No. You should be able to shoot yourself in the foot without warning. > > IOW, you are changing stack poi

[Bug fortran/41022] [F03] procedure pointer components as actual arguments

2009-08-11 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-08-11 20:08 --- Subject: Bug 41022 Author: janus Date: Tue Aug 11 20:08:35 2009 New Revision: 150665 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150665 Log: 2009-08-11 Janus Weil PR fortran/41022 * tran

[Bug fortran/41022] [F03] procedure pointer components as actual arguments

2009-08-11 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2009-08-11 20:15 --- Fixed with r150665. Thanks for the report. -- janus at gcc dot gnu dot org changed: What|Removed |Added --

[Bug tree-optimization/41019] Variate_generator with mt19937 and normal_distribution produces wrong sequence for "-O3".

2009-08-11 Thread afoglia at gmail dot com
--- Comment #5 from afoglia at gmail dot com 2009-08-11 20:17 --- (In reply to comment #4) > Disabling vectorization fixes the problem (-fno-tree-vectorize), happens on > trunk as well. 4.3 doesn't like the testcase, so it's not yet a regression. > 4.3 may not like the test case, but

[Bug target/41017] regparm=3 passes structures inconsistently

2009-08-11 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #8 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-08-11 20:38 --- Created an attachment (id=18341) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18341&action=view) A patch for -freg-struct-return Another patch that makes -freg-struct-return consistent.

[Bug target/41017] regparm=3 passes structures inconsistently

2009-08-11 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #9 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-08-11 20:40 --- The Basic rule implemented in both patches is: when you have aggregate type, you MUST NOT look at mode to infer parameter or return method. It is unreliable. -- http://gcc.gnu.org/bugzilla/

[Bug target/41013] Fastcall calling convention is incompatible with Windows

2009-08-11 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #2 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-08-11 20:48 --- Another inconsistency: struct { float f }; is returned in ST(0) in GCC and in EAX on Windows. struct { double f }; is returned in ST(0) in GCC and in EDX:EAX on Windows. See PR 41017 for more ex

[Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer

2009-08-11 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #24 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-08-11 21:01 --- Another case when stack frame is spuriously generated: /* -O2 -fomit-frame-pointer -mno-accumulate-outgoing-args */ void __attribute__((__noreturn__)) crash(__const__ char *, ...); void F(in

[Bug target/41015] [4.4/4.5 Regression] SH: miscompilation for sh4-linux

2009-08-11 Thread kkojima at gcc dot gnu dot org
--- Comment #6 from kkojima at gcc dot gnu dot org 2009-08-11 22:37 --- Subject: Bug 41015 Author: kkojima Date: Tue Aug 11 22:36:56 2009 New Revision: 150667 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150667 Log: Backport from mainline: 2009-08-10 SUGIOKA T

[Bug target/41015] [4.4/4.5 Regression] SH: miscompilation for sh4-linux

2009-08-11 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2009-08-11 22:38 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug libstdc++/41037] New: dec not set in cerr flags

2009-08-11 Thread gcc-bugzilla at contacts dot eelis dot net
Consider: #include #include int main() { std::printf("%d\n", std::cerr.flags() & std::ios_base::dec); } In 27.3.1p5, the standard states: After the object cerr is initialized, cerr.flags() & unitbuf is nonzero. Its state is otherwise the same as required for basic_

[Bug libstdc++/41005] [C++0x] Unable to link fstream open and ctor with std::string argument.

2009-08-11 Thread jwakely dot gcc at gmail dot com
--- Comment #7 from jwakely dot gcc at gmail dot com 2009-08-11 23:02 --- This patch (and running autoreconf) fixes the problem, but I'm still trying to work out the right changes to the linker script so that the new symbols are versioned as GLIBCXX_3.4.13 not GLIBCXX_3.4 Index: src/Ma

[Bug c++/41038] New: Parsing error related to qualified name id

2009-08-11 Thread davidxl at gcc dot gnu dot org
The following code compiles ok with -DOK1 or -DOK2. The default case generate the following error which seems wrong. gmo2.cc: In member function 'int Packer::foo()': gmo2.cc:17:29: error: request for member 'size' in 'Packer::var', which is of non-class type 'const std::string&' #include templ

[Bug fortran/40949] FAIL: gfortran.dg/proc_ptr_7.f90

2009-08-11 Thread bje at gcc dot gnu dot org
--- Comment #7 from bje at gcc dot gnu dot org 2009-08-12 01:42 --- Confirmed, given that a test case is failing. -- bje at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/40980] air.f90 ICEs compiler with -fgraphite-identity

2009-08-11 Thread spop at gcc dot gnu dot org
--- Comment #3 from spop at gcc dot gnu dot org 2009-08-12 03:29 --- Subject: Bug 40980 Author: spop Date: Wed Aug 12 03:29:35 2009 New Revision: 150674 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150674 Log: Prepare expressions to be good phi arguments. 2009-08-11 Sebastia

[Bug c++/41039] New: Member reordering rule is overly strict

2009-08-11 Thread coppro at users dot sf dot net
The check for declarations that could, if reordered within a class, alter the meaning of that class (and thus be ill-formed) is overly restrictive. Specifically, it bans any declaration that might cause such an issue, while a program is ill-formed only if the reordering would actually cause an ambi

[Bug c++/41039] Member reordering rule is overly strict

2009-08-11 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-08-12 06:15 --- > because there is nothing to reorder, so the meaning of bar cannot possibly > change. But the rule is not designed that way IIRC. Even if it is too strict I think that is the correct way of doing things. -- h

[Bug c++/41039] Member reordering rule is overly strict

2009-08-11 Thread coppro at users dot sf dot net
--- Comment #2 from coppro at users dot sf dot net 2009-08-12 06:26 --- [basic.scope.class]: 3) If reordering member declarations in a class yields an alternate valid program under (1) and (2), the program is ill-formed, no diagnostic is required. Otherwise, the program is well-formed,