public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/16646] New: Precompiled header causes spurious errors in v3 testsuite
Date: Tue, 20 Jul 2004 17:38:00 -0000	[thread overview]
Message-ID: <20040720173812.16646.jwakely@mintel.com> (raw)


	I've seen this problem a few times, but only ever on FreeBSD.

        Basically, running the testsuite FAILs with the diagnostic below
        if a PCH file is found and used. Works OK if the PCH file is deleted.
        All other files seem to work OK, it's only header_cstdio.cc that FAILs.

        I can attach the PCH if needed.

Environment:
System: FreeBSD buffy.mintel.com 4.8-RC-20030314-JPSNAP FreeBSD 4.8-RC-20030314-JPSNAP #0: Mon Mar 17 13:41:48 GMT 2003 jason@buffy.mintel.co.uk:/usr/src/sys/compile/BUFFY i386


	
host: i386-unknown-freebsd4.8
build: i386-unknown-freebsd4.8
target: i386-unknown-freebsd4.8
configured with: /home/jw/gcc/src/gcc/configure --prefix=/home/jw/gcc/3.x/ --enable-languages=c,c++ --enable-concept_checks --enable-pch --enable-libstdcxx-debug --with-system-zlib --disable-checking

How-To-Repeat:
	The testsuite outputs:

Executing on host: /data/development/jw/tmp/gccbuild/gcc/g++ -shared-libgcc -B/data/development/jw/tmp/gccbuild/gcc/ -nostdinc++ -L/data/development/jw/tmp/gccbuild/i386-unknown-freebsd4.8/libstdc++-v3/src -L/data/development/jw/tmp/gccbuild/i386-unknown-freebsd4.8/libstdc++-v3/src/.libs -B/home/jw/gcc/3.x//i386-unknown-freebsd4.8/bin/ -B/home/jw/gcc/3.x//i386-unknown-freebsd4.8/lib/ -isystem /home/jw/gcc/3.x//i386-unknown-freebsd4.8/include -isystem /home/jw/gcc/3.x//i386-unknown-freebsd4.8/sys-include -g -O2 -D_GLIBCXX_ASSERT -ffunction-sections -fdata-sections -fmessage-length=0 -DLOCALEDIR="/data/development/jw/tmp/gccbuild/i386-unknown-freebsd4.8/libstdc++-v3/po/share/locale" -nostdinc++ -I/data/development/jw/tmp/gccbuild/i386-unknown-freebsd4.8/libstdc++-v3/include/i386-unknown-freebsd4.8 -I/data/development/jw/tmp/gccbuild/i386-unknown-freebsd4.8/libstdc++-v3/include -I/home/jw/gcc/src/gcc/libstdc++-v3/libsupc++ -I/home/jw/gcc/src/gcc/libstdc++-v3/libsupc++ -I/home/j!
 w/gcc/src/gcc/libstdc++-v3/include/backward -I/home/jw/gcc/src/gcc/libstdc++-v3/testsuite /home/jw/gcc/src/gcc/libstdc++-v3/testsuite/17_intro/header_cstdio.cc    -include bits/stdc++.h  -L/data/development/jw/tmp/gccbuild/i386-unknown-freebsd4.8/./libstdc++-v3/testsuite -lv3test -lm   -o ./header_cstdio.exe    (timeout = 300)
/home/jw/gcc/src/gcc/libstdc++-v3/testsuite/17_intro/header_cstdio.cc: In function `int main()':

/home/jw/gcc/src/gcc/libstdc++-v3/testsuite/17_intro/header_cstdio.cc:30: error: stray '\24' in program

/home/jw/gcc/src/gcc/libstdc++-v3/testsuite/17_intro/header_cstdio.cc:30: error: expected `}' at end of input

compiler exited with status 1
output is:
/home/jw/gcc/src/gcc/libstdc++-v3/testsuite/17_intro/header_cstdio.cc: In function `int main()':

/home/jw/gcc/src/gcc/libstdc++-v3/testsuite/17_intro/header_cstdio.cc:30: error: stray '\24' in program

/home/jw/gcc/src/gcc/libstdc++-v3/testsuite/17_intro/header_cstdio.cc:30: error: expected `}' at end of input


FAIL: 17_intro/header_cstdio.cc (test for excess errors)
------- Additional Comments From jwakely at mintel dot com  2004-07-20 17:38 -------
Fix:
	Delete the include/i386-unknown-freebsd4.8/bits/stdc++.h.gch/O2g
        file and re-run tests.

-- 
           Summary: Precompiled header causes spurious errors in v3
                    testsuite
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jwakely at mintel dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-unknown-freebsd4.8
  GCC host triplet: i386-unknown-freebsd4.8
GCC target triplet: i386-unknown-freebsd4.8


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


             reply	other threads:[~2004-07-20 17:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-20 17:38 gcc-bugzilla at gcc dot gnu dot org [this message]
2004-07-20 17:44 ` [Bug pch/16646] " pinskia at gcc dot gnu dot org
2004-07-20 17:45 ` pinskia at gcc dot gnu dot org
2004-07-20 19:27 ` redi at gcc dot gnu dot org
2004-07-20 19:29 ` redi at gcc dot gnu dot org
2004-07-20 19:52 ` pinskia at gcc dot gnu dot org
2004-10-22  0:35 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040720173812.16646.jwakely@mintel.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).