From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25230 invoked by alias); 15 Jun 2002 15:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25208 invoked by uid 71); 15 Jun 2002 15:26:00 -0000 Resent-Date: 15 Jun 2002 15:26:00 -0000 Resent-Message-ID: <20020615152600.25207.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, dickey@radix.net Received: (qmail 23995 invoked by uid 61); 15 Jun 2002 15:17:03 -0000 Message-Id: <20020615151703.23994.qmail@sources.redhat.com> Date: Sat, 15 Jun 2002 10:46:00 -0000 From: dickey@radix.net Reply-To: dickey@radix.net To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: preprocessor/7040: gcc 3.x cannot compile its own preprocessor output X-SW-Source: 2002-06/txt/msg00347.txt.bz2 List-Id: >Number: 7040 >Category: preprocessor >Synopsis: gcc 3.x cannot compile its own preprocessor output >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Jun 15 08:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Thomas Dickey >Release: 3.x (previously reported in pre-release of 3.0) >Organization: >Environment: Linux (probably any platform) >Description: Using the -C preprocessor option causes the preprocessor to generate an output file which cannot be compiled. First observed in the 2.96.x versions, the problem is that some of the retained comments are passed through to the output file's preprocessor lines, e.g., "#line", and the compiler refuses to accept that. Something as simple as a "#endif /* foo */" can trigger this behavior. >How-To-Repeat: Try building lynx with the HTMLized config file, e.g., configure --enable-htmlized-cfg >Fix: I worked around this originally by removing comments from some of lynx's header files. However, glibc also has comments in preprocessor lines. >Release-Note: >Audit-Trail: >Unformatted: