ue, 20 Aug 2002 17:32:19 +0100
Date: Tue, 20 Aug 2002 17:32:19 +0100
From: Andrew Suffield <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: cpp-3.2: _Pragma within macros is improperly expanded
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Con
Synopsis: _Pragma within macros is improperly expanded
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Mon Nov 18 12:51:59 2002
State-Changed-Why:
Fixed, I hope. Applied in 3.3, will soon apply in 3.2.2.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20au
Neil Booth wrote:-
> I think this fixes it for good. I'm applying this to 3.3, and 3.2.2
> when it arrives.
>
> Neil.
>
> PR preprocessor/8524
> * cpplib.c (run_directive): Remove previous kludge to _Pragma.
> Add a new one in its place, which hopefully works.
> (skip_re
I think this fixes it for good. I'm applying this to 3.3, and 3.2.2
when it arrives.
Neil.
PR preprocessor/8524
* cpplib.c (run_directive): Remove previous kludge to _Pragma.
Add a new one in its place, which hopefully works.
(skip_rest_of_line): Change test for b
Synopsis: _Pragma within macros is improperly expanded
State-Changed-From-To: analyzed->open
State-Changed-By: neil
State-Changed-When: Sun Nov 17 14:07:28 2002
State-Changed-Why:
Patch in progress. Let's nail this for good. Other than a rewrite the
only possible fix is a kludge,
Synopsis: _Pragma within macros is improperly expanded
Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Sun Nov 10 22:44:07 2002
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->analyzed
State-Changed-By: neil
State-Change
Thank you very much for your problem report.
It has the internal identification `preprocessor/8524'.
The individual assigned to look at your
report is: unassigned.
>Category: preprocessor
>Responsible:unassigned
>Synopsis: _Pragma within macros is improperly exp
>Submitter-Id: net
>Originator:Matthias Klose
>Organization:
>Confidential: no
>Synopsis: _Pragma within macros is improperly expanded
>Severity: serious
>Priority: medium
>Category: preprocessor
>Class: sw-bug
>Release:
reopen 157416
thanks
Nope, still not right. Here's a new case where it breaks:
==
[EMAIL PROTECTED]:~/tmp$ cat foo.c
#define ALPHA(A) alpha_ ## A
#define BETA(B) beta_ ## B
#define GAMMA(C) _Pragma("moose") ALPHA(C) BETA(C)
GAMMA(baz);
[EMAIL PROTECTED]:~/tmp$ cpp-3.2 foo.c
# 1 "foo.c"
# 1 ""
# 1
Processing commands for [EMAIL PROTECTED]:
> reopen 157416
Bug#157416: [fixed in 3.3] cpp: _Pragma within macros is improperly expanded
Bug reopened, originator not changed.
> thanks
Stopping processing here.
Please contact me if you need assistance.
Debian bug tracking system adminis
ue, 20 Aug 2002 17:32:19 +0100
Date: Tue, 20 Aug 2002 17:32:19 +0100
From: Andrew Suffield <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: cpp-3.2: _Pragma within macros is improperly expanded
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Con
Package: cpp-3.2
Version: 1:3.2-0pre4
Severity: important
[EMAIL PROTECTED]:~$ cat foo.c
_Pragma("foo"); int y;
#define FOO _Pragma("foo"); int x;
FOO
[EMAIL PROTECTED]:~$ cpp-3.2 foo.c
# 1 "foo.c"
# 1 ""
# 1 ""
# 1 "foo.c"
# 1 "foo.c"
#pragma foo
# 1 "foo.c"
; int y;
# 3 "foo.c"
12 matches
Mail list logo