[Bug target/21479] optimizer removes incorrectly variable comparision in if clause

2005-05-10 Thread chaac at nic dot fi
--- Additional Comments From chaac at nic dot fi 2005-05-10 08:00 --- Andrew, Here is a pointer to the mailing list: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21479 Topic started on May 08, 2005 with subject "WinAVR 20050214 (gcc 3.4.3) and optimizer bug." -- http://gcc.gnu.org/

[Bug target/21479] optimizer removes incorrectly variable comparision in if clause

2005-05-10 Thread chaac at nic dot fi
--- Additional Comments From chaac at nic dot fi 2005-05-10 08:06 --- In AVR's reading memory address 0 is valid thing though. In a way I can understand why to optimization in x86 but shouldn't this be disabled by default on AVR's? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=214

[Bug c++/21484] New: [g++] using typename doesn't work in case template : template inheritance

2005-05-10 Thread smelkov at mph1 dot phys dot spbu dot ru
Is it just me or what? ===nested_defs.cpp=== template struct A { typedef T value_type; }; template struct B : A { using typename A::value_type; value_type x; }; int main() { B b; b.x = 0; return 0; } === [EMAIL PROTECTED] tmp]$ g++ -g -

[Bug target/21479] optimizer removes incorrectly variable comparision in if clause

2005-05-10 Thread schlie at comcast dot net
--- Additional Comments From schlie at comcast dot net 2005-05-10 08:31 --- (In reply to comment #5) > see comment #1 ... > > you already derefenced the pointer in ppv (in the line > unsigned long lv = *lvp; > ) > > so the compiler assumes that anohter NULL ptr check is not n

[Bug libfortran/20788] Loading libgfortran.so clobbers C redirection of stdin/stdout/stderr

2005-05-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-10 08:32 --- Subject: Bug 20788 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-4_0-branch Changes by: [EMAIL PROTECTED] 2005-05-10 08:31:50 Modified files: libgfortran: Change

[Bug libfortran/20788] Loading libgfortran.so clobbers C redirection of stdin/stdout/stderr

2005-05-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-10 08:35 --- Subject: Bug 20788 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-05-10 08:34:58 Modified files: libgfortran: ChangeLog libgfortran/io : r

[Bug libfortran/20788] Loading libgfortran.so clobbers C redirection of stdin/stdout/stderr

2005-05-10 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-05-10 08:36 --- This one is fixed. Thanks for the bug report! -- What|Removed |Added Status|NE

[Bug target/21479] optimizer removes incorrectly variable comparision in if clause

2005-05-10 Thread chaac at nic dot fi
--- Additional Comments From chaac at nic dot fi 2005-05-10 08:41 --- Sorry about wrong mailing list pointer :) http://lists.gnu.org/archive/html/avr-gcc-list/2005-05/index.html Here is correct URL :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21479

[Bug rtl-optimization/21485] New: BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread jbucata at tulsaconnect dot com
I've found a major performance regression in gcc 4.0.0's optimization of the BYTEmark numsort benchmark. I've boiled it down to a testcase that I think will suit you... it outputs a single number representing the number of iterations run (higher is better). On my machine I get 900ish under 4.0.0

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread jbucata at tulsaconnect dot com
--- Additional Comments From jbucata at tulsaconnect dot com 2005-05-10 09:05 --- Created an attachment (id=8851) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8851&action=view) Test case (preprocessed) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21485

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread jbucata at tulsaconnect dot com
--- Additional Comments From jbucata at tulsaconnect dot com 2005-05-10 09:10 --- Oops, I should add that my pertinent options were: -O3 -fomit-frame-pointer -march=athlon-xp -static -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21485

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-05-10 09:14 --- Confirmed on x86 (with and without frame pointer) and on amd64. -- What|Removed |Added

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread rguenth at gcc dot gnu dot org
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-05-10 09:27 --- mainline drops even lower - looks like poor choice of addressing modes and thus more register pressure for 4.0 and 4.1. Note that using profile-feedback improves numbers a lot (but still we regress). --

[Bug libstdc++/18604] [3.4/4.0/4.1 Regression] Use of unqualified names conflict with names in global namespace

2005-05-10 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-05-10 09:42 --- Thanks Paolo! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18604

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-05-10 09:45 --- Jason: thanks for this! Even better would be to let the testcase do a fixed number of iterations (like 1000 or so), and then we'll be using "time" externally to measure performance. Maybe you can do this fo

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-05-10 09:46 --- This is the function (reindented) where we spend almost all of our time: void NumSift (long *array, unsigned long i, unsigned long j) { unsigned long k; long temp; while ((i + i) <= j) {

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-05-10 09:50 --- If Richard is right in comment #4, it would be interesting to see what happens if one tries this with Zdenek's TARGET_MEM_REF patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21485

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-05-10 10:22 --- On AMD64 with GCC 4.0.1 (CVS 4.0 branch) I go from ~580 at -O3 to ~930 at -O3 -fno-tree-pre. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21485

[Bug libfortran/21471] 'POSITION = "APPEND"' doesn't seem to work

2005-05-10 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-05-10 10:26 --- Confirmed. Library does not use this APPEND parameter. Patch here: http://gcc.gnu.org/ml/fortran/2005-05/msg00095.html -- What|Removed |Added -

[Bug c/21486] New: C Compiler does NOT signal anything when there is an increment of char * without target variable

2005-05-10 Thread frans at iunknown dot org
This simple source code: #include main() { char *p; p+21; return 1; } does NOT cause the gcc compiler to warn or signal any error. Pointer p remains the same, before and after the 'strange' increment. If the compiler does not signal anything about that, in a large source c

[Bug c/21486] C Compiler does NOT signal anything when there is an increment of char * without target variable

2005-05-10 Thread schwab at suse dot de
--- Additional Comments From schwab at suse dot de 2005-05-10 12:04 --- $ gcc -Wall simple.c simple.c:4: warning: return type defaults to ‘int’ simple.c: In function ‘main’: simple.c:7: warning: statement with no effect -- What|Removed |Added ---

[Bug c++/21487] New: new object affectation in a switch

2005-05-10 Thread sebmaestro at hotmail dot com
what follows (version, command line, source and .ii) seems to be a bug. if you need something else -> [EMAIL PROTECTED] "bravo et merci quand même pour votre bon boulot !" seb. --Command lines : - seb$ g++ --version g++ (GCC) 3.3.6 (Debian 1:3.3.6-4) Copyright (C) 2003 Free S

[Bug target/21479] optimizer removes incorrectly variable comparision in if clause

2005-05-10 Thread ericw at evcohs dot com
-- What|Removed |Added CC||ericw at evcohs dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21479

[Bug c/21342] [4.0/4.1 Regression] some incompatible external declarations not diagnosed

2005-05-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-10 12:38 --- Subject: Bug 21342 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-05-10 12:38:35 Modified files: gcc: ChangeLog c-decl.c gcc/tests

[Bug c/21342] [4.0/4.1 Regression] some incompatible external declarations not diagnosed

2005-05-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-10 12:41 --- Subject: Bug 21342 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-4_0-branch Changes by: [EMAIL PROTECTED] 2005-05-10 12:41:28 Modified files: gcc: Change

[Bug tree-optimization/21488] New: [4.1 regression] Not copy propagating single-argument PHIs causes out-of-ssa coalescing failure

2005-05-10 Thread steven at gcc dot gnu dot org
--- void bar (unsigned int); unsigned int foo (void) { unsigned int i, j; for (i = 1; i < 30; i++) { j = 2 + 3*i; bar (j); } return j; } --- --> .optimized: foo () { unsigned intD.3

[Bug target/21389] optimized code seg faults due to double load on sparcV9

2005-05-10 Thread drew dot johnson at andrew dot com
--- Additional Comments From drew dot johnson at andrew dot com 2005-05-10 12:57 --- Subject: RE: optimized code seg faults due to double load on sparcV9 OK, I see your point. Sorry for inconvenience. I see that the status in bugzilla has been updated accordingly. Is there anything

[Bug rtl-optimization/21485] BYTEmark numsort: performance regression 3.4.3 -> 4.0.0 with -O3 optimization

2005-05-10 Thread bonzini at gcc dot gnu dot org
--- Additional Comments From bonzini at gcc dot gnu dot org 2005-05-10 12:58 --- Looks like a register pressure problem... but yes, TARGET_MEM_REF may help as well. Paolo -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21485

[Bug c++/21487] new object affectation in a switch

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 13:12 --- This is how C++ works, you can actually fall through case statements. This is invalid code and G++ rejects it correctly. -- What|Removed |Added ---

[Bug tree-optimization/21407] [4.1 Regression] wrong code with upcast in C++

2005-05-10 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-05-10 13:16 --- So what about this, in C: --- struct A { int a; }; struct B { struct A sa; int b; }; void foo1(void* ptr) { ((struct A*)ptr)->a = 0; } void foo2(void* ptr) { ((struct

[Bug tree-optimization/21407] [4.1 Regression] wrong code with upcast in C++

2005-05-10 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-05-10 13:17 --- Ehm, bar should obviously be: --- void bar(void) { struct B sb; foo1(&sb); foo1(&sb.sa); foo2(&sb); foo2(&sb.sa); } --- that is, I'm trying

[Bug rtl-optimization/18081] [3.4 regression] Infinite memory allocation on -O3

2005-05-10 Thread schwab at suse dot de
/memtrack.o +===GNAT BUG DETECTED==+ | 3.4.4 20050510 (prerelease) (ia64-suse-linux-gnu) GCC error: | | in fixup_var_refs_1, at function.c:1876 | | Error detected at a-exexda.adb:252:65

[Bug java/21436] imports not remembered for previously compiled files

2005-05-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-10 13:24 --- Subject: Bug 21436 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-05-10 13:23:40 Modified files: libjava: ChangeLog libjava/testsuite/

[Bug tree-optimization/21488] [4.0/4.1 regression] Not copy propagating single-argument PHIs causes out-of-ssa coalescing failure

2005-05-10 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-05-10 13:29 --- Actually, GCC 4.0 has this problem also. GCC 3.3: foo: pushq %rbp movl$1, %ebp pushq %rbx movl$5, %ebx subq$8, %rsp .p2align 4,,7 .L6

[Bug c++/12536] [DR 214/200] partial ordering bug

2005-05-10 Thread nathan at gcc dot gnu dot org
-- Bug 12536 depends on bug 19203, which changed state. Bug 19203 Summary: [3.4/4.0 Regression] [DR 214] Partial ordering failure between function reference and generic const reference http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19203 What|Old Value |New Value

[Bug c++/19203] [3.4/4.0 Regression] [DR 214] Partial ordering failure between function reference and generic const reference

2005-05-10 Thread nathan at gcc dot gnu dot org
--- Additional Comments From nathan at gcc dot gnu dot org 2005-05-10 13:29 --- fixed on 4.0 branch 2005-05-10 Nathan Sidwell <[EMAIL PROTECTED]> PR c++/20723 * pt.c (more_specialized_fn): Member functions are unordered wrt non-members. Conversion operators ar

[Bug c++/4672] [4.0 only] [DR 214] Template parameter deduction fails for overloaded template functions.

2005-05-10 Thread nathan at gcc dot gnu dot org
-- Bug 4672 depends on bug 19203, which changed state. Bug 19203 Summary: [3.4/4.0 Regression] [DR 214] Partial ordering failure between function reference and generic const reference http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19203 What|Old Value |New Value

[Bug c++/15674] [4.0 only] [DR214] template argument binding differs between member and static fumctions

2005-05-10 Thread nathan at gcc dot gnu dot org
-- Bug 15674 depends on bug 19203, which changed state. Bug 19203 Summary: [3.4/4.0 Regression] [DR 214] Partial ordering failure between function reference and generic const reference http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19203 What|Old Value |New Value

[Bug rtl-optimization/18081] [3.4 regression] Infinite memory allocation on -O3

2005-05-10 Thread schwab at suse dot de
--- Additional Comments From schwab at suse dot de 2005-05-10 13:30 --- Actually the command line was this: stage1/xgcc -Bstage1/ -B/usr/local/ia64-suse-linux/bin/ -c -g -O2 -gnatpg -gnata -g -O1 -fno-inline \ -I- -I. -Iada -I../../gcc/ada ../../gcc/ada/a-except.adb -o ada/a-ex

[Bug ada/21489] New: Wrong code generated with -O -fPIC

2005-05-10 Thread ludovic dot brenta at insalien dot org
(From the Debian BTS): -- fails in 3.15p, 3.4, and 4.0 -- RM 6.4.1(13) -- RM 9.5.1(3) -- RM 9.5.3(8) with text_io; use text_io; procedure Test_306834 is type intp is access all integer; i: aliased integer := 3; x1: intp; procedure p1(x: out intp) is begin null; end; pr

[Bug tree-optimization/21488] [4.0/4.1 regression] Not copy propagating single-argument PHIs causes out-of-ssa coalescing failure

2005-05-10 Thread steven at gcc dot gnu dot org
-- What|Removed |Added BugsThisDependsOn||19038 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21488

[Bug ada/21489] Wrong code generated for legal program, RM 6.4.1(13), 9.5.1(3), 9.5.3(8)

2005-05-10 Thread ludovic dot brenta at insalien dot org
-- What|Removed |Added Summary|Wrong code generated with -O|Wrong code generated for |-fPIC |legal program, RM 6.4.1(13),

[Bug ada/21490] New: Illegal program not detected, RM 3.6(11)

2005-05-10 Thread ludovic dot brenta at insalien dot org
(From the Debian BTS): procedure Test_306835 is generic type T1 is private; package pak1 is type T2 is array(1..10) of aliased T1; end pak1; type T3 (b: Boolean := False) is null record; package new_pak1 is new pak1 (T1 => T3); --ERROR: T3 unconstrained begin null;

[Bug c/17913] [4.0/4.1 Regression] ICE jumping into statement expression

2005-05-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-10 13:47 --- Subject: Bug 17913 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-05-10 13:47:05 Modified files: gcc: ChangeLog c-typeck.c fold-const.c

[Bug c++/19203] [3.4/4.0 Regression] [DR 214] Partial ordering failure between function reference and generic const reference

2005-05-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-10 13:48 --- Subject: Bug 19203 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-4_0-branch Changes by: [EMAIL PROTECTED] 2005-05-10 13:48:00 Modified files: gcc/testsuite : Change

[Bug c++/20723] [4.1 Regression] ICE in more_specialized_fn, more than one user-defined conversion "srp" to "ptr"

2005-05-10 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-10 13:48 --- Subject: Bug 20723 CVSROOT:/cvs/gcc Module name:gcc Branch: gcc-4_0-branch Changes by: [EMAIL PROTECTED] 2005-05-10 13:48:00 Modified files: gcc/testsuite : Change

[Bug c/17913] [4.0/4.1 Regression] ICE jumping into statement expression

2005-05-10 Thread loki at gcc dot gnu dot org
--- Additional Comments From loki at gcc dot gnu dot org 2005-05-10 13:50 --- CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-05-10 13:47:05 Modified files: gcc: ChangeLog c-typeck.c fold-const.c gcc/testsuite : Cha

[Bug java/21436] imports not remembered for previously compiled files

2005-05-10 Thread bonzini at gcc dot gnu dot org
--- Additional Comments From bonzini at gcc dot gnu dot org 2005-05-10 13:55 --- Patch committed. -- What|Removed |Added Status|ASSIGNED|RESO

[Bug java/21418] Order of source files matters when compiling

2005-05-10 Thread bonzini at gcc dot gnu dot org
-- Bug 21418 depends on bug 21436, which changed state. Bug 21436 Summary: imports not remembered for previously compiled files http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21436 What|Old Value |New Value -

[Bug tree-optimization/21488] [4.0/4.1 regression] Not copy propagating single-argument PHIs causes out-of-ssa coalescing failure

2005-05-10 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-05-10 14:14 --- This is IVopts producing unresolvable overlapping live ranges again: t.c.t56.cunroll: foo () { unsigned int pretmp.1; unsigned int pretmp.0; unsigned int j; unsigned int i; unsigned int D.

[Bug target/21389] optimized code seg faults due to double load on sparcV9

2005-05-10 Thread ebotcazou at gcc dot gnu dot org
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-05-10 14:24 --- > OK, I see your point. Sorry for inconvenience. I see that the status > in bugzilla has been updated accordingly. Is there anything else I > should do to close this? No, the status has already been se

[Bug target/21412] ICE loading TLS address

2005-05-10 Thread ebotcazou at gcc dot gnu dot org
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-05-10 14:29 --- SPARC 32-bit: opt-9.c: In function 'foo': opt-9.c:7: error: unrecognizable insn: (insn 8 6 9 1 (set (reg/f:SI 109) (high:SI (const:SI (plus:SI (symbol_ref:SI ("s") [flags 0x58] )

[Bug c++/21487] new object affectation in a switch

2005-05-10 Thread sebmaestro at hotmail dot com
--- Additional Comments From sebmaestro at hotmail dot com 2005-05-10 14:37 --- Subject: RE: new object affectation in a switch So, I don't understand why : switch (truc) { case 0: break; case 1: Thing *th; th = new Thing(); break; case 2: break; case 3:

[Bug tree-optimization/21407] [4.1 Regression] wrong code with upcast in C++

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 14:51 --- (In reply to comment #4) > void foo1(void* ptr) > { > ((struct A*)ptr)->a = 0; > } Because you just violated C aliasing. This is unlike C++ where upcasting is okay. -- http://gcc.gnu.org/bugzilla/sh

[Bug c++/21487] new object affectation in a switch

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 14:51 --- (In reply to comment #2) > Subject: RE: new object affectation in a switch > > So, I don't understand why : ... > is OK for g++. Because there is no initialization of a variable in the declaration. >

[Bug c++/21491] New: [4.0/4.1 Regression] crosses initialization of a pointer

2005-05-10 Thread pinskia at gcc dot gnu dot org
The following is invalid C++ and should be rejected: struct Thing { Thing(){} }; int f (int i) { switch (i) { case 1: Thing *str = new Thing; case 2: case 3: ; } return 0; } Previous versions before 4.0.0 rejected with the following message: t.cc:11: error: jump to case la

[Bug tree-optimization/21407] [4.1 Regression] wrong code with upcast in C++

2005-05-10 Thread joseph at codesourcery dot com
--- Additional Comments From joseph at codesourcery dot com 2005-05-10 14:59 --- Subject: Re: [4.1 Regression] wrong code with upcast in C++ On Tue, 10 May 2005, giovannibajo at libero dot it wrote: > So what about this, in C: Seems valid to me. "A pointer to a structure object, su

[Bug c++/21491] [4.0/4.1 Regression] crosses initialization of a pointer

2005-05-10 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Target Milestone|--- |4.0.1 Version|unknown |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21491

[Bug middle-end/21492] New: ICE in try_crossjump_to_edge

2005-05-10 Thread jakub at gcc dot gnu dot org
// { dg-do compile } // { dg-options "-Os -fPIC" } extern char *bar (const char *, const char *); extern char *baz (char *, const char *); extern unsigned int fn (const char *); static const struct C { int i; } k = { 0}; struct S { S (const C &x, unsigned int *y) : a (x), b (y) {} const C &a;

[Bug tree-optimization/21407] [4.1 Regression] wrong code with upcast in C++

2005-05-10 Thread dberlin at gcc dot gnu dot org
--- Additional Comments From dberlin at gcc dot gnu dot org 2005-05-10 15:09 --- And this would still work with the code i've written, because it's at offset 0 (which is why it's valid in C). It would have worked before the fix, too. It's only when you cast back *down* to the derived c

[Bug rtl-optimization/18081] [3.4 regression] Infinite memory allocation on -O3

2005-05-10 Thread mark at codesourcery dot com
--- Additional Comments From mark at codesourcery dot com 2005-05-10 15:20 --- Subject: Re: [3.4 regression] Infinite memory allocation on -O3 schwab at suse dot de wrote: > --- Additional Comments From schwab at suse dot de 2005-05-10 13:23 > --- > This is causing a regress

[Bug c++/21493] New: internal compiler error: Segmentation fault

2005-05-10 Thread mmalater at nycap dot rr dot com
I cannot compile VTK using gcc 4.1.0 (at least the one shipped in gcc-snapshot). Step to reproduce (on debian testing system): 1. sudo apt-get install gcc-snapshot (as of today) 2. Get VTK source (CVS) 3. Compile line is: /usr/lib/gcc-snapshot/bin/g++ -save-temps -o vtkLargeInteger.o -DvtkCommon

[Bug c++/21493] internal compiler error: Segmentation fault

2005-05-10 Thread mmalater at nycap dot rr dot com
--- Additional Comments From mmalater at nycap dot rr dot com 2005-05-10 15:25 --- $ /usr/lib/gcc-snapshot/bin/gcc --version gcc (GCC) 4.1.0 20050508 (experimental) Copyright (C) 2005 Free Sof

[Bug c++/21493] internal compiler error: Segmentation fault

2005-05-10 Thread mmalater at nycap dot rr dot com
--- Additional Comments From mmalater at nycap dot rr dot com 2005-05-10 15:27 --- Created an attachment (id=8852) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8852&action=view) /usr/lib/gcc-snapshot/bin/g++ -save-temps ... Adding save-temps -- http://gcc.gnu.org/bugzilla/sho

[Bug c++/21494] New: condensed nested namespaces

2005-05-10 Thread bkoz at gcc dot gnu dot org
Instead of namespace __gnu_cxx { namespace detail { } } would like to experiment with the form namespace __gnu_cxx::detail { } See N1524 from pre-Kona. Will attach for reference -- Summary: condensed nested namespaces Product: gcc Version: 4.1.0 S

[Bug c++/21494] condensed nested namespaces

2005-05-10 Thread bkoz at gcc dot gnu dot org
--- Additional Comments From bkoz at gcc dot gnu dot org 2005-05-10 15:44 --- Created an attachment (id=8853) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8853&action=view) proposal At Kona, this seemed uncontraversial. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21494

[Bug tree-optimization/21407] [4.1 Regression] wrong code with upcast in C++

2005-05-10 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-05-10 15:48 --- In my example, B is a (sort-of) derived class and A is a (sort-of) base class. The C++ frontend should use a subobject at offset 0 to represent the base class. When you downcast through dynamic_cast, you ar

[Bug fortran/21480] trivial reshape operation gives erroneous results

2005-05-10 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-05-10 15:51 --- Yes, there is a bug with reshape and complex numbers (PR21127). It should be fixed soon (a patch has been proposed). *** This bug has been marked as a duplicate of 21127 *** -- What|Remov

[Bug libfortran/21127] reshape of complex broken

2005-05-10 Thread fxcoudert at gcc dot gnu dot org
--- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-05-10 15:51 --- *** Bug 21480 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug c++/21495] New: internal compiler error: Segmentation fault

2005-05-10 Thread jkherciueh at gmx dot net
The following code segfaults g++ class A { extern void* copy ( void* p ) { return( p ); } }; My settings are gcc> g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.0.0/configure --prefix=/pkg/gcc-4.0.0/usr Thread model: posix gcc version 4.0.0 --

[Bug tree-optimization/21407] [4.1 Regression] wrong code with downcast in C++

2005-05-10 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-05-10 16:01 --- In fact, the salias dump for the C++ testcase says: --- ;; Function void bar() (_Z3barv) structure field tag SFT.2 created for var sb offset 0 siz

[Bug testsuite/21496] New: more flexible dg-error

2005-05-10 Thread bkoz at gcc dot gnu dot org
http://gcc.gnu.org/ml/libstdc++/2005-05/msg00098.html In general, what happens is that current negative compile tests have different line numbers and or message text, depending on various command line defines. Ie, 23_containers/map/operators/1_neg.cc when run in normal mode (-g -O2) and in debug

[Bug tree-optimization/21407] [4.1 Regression] wrong code with downcast in C++

2005-05-10 Thread dberlin at dberlin dot org
--- Additional Comments From dberlin at gcc dot gnu dot org 2005-05-10 16:07 --- Subject: Re: [4.1 Regression] wrong code with downcast in C++ On Tue, 2005-05-10 at 16:01 +, giovannibajo at libero dot it wrote: > --- Additional Comments From giovannibajo at libero dot i

[Bug tree-optimization/21497] New: [4.0 regression] ICE in set_value_handle, at tree-vn.c:179

2005-05-10 Thread doko at debian dot org
seen on {i486,powerpc,amd64,ia64}-linux with 4.0 CVS 20050509, works with 3.4.4 and 4.1 CVS, works with -O1 preprocessed source taken from the libggi-2.0.5 source $ gcc -save-temps -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/usr/include/glide -I/usr/include -I/usr/include/glide -g -Wall -O

[Bug tree-optimization/21497] [4.0 regression] ICE in set_value_handle, at tree-vn.c:179

2005-05-10 Thread doko at debian dot org
--- Additional Comments From doko at debian dot org 2005-05-10 16:12 --- Created an attachment (id=8854) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8854&action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21497

[Bug tree-optimization/21497] [4.0 regression] ICE in set_value_handle, at tree-vn.c:179

2005-05-10 Thread doko at debian dot org
-- What|Removed |Added CC||debian-gcc at lists dot ||debian dot org Keywords|

[Bug c++/21498] New: clause 7.1.5.3/2 of the c++ is not enforced

2005-05-10 Thread jkherciueh at gmx dot net
The following code should be rejected, but is accepted by g++: template < typename T > class identity { public: typedef T me; }; template < typename T > class my_friend { private: friend class identity< T >::me; char x; }; class The_T { public: static char & peek_friend ( my_fri

[Bug tree-optimization/21497] [4.0 regression] ICE in set_value_handle, at tree-vn.c:179

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 16:27 --- *** This bug has been marked as a duplicate of 21293 *** -- What|Removed |Added

[Bug tree-optimization/21293] [4.0 Regression] ICE in set_value_handle

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 16:27 --- *** Bug 21497 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug c++/21498] clause 7.1.5.3/2 of the c++ is not enforced

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 16:31 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW E

[Bug c++/21484] [g++] using typename doesn't work in case template : template inheritance

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 16:35 --- Your first example is valid code. And the second. And the third. But the fourth is invalid code and ICC in strict mode also rejects it. Confirmed, based on the first example, this comes down to using sema

[Bug rtl-optimization/21485] [4.0/4.1 Regression] BYTEmark numsort: codegen regression with -O3

2005-05-10 Thread giovannibajo at libero dot it
-- What|Removed |Added Keywords||missed-optimization Known to fail||4.0.0 4.1.0 Known to work|

[Bug libstdc++/19781] testsuite_hooks.cc doesn't test for mkfifo

2005-05-10 Thread jifl-bugzilla at jifvik dot org
--- Additional Comments From jifl-bugzilla at jifvik dot org 2005-05-10 16:38 --- As the bug reporter, I'm fine with that, although I can't really change the bug to "VERIFIED" since I haven't. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19781

[Bug other/21052] Example does not compile in user docs, type attributes, packed

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 16:41 --- Fixed for 4.0.1. -- What|Removed |Added Status|UNCONFIRMED |RESO

[Bug c/21342] [4.0/4.1 Regression] some incompatible external declarations not diagnosed

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 16:41 --- Fixed. -- What|Removed |Added Status|NEW |RESOLVED

[Bug middle-end/21492] [4.0/4.1 Regression] ICE in try_crossjump_to_edge

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 16:52 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW E

[Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 16:57 --- Here is the backtrace: #0 compare_values (val1=0x0, val2=0xb7bf1a08) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/ tree-vrp.c:300 #1 0x084db1ae in extract_range_from_unary_expr (vr=0xbfe9b994, expr=0xb69

[Bug c++/21495] [4.0/4.1 Regression] internal compiler error: Segmentation fault

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:02 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW E

[Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault

2005-05-10 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added CC|dberlin at gcc dot gnu dot |dnovillo at gcc dot gnu dot |org |org http://gcc.gnu.org/bugzilla/s

[Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:20 --- Confirmed, reduced testcase: class vtkLargeInteger { vtkLargeInteger& operator<<=(int n); vtkLargeInteger& operator>>=(int n); }; vtkLargeInteger& vtkLargeInteger::operator<<=(int n) { int i; if (n

[Bug bootstrap/21481] [4.1 Regression] Bootstrap is broken of FreeBSD by changes to crtstuff.c

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:28 --- Is this fixed now? -- What|Removed |Added Keywords||bu

[Bug c/21482] internal compiler error (tree-ssa-operands.c:1449)

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:32 --- *** This bug has been marked as a duplicate of 21173 *** -- What|Removed |Added

[Bug tree-optimization/21173] [4.0/4.1 regression] miscompiled pointer subtraction broke Linux kernel

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:32 --- *** Bug 21482 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug middle-end/19699] [4.0/4.1 Regression] warning about not returning from end of a non-void function because of dead code

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:36 --- *** Bug 21483 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug c++/21483] Spurious 'control may reach end of non-void function' ... being inlined

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:36 --- *** This bug has been marked as a duplicate of 19699 *** -- What|Removed |Added

[Bug middle-end/21492] [4.0/4.1 Regression] ICE in try_crossjump_to_edge

2005-05-10 Thread jakub at gcc dot gnu dot org
-- What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|NEW

[Bug c++/21499] New: declaration/initialization of non-integral member constants: compiler does not emit error

2005-05-10 Thread papadopo at shfj dot cea dot fr
The following code doesn't emit an error: class Curious { public: static const float c5 = 7.0; }; The above code is illegal according to the following references. The compiler does not emit an error (instead the error is caught at link-time if the member consta

[Bug c++/14258] typename in a using declaration not supported

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:42 --- *** Bug 21484 has been marked as a duplicate of this bug. *** -- What|Removed |Added

[Bug c++/21484] [g++] using typename doesn't work in case template : template inheritance

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:42 --- And I was right, there was a bug about this already, see PR 14258 which I am going to mark this bug as a dup of. *** This bug has been marked as a duplicate of 14258 *** -- What|Removed

[Bug c++/21499] declaration/initialization of non-integral member constants: compiler does not emit error

2005-05-10 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-10 17:44 --- > It's a good idea to flag this error to avoid errors that are more difficult to > catch at link-time. Apparently GCC does not require integral member constants > to > be defined, but it does require other

  1   2   >