public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48731] New: regression: __attribute__((flatten)) produces error with function calling variadic functions
@ 2011-04-22 19:10 florent.bruneau_gcc at m4x dot org
2011-04-23 9:13 ` [Bug c/48731] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: florent.bruneau_gcc at m4x dot org @ 2011-04-22 19:10 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/48731] regression: __attribute__((flatten)) produces error with function calling variadic functions
2011-04-22 19:10 [Bug c/48731] New: regression: __attribute__((flatten)) produces error with function calling variadic functions florent.bruneau_gcc at m4x dot org
@ 2011-04-23 9:13 ` rguenth at gcc dot gnu.org
2011-04-26 13:00 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-23 9:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48731
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.04.23 09:13:41
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-23 09:13:41 UTC ---
I will have a look.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/48731] regression: __attribute__((flatten)) produces error with function calling variadic functions
2011-04-22 19:10 [Bug c/48731] New: regression: __attribute__((flatten)) produces error with function calling variadic functions florent.bruneau_gcc at m4x dot org
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
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26 13:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48731
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-26 12:59:33 UTC ---
Author: rguenth
Date: Tue Apr 26 12:59:22 2011
New Revision: 172963
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172963
Log:
2011-04-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/48731
* ipa-inline.c (cgraph_flatten): Test if function is inlinable.
* gcc.dg/torture/pr48731.c: New testcase.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/torture/pr48731.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/ipa-inline.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/48731] regression: __attribute__((flatten)) produces error with function calling variadic functions
2011-04-22 19:10 [Bug c/48731] New: regression: __attribute__((flatten)) produces error with function calling variadic functions florent.bruneau_gcc at m4x dot org
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
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26 13:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48731
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-26 13:00:58 UTC ---
Author: rguenth
Date: Tue Apr 26 13:00:53 2011
New Revision: 172964
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172964
Log:
2011-04-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/48731
* gcc.dg/torture/pr48731.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr48731.c
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/48731] regression: __attribute__((flatten)) produces error with function calling variadic functions
2011-04-22 19:10 [Bug c/48731] New: regression: __attribute__((flatten)) produces error with function calling variadic functions florent.bruneau_gcc at m4x dot org
` (2 preceding siblings ...)
2011-04-26 13:02 ` rguenth at gcc dot gnu.org
@ 2011-04-26 13:08 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-26 13:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48731
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.1
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-26 13:01:55 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-04-26 13:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-22 19:10 [Bug c/48731] New: regression: __attribute__((flatten)) produces error with function calling variadic functions florent.bruneau_gcc at m4x dot org
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
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).