public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/42455] [4.5 Regression] "-fcompare-debug failure" at -O2 in 'recent' builds
Date: Fri, 01 Jan 2010 18:43:00 -0000	[thread overview]
Message-ID: <20100101184303.10457.qmail@sourceware.org> (raw)
In-Reply-To: <bug-42455-14164@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-01-01 18:43 -------
It's a false positive, the difference is

--- t2.gkd      2010-01-01 19:05:33.000000000 +0100
+++ t2.gk.gkd   2010-01-01 19:05:33.000000000 +0100
@@ -45,22 +45,22 @@
         ])# {*movdi_xor_rex64} (expr_list:REG_UNUSED (reg:CC 17 flags)
         (nil)))
 (insn:TI# 0 0 t2.ii:793 (set (mem/s/c:DI (plus:DI (reg/f:DI 7 sp)
-                (const_int 64 [0x40])) [5 ISRA.15+0 S8 A128])
+                (const_int 64 [0x40])) [5 ISRA.16+0 S8 A128])
         (reg:DI 2 cx [orig:62 D.xxxx._M_t._M_impl._M_header ] [62]))#
{*movdi_1
_rex64} (nil))

and similar others.  Thus we create a temporary variable name which
includes a UID which comes from gimplify.c:create_tmp_var_name.

The extra temporary comes from extra early SRA we do when building
with -g:

-! Disqualifying iter - No scalar replacements to be created.
-Marking D.3480 offset: 0, size: 8:  to be replaced.
+Candidate (3488): D.3488
+Marking D.3477 offset: 0, size: 8:  to be replaced.

-Access trees for D.3480 (UID: 3480): 
-access { base = (3480)'D.3480', offset = 0, size = 8, expr = D.3480._M_node,
ty
pe = bool, grp_write = 1, grp_read = 1, grp_hint = 0, grp_covered = 1,
grp_unsca
larizable_region = 0, grp_unscalarized_data = 0, grp_partial_lhs = 0,
grp_differ
ent_types = 1, grp_to_be_replaced = 1, grp_maybe_modified = 0,
grp_not_necessari
lly_dereferenced = 0
+Access trees for D.3477 (UID: 3477): 
+access { base = (3477)'D.3477', offset = 0, size = 8, expr = D.3477._M_node,
ty
pe = bool, grp_write = 1, grp_read = 1, grp_hint = 0, grp_covered = 1,
grp_unsca
larizable_region = 0, grp_unscalarized_data = 0, grp_partial_lhs = 0,
grp_differ
ent_types = 0, grp_to_be_replaced = 1, grp_maybe_modified = 0,
grp_not_necessari
lly_dereferenced = 0
+
+Marking iter offset: 0, size: 8:  to be replaced.
+
+Access trees for iter (UID: 3262): 
+access { base = (3262)'iter', offset = 0, size = 8, expr = iter._M_node, type
=
 bool, grp_write = 1, grp_read = 1, grp_hint = 0, grp_covered = 1,
grp_unscalari
zable_region = 0, grp_unscalarized_data = 0, grp_partial_lhs = 0,
grp_different_
types = 0, grp_to_be_replaced = 1, grp_maybe_modified = 0,
grp_not_necessarilly_
dereferenced = 0


I am testing a patch.  But in reality it will paper over a problem in SRA
that causes code-generation differences dependent on oder of analyzing
accesses.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu dot
                   |                            |org


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


  parent reply	other threads:[~2010-01-01 18:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22  0:06 [Bug debug/42455] New: " zsojka at seznam dot cz
2009-12-22  0:07 ` [Bug debug/42455] " zsojka at seznam dot cz
2009-12-22  0:10 ` zsojka at seznam dot cz
2009-12-22  1:52 ` hjl dot tools at gmail dot com
2009-12-30 20:57 ` [Bug debug/42455] [4.5 Regression] " rguenth at gcc dot gnu dot org
2010-01-01 18:43 ` rguenth at gcc dot gnu dot org [this message]
2010-01-01 20:22 ` rguenth at gcc dot gnu dot org
2010-01-01 20:23 ` rguenth at gcc dot 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=20100101184303.10457.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).