re PR target/30058 (bootstrap broken on i386-unknown-netbsdelf2.0.2)

2007-03-18  Krister Walfridsson  <cato@df.lth.se>

	PR target/30058
	* inclhack.def (netbsd_c99_inline_1): New.
	* fixincl.x: Regenerate.
	* tests/base/signal.h: New.

From-SVN: r123065
This commit is contained in:
Krister Walfridsson 2007-03-19 18:08:14 +01:00 committed by Krister Walfridsson
parent 1e395249a9
commit 7270dd8e8d
4 changed files with 95 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2007-03-18 Krister Walfridsson <cato@df.lth.se>
PR target/30058
* inclhack.def (netbsd_c99_inline_1): New.
* fixincl.x: Regenerate.
* tests/base/signal.h: New.
2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
* Makefile.in: Add dummy "install-info" target.

View File

@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
* It has been AutoGen-ed Monday February 5, 2007 at 05:19:14 PM PST
* It has been AutoGen-ed Sunday March 18, 2007 at 05:06:12 PM CET
* From the definitions inclhack.def
* and the template file fixincl
*/
/* DO NOT SVN-MERGE THIS FILE, EITHER Mon Feb 5 17:19:14 PST 2007
/* DO NOT SVN-MERGE THIS FILE, EITHER Sun Mar 18 17:06:12 CET 2007
*
* You must regenerate it. Use the ./genfixes script.
*
@ -15,7 +15,7 @@
* certain ANSI-incompatible system header files which are fixed to work
* correctly with ANSI C and placed in a directory that GNU C will search.
*
* This file contains 207 fixup descriptions.
* This file contains 208 fixup descriptions.
*
* See README for more information.
*
@ -4521,6 +4521,47 @@ static const char* apzNested_Sys_LimitsPatch[] = { "sed",
"-e", "/OPEN_MAX/s,/\\* Max, Max,",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Netbsd_C99_Inline_1 fix
*/
tSCC zNetbsd_C99_Inline_1Name[] =
"netbsd_c99_inline_1";
/*
* File name selection pattern
*/
tSCC zNetbsd_C99_Inline_1List[] =
"signal.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzNetbsd_C99_Inline_1Machs[] = {
"*-*-netbsd*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zNetbsd_C99_Inline_1Select0[] =
"extern __inline int";
#define NETBSD_C99_INLINE_1_TEST_CT 1
static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
{ TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Netbsd_C99_Inline_1
*/
static const char* apzNetbsd_C99_Inline_1Patch[] = {
"format",
"extern\n\
#ifdef __GNUC_STDC_INLINE__\n\
__attribute__((__gnu_inline__))\n\
#endif\n\
__inline int",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Netbsd_Extra_Semicolon fix
@ -8425,9 +8466,9 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
#define REGEX_COUNT 251
#define REGEX_COUNT 252
#define MACH_LIST_SIZE_LIMIT 261
#define FIX_COUNT 207
#define FIX_COUNT 208
/*
* Enumerate the fixes
@ -8542,6 +8583,7 @@ typedef enum {
NESTED_AUTH_DES_FIXIDX,
NESTED_MOTOROLA_FIXIDX,
NESTED_SYS_LIMITS_FIXIDX,
NETBSD_C99_INLINE_1_FIXIDX,
NETBSD_EXTRA_SEMICOLON_FIXIDX,
NEXT_MATH_PREFIX_FIXIDX,
NEXT_TEMPLATE_FIXIDX,
@ -9188,6 +9230,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
{ zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
apzNetbsd_C99_Inline_1Machs,
NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
{ zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
apzNetbsd_Extra_SemicolonMachs,
NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,

View File

@ -2551,6 +2551,22 @@ fix = {
};
/*
* Some versions of NetBSD don't expect the C99 inline semantics.
*/
fix = {
hackname = netbsd_c99_inline_1;
mach = *-*-netbsd*;
files = signal.h;
select = "extern __inline int";
c_fix = format;
c_fix_arg = "extern\n#ifdef __GNUC_STDC_INLINE__\n__attribute__((__gnu_inline__))\n#endif\n__inline int";
test_text = "extern __inline int\nsigaddset(sigset_t *set, int signo)\n{}";
};
/*
* NetBSD has a semicolon after the ending '}' for some extern "C".
*/

View File

@ -0,0 +1,20 @@
/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"fixinc/tests/inc/signal.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#if defined( NETBSD_C99_INLINE_1_CHECK )
extern
#ifdef __GNUC_STDC_INLINE__
__attribute__((__gnu_inline__))
#endif
__inline int
sigaddset(sigset_t *set, int signo)
{}
#endif /* NETBSD_C99_INLINE_1_CHECK */