public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bonzini at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/23109] [4.1/4.2 Regression] compiler generates wrong code leading to spurious division by zero with -funsafe-math-optimizations (instead of -ftrapping-math) Date: Wed, 11 Jan 2006 13:02:00 -0000 [thread overview] Message-ID: <20060111130225.3736.qmail@sourceware.org> (raw) In-Reply-To: <bug-23109-1396@http.gcc.gnu.org/bugzilla/> ------- Comment #15 from bonzini at gnu dot org 2006-01-11 13:02 ------- Subject: Bug 23109 Author: bonzini Date: Wed Jan 11 13:02:18 2006 New Revision: 109578 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109578 Log: gcc: 2006-01-11 Paolo Bonzini <bonzini@gnu.org> PR tree-optimization/23109 PR tree-optimization/23948 PR tree-optimization/24123 * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies. * tree-cfg.c (single_noncomplex_succ): New. * tree-flow.h (single_noncomplex_succ): Declare it. * tree-ssa-math-opts.c (enum place_reciprocal): Remove. * tree-ssa-math-opts.c (enum place_reciprocal): Remove. (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit, insert_bb, register_division_in, insert_reciprocals, replace_reciprocal, free_bb): New. (execute_cse_reciprocals_1): Rewritten. (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1. Do not commit any edge insertion. Always compute dominators and create the allocation pool. * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New. * target.h (struct gcc_target): Add min_divistions_for_recip_mul. * targhooks.c (default_min_divistions_for_recip_mul): New. * targhooks.h (default_min_divistions_for_recip_mul): New prototype. * passes.c (init_optimization_passes): Run recip after tree loop optimizations. * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL. gcc/testsuite: 2006-01-11 Paolo Bonzini <bonzini@gnu.org> PR tree-optimization/23109 PR tree-optimization/23948 PR tree-optimization/24123 * gcc.dg/tree-ssa/recip-3.c, gcc.dg/tree-ssa/recip-4.c, gcc.dg/tree-ssa/recip-5.c, gcc.dg/tree-ssa/recip-6.c, gcc.dg/tree-ssa/recip-7.c, gcc.dg/tree-ssa/pr23109.c, g++.dg/tree-ssa/pr23948.C: New testcases. * gcc.dg/tree-ssa/recip-2.c, gcc.dg/tree-ssa/pr23234.c: Provide three divisions in order to do the optimization. Added: trunk/gcc/testsuite/g++.dg/tree-ssa/pr23948.C trunk/gcc/testsuite/gcc.dg/tree-ssa/pr23109.c trunk/gcc/testsuite/gcc.dg/tree-ssa/recip-3.c trunk/gcc/testsuite/gcc.dg/tree-ssa/recip-4.c trunk/gcc/testsuite/gcc.dg/tree-ssa/recip-5.c trunk/gcc/testsuite/gcc.dg/tree-ssa/recip-6.c trunk/gcc/testsuite/gcc.dg/tree-ssa/recip-7.c Modified: trunk/gcc/ChangeLog trunk/gcc/Makefile.in trunk/gcc/doc/tm.texi trunk/gcc/passes.c trunk/gcc/target-def.h trunk/gcc/target.h trunk/gcc/targhooks.c trunk/gcc/targhooks.h trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/pr23234.c trunk/gcc/testsuite/gcc.dg/tree-ssa/recip-2.c trunk/gcc/tree-cfg.c trunk/gcc/tree-flow.h trunk/gcc/tree-ssa-math-opts.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23109
next prev parent reply other threads:[~2006-01-11 13:02 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-23109-1396@http.gcc.gnu.org/bugzilla/> 2005-10-14 12:00 ` [Bug tree-optimization/23109] [4.1 " bonzini at gcc dot gnu dot org 2005-10-14 12:13 ` rguenth at gcc dot gnu dot org 2005-10-14 12:16 ` rguenth at gcc dot gnu dot org 2005-10-14 12:19 ` rguenth at gcc dot gnu dot org 2005-10-22 21:56 ` pinskia at gcc dot gnu dot org 2005-10-31 4:20 ` mmitchel at gcc dot gnu dot org 2005-11-01 22:00 ` bonzini at gcc dot gnu dot org 2005-11-01 22:17 ` rguenth at gcc dot gnu dot org 2005-11-03 10:05 ` bonzini at gcc dot gnu dot org 2005-11-16 14:12 ` steven at gcc dot gnu dot org 2005-11-16 14:16 ` rguenth at gcc dot gnu dot org 2005-11-16 14:46 ` bonzini at gcc dot gnu dot org 2006-01-11 13:02 ` bonzini at gcc dot gnu dot org [this message] 2006-01-11 14:29 ` bonzini at gcc dot gnu dot org 2006-01-11 14:30 ` bonzini at 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=20060111130225.3736.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: linkBe 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).