OSDN Git Service

* fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Dec 2001 21:52:42 +0000 (21:52 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Dec 2001 21:52:42 +0000 (21:52 +0000)
UNIX V5.1A stdio.h.
* fixinc/fixincl.x: Regenerate.
Fixes PR libf2c/4826.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47732 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 167de28..23f5012 100644 (file)
@@ -1,3 +1,10 @@
+2001-12-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
+       UNIX V5.1A stdio.h.
+       * fixinc/fixincl.x: Regenerate.
+       Fixes PR libf2c/4826.
+
 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
             Richard Henderson  <rth@redhat.com>
 
index 32e8e71..1b8f23f 100644 (file)
@@ -3954,6 +3954,7 @@ 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_));@ __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\
 s@ __va_list)@ __gnuc_va_list)@\n\
index ef776e2..af0d3f4 100644 (file)
@@ -2223,7 +2223,8 @@ fix = {
 
     /*
      * Use __gnuc_va_list in arg types in place of va_list.
-     * On 386BSD use __gnuc_va_list instead of _VA_LIST_.  We're hoping the
+     * On 386BSD use __gnuc_va_list instead of _VA_LIST_.  On Tru64 UNIX V5.1A
+     * use __gnuc_va_list instead of __VA_LIST__.  We're hoping the
      * trailing parentheses and semicolon save all other systems from this.
      * Define __not_va_list__ (something harmless and unused)
      * instead of va_list.
@@ -2232,6 +2233,7 @@ fix = {
     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__));@ __gnuc_va_list));@\n"
           "s@ va_list@ __not_va_list__@\n"
           "s@\\*va_list@*__not_va_list__@\n"
           "s@ __va_list)@ __gnuc_va_list)@\n"