From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1305 invoked by alias); 13 Mar 2007 12:57:00 -0000 Received: (qmail 1261 invoked by uid 48); 13 Mar 2007 12:56:47 -0000 Date: Tue, 13 Mar 2007 12:57:00 -0000 Message-ID: <20070313125647.1260.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/30980] [4.3 Regression] Recent complex miscompilation In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg01172.txt.bz2 ------- 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