public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/30980] [4.3 Regression] Recent complex miscompilation
Date: Tue, 13 Mar 2007 12:57:00 -0000	[thread overview]
Message-ID: <20070313125647.1260.qmail@sourceware.org> (raw)
In-Reply-To: <bug-30980-133@http.gcc.gnu.org/bugzilla/>



------- Comment #10 from dominiq at lps dot ens dot fr  2007-03-13 12:56 -------
The problem seems to come from a broken/unavailable __builtin_cexpi,
see PR31161.

My understanding is that __builtin_cexpi and __builtin_sincos are twin
objects(?). Now I see in gcc/tree-ssa-math-opts.c:

...
static bool       
gate_cse_sincos (void)
{                   
  /* Make sure we have either sincos or cexp.  */
  return (TARGET_HAS_SINCOS
          || TARGET_C99_FUNCTIONS)
         && optimize;
}

struct tree_opt_pass pass_cse_sincos =
{
  "sincos",                             /* name */
  gate_cse_sincos,                      /* gate */
  execute_cse_sincos,                   /* execute */
  NULL,                                 /* sub */
  NULL,                                 /* next */
  0,                                    /* static_pass_number */
  0,                                    /* tv_id */
  PROP_ssa,                             /* properties_required */
  0,                                    /* properties_provided */
  0,                                    /* properties_destroyed */
  0,                                    /* todo_flags_start */
  TODO_dump_func | TODO_update_ssa | TODO_verify_ssa
    | TODO_verify_stmts,                /* todo_flags_finish */
  0                                     /* letter */
};
...

And TARGET_C99_FUNCTIONS is set to 1 on Darwin -> gate_cse_sincos returns
true even if TARGET_HAS_SINCOS is 0.


-- 


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


  parent reply	other threads:[~2007-03-13 12:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27 12:39 [Bug c++/30980] New: " pcarlini at suse dot de
2007-02-27 13:21 ` [Bug c++/30980] " pcarlini at suse dot de
2007-02-27 13:27 ` [Bug target/30980] " rguenth at gcc dot gnu dot org
2007-02-27 13:30 ` pcarlini at suse dot de
2007-02-27 13:39 ` pcarlini at suse dot de
2007-02-27 13:41 ` pcarlini at suse dot de
2007-02-27 15:43 ` pinskia at gcc dot gnu dot org
2007-02-27 15:48 ` pinskia at gcc dot gnu dot org
2007-02-27 17:25 ` geoffk at gcc dot gnu dot org
2007-03-11 12:19 ` dominiq at lps dot ens dot fr
2007-03-13 12:57 ` dominiq at lps dot ens dot fr [this message]
2007-03-13 13:22 ` rguenth at gcc dot gnu dot org
2007-03-13 13:26 ` rguenth at gcc dot gnu dot org
2007-03-13 14:48 ` dominiq at lps dot ens dot fr
2007-03-17  0:26 ` dominiq at lps dot ens dot fr
2007-03-22 16:22 ` dominiq at lps dot ens dot fr
2007-06-29 18:00 ` mmitchel at gcc dot gnu dot org
2007-06-29 18:10 ` pcarlini at suse dot de

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