Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
89647e8a
Commit
89647e8a
authored
Feb 21, 2001
by
Loren J. Rittle
Committed by
Bruce Korb
Feb 21, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix freebsd version check of GCC
Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r39961
parent
e889f41a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
147 additions
and
141 deletions
+147
-141
gcc/ChangeLog
+8
-0
gcc/fixinc/README
+19
-0
gcc/fixinc/fixincl.x
+99
-102
gcc/fixinc/inclhack.def
+21
-39
No files found.
gcc/ChangeLog
View file @
89647e8a
2001-02-21 Loren J. Rittle <ljrittle@acm.org>
Bruce Korb <bkorb@gnu.org>
* fixinc/inclhack.def (freebsd_gcc3_breakage): new fix
* fixinc/README: Document how to convert sed substitutions
to format style c_fix-es.
* fixinc/fixincl.x: regen
2001-02-21 Jeffrey D. Oldham <oldham@codesourcery.com>
* gcc.c: Add comment explaining how to add a command-line option.
...
...
gcc/fixinc/README
View file @
89647e8a
...
...
@@ -181,6 +181,25 @@ Here are the rules for making fixes in the inclhack.def file:
replaced. You may delete text by supplying an empty string for
the format (the first "c_fix_arg").
Note: In general, a format c_fix may be used in place of one
sed expression. However, it will need to be rewritten by
hand. For example:
sed = 's@^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$'
'@& || __GNUC__ >= 3@';
may be rewritten using a format c_fix as:
c_fix = format;
c_fix_arg = '%0 || __GNUC__ >= 3';
c_fix_arg = '^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$';
Multiple sed substitution expressions probably ought to remain sed
expressions in order to maintain clarity. Also note that if the
second sed expression is the same as the first select expression,
then you may omit the second c_fix_arg. The select expression will
be picked up and used in its absence.
EXAMPLES OF FIXES:
==================
...
...
gcc/fixinc/fixincl.x
View file @
89647e8a
...
...
@@ -1785,9 +1785,54 @@ static const char* apzFix_Header_BreakagePatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Freebsd_Gcc3_Breakage fix
*/
#define FREEBSD_GCC3_BREAKAGE_FIXIDX 41
tSCC zFreebsd_Gcc3_BreakageName[] =
"freebsd_gcc3_breakage";
/*
* File name selection pattern
*/
tSCC zFreebsd_Gcc3_BreakageList[] =
"|sys/cdefs.h|";
/*
* Machine/OS name selection pattern
*/
tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
"*-*-freebsd*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zFreebsd_Gcc3_BreakageSelect0[] =
"^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
/*
* content bypass pattern - skip fix if pattern found
*/
tSCC zFreebsd_Gcc3_BreakageBypass0[] =
"__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
#define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
{ TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
{ TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Freebsd_Gcc3_Breakage
*/
static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
"format",
"%0 || __GNUC__ >= 3",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Hp_Inline fix
*/
#define HP_INLINE_FIXIDX 4
1
#define HP_INLINE_FIXIDX 4
2
tSCC zHp_InlineName[] =
"hp_inline";
...
...
@@ -1824,7 +1869,7 @@ static const char* apzHp_InlinePatch[] = {
*
* Description of Hp_Sysfile fix
*/
#define HP_SYSFILE_FIXIDX 4
2
#define HP_SYSFILE_FIXIDX 4
3
tSCC zHp_SysfileName[] =
"hp_sysfile";
...
...
@@ -1861,7 +1906,7 @@ static const char* apzHp_SysfilePatch[] = {
*
* Description of Hpux11_Fabsf fix
*/
#define HPUX11_FABSF_FIXIDX 4
3
#define HPUX11_FABSF_FIXIDX 4
4
tSCC zHpux11_FabsfName[] =
"hpux11_fabsf";
...
...
@@ -1906,7 +1951,7 @@ static const char* apzHpux11_FabsfPatch[] = {
*
* Description of Hpux11_Uint32_C fix
*/
#define HPUX11_UINT32_C_FIXIDX 4
4
#define HPUX11_UINT32_C_FIXIDX 4
5
tSCC zHpux11_Uint32_CName[] =
"hpux11_uint32_c";
...
...
@@ -1942,7 +1987,7 @@ static const char* apzHpux11_Uint32_CPatch[] = {
*
* Description of Hpux8_Bogus_Inlines fix
*/
#define HPUX8_BOGUS_INLINES_FIXIDX 4
5
#define HPUX8_BOGUS_INLINES_FIXIDX 4
6
tSCC zHpux8_Bogus_InlinesName[] =
"hpux8_bogus_inlines";
...
...
@@ -1980,7 +2025,7 @@ static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
*
* Description of Int_Abort_Free_And_Exit fix
*/
#define INT_ABORT_FREE_AND_EXIT_FIXIDX 4
6
#define INT_ABORT_FREE_AND_EXIT_FIXIDX 4
7
tSCC zInt_Abort_Free_And_ExitName[] =
"int_abort_free_and_exit";
...
...
@@ -2016,7 +2061,7 @@ static const char* apzInt_Abort_Free_And_ExitPatch[] = {
*
* Description of Isc_Omits_With_Stdc fix
*/
#define ISC_OMITS_WITH_STDC_FIXIDX 4
7
#define ISC_OMITS_WITH_STDC_FIXIDX 4
8
tSCC zIsc_Omits_With_StdcName[] =
"isc_omits_with_stdc";
...
...
@@ -2052,7 +2097,7 @@ static const char* apzIsc_Omits_With_StdcPatch[] = {
*
* Description of Io_Quotes_Def fix
*/
#define IO_QUOTES_DEF_FIXIDX 4
8
#define IO_QUOTES_DEF_FIXIDX 4
9
tSCC zIo_Quotes_DefName[] =
"io_quotes_def";
...
...
@@ -2087,7 +2132,7 @@ static const char* apzIo_Quotes_DefPatch[] = {
*
* Description of Io_Quotes_Use fix
*/
#define IO_QUOTES_USE_FIXIDX
49
#define IO_QUOTES_USE_FIXIDX
50
tSCC zIo_Quotes_UseName[] =
"io_quotes_use";
...
...
@@ -2122,7 +2167,7 @@ static const char* apzIo_Quotes_UsePatch[] = {
*
* Description of Hpux_Maxint fix
*/
#define HPUX_MAXINT_FIXIDX 5
0
#define HPUX_MAXINT_FIXIDX 5
1
tSCC zHpux_MaxintName[] =
"hpux_maxint";
...
...
@@ -2175,7 +2220,7 @@ static const char* apzHpux_MaxintPatch[] = {
*
* Description of Hpux_Systime fix
*/
#define HPUX_SYSTIME_FIXIDX 5
1
#define HPUX_SYSTIME_FIXIDX 5
2
tSCC zHpux_SystimeName[] =
"hpux_systime";
...
...
@@ -2211,7 +2256,7 @@ static const char* apzHpux_SystimePatch[] = {
*
* Description of Ip_Missing_Semi fix
*/
#define IP_MISSING_SEMI_FIXIDX 5
2
#define IP_MISSING_SEMI_FIXIDX 5
3
tSCC zIp_Missing_SemiName[] =
"ip_missing_semi";
...
...
@@ -2246,7 +2291,7 @@ static const char* apzIp_Missing_SemiPatch[] = { "sed",
*
* Description of Irix_Asm_Apostrophe fix
*/
#define IRIX_ASM_APOSTROPHE_FIXIDX 5
3
#define IRIX_ASM_APOSTROPHE_FIXIDX 5
4
tSCC zIrix_Asm_ApostropheName[] =
"irix_asm_apostrophe";
...
...
@@ -2283,7 +2328,7 @@ static const char* apzIrix_Asm_ApostrophePatch[] = {
*
* Description of Irix_Limits_Const fix
*/
#define IRIX_LIMITS_CONST_FIXIDX 5
4
#define IRIX_LIMITS_CONST_FIXIDX 5
5
tSCC zIrix_Limits_ConstName[] =
"irix_limits_const";
...
...
@@ -2319,7 +2364,7 @@ static const char* apzIrix_Limits_ConstPatch[] = {
*
* Description of Isc_Fmod fix
*/
#define ISC_FMOD_FIXIDX 5
5
#define ISC_FMOD_FIXIDX 5
6
tSCC zIsc_FmodName[] =
"isc_fmod";
...
...
@@ -2355,7 +2400,7 @@ static const char* apzIsc_FmodPatch[] = {
*
* Description of Kandr_Concat fix
*/
#define KANDR_CONCAT_FIXIDX 5
6
#define KANDR_CONCAT_FIXIDX 5
7
tSCC zKandr_ConcatName[] =
"kandr_concat";
...
...
@@ -2391,7 +2436,7 @@ static const char* apzKandr_ConcatPatch[] = {
*
* Description of Libc1_Ifdefd_Memx fix
*/
#define LIBC1_IFDEFD_MEMX_FIXIDX 5
7
#define LIBC1_IFDEFD_MEMX_FIXIDX 5
8
tSCC zLibc1_Ifdefd_MemxName[] =
"libc1_ifdefd_memx";
...
...
@@ -2440,7 +2485,7 @@ extern [a-z_]+ mem.*(\n\
*
* Description of Limits_Ifndefs fix
*/
#define LIMITS_IFNDEFS_FIXIDX 5
8
#define LIMITS_IFNDEFS_FIXIDX 5
9
tSCC zLimits_IfndefsName[] =
"limits_ifndefs";
...
...
@@ -2479,7 +2524,7 @@ static const char* apzLimits_IfndefsPatch[] = {
*
* Description of Lynx_Void_Int fix
*/
#define LYNX_VOID_INT_FIXIDX
59
#define LYNX_VOID_INT_FIXIDX
60
tSCC zLynx_Void_IntName[] =
"lynx_void_int";
...
...
@@ -2515,7 +2560,7 @@ static const char* apzLynx_Void_IntPatch[] = {
*
* Description of Lynxos_Fcntl_Proto fix
*/
#define LYNXOS_FCNTL_PROTO_FIXIDX 6
0
#define LYNXOS_FCNTL_PROTO_FIXIDX 6
1
tSCC zLynxos_Fcntl_ProtoName[] =
"lynxos_fcntl_proto";
...
...
@@ -2552,7 +2597,7 @@ static const char* apzLynxos_Fcntl_ProtoPatch[] = {
*
* Description of M88k_Bad_Hypot_Opt fix
*/
#define M88K_BAD_HYPOT_OPT_FIXIDX 6
1
#define M88K_BAD_HYPOT_OPT_FIXIDX 6
2
tSCC zM88k_Bad_Hypot_OptName[] =
"m88k_bad_hypot_opt";
...
...
@@ -2601,7 +2646,7 @@ static __inline__ double fake_hypot (x, y)\n\
*
* Description of M88k_Bad_S_If fix
*/
#define M88K_BAD_S_IF_FIXIDX 6
2
#define M88K_BAD_S_IF_FIXIDX 6
3
tSCC zM88k_Bad_S_IfName[] =
"m88k_bad_s_if";
...
...
@@ -2640,7 +2685,7 @@ static const char* apzM88k_Bad_S_IfPatch[] = {
*
* Description of M88k_Multi_Incl fix
*/
#define M88K_MULTI_INCL_FIXIDX 6
3
#define M88K_MULTI_INCL_FIXIDX 6
4
tSCC zM88k_Multi_InclName[] =
"m88k_multi_incl";
...
...
@@ -2677,7 +2722,7 @@ static const char* apzM88k_Multi_InclPatch[] = {
*
* Description of Machine_Ansi_H_Va_List fix
*/
#define MACHINE_ANSI_H_VA_LIST_FIXIDX 6
4
#define MACHINE_ANSI_H_VA_LIST_FIXIDX 6
5
tSCC zMachine_Ansi_H_Va_ListName[] =
"machine_ansi_h_va_list";
...
...
@@ -2720,7 +2765,7 @@ static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
*
* Description of Machine_Name fix
*/
#define MACHINE_NAME_FIXIDX 6
5
#define MACHINE_NAME_FIXIDX 6
6
tSCC zMachine_NameName[] =
"machine_name";
...
...
@@ -2753,7 +2798,7 @@ static const char* apzMachine_NamePatch[] = {
*
* Description of Math_Exception fix
*/
#define MATH_EXCEPTION_FIXIDX 6
6
#define MATH_EXCEPTION_FIXIDX 6
7
tSCC zMath_ExceptionName[] =
"math_exception";
...
...
@@ -2801,7 +2846,7 @@ static const char* apzMath_ExceptionPatch[] = {
*
* Description of Math_Huge_Val_From_Dbl_Max fix
*/
#define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 6
7
#define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 6
8
tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
"math_huge_val_from_dbl_max";
...
...
@@ -2848,7 +2893,7 @@ static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
*
* Description of Math_Huge_Val_Ifndef fix
*/
#define MATH_HUGE_VAL_IFNDEF_FIXIDX 6
8
#define MATH_HUGE_VAL_IFNDEF_FIXIDX 6
9
tSCC zMath_Huge_Val_IfndefName[] =
"math_huge_val_ifndef";
...
...
@@ -2887,7 +2932,7 @@ static const char* apzMath_Huge_Val_IfndefPatch[] = {
*
* Description of Nested_Motorola fix
*/
#define NESTED_MOTOROLA_FIXIDX
69
#define NESTED_MOTOROLA_FIXIDX
70
tSCC zNested_MotorolaName[] =
"nested_motorola";
...
...
@@ -2925,7 +2970,7 @@ static const char* apzNested_MotorolaPatch[] = { "sed",
*
* Description of Nested_Sys_Limits fix
*/
#define NESTED_SYS_LIMITS_FIXIDX 7
0
#define NESTED_SYS_LIMITS_FIXIDX 7
1
tSCC zNested_Sys_LimitsName[] =
"nested_sys_limits";
...
...
@@ -2961,7 +3006,7 @@ static const char* apzNested_Sys_LimitsPatch[] = { "sed",
*
* Description of Nested_Auth_Des fix
*/
#define NESTED_AUTH_DES_FIXIDX 7
1
#define NESTED_AUTH_DES_FIXIDX 7
2
tSCC zNested_Auth_DesName[] =
"nested_auth_des";
...
...
@@ -2997,7 +3042,7 @@ static const char* apzNested_Auth_DesPatch[] = {
*
* Description of News_Os_Recursion fix
*/
#define NEWS_OS_RECURSION_FIXIDX 7
2
#define NEWS_OS_RECURSION_FIXIDX 7
3
tSCC zNews_Os_RecursionName[] =
"news_os_recursion";
...
...
@@ -3035,7 +3080,7 @@ static const char* apzNews_Os_RecursionPatch[] = {
*
* Description of Next_Math_Prefix fix
*/
#define NEXT_MATH_PREFIX_FIXIDX 7
3
#define NEXT_MATH_PREFIX_FIXIDX 7
4
tSCC zNext_Math_PrefixName[] =
"next_math_prefix";
...
...
@@ -3072,7 +3117,7 @@ static const char* apzNext_Math_PrefixPatch[] = {
*
* Description of Next_Template fix
*/
#define NEXT_TEMPLATE_FIXIDX 7
4
#define NEXT_TEMPLATE_FIXIDX 7
5
tSCC zNext_TemplateName[] =
"next_template";
...
...
@@ -3109,7 +3154,7 @@ static const char* apzNext_TemplatePatch[] = {
*
* Description of Next_Volitile fix
*/
#define NEXT_VOLITILE_FIXIDX 7
5
#define NEXT_VOLITILE_FIXIDX 7
6
tSCC zNext_VolitileName[] =
"next_volitile";
...
...
@@ -3146,7 +3191,7 @@ static const char* apzNext_VolitilePatch[] = {
*
* Description of Next_Wait_Union fix
*/
#define NEXT_WAIT_UNION_FIXIDX 7
6
#define NEXT_WAIT_UNION_FIXIDX 7
7
tSCC zNext_Wait_UnionName[] =
"next_wait_union";
...
...
@@ -3182,7 +3227,7 @@ static const char* apzNext_Wait_UnionPatch[] = {
*
* Description of Nodeent_Syntax fix
*/
#define NODEENT_SYNTAX_FIXIDX 7
7
#define NODEENT_SYNTAX_FIXIDX 7
8
tSCC zNodeent_SyntaxName[] =
"nodeent_syntax";
...
...
@@ -3218,7 +3263,7 @@ static const char* apzNodeent_SyntaxPatch[] = {
*
* Description of Osf_Namespace_A fix
*/
#define OSF_NAMESPACE_A_FIXIDX 7
8
#define OSF_NAMESPACE_A_FIXIDX 7
9
tSCC zOsf_Namespace_AName[] =
"osf_namespace_a";
...
...
@@ -3264,7 +3309,7 @@ static const char* apzOsf_Namespace_APatch[] = {
*
* Description of Osf_Namespace_C fix
*/
#define OSF_NAMESPACE_C_FIXIDX
79
#define OSF_NAMESPACE_C_FIXIDX
80
tSCC zOsf_Namespace_CName[] =
"osf_namespace_c";
...
...
@@ -3319,7 +3364,7 @@ typedef __regmatch_t\tregmatch_t;",
*
* Description of Pthread_Page_Size fix
*/
#define PTHREAD_PAGE_SIZE_FIXIDX 8
0
#define PTHREAD_PAGE_SIZE_FIXIDX 8
1
tSCC zPthread_Page_SizeName[] =
"pthread_page_size";
...
...
@@ -3355,7 +3400,7 @@ static const char* apzPthread_Page_SizePatch[] = {
*
* Description of Read_Ret_Type fix
*/
#define READ_RET_TYPE_FIXIDX 8
1
#define READ_RET_TYPE_FIXIDX 8
2
tSCC zRead_Ret_TypeName[] =
"read_ret_type";
...
...
@@ -3393,7 +3438,7 @@ static const char* apzRead_Ret_TypePatch[] = {
*
* Description of Rs6000_Double fix
*/
#define RS6000_DOUBLE_FIXIDX 8
2
#define RS6000_DOUBLE_FIXIDX 8
3
tSCC zRs6000_DoubleName[] =
"rs6000_double";
...
...
@@ -3432,7 +3477,7 @@ static const char* apzRs6000_DoublePatch[] = {
*
* Description of Rs6000_Fchmod fix
*/
#define RS6000_FCHMOD_FIXIDX 8
3
#define RS6000_FCHMOD_FIXIDX 8
4
tSCC zRs6000_FchmodName[] =
"rs6000_fchmod";
...
...
@@ -3468,7 +3513,7 @@ static const char* apzRs6000_FchmodPatch[] = {
*
* Description of Rs6000_Param fix
*/
#define RS6000_PARAM_FIXIDX 8
4
#define RS6000_PARAM_FIXIDX 8
5
tSCC zRs6000_ParamName[] =
"rs6000_param";
...
...
@@ -3504,7 +3549,7 @@ static const char* apzRs6000_ParamPatch[] = {
*
* Description of Sco_Static_Func fix
*/
#define SCO_STATIC_FUNC_FIXIDX 8
5
#define SCO_STATIC_FUNC_FIXIDX 8
6
tSCC zSco_Static_FuncName[] =
"sco_static_func";
...
...
@@ -3546,44 +3591,6 @@ extern \"C\" {\\\n\
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Sco_Strict_Ansi fix
*/
#define SCO_STRICT_ANSI_FIXIDX 86
tSCC zSco_Strict_AnsiName[] =
"sco_strict_ansi";
/*
* File name selection pattern
*/
#define zSco_Strict_AnsiList (char*)NULL
/*
* Machine/OS name selection pattern
*/
tSCC* apzSco_Strict_AnsiMachs[] = {
"i?86-*-sco3.2*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zSco_Strict_AnsiSelect0[] =
"^[ \t]*#[ \t]*if.*!__STDC__";
#define SCO_STRICT_ANSI_TEST_CT 1
static tTestDesc aSco_Strict_AnsiTests[] = {
{ TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Sco_Strict_Ansi
*/
static const char* apzSco_Strict_AnsiPatch[] = {
"format",
"%1defined(__STRICT_ANSI__)%2",
"^([ \t]*#[ \t]*if[ \t].*!)__STDC__(.*)",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Strict_Ansi_Not fix
*/
#define STRICT_ANSI_NOT_FIXIDX 87
...
...
@@ -3597,11 +3604,7 @@ tSCC zStrict_Ansi_NotName[] =
/*
* Machine/OS name selection pattern
*/
tSCC* apzStrict_Ansi_NotMachs[] = {
"*-*-sysv4*",
"i[34567]86-*-sysv5*",
"i[34567]86-*-udk*",
(const char*)NULL };
#define apzStrict_Ansi_NotMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
...
...
@@ -3637,9 +3640,7 @@ tSCC zStrict_Ansi_Not_CtdList[] =
/*
* Machine/OS name selection pattern
*/
tSCC* apzStrict_Ansi_Not_CtdMachs[] = {
"i[34567]86-*-sysv5*",
(const char*)NULL };
#define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
...
...
@@ -3674,11 +3675,7 @@ tSCC zStrict_Ansi_OnlyName[] =
/*
* Machine/OS name selection pattern
*/
tSCC* apzStrict_Ansi_OnlyMachs[] = {
"*-*-sysv4*",
"i[34567]86-*-sysv5*",
"i[34567]86-*-udk",
(const char*)NULL };
#define apzStrict_Ansi_OnlyMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
...
...
@@ -5430,7 +5427,7 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
#define REGEX_COUNT 1
39
#define REGEX_COUNT 1
40
#define MACH_LIST_SIZE_LIMIT 279
#define FIX_COUNT 134
...
...
@@ -5640,6 +5637,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aFix_Header_BreakageTests, apzFix_Header_BreakagePatch, 0 },
{ zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
apzFreebsd_Gcc3_BreakageMachs,
FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
{ zHp_InlineName, zHp_InlineList,
apzHp_InlineMachs,
HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
...
...
@@ -5865,11 +5867,6 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
{ zSco_Strict_AnsiName, zSco_Strict_AnsiList,
apzSco_Strict_AnsiMachs,
SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch, 0 },
{ zStrict_Ansi_NotName, zStrict_Ansi_NotList,
apzStrict_Ansi_NotMachs,
STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
...
...
gcc/fixinc/inclhack.def
View file @
89647e8a
...
...
@@ -1031,6 +1031,23 @@ fix = {
/*
* Between 8/24/1998 and 2/17/2001, FreeBSD system headers presume
* neither the existence of GCC 3 nor its exact feature set yet break
* (by design?) when __GNUC__ is set beyond 2.
*/
fix = {
hackname = freebsd_gcc3_breakage;
mach = *-*-freebsd*;
files = sys/cdefs.h;
select = '^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$';
bypass = '__GNUC__[ \t]*([>=]=[ \t]*[3-9]|>[ \t]*2)';
c_fix = format;
c_fix_arg = '%0 || __GNUC__ >= 3';
test_text = '#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7';
};
/*
* Fix HP & Sony's use of "../machine/xxx.h"
* to refer to: <machine/xxx.h>
*/
...
...
@@ -1904,29 +1921,11 @@ fix = {
/*
* "!__STDC__" is "!defined( __STRICT_ANSI__ )"
*/
fix = {
hackname = sco_strict_ansi;
mach = "i?86-*-sco3.2*";
select = "^[ \t]*#[ \t]*if.*!__STDC__";
c_fix = format;
c_fix_arg = "%1defined(__STRICT_ANSI__)%2";
c_fix_arg = "^([ \t]*#[ \t]*if[ \t].*!)__STDC__(.*)";
test_text = "#if !__STDC__ /* not standard C */\nint foo;\n#endif";
};
/*
* "!__STDC__" or "__STDC__==0" or "__STDC__!=1" or "__STDC__-0==0"
* is "!defined( __STRICT_ANSI__ )"
*/
fix = {
hackname = strict_ansi_not;
mach="*-*-sysv4*";
mach="i[34567]86-*-sysv5*";
mach="i[34567]86-*-udk*";
select = "^([ \t]*#[ \t]*if.*)"
"(!__STDC__"
"|__STDC__[ \t]*==[ \t]*0"
...
...
@@ -1937,8 +1936,10 @@ fix = {
c_fix = format;
c_fix_arg = "%1 !defined(__STRICT_ANSI__)%3";
test_text = "#if !__STDC__ || __STDC__ == 0 || __STDC__ != 1"
"|| __STDC__ - 0 == 0"
test_text = "#if !__STDC__ \n"
"#if __STDC__ == 0\n"
"#if __STDC__ != 1\n"
"#if __STDC__ - 0 == 0"
"/* not std C */\nint foo;\n#endif";
};
...
...
@@ -1954,7 +1955,6 @@ fix = {
files="signal.h";
files="stdlib.h";
files="time.h";
mach="i[34567]86-*-sysv5*";
select = "^([ \t]*[|&][|&][ \t(]*)"
"(__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0"
")(.*)";
...
...
@@ -1972,9 +1972,6 @@ fix = {
*/
fix = {
hackname = strict_ansi_only;
mach="*-*-sysv4*";
mach="i[34567]86-*-sysv5*";
mach="i[34567]86-*-udk";
select = "^([ \t]*#[ \t]*if.*)"
"(__STDC__[ \t]*!=[ \t]*0"
"|__STDC__[ \t]*==[ \t]*1"
...
...
@@ -2121,21 +2118,6 @@ fix = {
/*
* Check for strict ansi compliance
*/
#ifdef STRICT_ANSI
fix = {
hackname = strict_ansi;
select = "__STDC__[ \t]*[=!]=[ \t]*[01]";
sed = "s/__STDC__[ \t]*==[ \t]*0/!defined (__STRICT_ANSI__)/g";
sed = "s/__STDC__[ \t]*!=[ \t]*0/defined (__STRICT_ANSI__)/g";
sed = "s/__STDC__[ \t]*==[ \t]*1/defined (__STRICT_ANSI__)/g";
sed = "s/__STDC__[ \t]*!=[ \t]*1/!defined (__STRICT_ANSI__)/g";
};
#endif
/*
* IRIX 4.0.5 <rpc/xdr.h> uses struct __file_s
* in prototype without previous definition.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment