public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/60912] New: [4.10 Regression] wrong code with -O -fno-inline -fipa-pta
@ 2014-04-21  9:51 zsojka at seznam dot cz
  2014-04-22  8:45 ` [Bug ipa/60912] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2014-04-21  9:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60912
           Summary: [4.10 Regression] wrong code with -O -fno-inline
                    -fipa-pta
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 32647
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32647&action=edit
reduced testcase (g++.dg/tree-ssa/20040317-1.C)

Output:
$ g++ -O -fno-inline -fipa-pta testcase.C
$ ./a.out 
Segmentation fault

Relevant disassembly diff 4.9/4.10:
@@ -61,9 +61,8 @@
        mov     QWORD PTR [rax], 0
        mov     rdi, rax
        call    _ZN3BarC1Ev
-       mov     rax, QWORD PTR [rbx]
        mov     rdi, rbx
-       call    [QWORD PTR [rax]]
+       call    [QWORD PTR ds:0]
        mov     eax, 0
        pop     rbx
        .cfi_def_cfa_offset 8

In 4.10, vtable seems to be expected to be constant 0.


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

end of thread, other threads:[~2014-04-25  7:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-21  9:51 [Bug ipa/60912] New: [4.10 Regression] wrong code with -O -fno-inline -fipa-pta zsojka at seznam dot cz
2014-04-22  8:45 ` [Bug ipa/60912] " rguenth at gcc dot gnu.org
2014-04-23 10:15 ` rguenth at gcc dot gnu.org
2014-04-24 10:59 ` rguenth at gcc dot gnu.org
2014-04-25  7:48 ` rguenth at gcc dot gnu.org
2014-04-25  7:49 ` rguenth at gcc dot gnu.org
2014-04-25  7:50 ` 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).