public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/45722] [4.6 Regression] FAIL: gcc.c-torture/execute/20040709-2.c execution at -O1 and -Os
Date: Fri, 12 Nov 2010 11:41:00 -0000	[thread overview]
Message-ID: <bug-45722-4-yJLL2tnlSP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-45722-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #28 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2010-11-12 11:20:12 UTC ---
AFAICS Dave's analysis still holds.  The problematic insn is

(insn 88 87 89 5 (set (reg:DI 134 [ x$l ])
        (mem/c:DI (reg/f:SI 185) [0 MEM[(struct E *)&sE]+0 S8 A8]))
pr45722.c:50 -1
     (nil))

(gdb) frame 1
#1  0x00000000007678ff in expand_assignment (to=0x7ffff7fbfcb8,
    from=0x7ffff7107000, nontemporal=0 '\000')
    at /home/eric/svn/gcc/gcc/expr.c:4474
4474      result = store_expr (from, to_rtx, 0, nontemporal);
(gdb) p debug_generic_expr(from)
MEM[(struct E *)&sE]
$9 = void
(gdb) p debug_generic_expr(to)
x$l_3

The we arrive in the MEM expander:

    align = MAX (TYPE_ALIGN (TREE_TYPE (exp)),
             get_object_alignment (exp, BIGGEST_ALIGNMENT));
    op0 = expand_expr (base, NULL_RTX, VOIDmode, EXPAND_SUM);
    op0 = convert_memory_address_addr_space (address_mode, op0, as);
    if (!integer_zerop (TREE_OPERAND (exp, 1)))
      {
        rtx off
          = immed_double_int_const (mem_ref_offset (exp), address_mode);
        op0 = simplify_gen_binary (PLUS, address_mode, op0, off);
      }
    op0 = memory_address_addr_space (mode, op0, as);
    temp = gen_rtx_MEM (mode, op0);
    set_mem_attributes (temp, exp, 0);
    set_mem_addr_space (temp, as);

(gdb) p align
$21 = 64
(gdb) p debug_rtx(temp)
(mem/c:DI (reg/f:SI 185) [0 MEM[(struct E *)&sE]+0 S8 A8])

so it's exactly the situation described in comment #16.


  parent reply	other threads:[~2010-11-12 11:41 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-45722-4@http.gcc.gnu.org/bugzilla/>
2010-09-29 20:07 ` rguenth at gcc dot gnu.org
2010-10-09 20:47 ` dave at hiauly1 dot hia.nrc.ca
2010-10-09 20:47 ` dave at hiauly1 dot hia.nrc.ca
2010-10-09 21:05 ` danglin at gcc dot gnu.org
2010-10-09 21:27 ` danglin at gcc dot gnu.org
2010-10-11 14:33 ` danglin at gcc dot gnu.org
2010-10-11 16:30 ` danglin at gcc dot gnu.org
2010-10-11 18:08 ` danglin at gcc dot gnu.org
2010-10-11 19:09 ` danglin at gcc dot gnu.org
2010-10-11 21:17 ` dave at hiauly1 dot hia.nrc.ca
2010-10-28 17:50 ` ro at gcc dot gnu.org
2010-11-04 11:21 ` rguenth at gcc dot gnu.org
2010-11-04 20:24 ` ro at gcc dot gnu.org
2010-11-11 11:44 ` rguenth at gcc dot gnu.org
2010-11-11 21:45 ` ro at CeBiTec dot Uni-Bielefeld.DE
2010-11-11 21:48 ` ro at gcc dot gnu.org
2010-11-11 21:49 ` ro at gcc dot gnu.org
2010-11-12 10:12 ` ebotcazou at gcc dot gnu.org
2010-11-12 10:51 ` ebotcazou at gcc dot gnu.org
2010-11-12 10:52 ` ebotcazou at gcc dot gnu.org
2010-11-12 11:41 ` ebotcazou at gcc dot gnu.org [this message]
2010-11-12 12:37 ` rguenth at gcc dot gnu.org
2010-11-12 13:04 ` rguenth at gcc dot gnu.org
2010-11-12 13:13 ` rguenth at gcc dot gnu.org
2010-11-12 13:17 ` rguenth at gcc dot gnu.org
2010-11-12 17:44 ` ebotcazou at gcc dot gnu.org
2010-11-12 17:45 ` ebotcazou at gcc dot gnu.org
2010-11-14 11:36 ` [Bug tree-optimization/45722] " ebotcazou at gcc dot gnu.org
2010-11-14 11:41 ` ebotcazou at gcc dot gnu.org
2010-11-22 17:06 ` ro at CeBiTec dot Uni-Bielefeld.DE
2010-11-23 23:58 ` [Bug middle-end/45722] " danglin at gcc dot gnu.org
2010-11-24  8:50 ` [Bug tree-optimization/45722] " ebotcazou at gcc dot gnu.org
2010-09-18 18:31 [Bug middle-end/45722] New: " danglin at gcc dot gnu dot org
2010-09-18 18:43 ` [Bug middle-end/45722] [4.6 Regression] " rguenth at gcc dot gnu dot org
2010-09-18 19:40 ` dave at hiauly1 dot hia dot nrc dot ca
2010-09-19 20:09 ` dave at hiauly1 dot hia dot nrc dot ca

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=bug-45722-4-yJLL2tnlSP@http.gcc.gnu.org/bugzilla/ \
    --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).