Between 2004-06-28 and 2004-07-02, the following tests started coring: testsuite/performance/20_util/allocator/insert.cc B20-24 T20-24 testsuite/performance/20_util/allocator/insert_insert.cc S20-24 All of these only impact the std::set container. I've tried current mainline libstdc++ sources with the gcc-3_4-branch compiler, and don't get these failures. Thus, it is likely that something in the compiler changed for the negative between these two days, although it is certainly possible that the fault remains with libstdc++. I enclose an edited version of this file to show the problem. -benjamin
Created attachment 6832 [details] test case compile with -O2 -pthread, run, core
It works with -O0 but not with -O2.
This is a dup of bug 14029 and PR 15262 and PR 15440 and PR 16282 and a couple more, the problem is that Alias analyzer cannot handle addressable fields. *** This bug has been marked as a duplicate of 14029 ***
Subject: Re: [3.5 regression] std::set tests for allocator/insert core in make check-performance On 26 Jul 2004 22:46:49 -0000 "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> wrote: > >------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-26 22:46 ------- >This is a dup of bug 14029 and PR 15262 and PR 15440 and PR 16282 and a couple more, the >problem is that Alias analyzer cannot handle addressable fields. Great, thanks for letting me know what's up. Please close this, I just wanted to make sure that people other than I knew that there was a problem. -benjamin
This is still an open issue. The bug that it supposedly duplicated, 14029, didn't solve it.
Hmm, now it fails at -O0 at least with "3.5.0 20040909" so it might not be a tree-opt bug at all but that might be because libstdc++ is still miscompiled with that build.
Hmm, it also does not fail with "4.0.0 20040917" at -O2 which means this is most likely fixed by: <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01725.html> which is in the top of my changelog.
Subject: Re: [4.0 regression] std::set tests for allocator/insert core in make check-performance >Hmm, it also does not fail with "4.0.0 20040917" at -O2 which means this is most likely fixed by: ><http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01725.html> which is in the top of my changelog. Disagree. It fails for me with that patch and with current mainline on x86/linux. -benjamin
Does -fno-tree-im fix the problem?
Disabling DOM seems to paper over the bug. Investigating.
This is fixed in tree-cleanup-branch. I'm bringing the patch into mainline. Ben, is this test out of the libstdc++ testsuite? Do we test it by default with make check? If not, would you mind adding it the default testsuite? I'm not very familiar with it. Thanks. Diego.
Subject: Bug 16728 CVSROOT: /cvs/gcc Module name: gcc Changes by: dnovillo@gcc.gnu.org 2004-10-28 23:24:41 Modified files: gcc : ChangeLog tree-flow.h tree-ssa-alias.c tree-ssa-copy.c Log message: PR tree-optimization/16728 * tree-flow.h (get_ptr_info): Declare. * tree-ssa-alias.c (get_ptr_info): Make extern. * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive alias information. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6085&r2=2.6086 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-flow.h.diff?cvsroot=gcc&r1=2.56&r2=2.57 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-alias.c.diff?cvsroot=gcc&r1=2.47&r2=2.48 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-copy.c.diff?cvsroot=gcc&r1=2.18&r2=2.19
Fixed.
Subject: Re: [4.0 regression] std::set tests for allocator/insert core in make check-performance >This is fixed in tree-cleanup-branch. I'm bringing the patch into mainline. >Ben, is this test out of the libstdc++ testsuite? Do we test it by default with >make check? If not, would you mind adding it the default testsuite? I'm not >very familiar with it. I'll check this in if testing proceeds smoothly.
Created attachment 7448 [details] p.20041031-1
Subject: Bug 16728 CVSROOT: /cvs/gcc Module name: gcc Changes by: bkoz@gcc.gnu.org 2004-11-01 00:02:43 Modified files: libstdc++-v3 : ChangeLog Added files: libstdc++-v3/testsuite/23_containers/set/modifiers: 16728.cc Log message: 2004-10-31 Benjamin Kosnik <bkoz@redhat.com> PR c++/16728 * testsuite/23_containers/set/modifiers/16728.cc: New. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2739&r2=1.2740 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/23_containers/set/modifiers/16728.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1