"Joseph S. Myers" <jos...@codesourcery.com> wrote: > I think you should add a testcase to gcc.c-torture/compile, unless there > is already one that this patch fixes.
Ah, indeed. How about the attached testcase? BTW, is it valid C? Regards, kaz -- --- ORIG/trunk/gcc/testsuite/gcc.c-torture/compile/pr48767.c 1970-01-01 09:00:00.000000000 +0900 +++ trunk/gcc/testsuite/gcc.c-torture/compile/pr48767.c 2011-04-27 07:54:05.000000000 +0900 @@ -0,0 +1,9 @@ +/* PR target/48767 */ +/* { dg-do compile } */ +/* { dg-options "" } */ + +void +foo (__builtin_va_list ap) +{ + __builtin_va_arg (ap, void); +}