Commit c2f523ea by Nathanael Nerode

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
parent e158a5fb
2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
* 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 <mark@codesourcery.com> 2003-08-26 Mark Mitchell <mark@codesourcery.com>
* doc/install.texi (Prerequisites): Mention GNU make requirement. * doc/install.texi (Prerequisites): Mention GNU make requirement.
......
...@@ -2893,6 +2893,34 @@ fix = { ...@@ -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 broken decl of profil present on some svr4 systems.
*/ */
fix = { fix = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment