public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/7070: internal error with -Wunknown-pragmas && empty #pragma
@ 2002-06-19 4:23 neil
0 siblings, 0 replies; 2+ messages in thread
From: neil @ 2002-06-19 4:23 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, ms, neil, nobody
Synopsis: internal error with -Wunknown-pragmas && empty #pragma
Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Wed Jun 19 04:20:25 2002
Responsible-Changed-Why:
Mine.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7070
^ permalink raw reply [flat|nested] 2+ messages in thread
* c/7070: internal error with -Wunknown-pragmas && empty #pragma
@ 2002-06-18 10:46 ms
0 siblings, 0 replies; 2+ messages in thread
From: ms @ 2002-06-18 10:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 7070
>Category: c
>Synopsis: internal error with -Wunknown-pragmas && empty #pragma
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Tue Jun 18 09:56:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Marcus Shawcroft
>Release: 3.1
>Organization:
>Environment:
redhat 7.1 i686
>Description:
The -Wunknown-pragmas option doesn;t like empty #pragma's.
Try this on the attached file:
gcc -Wall x.c
Gives:
internal error: x.c:1:8: unspellable token CPP_EOF
>How-To-Repeat:
>Fix:
*** /project/vobtags/toolsdev/gcc/gcc/gcc/c-lex.c@@/main/Integration.5410/Integration.6110/ms_toolsdev/0 Tue Jun 18 17:27:17 2002
--- c-lex.c Tue Jun 18 17:27:54 2002
***************
*** 338,348 ****
const cpp_token *s;
s = cpp_get_token (pfile);
- space = cpp_token_as_text (pfile, s);
- s = cpp_get_token (pfile);
if (s->type == CPP_NAME)
! name = cpp_token_as_text (pfile, s);
!
lineno = SOURCE_LINE (map, line);
if (name)
warning ("ignoring #pragma %s %s", space, name);
--- 338,350 ----
const cpp_token *s;
s = cpp_get_token (pfile);
if (s->type == CPP_NAME)
! {
! space = cpp_token_as_text (pfile, s);
! s = cpp_get_token (pfile);
! if (s->type == CPP_NAME)
! name = cpp_token_as_text (pfile, s);
! }
lineno = SOURCE_LINE (map, line);
if (name)
warning ("ignoring #pragma %s %s", space, name);
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="x.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="x.c"
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQKbWFpbiAoaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewog
IHByaW50ZiAoIkhlbGxvIFdvcmxkXG4iKTsKfQo=
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-19 11:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-19 4:23 c/7070: internal error with -Wunknown-pragmas && empty #pragma neil
-- strict thread matches above, loose matches on Subject: below --
2002-06-18 10:46 ms
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).