From: Nathanael Nerode Date: Tue, 26 Aug 2003 20:34:23 +0000 (+0000) Subject: inclhack.def (svr4_preproc_lint_on, [...]): New disabled fixes, ported from fixinc... X-Git-Tag: releases/gcc-3.4.0~4056 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2f523ea72d6a1dc9319a14ac7a91de7e02901ba;p=thirdparty%2Fgcc.git inclhack.def (svr4_preproc_lint_on, [...]): New disabled fixes, ported from fixinc.svr4. * fixinc/inclhack.def (svr4_preproc_lint_on, svr4_preproc_lint_off, svr4_preproc_machine): New disabled fixes, ported from fixinc.svr4. From-SVN: r70818 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 620dd7fa78c6..bb344337d42e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-08-26 Nathanael Nerode + + * fixinc/inclhack.def (svr4_preproc_lint_on, + svr4_preproc_lint_off, svr4_preproc_machine): New disabled + fixes, ported from fixinc.svr4. + 2003-08-26 Mark Mitchell * doc/install.texi (Prerequisites): Mention GNU make requirement. diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index 4eade8cb3fd7..38ee399539be 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -2892,6 +2892,34 @@ fix = { #endif +/* + * 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. */