public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/36713] [4.4 regression] r137252 breaks -O2 optimization on x86_64-unknown-linux-gnu
Date: Thu, 03 Jul 2008 19:27:00 -0000	[thread overview]
Message-ID: <20080703192618.2734.qmail@sourceware.org> (raw)
In-Reply-To: <bug-36713-13648@http.gcc.gnu.org/bugzilla/>



------- Comment #16 from rguenther at suse dot de  2008-07-03 19:26 -------
Subject: Re:  [4.4 regression] r137252 breaks -O2 optimization
 on x86_64-unknown-linux-gnu

On Thu, 3 Jul 2008, dfranke at gcc dot gnu dot org wrote:

> ------- Comment #15 from dfranke at gcc dot gnu dot org  2008-07-03 18:59 -------
>> Your challenge is now to produce a testcase from your source ;)
>
> I do have a testcase that shows said flags. The difference in assembler between
> -foptimize-sibling-calls and -fno-optimize-sibling-calls is:
>
> --- without.s 2008-07-03 20:51:59.000000000 +0200
> +++ with.s    2008-07-03 20:52:26.000000000 +0200
> @@ -64,10 +64,9 @@
>        movq    %rsp, %rdi
>        call    dummy_atom_model_inertia_tensor_
>        movq    %rsp, %rdi
> -       call    inertia_tensor_to_rg_
>        addq    $80, %rsp
>        popq    %rbx
> -       ret
> +       jmp     inertia_tensor_to_rg_
> .LFE2:
>        .size   dummy_atom_model_radius_of_gyration_,
> .-dummy_atom_model_radius_of_gyration_
>        .section        .eh_frame,"a",@progbits
>
> Is this correct? Running the code compiled with -foptimize-sibling-calls seems
> to yield the correct result. Not sure if I need to investigate further.

Well, the circumstances where the miscompilation occurs may be tricky.
So you say you have a testcase but that doesn't show wrong behavior?
That's unfortunate ... :/

Richard.


-- 


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


  parent reply	other threads:[~2008-07-03 19:27 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03  9:09 [Bug target/36713] New: " dfranke at gcc dot gnu dot org
2008-07-03  9:13 ` [Bug target/36713] " rguenther at suse dot de
2008-07-03  9:15 ` dfranke at gcc dot gnu dot org
2008-07-03  9:43 ` rguenther at suse dot de
2008-07-03  9:54 ` franke dot daniel at gmail dot com
2008-07-03 10:09 ` rguenther at suse dot de
2008-07-03 10:41 ` dfranke at gcc dot gnu dot org
2008-07-03 11:42 ` dfranke at gcc dot gnu dot org
2008-07-03 11:50 ` rguenther at suse dot de
2008-07-03 12:00 ` dfranke at gcc dot gnu dot org
2008-07-03 12:04 ` rguenther at suse dot de
2008-07-03 12:46 ` dfranke at gcc dot gnu dot org
2008-07-03 12:55 ` rguenther at suse dot de
2008-07-03 13:01 ` dfranke at gcc dot gnu dot org
2008-07-03 13:11 ` rguenther at suse dot de
2008-07-03 19:00 ` dfranke at gcc dot gnu dot org
2008-07-03 19:27 ` rguenther at suse dot de [this message]
2008-07-03 19:34 ` franke dot daniel at gmail dot com
2008-07-03 19:45 ` rguenther at suse dot de
2008-07-04 15:07 ` rguenth at gcc dot gnu dot org
2008-07-04 15:07 ` rguenth at gcc dot gnu dot org
2008-07-04 15:47 ` rguenth at gcc dot gnu dot org
2008-07-04 21:36 ` dfranke at gcc dot gnu dot org
2008-07-06 13:30 ` rguenth at gcc dot gnu dot org
2008-07-07 15:12 ` rguenth at gcc dot gnu dot org
2008-07-07 15:17 ` rguenth at gcc dot gnu dot 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=20080703192618.2734.qmail@sourceware.org \
    --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: link
Be 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).