Commit 1a78e5a7 by Rainer Orth Committed by Rainer Orth

inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> too.

	* fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
	<internal/stdio_core.h> too.
	(stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
	<internal/wchar_core.h> too.
	Substitute va_list uses in inline definition.
	* fixinc/fixincl.x: Regenerate.

From-SVN: r68811
parent b01b2484
2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
<internal/stdio_core.h> too.
(stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
<internal/wchar_core.h> too.
Substitute va_list uses in inline definition.
* fixinc/fixincl.x: Regenerate.
2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h. * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
Undef before redefinition. Undef before redefinition.
(LABEL_AFTER_LOC): Likewise. (LABEL_AFTER_LOC): Likewise.
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* *
* DO NOT EDIT THIS FILE (fixincl.x) * DO NOT EDIT THIS FILE (fixincl.x)
* *
* It has been AutoGen-ed Wednesday May 28, 2003 at 12:55:57 AM CDT * It has been AutoGen-ed Wednesday July 2, 2003 at 03:26:19 AM MEST
* From the definitions inclhack.def * From the definitions inclhack.def
* and the template file fixincl * and the template file fixincl
*/ */
/* DO NOT CVS-MERGE THIS FILE, EITHER Wed May 28 00:55:57 CDT 2003 /* DO NOT CVS-MERGE THIS FILE, EITHER Wed Jul 2 03:26:20 MEST 2003
* *
* You must regenerate it. Use the ./genfixes script. * You must regenerate it. Use the ./genfixes script.
* *
...@@ -2559,7 +2559,7 @@ tSCC zIrix_Stdio_Va_ListName[] = ...@@ -2559,7 +2559,7 @@ tSCC zIrix_Stdio_Va_ListName[] =
* File name selection pattern * File name selection pattern
*/ */
tSCC zIrix_Stdio_Va_ListList[] = tSCC zIrix_Stdio_Va_ListList[] =
"|stdio.h|"; "|stdio.h|internal/stdio_core.h|";
/* /*
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
...@@ -4206,7 +4206,7 @@ tSCC zStdio_Va_ListName[] = ...@@ -4206,7 +4206,7 @@ tSCC zStdio_Va_ListName[] =
* File name selection pattern * File name selection pattern
*/ */
tSCC zStdio_Va_ListList[] = tSCC zStdio_Va_ListList[] =
"|stdio.h|"; "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
/* /*
* Machine/OS name selection pattern * Machine/OS name selection pattern
*/ */
...@@ -4228,6 +4228,8 @@ static tTestDesc aStdio_Va_ListTests[] = { ...@@ -4228,6 +4228,8 @@ static tTestDesc aStdio_Va_ListTests[] = {
static const char* apzStdio_Va_ListPatch[] = { "sed", static const char* apzStdio_Va_ListPatch[] = { "sed",
"-e", "s@ va_list @ __gnuc_va_list @\n\ "-e", "s@ va_list @ __gnuc_va_list @\n\
s@ va_list)@ __gnuc_va_list)@\n\ s@ va_list)@ __gnuc_va_list)@\n\
s@va_list _ap;@__gnuc_va_list _ap;@\n\
s@(va_list)&@(__gnuc_va_list)\\&@\n\
s@ _VA_LIST_));@ __gnuc_va_list));@\n\ s@ _VA_LIST_));@ __gnuc_va_list));@\n\
s@ __VA_LIST__));@ __gnuc_va_list));@\n\ s@ __VA_LIST__));@ __gnuc_va_list));@\n\
s@ va_list@ __not_va_list__@\n\ s@ va_list@ __not_va_list__@\n\
......
...@@ -1440,12 +1440,14 @@ fix = { ...@@ -1440,12 +1440,14 @@ fix = {
}; };
/* /*
* IRIX 5.x's stdio.h declares some functions that take a va_list as * IRIX 5.x's stdio.h and IRIX 6.5's internal/stdio_core.h declare
* some functions that take a va_list as
* taking char *. However, GCC uses void * for va_list, so * taking char *. However, GCC uses void * for va_list, so
* calling vfprintf with a va_list fails in C++. */ * calling vfprintf with a va_list fails in C++. */
fix = { fix = {
hackname = irix_stdio_va_list; hackname = irix_stdio_va_list;
files = stdio.h; files = stdio.h;
files = internal/stdio_core.h;
select = '(printf\(.*), /\* va_list \*/ char \*'; select = '(printf\(.*), /\* va_list \*/ char \*';
c_fix = format; c_fix = format;
...@@ -2328,10 +2330,15 @@ fix = { ...@@ -2328,10 +2330,15 @@ fix = {
* presence of __gnuc_va_list, __DJ_va_list, or _G_va_list is taken * presence of __gnuc_va_list, __DJ_va_list, or _G_va_list is taken
* to indicate that the header knows what it's doing -- under SUSv2, * to indicate that the header knows what it's doing -- under SUSv2,
* stdio.h is required to define va_list, and we shouldn't break that. * stdio.h is required to define va_list, and we shouldn't break that.
* On IRIX 6.5, internal/wchar_core.h used to get its definition of
* va_list from stdio.h. Since this doesn't happen any longer, use
* __gnuc_va_list there, too.
*/ */
fix = { fix = {
hackname = stdio_va_list; hackname = stdio_va_list;
files = stdio.h; files = stdio.h;
files = internal/stdio_core.h;
files = internal/wchar_core.h;
bypass = '__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list'; bypass = '__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list';
/* /*
...@@ -2345,6 +2352,8 @@ fix = { ...@@ -2345,6 +2352,8 @@ fix = {
*/ */
sed = "s@ va_list @ __gnuc_va_list @\n" sed = "s@ va_list @ __gnuc_va_list @\n"
"s@ va_list)@ __gnuc_va_list)@\n" "s@ va_list)@ __gnuc_va_list)@\n"
"s@va_list _ap;@__gnuc_va_list _ap;@\n"
"s@(va_list)&@(__gnuc_va_list)\\&@\n"
"s@ _VA_LIST_));@ __gnuc_va_list));@\n" "s@ _VA_LIST_));@ __gnuc_va_list));@\n"
"s@ __VA_LIST__));@ __gnuc_va_list));@\n" "s@ __VA_LIST__));@ __gnuc_va_list));@\n"
"s@ va_list@ __not_va_list__@\n" "s@ va_list@ __not_va_list__@\n"
......
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