xen: build fix with gcc 4.5
PATCH 1/1 xen: build fix with gcc 4.5
Fix build failure with gcc 4.5:
implicit declaration of __builtin_stdarg_start
From: David Brownlee <[email protected]>
Please also apply this to xen-4.1-testing.
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
xen/include/xen/stdarg.h +11 -1
@@ -5,7 +5,17 @@# include "/usr/include/stdarg.h" #elif defined (__NetBSD__)typedef __builtin_va_list va_list ; -# define va_start (ap, last) __builtin_stdarg_start((ap), (last)) +# ifdef __GNUC__ +# define __GNUC_PREREQ__ (x, y) \ + ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || \ + (__GNUC__ > (x))) +# else +# define __GNUC_PREREQ__ (x, y) 0 +# endif +# if !__GNUC_PREREQ__ (4 ,5 ) +# define __builtin_va_start (ap, last) __builtin_stdarg_start((ap), (last)) +# endif +# define va_start (ap, last) __builtin_va_start((ap), (last))# define va_end (ap) __builtin_va_end(ap)# define va_arg __builtin_va_arg#else
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · Christoph Egger
Fix build failure with gcc 4.5:
implicit declaration of__builtin_stdarg_startSigned-off-by Christoph Egger <[email protected]>From: David Brownlee <[email protected]>
Can you please put netbsd in the comment header for netbsd-specific changes?
-- Keir
Quoted 1 line
Please also apply this to xen-4.1-testing.
PATCH 1/1 xen: build fix with gcc 4.5
In reply to Christoph EggerFix build failure with gcc 4.5 on NetBSD:
implicit declaration of __builtin_stdarg_start
From: David Brownlee <[email protected]>
Please also apply this to xen-4.1-testing.
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
xen/include/xen/stdarg.h +11 -1
@@ -5,7 +5,17 @@# include "/usr/include/stdarg.h" #elif defined (__NetBSD__)typedef __builtin_va_list va_list ; -# define va_start (ap, last) __builtin_stdarg_start((ap), (last)) +# ifdef __GNUC__ +# define __GNUC_PREREQ__ (x, y) \ + ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || \ + (__GNUC__ > (x))) +# else +# define __GNUC_PREREQ__ (x, y) 0 +# endif +# if !__GNUC_PREREQ__ (4 ,5 ) +# define __builtin_va_start (ap, last) __builtin_stdarg_start((ap), (last)) +# endif +# define va_start (ap, last) __builtin_va_start((ap), (last))# define va_end (ap) __builtin_va_end(ap)# define va_arg __builtin_va_arg#else
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel