public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/41915] FAIL: gcc.dg/torture/builtin-math-7.c  -O2 -flto  execution test
Date: Fri, 11 Dec 2009 11:49:00 -0000	[thread overview]
Message-ID: <20091211114925.32618.qmail@sourceware.org> (raw)
In-Reply-To: <bug-41915-276@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-12-11 11:49 -------
Confirmed.  Fails everywhere.

The issue is that flag_complex_method is not the same in lto1 compared to cc1
so we lower the complex multiplication differently.

The specific issue is that we fold

  D.2036_6 = __complex__ ( Inf, 0.0) * __complex__ (0.0, 1.0e+0);
  D.2035_7 = D.2036_6 * D.2036_6;

to

  D.2036_6 = COMPLEX_EXPR < Nan,  Inf>;
  D.2035_7 = COMPLEX_EXPR < Nan,  Nan>;

with -fcx-fortran-rules (flag_complex_method == 1).

So the particular issue is a middle-end one while the general
flag_complex_method issue remains.  In the end we need to move
flag_complex_method into the IL just like flag_wrapv.

I'm going to try fix the testcase at least.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-12-11 11:49:25
               date|                            |


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


  parent reply	other threads:[~2009-12-11 11:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-02 19:50 [Bug lto/41915] New: " danglin at gcc dot gnu dot org
2009-11-15 17:28 ` [Bug lto/41915] " danglin at gcc dot gnu dot org
2009-12-11 11:49 ` rguenth at gcc dot gnu dot org [this message]
2009-12-11 14:49 ` rguenth at gcc dot gnu dot org
2009-12-11 14:50 ` 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=20091211114925.32618.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).