]> gcc.gnu.org Git - gcc.git/commitdiff
inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> too.
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Wed, 2 Jul 2003 01:30:10 +0000 (01:30 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 2 Jul 2003 01:30:10 +0000 (01:30 +0000)
* 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

gcc/ChangeLog
gcc/fixinc/fixincl.x
gcc/fixinc/inclhack.def

index 2e02edc63acc621f2ca84d1f2b902d3ba9d63a42..537735db5457124a11179ee0f6e142d721da917c 100644 (file)
@@ -1,3 +1,12 @@
+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.
index 20f13c85b93bf0308061734680c7180bfabb5e1f..1aa7c55ee65a9509afea9e84b4df144753a7d8bd 100644 (file)
@@ -2,11 +2,11 @@
  * 
  * 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
  * 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.
  *
@@ -2559,7 +2559,7 @@ tSCC zIrix_Stdio_Va_ListName[] =
  *  File name selection pattern
  */
 tSCC zIrix_Stdio_Va_ListList[] =
-  "|stdio.h|";
+  "|stdio.h|internal/stdio_core.h|";
 /*
  *  Machine/OS name selection pattern
  */
@@ -4206,7 +4206,7 @@ tSCC zStdio_Va_ListName[] =
  *  File name selection pattern
  */
 tSCC zStdio_Va_ListList[] =
-  "|stdio.h|";
+  "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
 /*
  *  Machine/OS name selection pattern
  */
@@ -4228,6 +4228,8 @@ static tTestDesc aStdio_Va_ListTests[] = {
 static const char* apzStdio_Va_ListPatch[] = { "sed",
     "-e", "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@ __not_va_list__@\n\
index b43b215aa79bbd5365a806374e0843fc9a98ed64..5a513d3edafa887cb94c66b469bfdcd8e6cb11d5 100644 (file)
@@ -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
  *  calling vfprintf with a va_list fails in C++.  */
 fix = {
     hackname  = irix_stdio_va_list;
     files     = stdio.h;
+    files     = internal/stdio_core.h;
 
     select = '(printf\(.*), /\* va_list \*/ char \*';
     c_fix  = format;
@@ -2328,10 +2330,15 @@ fix = {
  *  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,
  *  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 = {
     hackname = stdio_va_list;
     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';
 
     /*
@@ -2345,6 +2352,8 @@ fix = {
      */
     sed = "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@ __not_va_list__@\n"
This page took 0.102772 seconds and 5 git commands to generate.