public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "janis187 at us dot ibm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/13046] [3.3/3.4 Regression] -traditional-cpp rejects valid code
Date: Mon, 08 Dec 2003 23:14:00 -0000	[thread overview]
Message-ID: <20031208231415.12956.qmail@sources.redhat.com> (raw)
In-Reply-To: <20031114031823.13046.n8gray@caltech.edu>


------- Additional Comments From janis187 at us dot ibm dot com  2003-12-08 23:14 -------
The regression in PR 13046 was introduced or exposed with this patch:

2002-06-28  Neil Booth  <neil@daikokuya.co.uk>

        PR preprocessor/7138
        * cpplib.c (_cpp_handle_directive): Do traditional
        preparation after setting state.angled_headers.
        * cpptrad.c (scan_out_logical_line): Fix potential
        quote bug.

The regression hunt took place on i686-pc-linux-gnu using the small
test case from comment #2, but is confirmed with the original test
case whose output before the patch (blank lines removed) is:

# 1 "13046_orig.c"
# 1 "<built-in>"
# 1 "<command line>"# 1 "<built-in>"
# 1 "<command line>"
# 1 "13046_orig.c"
13046_orig.c:2: warning: #warning Defining two-argument macros

and right after the patch is:

# 1 "13046_orig.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "13046_orig.c"
13046_orig.c:2: warning: #warning Defining two-argument macros
13046_orig.c:7: macro "btodb" requires 2 arguments, but only 1 given
13046_orig.c:8: macro "dbtob" requires 2 arguments, but only 1 given

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neil at daikokuya dot co dot
                   |                            |uk


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


  parent reply	other threads:[~2003-12-08 23:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-14  3:18 [Bug preprocessor/13046] New: cannot use #ifdef __APPLE__ on Darwin n8gray at caltech dot edu
2003-11-14  5:23 ` [Bug preprocessor/13046] " pinskia at gcc dot gnu dot org
2003-11-15  2:44 ` [Bug preprocessor/13046] [3.3 Regression] -traditional-cpp rejects valid code pinskia at gcc dot gnu dot org
2003-12-08 23:14 ` janis187 at us dot ibm dot com [this message]
2003-12-11 22:04 ` [Bug preprocessor/13046] [3.3/3.4 " neil at gcc dot gnu dot org
2003-12-12  7:08 ` neil at gcc dot gnu dot org
2003-12-12  7:13 ` gdr at integrable-solutions dot net
2004-01-31  3:15 ` [Bug preprocessor/13046] [3.3 " pinskia at gcc dot gnu dot org
2004-02-15 12:36 ` gdr at gcc dot gnu dot org
2004-03-12 21:12 ` gdr at gcc dot gnu dot org
2004-03-13 15:05 ` neil at daikokuya dot co dot uk
2004-04-18 18:17 ` gdr 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=20031208231415.12956.qmail@sources.redhat.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).