From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9638 invoked by alias); 27 Apr 2002 17: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 9618 invoked by uid 71); 27 Apr 2002 17:26:00 -0000 Resent-Date: 27 Apr 2002 17:26:00 -0000 Resent-Message-ID: <20020427172600.9617.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, winter@alum.mit.edu Received:(qmail 9341 invoked by uid 61); 27 Apr 2002 17:22:48 -0000 Message-Id:<20020427172248.9340.qmail@sources.redhat.com> Date: Sat, 27 Apr 2002 10:26:00 -0000 From: winter@alum.mit.edu Reply-To: winter@alum.mit.edu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: preprocessor/6489: tradcpp0 fails on line ending with '\r\n' X-SW-Source: 2002-04/txt/msg01519.txt.bz2 List-Id: >Number: 6489 >Category: preprocessor >Synopsis: tradcpp0 fails on line ending with '\r\n' >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Apr 27 10:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: winter@alum.mit.edu >Release: gcc-3.0.4 >Organization: >Environment: Athlon, Redhat 6.2, gcc-3.0.4 built/installed from source using default configuration >Description: When g77 preprocesses a file (using tradcpp0), if it encounters a line like #include "fname"\r\n it fails with the message #include expects "fname" or Stepping through tradcpp0 with gdb reveals that it fails to strip off the trailing \r (although it successfully handles the \n) and thus concludes that the line is bogus. Furthermore, manual removal of \r from the file (using for instance fromdos) "fixes" the problem. >How-To-Repeat: Replace any line of the form #include "fname"\n with #include "fname"\r\n in a fortran source code and the problem should be repeatable. >Fix: Whatever code strips the trailing \n should also include stripping of trailing \r\n combinations. >Release-Note: >Audit-Trail: >Unformatted: