From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10740 invoked by alias); 27 Apr 2009 11:55:59 -0000 Received: (qmail 10600 invoked by alias); 27 Apr 2009 11:55:36 -0000 Date: Mon, 27 Apr 2009 11:55:00 -0000 Message-ID: <20090427115536.10599.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/39794] [4.4/4.5 Regression] Miscompile with -O2 -funroll-loops In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" 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: 2009-04/txt/msg02572.txt.bz2 ------- Comment #11 from jakub at gcc dot gnu dot org 2009-04-27 11:55 ------- Subject: Bug 39794 Author: jakub Date: Mon Apr 27 11:55:13 2009 New Revision: 146834 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146834 Log: PR rtl-optimization/39794 * alias.c (canon_true_dependence): Add x_addr argument. * rtl.h (canon_true_dependence): Adjust prototype. * cse.c (check_dependence): Adjust canon_true_dependence callers. * cselib.c (cselib_invalidate_mem): Likewise. * gcse.c (compute_transp): Likewise. * dse.c (scan_reads_nospill): Likewise. (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame addresses pass base->val_rtx as mem_addr, for const-or-frame addresses canon_base_addr of the group, plus optional offset. (struct group_info): Rename canon_base_mem to canon_base_addr. (get_group_info): Set canon_base_addr to canon_rtx of base, not canon_rtx of base_mem. * gcc.dg/pr39794.c: New test. Added: branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr39794.c - copied unchanged from r146669, trunk/gcc/testsuite/gcc.dg/pr39794.c Modified: branches/gcc-4_4-branch/gcc/ChangeLog branches/gcc-4_4-branch/gcc/alias.c branches/gcc-4_4-branch/gcc/cse.c branches/gcc-4_4-branch/gcc/cselib.c branches/gcc-4_4-branch/gcc/dse.c branches/gcc-4_4-branch/gcc/gcse.c branches/gcc-4_4-branch/gcc/rtl.h branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39794