summaryrefslogtreecommitdiffstats
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-26 20:34:23 +0000
committerneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-26 20:34:23 +0000
commit13c9bc78f40f0e1c716f6a26626f006b731b80bb (patch)
tree91ddf4a9b9b81894df6f92ec63921254fbc44cb9 /gcc/fixinc
parentc8694ccd0de7c69183d54a78fbd5b863f8dff32e (diff)
downloadppe42-gcc-13c9bc78f40f0e1c716f6a26626f006b731b80bb.tar.gz
ppe42-gcc-13c9bc78f40f0e1c716f6a26626f006b731b80bb.zip
* fixinc/inclhack.def (svr4_preproc_lint_on,
svr4_preproc_lint_off, svr4_preproc_machine): New disabled fixes, ported from fixinc.svr4. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/inclhack.def28
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index 4eade8cb3fd..38ee399539b 100644
--- a/gcc/fixinc/inclhack.def
+++ b/gcc/fixinc/inclhack.def
@@ -2893,6 +2893,34 @@ fix = {
/*
+ * Some SVR4 systems supposedly use these non-ANSI preprocessor directives.
+ */
+#ifdef SVR4
+fix = {
+ hackname = svr4_preproc_lint_on;
+ select = '#lint\(on\)';
+ c_fix = format;
+ c_fix_arg = 'defined(lint)';
+ test_text = "#if #lint(on)";
+};
+fix = {
+ hackname = svr4_preproc_lint_off;
+ select = '#lint\(off\)';
+ c_fix = format;
+ c_fix_arg = '!defined(lint)';
+ test_text = "#if #lint(off)";
+};
+fix = {
+ hackname = svr4_preproc_machine;
+ select = '#(machine|system|cpu)\(([^)]*)\)';
+ c_fix = format;
+ c_fix_arg = 'defined(__%1__)';
+ test_text = "#if #machine(i386) || #system(vax) || #cpu(sparc)";
+};
+#endif
+
+
+/*
* Fix broken decl of profil present on some svr4 systems.
*/
fix = {
OpenPOWER on IntegriCloud