diff options
author | kyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-23 12:52:01 +0000 |
---|---|---|
committer | kyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-23 12:52:01 +0000 |
commit | 6107e73ffdc01f5d81c4e2f45e3d72e94fb8a158 (patch) | |
tree | d8d6929b922e457e4727373248af526a0b71ecb0 /fixincludes/inclhack.def | |
parent | 6979886b98fc36ed277a387711e0eedf4eab0cd2 (diff) | |
download | gcc-6107e73ffdc01f5d81c4e2f45e3d72e94fb8a158.tar.gz |
* inclhack.def (complier_h_tradcpp): New.
* fixincl.x: Rebuilt.
* tests/base/linux/compiler.h: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199249 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index d912ccc0cc6..42853da71b4 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -4894,4 +4894,18 @@ fix = { _EOText_; }; +/* + * Old Linux kernel's <compiler.h> header breaks Traditional CPP + */ +fix = { + hackname = complier_h_tradcpp; + files = linux/compiler.h; + + select = "#define __builtin_warning\\(x, y\\.\\.\\.\\) \\(1\\)"; + c_fix = format; + c_fix_arg = "/* __builtin_warning(x, y...) is obsolete */"; + + test_text = "#define __builtin_warning(x, y...) (1)"; +}; + /*EOF*/ |