This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
A non-feature in the GNU C Preprocessor
- To: bug-gnu-gcc at gnu dot org
- Subject: A non-feature in the GNU C Preprocessor
- From: "Ronald F. Guilmette" <rfg at monkeys dot com>
- Date: Wed, 05 Jan 2000 13:23:39 -0800
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
-------------------------------------------------