public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: garloff@suse.de
To: gcc-gnats@gcc.gnu.org
Subject: preprocessor/6055: gcc-2.95.x: ^M not ignored after #pragma
Date: Mon, 25 Mar 2002 18:26:00 -0000	[thread overview]
Message-ID: <20020326022309.B35FFB08@pckurt.casa-etp.nl> (raw)


>Number:         6055
>Category:       preprocessor
>Synopsis:       gcc-2.95.x: ^M not ignored after #pragma
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 25 18:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kurt Garloff
>Release:        2.95.3 (SuSE)
>Organization:
SuSE Linux AG
>Environment:
SuSE Linux 7.3 SMP (ix86)
System: Linux pckurt 2.4.18-SMP #4 SMP Sat Mar 23 11:23:04 CET 2002 i686 unknown
Architecture: i686, 
		Linux,
		i686-pc-linux-gnu
		glibc-2.2.x
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: N.N.
>Description:
	gcc-2.95.x: ^M not ignored after #pragma
>How-To-Repeat:
	#pragma prototyped^M
	typedef int __sig_atomic_t;
	typedef __sig_atomic_t sig_atomic_t;
	
	Compile and watch the compiler barf. (Ctrl-M is ASCII 13 (CR) and
	commonly used before ^J (LF) on some "operating systems")
	
	garloff@gum01m:~/Linux $ gcc  -c gdgen5.E.c
	gdgen5.E.c:3: parse error before sig_atomic_t'
	gdgen5.E.c:3: warning: data definition has no type or storage class
	garloff@gum01m:~/Linux $ gcc -v
	Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
	gcc version 2.95.3 20010315 (SuSE)
	
	PS: Thx to John Ellson (Lucent) for finding this bug!
>Fix:
	Either the preprocessor should dump all ^M before evaluating
	anything and before passing data to the compiler, or (better) 
	the compiler should ignore the ^M.
	It has been fixed on the 2.96 snapshots that I've seen and 
	it also is fixed in 3.x.
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-03-26  2:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-25 18:26 garloff [this message]
2002-03-25 23:07 neil

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=20020326022309.B35FFB08@pckurt.casa-etp.nl \
    --to=garloff@suse.de \
    --cc=gcc-gnats@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).