This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A non-feature in the GNU C Preprocessor



It would be really nice/helpful if normal preprocessing token replacement
were applied, by the C preproceessor, to #pragma directives.

For example, given the input file:

-------------------------------------------------
#define foobar stdio

#pragma depends_on foobar.h
-------------------------------------------------

If this file is processed with "gcc -E', it would be nice if the
output generated said:

-------------------------------------------------
# 1 "testprag.c"


#pragma depends_on stdio.h
-------------------------------------------------

Rather than:

-------------------------------------------------
# 1 "testprag.c"


#pragma depends_on foobar.h
-------------------------------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]