public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/62035] New: [4.9 Regresion] wrong code building libapache-mod-perl with -O1, works with -O1 -fno-tree-dse
@ 2014-08-06 12:56 doko at gcc dot gnu.org
  2014-08-07 15:44 ` [Bug tree-optimization/62035] [4.9/4.10 Regression] " wschmidt at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: doko at gcc dot gnu.org @ 2014-08-06 12:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62035

            Bug ID: 62035
           Summary: [4.9 Regresion] wrong code building libapache-mod-perl
                    with -O1, works with -O1 -fno-tree-dse
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org

Created attachment 33260
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33260&action=edit
test case

[forwarded from http://bugs.debian.org/754901]

libapache2-mod-perl2 build segfaults in the test suite when built with gcc 4.9
(r213317) with -O1 or higher, building with -O1 -fno-tree-dse works around it.
seen at least on x86_64-linux-gnu.

attributing one function with

__attribute__((optimize("-fno-tree-dse")))
modperl_enc.c (modperl_env_table_populate)

is enough to avoid the segfaults in the test suite. The diff in the assembler
is:

--- ok/modperl_env.s    2014-08-06 12:42:36.714269110 +0000
+++ bad/modperl_env.s   2014-08-06 12:40:44.441445210 +0000
@@ -118,7 +118,6 @@
 .LVL15:
        movq    %rax, %r14
 .LVL16:
-       movq    %rax, 40(%rsp)
        subq    $8, %rsp
        .cfi_def_cfa_offset 120
        pushq   $0


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

end of thread, other threads:[~2014-08-08 13:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-06 12:56 [Bug tree-optimization/62035] New: [4.9 Regresion] wrong code building libapache-mod-perl with -O1, works with -O1 -fno-tree-dse doko at gcc dot gnu.org
2014-08-07 15:44 ` [Bug tree-optimization/62035] [4.9/4.10 Regression] " wschmidt at gcc dot gnu.org
2014-08-08  8:17 ` rguenth at gcc dot gnu.org
2014-08-08  8:18 ` rguenth at gcc dot gnu.org
2014-08-08 13:39 ` glisse 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).