public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/32974]  New: #pragma GCC dependency generates extra token error.
@ 2007-08-03  8:54 novedad at naver dot com
  2007-08-17 21:32 ` [Bug preprocessor/32974] " tromey at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: novedad at naver dot com @ 2007-08-03  8:54 UTC (permalink / raw)
  To: gcc-bugs

Followed by manual, optional trailing text can be used to give more information
in the warning
message(http://gcc.gnu.org/onlinedocs/gcc-3.4.6/cpp/Pragmas.html#Pragmas ->
'#pragma GCC dependency' section). However, proprecessor gives warning messages
when there is optional trailing text. And this occures above certain
version(3.4.6).

$ touch /usr/include/time.h
$ echo '#pragma GCC dependency "/usr/include/time.h" rerun fixincludes' >z.c
$ gcc32 --version
gcc32 (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47.3)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc32 -c z.c
$ gcc --version
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc -c z.c
z.c:1:46: warning: extra tokens at end of #pragma directive
$ gcc4 --version
gcc4 (GCC) 4.1.1 20070105 (Red Hat 4.1.1-53)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc4 -c z.c
z.c:1:46: warning: extra tokens at end of #pragma directive
$


-- 
           Summary: #pragma GCC dependency generates extra token error.
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: novedad at naver dot com


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-30 22:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-03  8:54 [Bug preprocessor/32974] New: #pragma GCC dependency generates extra token error novedad at naver dot com
2007-08-17 21:32 ` [Bug preprocessor/32974] " tromey at gcc dot gnu dot org
2007-08-17 22:09 ` tromey at gcc dot gnu dot org
2007-08-18 17:54 ` tromey at gcc dot gnu dot org
2007-08-18 17:56 ` tromey at gcc dot gnu dot org
2008-03-14 16:59 ` [Bug preprocessor/32974] [4.2 Regression] " rguenth at gcc dot gnu dot org
2008-05-19 20:28 ` jsm28 at gcc dot gnu dot org
2009-03-30 22:13 ` jsm28 at gcc dot gnu dot org

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).