public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/32636]  New: [4.3 regression] 25_algorithms/search_n/iterator.cc: pch-related verify_ssa failure
@ 2007-07-05 16:05 hp at gcc dot gnu dot org
  2007-07-05 16:08 ` [Bug pch/32636] " hp at gcc dot gnu dot org
                   ` (40 more replies)
  0 siblings, 41 replies; 42+ messages in thread
From: hp at gcc dot gnu dot org @ 2007-07-05 16:05 UTC (permalink / raw)
  To: gcc-bugs

My autotester flags the following failure as introduced between revisions
126197 and 126206 (people with gcc/ChangeLog entries in this range are CCed; no
suspect cp or libstdc++-v3 changes):
Running
/tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp
...
FAIL: 25_algorithms/search_n/iterator.cc (test for excess errors)

with this in libstdc++.log:
/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/libstdc++-v3/include/bits/stl_algo.h:
In function '_ForwardIterator std::__search_n(_ForwardIterator,
_ForwardIterator, _Integer, const _Tp&, std::forward_iterator_tag) [with
_ForwardIterator = __gnu_test::forward_iterator_wrapper<int>, _Integer = int,
_Tp = int]':^M
/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/libstdc++-v3/include/bits/stl_algo.h:763:
error: definition in block 22 does not dominate use in block 25^M
for SSA_NAME: __i$D47460$SharedInfo_40 in statement:^M
if (__i$D47460$SharedInfo_40 != D.52134_317)^M
/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/libstdc++-v3/include/bits/stl_algo.h:763:
internal compiler error: verify_ssa failed^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
See <URL:http://gcc.gnu.org/bugs.html> for instructions.^M

The target and host combination is significant; I haven't been able to
reproduce this on a x86 system, neither with x86_64-unknown-linux-gnu native.
At first sight the bug is generic, but apparently hidden for other
combinations.

A iterator.ii is (to be) attached, but is likely not as helpful as it's
supposed to be, not more than avoiding the "make check" part, as it does not
contain the complete context for debugging cc1plus. It instead contains
#pragma GCC pch_preprocess
"/tmp/hptestregress/obj/cris-elf/libstdc++-v3/include/cris-elf/bits/stdc++.h.gch/O2g.gch"
and when configuring with --disable-libstdcxx-pch, the bug is not exposed.

With a complete built tree and edited file path on the pch_preprocess line,
"cc1plus -melf -fpreprocessed /tmp/iterator.ii -g -O2 -o iterator.s" is
sufficient to reproduce the bug. (Actually the -g seems optional which it
shouldn't be, but I think that's a separate bug.)

Due to the PCH-ness and lack of debug context in iterator.ii, the steps to
reproduce are a bit involved, but trivial and the usual ones for a variant of
cross-testing:
1. Check out, build and install targetted binutils somewhere:
/path/to/src/configure --target=cris-elf --prefix=/where/ever && make all &&
make install
2. Check out and combine newlib and gcc, for example as per
gcc.gnu.org/simtest-howto.html, and make sure gmp and mpfr are accessible
(in-tree or installed on the host)
3. Include /where/ever/bin in your PATH
4, Do /path/to/gccandnewlib/configure --target=cris-elf --prefix=/where/ever
--enable-languages=c++
5. Build; "make all"
6. You now have sufficient PCH context; edit the attached iterator.ii adjusting
the file path to the just-built O2g.gch and run the cc1plus line as above.


-- 
           Summary: [4.3 regression] 25_algorithms/search_n/iterator.cc:
                    pch-related verify_ssa failure
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-checking
          Severity: normal
          Priority: P3
         Component: pch
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: cris-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32636


^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2007-12-13 19:07 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-05 16:05 [Bug pch/32636] New: [4.3 regression] 25_algorithms/search_n/iterator.cc: pch-related verify_ssa failure hp at gcc dot gnu dot org
2007-07-05 16:08 ` [Bug pch/32636] " hp at gcc dot gnu dot org
2007-07-05 16:16 ` hp at gcc dot gnu dot org
2007-07-05 17:19 ` ubizjak at gmail dot com
2007-07-07 15:18 ` hp at gcc dot gnu dot org
2007-07-07 15:24 ` rguenther at suse dot de
2007-07-07 15:45 ` hp at gcc dot gnu dot org
2007-07-07 15:56 ` hp at gcc dot gnu dot org
2007-07-07 15:57 ` hp at gcc dot gnu dot org
2007-07-07 16:00 ` hp at gcc dot gnu dot org
2007-07-07 16:14 ` rguenth at gcc dot gnu dot org
2007-07-07 16:15 ` hp at gcc dot gnu dot org
2007-07-07 17:02 ` pinskia at gcc dot gnu dot org
2007-07-07 17:04 ` rguenth at gcc dot gnu dot org
2007-07-07 17:24 ` rguenth at gcc dot gnu dot org
2007-07-07 17:26 ` [Bug tree-optimization/32636] " rguenth at gcc dot gnu dot org
2007-07-09 18:31 ` hp at gcc dot gnu dot org
2007-07-12  9:57 ` rguenth at gcc dot gnu dot org
2007-08-01 16:31 ` danglin at gcc dot gnu dot org
2007-08-01 17:27 ` danglin at gcc dot gnu dot org
2007-08-10  0:40 ` mmitchel at gcc dot gnu dot org
2007-11-13 15:57 ` jakub at gcc dot gnu dot org
2007-11-13 19:28 ` dave at hiauly1 dot hia dot nrc dot ca
2007-11-16 14:31 ` jakub at gcc dot gnu dot org
2007-12-03 15:08 ` jakub at gcc dot gnu dot org
2007-12-03 15:23 ` hp at gcc dot gnu dot org
2007-12-03 15:43 ` dave at hiauly1 dot hia dot nrc dot ca
2007-12-06  0:29 ` [Bug tree-optimization/32636] [4.3 Regression] " dave at hiauly1 dot hia dot nrc dot ca
2007-12-10 20:25 ` jakub at gcc dot gnu dot org
2007-12-11  0:06 ` dave at hiauly1 dot hia dot nrc dot ca
2007-12-11 10:03 ` [Bug tree-optimization/32636] [4.3 Regression] 25_algorithms/search_n/iterator.cc: miscompiled on hppa2.0w-hp-hpux11.11 jakub at gcc dot gnu dot org
2007-12-11 11:13 ` jakub at gcc dot gnu dot org
2007-12-11 15:07 ` [Bug rtl-optimization/32636] " jakub at gcc dot gnu dot org
2007-12-11 15:23 ` zadeck at naturalbridge dot com
2007-12-11 16:52 ` dave at hiauly1 dot hia dot nrc dot ca
2007-12-11 17:12 ` pinskia at gcc dot gnu dot org
2007-12-11 20:37 ` jakub at gcc dot gnu dot org
2007-12-11 21:28 ` jakub at gcc dot gnu dot org
2007-12-11 21:44 ` dave at hiauly1 dot hia dot nrc dot ca
2007-12-13  8:20 ` jakub at gcc dot gnu dot org
2007-12-13 19:06 ` jakub at gcc dot gnu dot org
2007-12-13 19:07 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).