public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58105] New: wrong code generation for multiversioned functions
@ 2013-08-08 16:13 bernd.edlinger at hotmail dot de
  2013-08-10  9:30 ` [Bug target/58105] " bernd.edlinger at hotmail dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2013-08-08 16:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58105

            Bug ID: 58105
           Summary: wrong code generation for multiversioned functions
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de

the following test cases fail on i686-*:
g++.dg/ext/mv2.C
g++.dg/ext/mv5.C
g++.dg/ext/mv12.C

The code is OK on -O0, -O1, but fails on -O2 and -O3.

The problem seems to be that for multiversioned functions 
an internal dispatcher function is generated by
ix86_generate_version_dispatcher_body(), which is being inlined in -O2
and above.

But the inlined function does no longer call the target-specific function.
Instead the return value is the address of the target-specific function.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-08-16 13:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-08 16:13 [Bug c++/58105] New: wrong code generation for multiversioned functions bernd.edlinger at hotmail dot de
2013-08-10  9:30 ` [Bug target/58105] " bernd.edlinger at hotmail dot de
2013-08-11  0:28 ` bernd.edlinger at hotmail dot de
2013-08-14  1:19 ` bernd.edlinger at hotmail dot de
2013-08-14 15:01 ` bernd.edlinger at hotmail dot de
2013-08-15  8:27 ` ubizjak at gmail dot com
2013-08-16 13:24 ` ubizjak at gmail dot com

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).