libfirm / cparser

C99 parser and frontend for libfirm
http://pp.ipd.kit.edu/firm
GNU General Public License v2.0
339 stars 38 forks source link

cparser's preprocessor does not emit #pragma tokens #20

Open rofl0r opened 5 years ago

rofl0r commented 5 years ago

my build system RcB2 relies on #pragma directives surviving the preprocessor pass, but cparser -E not only filters them out, it complains about them, as if it was the compiler, not the preprocessor!

../rocksock.h:155:34: warning: encountered unknown #pragma [-Wunknown-pragmas]

btw, GCC emits the warning -Wunknown-pragmas only when a build error happens, even if it is directly specified on the command line.