From: neroden Date: Tue, 26 Aug 2003 22:55:39 +0000 (+0000) Subject: * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix, X-Git-Tag: upstream/4.9.2~77065 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38cefc4d1275bb0709ffe84d5e3ab58049fb96b4;p=platform%2Fupstream%2Flinaro-gcc.git * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix, ported from fixinc.ptx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70827 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cedfc01..747b211 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-08-26 Nathanael Nerode + + * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix, + ported from fixinc.ptx. + 2003-08-26 Per Bothner * cpplib.h (struct cpp_token): Change type of field line to fileline. diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index 38ee399..d82190d 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -2002,6 +2002,30 @@ fix = { /* + * On DYNIX/ptx, sys/mc_param.h has an embedded asm for the cpuid instruction + * on the P5. This is not used by anything else so we ifdef it out. + * Current GCC doesn't seem to complain about the asm, though. + */ +#ifdef PTX +fix = { + hackname = ptx_sys_mc_param_h; + files = sys/mc_param.h; + sed = "/__asm/,/}/{" + "/__asm/i\\\n" + "#if !defined (__GNUC__) && !defined (__GNUG__)\n" + "/}/a\\\n" + "#endif\n" + "}"; + test_text = "__asm\n" + "int _CPUID()\n" + "{\n" + " non-GNU assembly here\n" + "}"; +}; +#endif + + +/* * Fix return type of fread and fwrite on sysV68 */ fix = {