http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48731
Summary: regression: __attribute__((flatten)) produces error with function calling variadic functions Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: florent.bruneau_...@m4x.org Created attachment 24075 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24075 preprocessed example source Function with the flatten attribute that call variadic function do not compile anymore with gcc-4.6. It worked perfectly with gcc-4.5. The attachment provide a simple example of code. Compilation flag: % gcc-4.6 -std=gnu99 --save-temp -O3 -c flatten_variadic.c Resulting error: flatten_variadic.c: In function ‘blah2’: flatten_variadic.c:5:23: error: ‘va_start’ used in function with fixed args GCC: gcc-4.6 (Debian 4.6.0-4) 4.6.1 20110419 (prerelease) System: Debian: Linux edelzwicker 2.6.38-2-amd64 #1 SMP Thu Apr 7 04:28:07 UTC 2011 x86_64 GNU/Linux