public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "florent.bruneau_gcc at m4x dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/48731] New: regression: __attribute__((flatten)) produces error with function calling variadic functions Date: Fri, 22 Apr 2011 19:10:00 -0000 [thread overview] Message-ID: <bug-48731-4@http.gcc.gnu.org/bugzilla/> (raw) 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: unassigned@gcc.gnu.org ReportedBy: florent.bruneau_gcc@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
next reply other threads:[~2011-04-22 19:10 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-04-22 19:10 florent.bruneau_gcc at m4x dot org [this message] 2011-04-23 9:13 ` [Bug c/48731] " rguenth at gcc dot gnu.org 2011-04-26 13:00 ` rguenth at gcc dot gnu.org 2011-04-26 13:02 ` rguenth at gcc dot gnu.org 2011-04-26 13:08 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-48731-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).