This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31488] va_list considered non-POD
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2008 20:42:59 -0000
- Subject: [Bug target/31488] va_list considered non-POD
- References: <bug-31488-119@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ubizjak at gmail dot com 2008-12-29 20:42 -------
Preprocessed source, can be compiled with a crosscompiler:
--cut here--
# 1 "pod.C"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "pod.C"
# 1 "/usr/lib/gcc/alpha-linux-gnu/4.2.4/include/stdarg.h" 1 3 4
# 43 "/usr/lib/gcc/alpha-linux-gnu/4.2.4/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 105 "/usr/lib/gcc/alpha-linux-gnu/4.2.4/include/stdarg.h" 3 4
typedef __gnuc_va_list va_list;
# 2 "pod.C" 2
extern int foo (int a, int b, ...);
int bar (int a, int b, ...)
{
va_list args;
__builtin_va_start(args,b);
int result = foo (a, b, args);
__builtin_va_end(args);
return result;
}
--cut here--
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31488