[Bug libstdc++/27079] Memory leak in std::string?..

2006-04-09 Thread sakovacs at freemail dot hu
--- Comment #5 from sakovacs at freemail dot hu 2006-04-09 07:26 --- Ok, please close this thread as non-bug/nothing to do, I still have an issue but I will raise it on the appropriate forum, it has nothing to do with GCC/libstdc++. Just for the record: the problem roots in the malloc

[Bug tree-optimization/27090] New: FRE does not value number effective types

2006-04-09 Thread rguenth at gcc dot gnu dot org
Extracted from tramp3d: template class T struct Bar { int get() { return static_castT*(this)-get2(); } }; struct Foo : public BarFoo { int get2() { return x; } int x; }; int foo(Foo f) { return f.get(); } We end up with int foo(Foo) (f) { struct Foo * this.1;

[Bug tree-optimization/27090] FRE does not value number effective types

2006-04-09 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-04-09 08:41 --- And of course I again have hacked forwprop to do the transformation for me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27090

[Bug fortran/25031] [4.1 only] Allocatable array can be reallocated.

2006-04-09 Thread tkoenig at gcc dot gnu dot org
--- Comment #8 from tkoenig at gcc dot gnu dot org 2006-04-09 09:00 --- Subject: Bug 25031 Author: tkoenig Date: Sun Apr 9 09:00:49 2006 New Revision: 112802 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112802 Log: 2006-04-09 Thomas Koenig [EMAIL PROTECTED] PR

[Bug tree-optimization/27090] FRE does not value number effective types

2006-04-09 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2006-04-09 09:03 --- A quick look at VN doesn't tell me an obvious place where to fix this. We have Created value VH.0 for f_1 Created value VH.1 for (struct BarFoo *) VH.0 Created value VH.2 for (struct Foo *) VH.1 where (struct Foo

[Bug rtl-optimization/27073] invalid gcse manipulation of REG_EQUIV notes

2006-04-09 Thread rsandifo at gcc dot gnu dot org
--- Comment #1 from rsandifo at gcc dot gnu dot org 2006-04-09 10:06 --- Subject: Bug 27073 Author: rsandifo Date: Sun Apr 9 10:06:20 2006 New Revision: 112803 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112803 Log: PR rtl-optimization/27073 * gcse.c

[Bug rtl-optimization/27073] invalid gcse manipulation of REG_EQUIV notes

2006-04-09 Thread rsandifo at gcc dot gnu dot org
--- Comment #2 from rsandifo at gcc dot gnu dot org 2006-04-09 10:09 --- Fixed on mainline and not known to be a regression for a specific testcase. -- rsandifo at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/27085] [4.2 regression] ICE in add_virtual_operand

2006-04-09 Thread debian-gcc at lists dot debian dot org
--- Comment #1 from debian-gcc at lists dot debian dot org 2006-04-09 10:10 --- Seems to occur quite frequently, here's another test case: struct GdkColor { unsigned long pixel; unsigned short red; }; struct GtkStyle { struct GdkColor bg; }; struct GtkStyle

[Bug pending/27092] New: Compiling a special asm-statment will fail if -O1 -fgcse is set.

2006-04-09 Thread gcc-bugzilla at gcc dot gnu dot org
NOTE: Defaulting component because reported component no longer exists When compile with gcc-3.4 -O1 -fgcse -c -o qemu-bug.o qemu-bug.c, there will be the error: [EMAIL PROTECTED]:~/src/qemu-bug$ gcc-3.4 -O1 -fgcse -c -o qemu-bug.o qemu-bug.c qemu-bug.c: In function `main': qemu-bug.c:2: error:

[Bug target/27075] [4.1/4.2 Regression] Compiler generate incorrect assembler for __sync_fetch-* builtins on e500 aka SPE

2006-04-09 Thread amodra at bigpond dot net dot au
--- Comment #8 from amodra at bigpond dot net dot au 2006-04-09 13:51 --- This horrible hack should cure the problem, I think. The rationale is that spe.md uses %y only for evldd and evstdd insns, which load or store 8 bytes. The lock insns use %y for 4 byte quantities (e500 doesn't

[Bug target/25595] GCC ICE in xorg-x11 compiled in thumb

2006-04-09 Thread rsandifo at gcc dot gnu dot org
--- Comment #2 from rsandifo at gcc dot gnu dot org 2006-04-09 13:53 --- *** This bug has been marked as a duplicate of 27073 *** -- rsandifo at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/27073] invalid gcse manipulation of REG_EQUIV notes

2006-04-09 Thread rsandifo at gcc dot gnu dot org
--- Comment #3 from rsandifo at gcc dot gnu dot org 2006-04-09 13:53 --- *** Bug 25595 has been marked as a duplicate of this bug. *** -- rsandifo at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/27093] New: verify_ssa failed: definition does not dominate use

2006-04-09 Thread debian-gcc at lists dot debian dot org
[ forwarded from http://bugs.debian.org/361591 ] [EMAIL PROTECTED]:/tmp% cat 309.c struct mark_entry { int num; }; void *t1(void); int t2(int*); void t3(int); void g(void); static void *f(void) { if (t1()) return 0; void *seen_numbers = 0; int bytes_left;

[Bug target/27034] [4.2 Regression] gcc.dg/20021014-1.c (test for excess errors) fails

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #1 from danglin at gcc dot gnu dot org 2006-04-09 16:54 --- A typo shatic' was introduced into the LIB_SPEC. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27034

[Bug fortran/27089] Module procedure with explicit result does not pass type to specification expression.

2006-04-09 Thread patchapp at dberlin dot org
--- Comment #2 from patchapp at dberlin dot org 2006-04-09 16:55 --- Subject: Bug number PR27089 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00322.html --

[Bug target/11254] g++ (3.3): ...Error: Field out of range (optimisation pb)

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #8 from danglin at gcc dot gnu dot org 2006-04-09 17:19 --- Subject: Bug 11254 Author: danglin Date: Sun Apr 9 17:19:42 2006 New Revision: 112805 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112805 Log: PR target/26743 PR target/11254 PR

[Bug target/10274] [HP-PA] ICE in output_cbranch, at config/pa/pa.c:5549

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #12 from danglin at gcc dot gnu dot org 2006-04-09 17:19 --- Subject: Bug 10274 Author: danglin Date: Sun Apr 9 17:19:42 2006 New Revision: 112805 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112805 Log: PR target/26743 PR target/11254 PR

[Bug target/26743] gcc generates unreachable branch

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #5 from danglin at gcc dot gnu dot org 2006-04-09 17:19 --- Subject: Bug 26743 Author: danglin Date: Sun Apr 9 17:19:42 2006 New Revision: 112805 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112805 Log: PR target/26743 PR target/11254 PR

[Bug tree-optimization/27090] FRE does loop past previous type casts

2006-04-09 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-04-09 17:40 --- Actually this testcase comes down to: int f(int *a) { *a = 1; unsigned *b = (unsigned *)a; int *c = (int*)b; return *c; } And this is caught correctly at the RTL level. -- pinskia at gcc dot gnu

[Bug target/26743] gcc generates unreachable branch

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #6 from danglin at gcc dot gnu dot org 2006-04-09 17:42 --- Fixed on trunk (hopefully). -- danglin at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/11254] g++ (3.3): ...Error: Field out of range (optimisation pb)

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #9 from danglin at gcc dot gnu dot org 2006-04-09 17:43 --- Fixed on trunk (hopefully). -- danglin at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/10274] [HP-PA] ICE in output_cbranch, at config/pa/pa.c:5549

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #13 from danglin at gcc dot gnu dot org 2006-04-09 17:45 --- Fixed on trunk (hopefully). -- danglin at gcc dot gnu dot org changed: What|Removed |Added

[Bug pending/27092] Compiling a special asm-statment will fail if -O1 -fgcse is set.

2006-04-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-04-09 17:45 --- Can you try 4.0.3 since 3.4.x is no longer being updated? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27092

[Bug tree-optimization/27093] [4.2 Regression] verify_ssa failed: definition does not dominate use

2006-04-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-04-09 17:50 --- Confirmed, this is a regression. There might be already a dup of this but I don't have time to find it right now. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug target/27034] [4.2 Regression] gcc.dg/20021014-1.c (test for excess errors) fails

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #2 from danglin at gcc dot gnu dot org 2006-04-09 18:32 --- Subject: Bug 27034 Author: danglin Date: Sun Apr 9 18:32:16 2006 New Revision: 112807 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112807 Log: PR target/27034 PR target/26508 *

[Bug target/26508] 4.1.0 doesn't build in 64bit on PA-RISC

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #23 from danglin at gcc dot gnu dot org 2006-04-09 18:32 --- Subject: Bug 26508 Author: danglin Date: Sun Apr 9 18:32:16 2006 New Revision: 112807 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112807 Log: PR target/27034 PR target/26508 *

[Bug target/26508] 4.1.0 doesn't build in 64bit on PA-RISC

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #24 from danglin at gcc dot gnu dot org 2006-04-09 18:56 --- Subject: Bug 26508 Author: danglin Date: Sun Apr 9 18:56:23 2006 New Revision: 112808 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=112808 Log: PR target/26508 * config.gcc

[Bug fortran/26017] allocate (a(1:-1)) should yield zero-sized array

2006-04-09 Thread tkoenig at gcc dot gnu dot org
--- Comment #3 from tkoenig at gcc dot gnu dot org 2006-04-09 19:37 --- Created an attachment (id=11228) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11228action=view) patch This patch should do the trick. -- tkoenig at gcc dot gnu dot org changed: What

[Bug target/26508] 4.1.0 doesn't build in 64bit on PA-RISC

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #25 from danglin at gcc dot gnu dot org 2006-04-09 20:39 --- This should now be fixed on trunk and 4.1. Note however, that the dwarf2 EH support is broken with GNU ld. libgfortran doesn't build. There are a few testsuite fails beyond that with HP ld. -- danglin at gcc

[Bug c++/27094] New: tree check: expected tree_list, have omp_return in build_call

2006-04-09 Thread debian-gcc at lists dot debian dot org
[ forwarded from http://bugs.debian.org/361407 ] [EMAIL PROTECTED]:/tmp% g++ -c maria.tab.ii maria.y: In constructor 'std::stack_Tp, _Sequence::stack(const _Sequence) [with _Tp = std::pairconst Type*, unsigned int, _Sequence = std::liststd::pairconst Type*, unsigned int,

[Bug c++/27094] tree check: expected tree_list, have omp_return in build_call

2006-04-09 Thread debian-gcc at lists dot debian dot org
--- Comment #1 from debian-gcc at lists dot debian dot org 2006-04-09 21:01 --- Created an attachment (id=11229) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11229action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27094

[Bug fortran/26017] allocate (a(1:-1)) should yield zero-sized array

2006-04-09 Thread tkoenig at gcc dot gnu dot org
--- Comment #4 from tkoenig at gcc dot gnu dot org 2006-04-09 21:03 --- Created an attachment (id=11230) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11230action=view) This one actually works :-) -- tkoenig at gcc dot gnu dot org changed: What|Removed

[Bug bootstrap/26872] Internal Compiler Error when bootstrap GCC 4.1.0 with GCC 4.0.2

2006-04-09 Thread danglin at gcc dot gnu dot org
--- Comment #9 from danglin at gcc dot gnu dot org 2006-04-09 21:10 --- Why did you use the HP assembler? GAS is well tested. The HP assembler is never tested and has serious limitations with anything but C. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26872

[Bug c++/27094] [4.2 Regression] tree check: expected tree_list, have omp_return in build_call

2006-04-09 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Summary|tree check: expected|[4.2 Regression] tree check: |tree_list, have

[Bug c++/27094] [4.2 Regression] tree check: expected tree_list, have omp_return in build_call

2006-04-09 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-04-09 21:38 --- I could not reproduce this with the default gc params for checking but could with: --param ggc-min-expand=0 --param ggc-min-heapsize=0 Which means this is a GC issue. -- pinskia at gcc dot gnu dot org changed:

[Bug c++/27094] [4.2 Regression] tree check: expected tree_list, have omp_return in build_call

2006-04-09 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-04-09 21:40 --- Reducing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27094

[Bug c/27095] New: O2 produces duplicate code

2006-04-09 Thread benoit at placenet dot org
Hi, #include string.h void fill(char *s, int i) { memset(s, i, strlen(s)); } 4.1 produces two strlen calls fill: mflr 0 stwu 1,-32(1) stw 0,36(1) stw 28,16(1) mr 28,4 stw 29,20(1) mr 29,3 bl strlen mr 3,29

[Bug middle-end/27095] [4.1/4.2 Regression] O2 produces duplicate code

2006-04-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-04-09 21:49 --- Confirmed, also happens on powerpc-darwin and on the mainline still. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/27096] New: Automatic charlen pointer array result produces and ICE

2006-04-09 Thread pault at gcc dot gnu dot org
As part of the continuing crusade to get tonto compiled: character(10), dimension (2) :: inp inp = abcdefghij inp = join_1(inp) print *, inp contains function join_1(self) result(res) character(len=*), dimension(:) :: self character(len=len(self)), dimension(:), pointer :: res allocate (res(2))

[Bug fortran/27096] Automatic charlen pointer array result produces and ICE

2006-04-09 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-04-09 22:03 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/23855] loop header should also be pulled out of the inner loop too

2006-04-09 Thread rakdver at gcc dot gnu dot org
--- Comment #15 from rakdver at gcc dot gnu dot org 2006-04-09 23:51 --- (In reply to comment #14) (In reply to comment #11) I updated the patch for current mainline, but it still has issues for some common uses of loops: void foo(int *ie, int *je, double *x) { int i,

[Bug tree-optimization/23855] loop header should also be pulled out of the inner loop too

2006-04-09 Thread rakdver at gcc dot gnu dot org
--- Comment #16 from rakdver at gcc dot gnu dot org 2006-04-10 00:03 --- Created an attachment (id=11231) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11231action=view) Updated version of the patch, also handling invariant memory references --

[Bug c++/27098] New: throw cause terminate() instead of catch

2006-04-09 Thread mlazar at kma dot zcu dot cz
I have two files. One in c compiled with gcc, and other in c++ compiled with g++. From c++ is called helper function in c with pointer to error handler as parameter. Error handler (in c++) execute throw, but it is not catched as I expected. Instead is called default terminate() function. I

[Bug c++/27098] throw cause terminate() instead of catch

2006-04-09 Thread mlazar at kma dot zcu dot cz
--- Comment #1 from mlazar at kma dot zcu dot cz 2006-04-10 03:37 --- Created an attachment (id=11232) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11232action=view) c++ part of bug-demonstration program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27098

[Bug c++/27098] throw cause terminate() instead of catch

2006-04-09 Thread mlazar at kma dot zcu dot cz
--- Comment #2 from mlazar at kma dot zcu dot cz 2006-04-10 03:38 --- Created an attachment (id=11233) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11233action=view) c part of bug-demonstration program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27098

[Bug c++/27098] throw cause terminate() instead of catch

2006-04-09 Thread mlazar at kma dot zcu dot cz
--- Comment #3 from mlazar at kma dot zcu dot cz 2006-04-10 03:41 --- Created an attachment (id=11234) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11234action=view) Compiler versions and configurations -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27098

[Bug c++/27098] throw cause terminate() instead of catch

2006-04-09 Thread mlazar at kma dot zcu dot cz
--- Comment #4 from mlazar at kma dot zcu dot cz 2006-04-10 04:15 --- I observed that if the c source is compiled with -foptimize-sibling-calls -O options (on i686 in gcc 4.0.3), the exception is catched. So in this case, the terminate() function call: gcc -c helper.c g++ helper.o