diff options
| author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-08-16 11:05:33 +0000 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2009-08-21 05:38:20 +0000 |
| commit | 168b627a715b231bfe5223c2f3ba0046a8ba1f27 (patch) | |
| tree | 5aa9c2d3697be7d0c83853a13af999d85f3d71c5 /Makefile | |
| parent | 03430d088f64a3b1d4b5bbbc86da3c352010702e (diff) | |
| download | sparse-dev-168b627a715b231bfe5223c2f3ba0046a8ba1f27.tar.gz | |
sparse: Add GCC pre-defined macros for user-spacev0.4.2-rc1
Sparse produces a bunch of warnings like this when compiling against
glibc:
/usr/lib/gcc/i486-linux-gnu/4.3.2//include-fixed/limits.h:33:22: warning: undefined preprocessor identifier '__INT_MAX__'
/usr/lib/gcc/i486-linux-gnu/4.3.2//include-fixed/limits.h:64:5: warning: undefined preprocessor identifier '__SHRT_MAX__'
/usr/lib/gcc/i486-linux-gnu/4.3.2//include-fixed/limits.h:64:21: warning: undefined preprocessor identifier '__INT_MAX__'
/usr/include/bits/xopen_lim.h:95:6: warning: undefined preprocessor identifier '__INT_MAX__'
/usr/include/bits/xopen_lim.h:98:7: warning: undefined preprocessor identifier '__INT_MAX__'
Fix that up by adding some add_pre_buffer() calls to
create_builtin_define(). For future reference, GCC defines the builtins
in the c_cpp_builtins() function in gcc/c-cppbuiltin.c.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions
