diff options
author | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2013-05-23 12:52:01 +0000 |
---|---|---|
committer | Kirill Yukhin <kyukhin@gcc.gnu.org> | 2013-05-23 12:52:01 +0000 |
commit | 877251155ba19212871966c65f4a283907eeb54e (patch) | |
tree | d8d6929b922e457e4727373248af526a0b71ecb0 /fixincludes/inclhack.def | |
parent | ce521ae644954b0869428201225e85d8e86eaf2e (diff) | |
download | gcc-877251155ba19212871966c65f4a283907eeb54e.tar.gz |
inclhack.def (complier_h_tradcpp): New.
* inclhack.def (complier_h_tradcpp): New.
* fixincl.x: Rebuilt.
* tests/base/linux/compiler.h: New.
From-SVN: r199249
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*/ |