From 53fe21c9469617b474ee94c825aa4a52310e7ccc Mon Sep 17 00:00:00 2001 From: Bruce Korb Date: Thu, 24 Jun 1999 20:28:47 +0000 Subject: [PATCH] inclhack.def (end_else_label): combined else_label and endif_label and fixed the sed expression. *fixinc/inclhack.def(end_else_label): combined else_label and endif_label and fixed the sed expression. *fixinc/{fixincl.x|inclhack.sh}: regen From-SVN: r27732 --- gcc/ChangeLog | 6 + gcc/fixinc/fixincl.sh | 2 +- gcc/fixinc/fixincl.x | 258 +++++++++++++++++----------------------- gcc/fixinc/inclhack.def | 41 ++----- gcc/fixinc/inclhack.sh | 206 ++++++++++++++------------------ 5 files changed, 220 insertions(+), 293 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 23c22354d76e..639cb218f9cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +1999-06-24 Bruce Korb + + *fixinc/inclhack.def(end_else_label): combined else_label + and endif_label and fixed the sed expression. + *fixinc/{fixincl.x|inclhack.sh}: regen + Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com) * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting diff --git a/gcc/fixinc/fixincl.sh b/gcc/fixinc/fixincl.sh index a7661ba19f72..73bb35e17b4a 100755 --- a/gcc/fixinc/fixincl.sh +++ b/gcc/fixinc/fixincl.sh @@ -6,7 +6,7 @@ # files which are fixed to work correctly with ANSI C and placed in a # directory that GNU C will search. # -# This script contains 104 fixup scripts. +# This script contains 103 fixup scripts. # # See README-fixinc for more information. # diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x index 939220618a55..aacc190f3271 100644 --- a/gcc/fixinc/fixincl.x +++ b/gcc/fixinc/fixincl.x @@ -5,7 +5,7 @@ * files which are fixed to work correctly with ANSI C and placed in a * directory that GNU C will search. * - * This file contains 104 fixup descriptions. + * This file contains 103 fixup descriptions. * * See README-fixinc for more information. * @@ -686,86 +686,49 @@ extern \"C\"\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 20 - Else_Label fix + * Description 20 - End_Else_Label fix */ -tSCC zElse_LabelName[] = - "Else_Label"; +tSCC zEnd_Else_LabelName[] = + "End_Else_Label"; /* * File name selection pattern */ -#define zElse_LabelList (char*)NULL +#define zEnd_Else_LabelList (char*)NULL /* * Machine/OS name selection pattern */ -#define apzElse_LabelMachs (const char**)NULL +#define apzEnd_Else_LabelMachs (const char**)NULL /* * content selection pattern - do fix if pattern found */ -tSCC zElse_LabelSelect0[] = - "^[ \t]*#[ \t]*else[ \t]+[!-.0-~]"; +tSCC zEnd_Else_LabelSelect0[] = + "^[ \t]*#[ \t]*(else|endif)[ \t]+([!-.0-z\\{\\|\\}\\~]|/[^\\*])"; -#define ELSE_LABEL_TEST_CT 1 -#define ELSE_LABEL_RE_CT 1 -tTestDesc aElse_LabelTests[] = { - { TT_EGREP, zElse_LabelSelect0, (regex_t*)NULL }, }; +#define END_ELSE_LABEL_TEST_CT 1 +#define END_ELSE_LABEL_RE_CT 1 +tTestDesc aEnd_Else_LabelTests[] = { + { TT_EGREP, zEnd_Else_LabelSelect0, (regex_t*)NULL }, }; /* - * Fix Command Arguments for Else_Label + * Fix Command Arguments for End_Else_Label */ -const char* apzElse_LabelPatch[] = { "sed", +const char* apzEnd_Else_LabelPatch[] = { "sed", "-e", ":loop\n\ /\\\\$/N\n\ s/\\\\$/\\\\+++fixinc_eol+++/\n\ /\\\\$/b loop\n\ s/\\\\+++fixinc_eol+++/\\\\/g\n\ -s%^\\([ \t]*#[ \t]*else\\)[ \t]*/[^*].*%\\1%\n\ -s%^\\([ \t]*#[ \t]*else\\)[ \t]*[^/ \t].*%\\1%", +s%^\\([ \t]*#[ \t]*else\\)[ \t][ \t]*/[^*].*%\\1%\n\ +s%^\\([ \t]*#[ \t]*else\\)[ \t][ \t]*[^/ \t].*%\\1%\n\ +s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]*/[^*].*%\\1%\n\ +s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]**[^/].*%\\1%\n\ +s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]*[^/* \t].*%\\1%", (char*)NULL }; /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 21 - Endif_Label fix - */ -tSCC zEndif_LabelName[] = - "Endif_Label"; -/* - * File name selection pattern - */ -#define zEndif_LabelList (char*)NULL -/* - * Machine/OS name selection pattern - */ -#define apzEndif_LabelMachs (const char**)NULL - -/* - * content selection pattern - do fix if pattern found - */ -tSCC zEndif_LabelSelect0[] = - "^[ \t]*#[ \t]*endif[ \t]+[!-.0-z{|}~]|^[ \t]*#[ \t]*endif[ \t]+/[^*]"; - -#define ENDIF_LABEL_TEST_CT 1 -#define ENDIF_LABEL_RE_CT 1 -tTestDesc aEndif_LabelTests[] = { - { TT_EGREP, zEndif_LabelSelect0, (regex_t*)NULL }, }; - -/* - * Fix Command Arguments for Endif_Label - */ -const char* apzEndif_LabelPatch[] = { "sed", - "-e", ":loop\n\ -/\\\\$/N\n\ -s/\\\\$/\\\\+++fixinc_eol+++/\n\ -/\\\\$/b loop\n\ -s/\\\\+++fixinc_eol+++/\\\\/g\n\ -s%^\\([ \t]*#[ \t]*endif\\)[ \t]*/[^*].*%\\1%\n\ -s%^\\([ \t]*#[ \t]*endif\\)[ \t]*\\*[^/].*%\\1%\n\ -s%^\\([ \t]*#[ \t]*endif\\)[ \t]*[^/* \t].*%\\1%", - (char*)NULL }; - -/* * * * * * * * * * * * * * * * * * * * * * * * * * - * - * Description 22 - Hp_Inline fix + * Description 21 - Hp_Inline fix */ tSCC zHp_InlineName[] = "Hp_Inline"; @@ -800,7 +763,7 @@ const char* apzHp_InlinePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 23 - Hp_Sysfile fix + * Description 22 - Hp_Sysfile fix */ tSCC zHp_SysfileName[] = "Hp_Sysfile"; @@ -834,7 +797,7 @@ const char* apzHp_SysfilePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 24 - Cxx_Unready fix + * Description 23 - Cxx_Unready fix */ tSCC zCxx_UnreadyName[] = "Cxx_Unready"; @@ -876,7 +839,7 @@ extern \"C\" {\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 25 - Hpux_Maxint fix + * Description 24 - Hpux_Maxint fix */ tSCC zHpux_MaxintName[] = "Hpux_Maxint"; @@ -905,7 +868,7 @@ const char* apzHpux_MaxintPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 26 - Hpux_Systime fix + * Description 25 - Hpux_Systime fix */ tSCC zHpux_SystimeName[] = "Hpux_Systime"; @@ -939,7 +902,7 @@ const char* apzHpux_SystimePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 27 - Interactv_Add1 fix + * Description 26 - Interactv_Add1 fix */ tSCC zInteractv_Add1Name[] = "Interactv_Add1"; @@ -976,7 +939,7 @@ const char* apzInteractv_Add1Patch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 28 - Interactv_Add2 fix + * Description 27 - Interactv_Add2 fix */ tSCC zInteractv_Add2Name[] = "Interactv_Add2"; @@ -1013,7 +976,7 @@ const char* apzInteractv_Add2Patch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 29 - Interactv_Add3 fix + * Description 28 - Interactv_Add3 fix */ tSCC zInteractv_Add3Name[] = "Interactv_Add3"; @@ -1051,7 +1014,7 @@ const char* apzInteractv_Add3Patch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 30 - Io_Def_Quotes fix + * Description 29 - Io_Def_Quotes fix */ tSCC zIo_Def_QuotesName[] = "Io_Def_Quotes"; @@ -1087,7 +1050,7 @@ const char* apzIo_Def_QuotesPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 31 - Ioctl_Fix_Ctrl fix + * Description 30 - Ioctl_Fix_Ctrl fix */ tSCC zIoctl_Fix_CtrlName[] = "Ioctl_Fix_Ctrl"; @@ -1125,7 +1088,7 @@ const char* apzIoctl_Fix_CtrlPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 32 - Ip_Missing_Semi fix + * Description 31 - Ip_Missing_Semi fix */ tSCC zIp_Missing_SemiName[] = "Ip_Missing_Semi"; @@ -1151,7 +1114,7 @@ const char* apzIp_Missing_SemiPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 33 - Irix_Multiline_Cmnt fix + * Description 32 - Irix_Multiline_Cmnt fix */ tSCC zIrix_Multiline_CmntName[] = "Irix_Multiline_Cmnt"; @@ -1178,7 +1141,7 @@ const char* apzIrix_Multiline_CmntPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 34 - Irix_Sockaddr fix + * Description 33 - Irix_Sockaddr fix */ tSCC zIrix_SockaddrName[] = "Irix_Sockaddr"; @@ -1213,7 +1176,7 @@ struct sockaddr;\n", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 35 - Irix_Struct__File fix + * Description 34 - Irix_Struct__File fix */ tSCC zIrix_Struct__FileName[] = "Irix_Struct__File"; @@ -1240,7 +1203,7 @@ struct __file_s;\n", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 36 - Isc_Fmod fix + * Description 35 - Isc_Fmod fix */ tSCC zIsc_FmodName[] = "Isc_Fmod"; @@ -1274,7 +1237,7 @@ const char* apzIsc_FmodPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 37 - Motorola_Nested fix + * Description 36 - Motorola_Nested fix */ tSCC zMotorola_NestedName[] = "Motorola_Nested"; @@ -1303,7 +1266,7 @@ const char* apzMotorola_NestedPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 38 - Isc_Sys_Limits fix + * Description 37 - Isc_Sys_Limits fix */ tSCC zIsc_Sys_LimitsName[] = "Isc_Sys_Limits"; @@ -1338,7 +1301,7 @@ const char* apzIsc_Sys_LimitsPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 39 - Kandr_Concat fix + * Description 38 - Kandr_Concat fix */ tSCC zKandr_ConcatName[] = "Kandr_Concat"; @@ -1372,7 +1335,7 @@ const char* apzKandr_ConcatPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 40 - Limits_Ifndefs fix + * Description 39 - Limits_Ifndefs fix */ tSCC zLimits_IfndefsName[] = "Limits_Ifndefs"; @@ -1430,7 +1393,7 @@ const char* apzLimits_IfndefsPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 41 - Lynx_Void_Int fix + * Description 40 - Lynx_Void_Int fix */ tSCC zLynx_Void_IntName[] = "Lynx_Void_Int"; @@ -1464,7 +1427,7 @@ const char* apzLynx_Void_IntPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 42 - Lynxos_Fcntl_Proto fix + * Description 41 - Lynxos_Fcntl_Proto fix */ tSCC zLynxos_Fcntl_ProtoName[] = "Lynxos_Fcntl_Proto"; @@ -1498,7 +1461,7 @@ const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 43 - M88k_Bad_Hypot_Opt fix + * Description 42 - M88k_Bad_Hypot_Opt fix */ tSCC zM88k_Bad_Hypot_OptName[] = "M88k_Bad_Hypot_Opt"; @@ -1539,7 +1502,7 @@ static __inline__ double fake_hypot (x, y)\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 44 - M88k_Bad_S_If fix + * Description 43 - M88k_Bad_S_If fix */ tSCC zM88k_Bad_S_IfName[] = "M88k_Bad_S_If"; @@ -1576,7 +1539,7 @@ const char* apzM88k_Bad_S_IfPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 45 - M88k_Multi_Incl fix + * Description 44 - M88k_Multi_Incl fix */ tSCC zM88k_Multi_InclName[] = "M88k_Multi_Incl"; @@ -1617,7 +1580,7 @@ const char* apzM88k_Multi_InclPatch[] = { "sh", "-c", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 46 - Machine_Name fix + * Description 45 - Machine_Name fix */ tSCC zMachine_NameName[] = "Machine_Name"; @@ -1686,7 +1649,7 @@ s/\\\\+++fixinc_eol+++/\\\\/g\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 47 - Math_Exception fix + * Description 46 - Math_Exception fix */ tSCC zMath_ExceptionName[] = "Math_Exception"; @@ -1735,7 +1698,7 @@ const char* apzMath_ExceptionPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 48 - Math_Gcc_Ifndefs fix + * Description 47 - Math_Gcc_Ifndefs fix */ tSCC zMath_Gcc_IfndefsName[] = "Math_Gcc_Ifndefs"; @@ -1773,7 +1736,7 @@ const char* apzMath_Gcc_IfndefsPatch[] = { "sh", "-c", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 49 - Nested_Comment fix + * Description 48 - Nested_Comment fix */ tSCC zNested_CommentName[] = "Nested_Comment"; @@ -1799,7 +1762,7 @@ const char* apzNested_CommentPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 50 - News_Os_Recursion fix + * Description 49 - News_Os_Recursion fix */ tSCC zNews_Os_RecursionName[] = "News_Os_Recursion"; @@ -1836,7 +1799,7 @@ const char* apzNews_Os_RecursionPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 51 - Next_Math_Prefix fix + * Description 50 - Next_Math_Prefix fix */ tSCC zNext_Math_PrefixName[] = "Next_Math_Prefix"; @@ -1874,7 +1837,7 @@ const char* apzNext_Math_PrefixPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 52 - Next_Template fix + * Description 51 - Next_Template fix */ tSCC zNext_TemplateName[] = "Next_Template"; @@ -1909,7 +1872,7 @@ const char* apzNext_TemplatePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 53 - Next_Volitile fix + * Description 52 - Next_Volitile fix */ tSCC zNext_VolitileName[] = "Next_Volitile"; @@ -1944,7 +1907,7 @@ const char* apzNext_VolitilePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 54 - Next_Wait_Union fix + * Description 53 - Next_Wait_Union fix */ tSCC zNext_Wait_UnionName[] = "Next_Wait_Union"; @@ -1978,7 +1941,7 @@ const char* apzNext_Wait_UnionPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 55 - Nodeent_Syntax fix + * Description 54 - Nodeent_Syntax fix */ tSCC zNodeent_SyntaxName[] = "Nodeent_Syntax"; @@ -2004,7 +1967,7 @@ const char* apzNodeent_SyntaxPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 56 - Osf_Namespace_A fix + * Description 55 - Osf_Namespace_A fix */ tSCC zOsf_Namespace_AName[] = "Osf_Namespace_A"; @@ -2049,7 +2012,7 @@ const char* apzOsf_Namespace_APatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 57 - Osf_Namespace_B fix + * Description 56 - Osf_Namespace_B fix */ tSCC zOsf_Namespace_BName[] = "Osf_Namespace_B"; @@ -2095,7 +2058,7 @@ typedef __regmatch_t\tregmatch_t;\n", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 58 - Pthread_Page_Size fix + * Description 57 - Pthread_Page_Size fix */ tSCC zPthread_Page_SizeName[] = "Pthread_Page_Size"; @@ -2129,7 +2092,7 @@ const char* apzPthread_Page_SizePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 59 - Rs6000_Double fix + * Description 58 - Rs6000_Double fix */ tSCC zRs6000_DoubleName[] = "Rs6000_Double"; @@ -2166,7 +2129,7 @@ const char* apzRs6000_DoublePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 60 - Rs6000_Fchmod fix + * Description 59 - Rs6000_Fchmod fix */ tSCC zRs6000_FchmodName[] = "Rs6000_Fchmod"; @@ -2200,7 +2163,7 @@ const char* apzRs6000_FchmodPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 61 - Rs6000_Param fix + * Description 60 - Rs6000_Param fix */ tSCC zRs6000_ParamName[] = "Rs6000_Param"; @@ -2226,7 +2189,7 @@ const char* apzRs6000_ParamPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 62 - Sony_Include fix + * Description 61 - Sony_Include fix */ tSCC zSony_IncludeName[] = "Sony_Include"; @@ -2260,7 +2223,7 @@ const char* apzSony_IncludePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 63 - Statsswtch fix + * Description 62 - Statsswtch fix */ tSCC zStatsswtchName[] = "Statsswtch"; @@ -2294,7 +2257,7 @@ const char* apzStatsswtchPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 64 - Stdio_Va_List fix + * Description 63 - Stdio_Va_List fix */ tSCC zStdio_Va_ListName[] = "Stdio_Va_List"; @@ -2337,7 +2300,7 @@ const char* apzStdio_Va_ListPatch[] = { "sh", "-c", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 65 - Sun_Bogus_Ifdef fix + * Description 64 - Sun_Bogus_Ifdef fix */ tSCC zSun_Bogus_IfdefName[] = "Sun_Bogus_Ifdef"; @@ -2371,7 +2334,7 @@ const char* apzSun_Bogus_IfdefPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 66 - Sun_Bogus_Ifdef_Sun4c fix + * Description 65 - Sun_Bogus_Ifdef_Sun4c fix */ tSCC zSun_Bogus_Ifdef_Sun4cName[] = "Sun_Bogus_Ifdef_Sun4c"; @@ -2405,7 +2368,7 @@ const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 67 - Sun_Catmacro fix + * Description 66 - Sun_Catmacro fix */ tSCC zSun_CatmacroName[] = "Sun_Catmacro"; @@ -2444,7 +2407,7 @@ const char* apzSun_CatmacroPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 68 - Sun_Malloc fix + * Description 67 - Sun_Malloc fix */ tSCC zSun_MallocName[] = "Sun_Malloc"; @@ -2473,7 +2436,7 @@ const char* apzSun_MallocPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 69 - Sun_Memcpy fix + * Description 68 - Sun_Memcpy fix */ tSCC zSun_MemcpyName[] = "Sun_Memcpy"; @@ -2527,7 +2490,7 @@ extern int memcmp();\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 70 - Sun_Rusers_Semi fix + * Description 69 - Sun_Rusers_Semi fix */ tSCC zSun_Rusers_SemiName[] = "Sun_Rusers_Semi"; @@ -2561,7 +2524,7 @@ const char* apzSun_Rusers_SemiPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 71 - Sun_Signal fix + * Description 70 - Sun_Signal fix */ tSCC zSun_SignalName[] = "Sun_Signal"; @@ -2600,7 +2563,7 @@ void\t(*signal(...))(...);\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 72 - Sun_Auth_Proto fix + * Description 71 - Sun_Auth_Proto fix */ tSCC zSun_Auth_ProtoName[] = "Sun_Auth_Proto"; @@ -2639,7 +2602,7 @@ const char* apzSun_Auth_ProtoPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 73 - Sunos_Matherr_Decl fix + * Description 72 - Sunos_Matherr_Decl fix */ tSCC zSunos_Matherr_DeclName[] = "Sunos_Matherr_Decl"; @@ -2667,7 +2630,7 @@ struct exception;\n", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 74 - Sunos_Strlen fix + * Description 73 - Sunos_Strlen fix */ tSCC zSunos_StrlenName[] = "Sunos_Strlen"; @@ -2693,7 +2656,7 @@ const char* apzSunos_StrlenPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 75 - Systypes fix + * Description 74 - Systypes fix */ tSCC zSystypesName[] = "Systypes"; @@ -2751,7 +2714,7 @@ typedef __SIZE_TYPE__ size_t;\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 76 - Systypes_For_Aix fix + * Description 75 - Systypes_For_Aix fix */ tSCC zSystypes_For_AixName[] = "Systypes_For_Aix"; @@ -2796,7 +2759,7 @@ const char* apzSystypes_For_AixPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 77 - Sysv68_String fix + * Description 76 - Sysv68_String fix */ tSCC zSysv68_StringName[] = "Sysv68_String"; @@ -2832,7 +2795,7 @@ extern unsigned int\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 78 - Sysz_Stdlib_For_Sun fix + * Description 77 - Sysz_Stdlib_For_Sun fix */ tSCC zSysz_Stdlib_For_SunName[] = "Sysz_Stdlib_For_Sun"; @@ -2868,7 +2831,7 @@ const char* apzSysz_Stdlib_For_SunPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 79 - Sysz_Stdtypes_For_Sun fix + * Description 78 - Sysz_Stdtypes_For_Sun fix */ tSCC zSysz_Stdtypes_For_SunName[] = "Sysz_Stdtypes_For_Sun"; @@ -2908,7 +2871,7 @@ const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 80 - Tinfo_Cplusplus fix + * Description 79 - Tinfo_Cplusplus fix */ tSCC zTinfo_CplusplusName[] = "Tinfo_Cplusplus"; @@ -2934,7 +2897,7 @@ const char* apzTinfo_CplusplusPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 81 - Ultrix_Ansi_Compat fix + * Description 80 - Ultrix_Ansi_Compat fix */ tSCC zUltrix_Ansi_CompatName[] = "Ultrix_Ansi_Compat"; @@ -2970,7 +2933,7 @@ const char* apzUltrix_Ansi_CompatPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 82 - Ultrix_Fix_Fixproto fix + * Description 81 - Ultrix_Fix_Fixproto fix */ tSCC zUltrix_Fix_FixprotoName[] = "Ultrix_Fix_Fixproto"; @@ -3005,7 +2968,7 @@ struct utsname;\n", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 83 - Ultrix_Atof_Param fix + * Description 82 - Ultrix_Atof_Param fix */ tSCC zUltrix_Atof_ParamName[] = "Ultrix_Atof_Param"; @@ -3035,7 +2998,7 @@ const char* apzUltrix_Atof_ParamPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 84 - Ultrix_Const fix + * Description 83 - Ultrix_Const fix */ tSCC zUltrix_ConstName[] = "Ultrix_Const"; @@ -3069,7 +3032,7 @@ const char* apzUltrix_ConstPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 85 - Ultrix_Ifdef fix + * Description 84 - Ultrix_Ifdef fix */ tSCC zUltrix_IfdefName[] = "Ultrix_Ifdef"; @@ -3103,7 +3066,7 @@ const char* apzUltrix_IfdefPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 86 - Ultrix_Nested_Cmnt fix + * Description 85 - Ultrix_Nested_Cmnt fix */ tSCC zUltrix_Nested_CmntName[] = "Ultrix_Nested_Cmnt"; @@ -3129,7 +3092,7 @@ const char* apzUltrix_Nested_CmntPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 87 - Ultrix_Static fix + * Description 86 - Ultrix_Static fix */ tSCC zUltrix_StaticName[] = "Ultrix_Static"; @@ -3165,7 +3128,7 @@ const char* apzUltrix_StaticPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 88 - Undefine_Null fix + * Description 87 - Undefine_Null fix */ tSCC zUndefine_NullName[] = "Undefine_Null"; @@ -3206,7 +3169,7 @@ const char* apzUndefine_NullPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 89 - Va_I960_Macro fix + * Description 88 - Va_I960_Macro fix */ tSCC zVa_I960_MacroName[] = "Va_I960_Macro"; @@ -3243,7 +3206,7 @@ const char* apzVa_I960_MacroPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 90 - Void_Null fix + * Description 89 - Void_Null fix */ tSCC zVoid_NullName[] = "Void_Null"; @@ -3277,7 +3240,7 @@ const char* apzVoid_NullPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 91 - Vxworks_Gcc_Problem fix + * Description 90 - Vxworks_Gcc_Problem fix */ tSCC zVxworks_Gcc_ProblemName[] = "Vxworks_Gcc_Problem"; @@ -3326,7 +3289,7 @@ const char* apzVxworks_Gcc_ProblemPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 92 - Vxworks_Needs_Vxtypes fix + * Description 91 - Vxworks_Needs_Vxtypes fix */ tSCC zVxworks_Needs_VxtypesName[] = "Vxworks_Needs_Vxtypes"; @@ -3360,7 +3323,7 @@ const char* apzVxworks_Needs_VxtypesPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 93 - Vxworks_Needs_Vxworks fix + * Description 92 - Vxworks_Needs_Vxworks fix */ tSCC zVxworks_Needs_VxworksName[] = "Vxworks_Needs_Vxworks"; @@ -3408,7 +3371,7 @@ const char* apzVxworks_Needs_VxworksPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 94 - Vxworks_Time fix + * Description 93 - Vxworks_Time fix */ tSCC zVxworks_TimeName[] = "Vxworks_Time"; @@ -3458,7 +3421,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 95 - X11_Class fix + * Description 94 - X11_Class fix */ tSCC zX11_ClassName[] = "X11_Class"; @@ -3497,7 +3460,7 @@ const char* apzX11_ClassPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 96 - X11_Class_Usage fix + * Description 95 - X11_Class_Usage fix */ tSCC zX11_Class_UsageName[] = "X11_Class_Usage"; @@ -3531,7 +3494,7 @@ const char* apzX11_Class_UsagePatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 97 - X11_New fix + * Description 96 - X11_New fix */ tSCC zX11_NewName[] = "X11_New"; @@ -3571,7 +3534,7 @@ const char* apzX11_NewPatch[] = { "sed", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 98 - X11_Sprintf fix + * Description 97 - X11_Sprintf fix */ tSCC zX11_SprintfName[] = "X11_Sprintf"; @@ -3599,7 +3562,7 @@ extern char *\tsprintf();\\\n\ /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 99 - Zzz_Ki_Iface fix + * Description 98 - Zzz_Ki_Iface fix */ tSCC zZzz_Ki_IfaceName[] = "Zzz_Ki_Iface"; @@ -3635,7 +3598,7 @@ cat > /dev/null", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 100 - Zzz_Ki fix + * Description 99 - Zzz_Ki fix */ tSCC zZzz_KiName[] = "Zzz_Ki"; @@ -3671,7 +3634,7 @@ cat > /dev/null", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 101 - Zzz_Ki_Calls fix + * Description 100 - Zzz_Ki_Calls fix */ tSCC zZzz_Ki_CallsName[] = "Zzz_Ki_Calls"; @@ -3707,7 +3670,7 @@ cat > /dev/null", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 102 - Zzz_Ki_Defs fix + * Description 101 - Zzz_Ki_Defs fix */ tSCC zZzz_Ki_DefsName[] = "Zzz_Ki_Defs"; @@ -3743,7 +3706,7 @@ cat > /dev/null", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 103 - Zzz_Bad_Fixes fix + * Description 102 - Zzz_Bad_Fixes fix */ tSCC zZzz_Bad_FixesName[] = "Zzz_Bad_Fixes"; @@ -3771,7 +3734,7 @@ cat > /dev/null", /* * * * * * * * * * * * * * * * * * * * * * * * * * * - * Description 104 - Zzz_Time fix + * Description 103 - Zzz_Time fix */ tSCC zZzz_TimeName[] = "Zzz_Time"; @@ -3809,8 +3772,8 @@ cat > /dev/null", * * List of all fixes */ -#define REGEX_COUNT 74 -#define FIX_COUNT 104 +#define REGEX_COUNT 73 +#define FIX_COUNT 103 tFixDesc fixDescList[ FIX_COUNT ] = { { zAix_SyswaitName, zAix_SyswaitList, apzAix_SyswaitMachs, (regex_t*)NULL, @@ -3907,15 +3870,10 @@ tFixDesc fixDescList[ FIX_COUNT ] = { SCO5_STAT_WRAPPERS_TEST_CT, FD_MACH_ONLY, aSco5_Stat_WrappersTests, apzSco5_Stat_WrappersPatch }, - { zElse_LabelName, zElse_LabelList, - apzElse_LabelMachs, (regex_t*)NULL, - ELSE_LABEL_TEST_CT, FD_MACH_ONLY, - aElse_LabelTests, apzElse_LabelPatch }, - - { zEndif_LabelName, zEndif_LabelList, - apzEndif_LabelMachs, (regex_t*)NULL, - ENDIF_LABEL_TEST_CT, FD_MACH_ONLY, - aEndif_LabelTests, apzEndif_LabelPatch }, + { zEnd_Else_LabelName, zEnd_Else_LabelList, + apzEnd_Else_LabelMachs, (regex_t*)NULL, + END_ELSE_LABEL_TEST_CT, FD_MACH_ONLY, + aEnd_Else_LabelTests, apzEnd_Else_LabelPatch }, { zHp_InlineName, zHp_InlineList, apzHp_InlineMachs, (regex_t*)NULL, diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index e1d2db4656c9..7a9e305adb1e 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -391,31 +391,13 @@ fix = { /* - * Fix else directives that contain non-commentary text - * - * The fixinc_eol stuff is to work around a bug in the sed + * Fix else and endif directives that contain non-commentary text */ fix = { - hackname = else_label; - select = "^[ \t]*#[ \t]*else[ \t]+[!-.0-~]"; - sed = ":loop\n" - '/\\\\$/' "N\n" - 's/\\\\$/\\\\+++fixinc_eol+++/' "\n" - '/\\\\$/' "b loop\n" - 's/\\\\+++fixinc_eol+++/\\\\/g' "\n" + hackname = end_else_label; - "s%^\\([ \t]*#[ \t]*else\\)[ \t]*/[^*].*%\\1%\n" - "s%^\\([ \t]*#[ \t]*else\\)[ \t]*[^/ \t].*%\\1%"; -}; - - -/* - * Fix endif directives that contain non-commentary text - */ -fix = { - hackname = endif_label; /* - * Select files that contain '#endif' directives with + * Select files that contain '#endif' or '#else' directives with * some sort of following junk. (Between the ascii '.' * and '0' lies the character '/'. This will *NOT* * match '#endif / * foo * /', but it also wont match @@ -427,13 +409,14 @@ fix = { * "#endif /% blah %/ which appear on OSF4.0A and AIX4.2 * repsectively. * - * We use the pattern [!-.0-z{|}~] instead of [^/ \t] to match a noncomment - * following #else or #endif because some buggy egreps think [^/] matches - * newline, and they thus think `#else ' matches + * We use the pattern [!-.0-z{|}~] instead of [^/ \t] to match a + * noncomment following #else or #endif because some buggy egreps + * think [^/] matches newline, and they thus think `#else ' matches * `#e[ndiflse]*[ \t]+[^/ \t]'. * [!-.0-~] does not work properly on AIX 4.1. */ - select = "^[ \t]*#[ \t]*endif[ \t]+[!-.0-z\{\|\}\~]|^[ \t]*#[ \t]*endif[ \t]+/[^\*]"; + select = "^[ \t]*#[ \t]*(else|endif)[ \t]+" + "(" '[!-.0-z\{\|\}\~]' "|" '/[^\*]' ")"; /* * First, join the continued input lines. @@ -451,9 +434,11 @@ fix = { '/\\\\$/' "b loop\n" 's/\\\\+++fixinc_eol+++/\\\\/g' "\n" - "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*/[^*].*%\\1%\n" - "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*\\*[^/].*%\\1%\n" - "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*[^/* \t].*%\\1%"; + "s%^\\([ \t]*#[ \t]*else\\)[ \t][ \t]*/[^*].*%\\1%\n" + "s%^\\([ \t]*#[ \t]*else\\)[ \t][ \t]*[^/ \t].*%\\1%\n" + "s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]*/[^*].*%\\1%\n" + "s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]*\*[^/].*%\\1%\n" + "s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]*[^/* \t].*%\\1%"; }; diff --git a/gcc/fixinc/inclhack.sh b/gcc/fixinc/inclhack.sh index a662af5a74b9..6be26e98b8d4 100755 --- a/gcc/fixinc/inclhack.sh +++ b/gcc/fixinc/inclhack.sh @@ -6,7 +6,7 @@ # files which are fixed to work correctly with ANSI C and placed in a # directory that GNU C will search. # -# This script contains 104 fixup scripts. +# This script contains 103 fixup scripts. # # See README-fixinc for more information. # @@ -815,12 +815,12 @@ extern "C"\ # - # Fix 20: Else_Label + # Fix 20: End_Else_Label # - if ( test -n "`egrep '^[ ]*#[ ]*else[ ]+[!-.0-~]' ${file}`" + if ( test -n "`egrep '^[ ]*#[ ]*(else|endif)[ ]+([!-.0-z\\{\\|\\}\\~]|/[^\\*])' ${file}`" ) > /dev/null 2>&1 ; then fixlist="${fixlist} - else_label" + end_else_label" if [ ! -r ${DESTFILE} ] then infile=${file} else infile=${DESTFILE} ; fi @@ -830,8 +830,11 @@ extern "C"\ s/\\$/\\+++fixinc_eol+++/ /\\$/b loop s/\\+++fixinc_eol+++/\\/g -s%^\([ ]*#[ ]*else\)[ ]*/[^*].*%\1% -s%^\([ ]*#[ ]*else\)[ ]*[^/ ].*%\1%' \ +s%^\([ ]*#[ ]*else\)[ ][ ]*/[^*].*%\1% +s%^\([ ]*#[ ]*else\)[ ][ ]*[^/ ].*%\1% +s%^\([ ]*#[ ]*endif\)[ ][ ]*/[^*].*%\1% +s%^\([ ]*#[ ]*endif\)[ ][ ]**[^/].*%\1% +s%^\([ ]*#[ ]*endif\)[ ][ ]*[^/* ].*%\1%' \ < $infile > ${DESTDIR}/fixinc.tmp rm -f ${DESTFILE} mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE} @@ -839,32 +842,7 @@ s%^\([ ]*#[ ]*else\)[ ]*[^/ ].*%\1%' \ # - # Fix 21: Endif_Label - # - if ( test -n "`egrep '^[ ]*#[ ]*endif[ ]+[!-.0-z{|}~]|^[ ]*#[ ]*endif[ ]+/[^*]' ${file}`" - ) > /dev/null 2>&1 ; then - fixlist="${fixlist} - endif_label" - if [ ! -r ${DESTFILE} ] - then infile=${file} - else infile=${DESTFILE} ; fi - - sed -e ':loop -/\\$/N -s/\\$/\\+++fixinc_eol+++/ -/\\$/b loop -s/\\+++fixinc_eol+++/\\/g -s%^\([ ]*#[ ]*endif\)[ ]*/[^*].*%\1% -s%^\([ ]*#[ ]*endif\)[ ]*\*[^/].*%\1% -s%^\([ ]*#[ ]*endif\)[ ]*[^/* ].*%\1%' \ - < $infile > ${DESTDIR}/fixinc.tmp - rm -f ${DESTFILE} - mv -f ${DESTDIR}/fixinc.tmp ${DESTFILE} - fi # end of selection 'if' - - - # - # Fix 22: Hp_Inline + # Fix 21: Hp_Inline # case "${file}" in ./sys/spinlock.h ) if ( test -n "`egrep 'include.*\"\\.\\./machine/' ${file}`" @@ -886,7 +864,7 @@ s%^\([ ]*#[ ]*endif\)[ ]*[^/* ].*%\1%' \ # - # Fix 23: Hp_Sysfile + # Fix 22: Hp_Sysfile # case "${file}" in ./sys/file.h ) if ( test -n "`egrep 'HPUX_SOURCE' ${file}`" @@ -907,7 +885,7 @@ s%^\([ ]*#[ ]*endif\)[ ]*[^/* ].*%\1%' \ # - # Fix 24: Cxx_Unready + # Fix 23: Cxx_Unready # case "${file}" in ./sys/mman.h | \ ./rpc/types.h ) @@ -939,7 +917,7 @@ extern "C" {\ # - # Fix 25: Hpux_Maxint + # Fix 24: Hpux_Maxint # case "${file}" in ./sys/param.h ) fixlist="${fixlist} @@ -962,7 +940,7 @@ extern "C" {\ # - # Fix 26: Hpux_Systime + # Fix 25: Hpux_Systime # case "${file}" in ./sys/time.h ) if ( test -n "`egrep '^extern struct sigevent;' ${file}`" @@ -983,7 +961,7 @@ extern "C" {\ # - # Fix 27: Interactv_Add1 + # Fix 26: Interactv_Add1 # case "${file}" in ./stdio.h | \ ./math.h | \ @@ -1010,7 +988,7 @@ extern "C" {\ # - # Fix 28: Interactv_Add2 + # Fix 27: Interactv_Add2 # case "${file}" in ./math.h ) if ( test '(' -d /etc/conf/kconfig.d ')' -a \ @@ -1032,7 +1010,7 @@ extern "C" {\ # - # Fix 29: Interactv_Add3 + # Fix 28: Interactv_Add3 # case "${file}" in ./sys/limits.h ) if ( test '(' -d /etc/conf/kconfig.d ')' -a \ @@ -1055,7 +1033,7 @@ extern "C" {\ # - # Fix 30: Io_Def_Quotes + # Fix 29: Io_Def_Quotes # if ( test -n "`egrep '[ ]*[ ](_|DES)IO[A-Z]*[ ]*\\( *[^,'\\'']' ${file}`" ) > /dev/null 2>&1 ; then @@ -1076,7 +1054,7 @@ extern "C" {\ # - # Fix 31: Ioctl_Fix_Ctrl + # Fix 30: Ioctl_Fix_Ctrl # if ( test -n "`egrep 'CTRL[ ]*\\(' ${file}`" ) > /dev/null 2>&1 ; then @@ -1099,7 +1077,7 @@ extern "C" {\ # - # Fix 32: Ip_Missing_Semi + # Fix 31: Ip_Missing_Semi # case "${file}" in ./netinet/ip.h ) fixlist="${fixlist} @@ -1117,7 +1095,7 @@ extern "C" {\ # - # Fix 33: Irix_Multiline_Cmnt + # Fix 32: Irix_Multiline_Cmnt # case "${file}" in ./sys/types.h ) fixlist="${fixlist} @@ -1136,7 +1114,7 @@ extern "C" {\ # - # Fix 34: Irix_Sockaddr + # Fix 33: Irix_Sockaddr # case "${file}" in ./rpc/auth.h ) if ( test -n "`egrep 'authdes_create.*struct sockaddr' ${file}`" @@ -1159,7 +1137,7 @@ struct sockaddr; # - # Fix 35: Irix_Struct__File + # Fix 34: Irix_Struct__File # case "${file}" in ./rpc/xdr.h ) fixlist="${fixlist} @@ -1179,7 +1157,7 @@ struct __file_s; # - # Fix 36: Isc_Fmod + # Fix 35: Isc_Fmod # case "${file}" in ./math.h ) if ( test -n "`egrep 'fmod\\(double\\)' ${file}`" @@ -1200,7 +1178,7 @@ struct __file_s; # - # Fix 37: Motorola_Nested + # Fix 36: Motorola_Nested # case "${file}" in ./limits.h | \ ./sys/limits.h ) @@ -1223,7 +1201,7 @@ struct __file_s; # - # Fix 38: Isc_Sys_Limits + # Fix 37: Isc_Sys_Limits # case "${file}" in ./sys/limits.h ) if ( test -n "`egrep 'CHILD_MAX' ${file}`" @@ -1245,7 +1223,7 @@ struct __file_s; # - # Fix 39: Kandr_Concat + # Fix 38: Kandr_Concat # case "${file}" in ./sparc/asm_linkage.h | \ ./sun3/asm_linkage.h | \ @@ -1283,7 +1261,7 @@ struct __file_s; # - # Fix 40: Limits_Ifndefs + # Fix 39: Limits_Ifndefs # case "${file}" in ./limits.h | \ ./sys/limits.h ) @@ -1341,7 +1319,7 @@ struct __file_s; # - # Fix 41: Lynx_Void_Int + # Fix 40: Lynx_Void_Int # case "${file}" in ./curses.h ) if ( test -n "`egrep '#[ ]*define[ ]+void[ ]+int' ${file}`" @@ -1362,7 +1340,7 @@ struct __file_s; # - # Fix 42: Lynxos_Fcntl_Proto + # Fix 41: Lynxos_Fcntl_Proto # case "${file}" in ./fcntl.h ) if ( test -n "`egrep 'fcntl.*\\(int, int, int\\)' ${file}`" @@ -1383,7 +1361,7 @@ struct __file_s; # - # Fix 43: M88k_Bad_Hypot_Opt + # Fix 42: M88k_Bad_Hypot_Opt # case "${file}" in ./math.h ) case "$target_canonical" in m88k-motorola-sysv3* ) @@ -1418,7 +1396,7 @@ static __inline__ double fake_hypot (x, y)\ # - # Fix 44: M88k_Bad_S_If + # Fix 43: M88k_Bad_S_If # case "${file}" in ./sys/stat.h ) case "$target_canonical" in m88k-*-sysv3* ) @@ -1443,7 +1421,7 @@ static __inline__ double fake_hypot (x, y)\ # - # Fix 45: M88k_Multi_Incl + # Fix 44: M88k_Multi_Incl # case "${file}" in ./time.h ) case "$target_canonical" in m88k-tektronix-sysv3* ) @@ -1476,7 +1454,7 @@ static __inline__ double fake_hypot (x, y)\ # - # Fix 46: Machine_Name + # Fix 45: Machine_Name # if ( test -n "`egrep '^#[ ]*(if|elif).*[^a-zA-Z0-9_](_*[MSRrhim]|[Mbimnpstuv])[a-zA-Z0-9_]' ${file}`" ) > /dev/null 2>&1 ; then @@ -1528,7 +1506,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 47: Math_Exception + # Fix 46: Math_Exception # case "${file}" in ./math.h ) if ( test -n "`egrep 'struct exception' ${file}`" @@ -1568,7 +1546,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 48: Math_Gcc_Ifndefs + # Fix 47: Math_Gcc_Ifndefs # case "${file}" in ./math.h ) fixlist="${fixlist} @@ -1602,7 +1580,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 49: Nested_Comment + # Fix 48: Nested_Comment # case "${file}" in ./rpc/rpc.h ) fixlist="${fixlist} @@ -1620,7 +1598,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 50: News_Os_Recursion + # Fix 49: News_Os_Recursion # case "${file}" in ./stdlib.h ) if ( test -n "`egrep '#include ' ${file}`" @@ -1646,7 +1624,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 51: Next_Math_Prefix + # Fix 50: Next_Math_Prefix # case "${file}" in ./ansi/math.h ) if ( test -n "`egrep '^extern.*double.*__const__.*' ${file}`" @@ -1671,7 +1649,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 52: Next_Template + # Fix 51: Next_Template # case "${file}" in ./bsd/libc.h ) if ( test -n "`egrep 'template' ${file}`" @@ -1693,7 +1671,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 53: Next_Volitile + # Fix 52: Next_Volitile # case "${file}" in ./ansi/stdlib.h ) if ( test -n "`egrep 'volatile' ${file}`" @@ -1715,7 +1693,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 54: Next_Wait_Union + # Fix 53: Next_Wait_Union # case "${file}" in ./sys/wait.h ) if ( test -n "`egrep 'wait\\(union wait' ${file}`" @@ -1736,7 +1714,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 55: Nodeent_Syntax + # Fix 54: Nodeent_Syntax # case "${file}" in ./netdnet/dnetdb.h ) fixlist="${fixlist} @@ -1754,7 +1732,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 56: Osf_Namespace_A + # Fix 55: Osf_Namespace_A # case "${file}" in ./reg_types.h | \ ./sys/lc_core.h ) @@ -1781,7 +1759,7 @@ s/\\+++fixinc_eol+++/\\/g # - # Fix 57: Osf_Namespace_B + # Fix 56: Osf_Namespace_B # case "${file}" in ./regex.h ) if ( test '(' -r reg_types.h ')' -a \ @@ -1809,7 +1787,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 58: Pthread_Page_Size + # Fix 57: Pthread_Page_Size # case "${file}" in ./pthread.h ) if ( test -n "`egrep '^int __page_size' ${file}`" @@ -1830,7 +1808,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 59: Rs6000_Double + # Fix 58: Rs6000_Double # case "${file}" in ./math.h ) if ( test -n "`egrep '[^a-zA-Z_]class\\(' ${file}`" @@ -1856,7 +1834,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 60: Rs6000_Fchmod + # Fix 59: Rs6000_Fchmod # case "${file}" in ./sys/stat.h ) if ( test -n "`egrep 'fchmod\\(char' ${file}`" @@ -1877,7 +1855,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 61: Rs6000_Param + # Fix 60: Rs6000_Param # case "${file}" in ./stdio.h | \ ./unistd.h ) @@ -1896,7 +1874,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 62: Sony_Include + # Fix 61: Sony_Include # case "${file}" in ./machine/machparam.h ) if ( test -n "`egrep '\"\\.\\./machine/endian.h\"' ${file}`" @@ -1917,7 +1895,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 63: Statsswtch + # Fix 62: Statsswtch # case "${file}" in ./rpcsvc/rstat.h ) if ( test -n "`egrep 'boottime$' ${file}`" @@ -1938,7 +1916,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 64: Stdio_Va_List + # Fix 63: Stdio_Va_List # case "${file}" in ./stdio.h ) fixlist="${fixlist} @@ -1977,7 +1955,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 65: Sun_Bogus_Ifdef + # Fix 64: Sun_Bogus_Ifdef # case "${file}" in ./hsfs/hsfs_spec.h | \ ./hsfs/iso_spec.h ) @@ -1999,7 +1977,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 66: Sun_Bogus_Ifdef_Sun4c + # Fix 65: Sun_Bogus_Ifdef_Sun4c # case "${file}" in ./hsfs/hsnode.h ) if ( test -n "`egrep '#ifdef __i386__ || __sun4c__' ${file}`" @@ -2020,7 +1998,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 67: Sun_Catmacro + # Fix 66: Sun_Catmacro # case "${file}" in ./pixrect/memvar.h ) if ( test -n "`egrep '^#define[ ]+CAT\\(a,b\\)' ${file}`" @@ -2048,7 +2026,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 68: Sun_Malloc + # Fix 67: Sun_Malloc # case "${file}" in ./malloc.h ) fixlist="${fixlist} @@ -2069,7 +2047,7 @@ typedef __regmatch_t regmatch_t; # - # Fix 69: Sun_Memcpy + # Fix 68: Sun_Memcpy # case "${file}" in ./memory.h ) if ( test -n "`egrep '/\\* @\\(#\\)(head/memory.h 50.1 |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2 )\\*/' ${file}`" @@ -2111,7 +2089,7 @@ extern int memcmp();\ # - # Fix 70: Sun_Rusers_Semi + # Fix 69: Sun_Rusers_Semi # case "${file}" in ./rpcsvc/rusers.h ) if ( test -n "`egrep '_cnt$' ${file}`" @@ -2132,7 +2110,7 @@ extern int memcmp();\ # - # Fix 71: Sun_Signal + # Fix 70: Sun_Signal # case "${file}" in ./sys/signal.h | \ ./signal.h ) @@ -2161,7 +2139,7 @@ void (*signal(...))(...);\ # - # Fix 72: Sun_Auth_Proto + # Fix 71: Sun_Auth_Proto # case "${file}" in ./rpc/auth.h | \ ./rpc/clnt.h | \ @@ -2190,7 +2168,7 @@ void (*signal(...))(...);\ # - # Fix 73: Sunos_Matherr_Decl + # Fix 72: Sunos_Matherr_Decl # case "${file}" in ./math.h ) fixlist="${fixlist} @@ -2211,7 +2189,7 @@ struct exception; # - # Fix 74: Sunos_Strlen + # Fix 73: Sunos_Strlen # case "${file}" in ./strings.h ) fixlist="${fixlist} @@ -2229,7 +2207,7 @@ struct exception; # - # Fix 75: Systypes + # Fix 74: Systypes # case "${file}" in ./sys/types.h | \ ./stdlib.h | \ @@ -2283,7 +2261,7 @@ typedef __SIZE_TYPE__ size_t;\ # - # Fix 76: Systypes_For_Aix + # Fix 75: Systypes_For_Aix # case "${file}" in ./sys/types.h ) if ( test -n "`egrep 'typedef[ ][ ]*[A-Za-z_][ A-Za-z_]*[ ]size_t' ${file}`" -a \ @@ -2311,7 +2289,7 @@ typedef __SIZE_TYPE__ size_t;\ # - # Fix 77: Sysv68_String + # Fix 76: Sysv68_String # case "${file}" in ./string.h ) fixlist="${fixlist} @@ -2339,7 +2317,7 @@ extern unsigned int\ # - # Fix 78: Sysz_Stdlib_For_Sun + # Fix 77: Sysz_Stdlib_For_Sun # case "${file}" in ./stdlib.h ) fixlist="${fixlist} @@ -2369,7 +2347,7 @@ extern unsigned int\ # - # Fix 79: Sysz_Stdtypes_For_Sun + # Fix 78: Sysz_Stdtypes_For_Sun # case "${file}" in ./sys/stdtypes.h ) fixlist="${fixlist} @@ -2407,7 +2385,7 @@ extern unsigned int\ # - # Fix 80: Tinfo_Cplusplus + # Fix 79: Tinfo_Cplusplus # case "${file}" in ./tinfo.h ) fixlist="${fixlist} @@ -2425,7 +2403,7 @@ extern unsigned int\ # - # Fix 81: Ultrix_Ansi_Compat + # Fix 80: Ultrix_Ansi_Compat # case "${file}" in ./ansi_compat.h ) if ( test -n "`egrep 'ULTRIX' ${file}`" @@ -2449,7 +2427,7 @@ extern unsigned int\ # - # Fix 82: Ultrix_Fix_Fixproto + # Fix 81: Ultrix_Fix_Fixproto # case "${file}" in ./sys/utsname.h ) if ( test -n "`egrep 'ULTRIX' ${file}`" @@ -2472,7 +2450,7 @@ struct utsname; # - # Fix 83: Ultrix_Atof_Param + # Fix 82: Ultrix_Atof_Param # case "${file}" in ./math.h ) fixlist="${fixlist} @@ -2494,7 +2472,7 @@ struct utsname; # - # Fix 84: Ultrix_Const + # Fix 83: Ultrix_Const # case "${file}" in ./stdio.h ) fixlist="${fixlist} @@ -2520,7 +2498,7 @@ struct utsname; # - # Fix 85: Ultrix_Ifdef + # Fix 84: Ultrix_Ifdef # case "${file}" in ./sys/file.h ) if ( test -n "`egrep '#ifdef KERNEL' ${file}`" @@ -2541,7 +2519,7 @@ struct utsname; # - # Fix 86: Ultrix_Nested_Cmnt + # Fix 85: Ultrix_Nested_Cmnt # case "${file}" in ./rpc/svc.h ) fixlist="${fixlist} @@ -2559,7 +2537,7 @@ struct utsname; # - # Fix 87: Ultrix_Static + # Fix 86: Ultrix_Static # case "${file}" in ./machine/cpu.h ) if ( test -n "`egrep '#include \"r[34]_cpu' ${file}`" @@ -2582,7 +2560,7 @@ struct utsname; # - # Fix 88: Undefine_Null + # Fix 87: Undefine_Null # if ( test -n "`egrep '^#[ ]*define[ ]*[ ]NULL[ ]' ${file}`" -a \ -z "`egrep '#[ ]*(ifn|un)def[ ]*[ ]NULL($|[ ])' ${file}`" @@ -2603,7 +2581,7 @@ struct utsname; # - # Fix 89: Va_I960_Macro + # Fix 88: Va_I960_Macro # case "${file}" in ./arch/i960/archI960.h ) if ( test -n "`egrep '__(vsiz|vali|vpad|alignof__)' ${file}`" @@ -2627,7 +2605,7 @@ struct utsname; # - # Fix 90: Void_Null + # Fix 89: Void_Null # case "${file}" in ./curses.h | \ ./dbm.h | \ @@ -2658,7 +2636,7 @@ struct utsname; # - # Fix 91: Vxworks_Gcc_Problem + # Fix 90: Vxworks_Gcc_Problem # case "${file}" in ./types/vxTypesBase.h ) if ( test -n "`egrep '__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__' ${file}`" @@ -2700,7 +2678,7 @@ struct utsname; # - # Fix 92: Vxworks_Needs_Vxtypes + # Fix 91: Vxworks_Needs_Vxtypes # case "${file}" in ./time.h ) if ( test -n "`egrep 'uint_t[ ][ ]*_clocks_per_sec' ${file}`" @@ -2721,7 +2699,7 @@ struct utsname; # - # Fix 93: Vxworks_Needs_Vxworks + # Fix 92: Vxworks_Needs_Vxworks # case "${file}" in ./sys/stat.h ) if ( test -n "`egrep '#[ ]define[ ][ ]*__INCstath' ${file}`" -a \ @@ -2747,7 +2725,7 @@ struct utsname; # - # Fix 94: Vxworks_Time + # Fix 93: Vxworks_Time # case "${file}" in ./time.h ) if ( test -n "`egrep 'VOIDFUNCPTR' ${file}`" -a \ @@ -2779,7 +2757,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\ # - # Fix 95: X11_Class + # Fix 94: X11_Class # case "${file}" in ./X11/ShellP.h ) if ( test -z "`egrep '__cplusplus' ${file}`" @@ -2807,7 +2785,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\ # - # Fix 96: X11_Class_Usage + # Fix 95: X11_Class_Usage # case "${file}" in ./Xm/BaseClassI.h ) if ( test -z "`egrep '__cplusplus' ${file}`" @@ -2828,7 +2806,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\ # - # Fix 97: X11_New + # Fix 96: X11_New # case "${file}" in ./Xm/Traversal.h ) if ( test -z "`egrep '__cplusplus' ${file}`" @@ -2857,7 +2835,7 @@ typedef void (*__gcc_VOIDFUNCPTR) ();\ # - # Fix 98: X11_Sprintf + # Fix 97: X11_Sprintf # case "${file}" in ./X11*/Xmu.h ) fixlist="${fixlist} @@ -2877,7 +2855,7 @@ extern char * sprintf();\ # - # Fix 99: Zzz_Ki_Iface + # Fix 98: Zzz_Ki_Iface # case "${file}" in ./sys/ki_iface.h ) if ( test -n "`egrep 'These definitions are for HP Internal developers' ${file}`" @@ -2904,7 +2882,7 @@ cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp # - # Fix 100: Zzz_Ki + # Fix 99: Zzz_Ki # case "${file}" in ./sys/ki.h ) if ( test -n "`egrep '11.00 HP-UX LP64' ${file}`" @@ -2931,7 +2909,7 @@ cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp # - # Fix 101: Zzz_Ki_Calls + # Fix 100: Zzz_Ki_Calls # case "${file}" in ./sys/ki_calls.h ) if ( test -n "`egrep 'kthread_create_caller_t' ${file}`" @@ -2958,7 +2936,7 @@ cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp # - # Fix 102: Zzz_Ki_Defs + # Fix 101: Zzz_Ki_Defs # case "${file}" in ./sys/ki_defs.h ) if ( test -n "`egrep 'Kernel Instrumentation Definitions' ${file}`" @@ -2985,7 +2963,7 @@ cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp # - # Fix 103: Zzz_Bad_Fixes + # Fix 102: Zzz_Bad_Fixes # case "${file}" in ./sundev/ipi_error.h ) fixlist="${fixlist} @@ -3009,7 +2987,7 @@ cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp # - # Fix 104: Zzz_Time + # Fix 103: Zzz_Time # case "${file}" in ./sys/time.h ) if ( test -n "`egrep '11.0 and later representation of ki time' ${file}`" -- 2.47.2