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