possible egcs c compiler bug

Hartmut Koptein Hartmut.Koptein at t-online.de
Thu May 20 07:04:58 EST 1999

> I have found what *appears* to be a bug in the C compiler.  I have experienced
> this bug in R4 (regardless of the compiler/library installed) as well as in
> the latest (i.e. all the latest packages through 5/15/1999) pre-R5
> installation.  I include a short program below which illustrates the problem
> I am having.  The code compiles without error on my i386 machine
> running RHL 5.2.  The version of EGCS on the PC is 1.0.3 versus 1.1.2 on my
> PowerMac, so I don't know if this is a PPC problem or an EGCS problem.
> Any input is greatly appreciated.
> The code is as follows:
> test.c:
>      #include <stdio.h>
>      #include <stdarg.h>
>      static int myFunction(va_list inList)
>      {
>         va_list newList;
>         newList = inList;
>      }

Try this:

      #include <stdio.h>
      #include <stdarg.h>

      static int myFunction(va_list inList)
         va_list newList;
	 __va_copy(newList, inList);

 Dipl.-Ing. (FH) Hartmut Koptein                       EMail:
 Friedrich-van-Senden-Str. 7                           
 26603 Aurich   
 Tel.: +49-4941-10390                                  koptein at debian.org

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

More information about the Linuxppc-dev mailing list