public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hp@bitrange.com>
To: Jan Hubicka <jh@suse.cz>
Cc: Zack Weinberg <zack@codesourcery.com>,  <gcc-patches@gcc.gnu.org>
Subject: Re: RFC: --enable-checking=valgrind.
Date: Tue, 12 Nov 2002 17:11:00 -0000	[thread overview]
Message-ID: <Pine.BSF.4.44.0211121932150.65544-100000@dair.pair.com> (raw)
In-Reply-To: <20021112140205.GD31178@atrey.karlin.mff.cuni.cz>

On Tue, 12 Nov 2002, Jan Hubicka wrote:
> > On Mon, Nov 11, 2002 at 04:55:17AM -0500, Hans-Peter Nilsson wrote:
> > > ==5784== Conditional jump or move depends on uninitialised value(s)
> > > ==5784==    at 0x81EE503: get_attr_prefix_0f (insn-attrtab.c:23298)

> > Hmm.  This is probabably just one bug, in genattrtab, but genattrtab
> > is such a mess I don't know where to begin looking.
> It is probably bug in the machine description.
> We use type information to figure out how many arguments instruction
> have.
> In case it has fewer arugments, we access uninitialized memory that
> "usually works :)".  If you will just go to gdb and do "p debug_rtx (insn)"
> I think I can fix the bugs easilly.

Hum, as I said I was just soliciting feedback about whether this
feature would be useful at all, and would then rather get the
patch into shape to be applied so people can do this by
themselves.  But since you think it's useful and Zack dives into
reviewing the details, I guess it is, and it's time to shape up
the damn patch. :-)

It'll take a week to run regression tests, so I hope I can just
settle for a successful bootstrap & check without
--enable-checking=valgrind and a successful bootstrap with it.
Bootstrap hasn't even finished compiling the java libs.  Maybe I
can get a "discount", to just need --enable-languages=c.

Here's the insn in get_attr_prefix_0f for the first trigging call
when, with a suitable --save-temps, doing
valgrind  --num-callers=20 --gdb-attach=yes ./stage1/cc1
 -fpreprocessed libgcc2.i -quiet -dumpbase libgcc2.c
 -auxbase-strip /tmp/bb.s -g -O2 -W -Wall  -Wwrite-strings
 -Wstrict-prototypes -Wmissing-prototypes -version -fPIC -o /tmp/bb.s
(I can't seem to get useful debug info out of the bootstrapped
cc1, using gdb-5.2.1)

Please excuse the line-wrapping.

(jump_insn:HI 22 285 36 0x4176ba50 (set (pc)
        (if_then_else (lt (reg:CCGOC 17 flags)
                (const_int 0 [0x0]))
            (label_ref 295)
            (pc))) 509 {*jcc_1} (insn_list:REG_DEP_ANTI 268 (insn_list:REG_DEP_ANTI 263 (insn_list:REG_DEP_ANTI 264
(insn_list:REG_DEP_ANTI 5 (insn_list:REG_DEP_ANTI 208 (insn_list:REG_DEP_ANTI 209 (insn_list:REG_DEP_ANTI 284 (insn_list 285
(insn_list:REG_DEP_ANTI 267 (insn_list:REG_DEP_ANTI 269 (insn_list:REG_DEP_ANTI 270 (insn_list:REG_DEP_ANTI 271 (insn_list:REG_DEP_ANTI 265
(insn_list:REG_DEP_ANTI 266 (insn_list:REG_DEP_ANTI 226 (nil))))))))))))))))
    (expr_list:REG_DEAD (reg:CCGOC 17 flags)
        (expr_list:REG_BR_PROB (const_int 2100 [0x834])
            (nil))))

the same insn also trigs later, for a total of three
indications.

brgds, H-P

  reply	other threads:[~2002-11-13  1:11 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-10 17:35 Hans-Peter Nilsson
2002-11-10 19:34 ` Zack Weinberg
2002-11-11  1:55   ` Hans-Peter Nilsson
2002-11-11 16:53     ` Zack Weinberg
2002-11-11 17:48       ` Hans-Peter Nilsson
2002-11-12  6:02       ` Jan Hubicka
2002-11-12 17:11         ` Hans-Peter Nilsson [this message]
2002-11-12 17:21           ` Zack Weinberg
2002-11-13  5:32           ` Jan Hubicka
2002-11-13 13:38             ` Hans-Peter Nilsson
2002-11-18 17:20     ` Richard Henderson
2002-11-18 18:24       ` [RFA:] Take 2 (was: Re: RFC: --enable-checking=valgrind.) Hans-Peter Nilsson
2002-11-18 20:37         ` Richard Henderson
2002-11-20 11:57           ` Hans-Peter Nilsson
2002-11-18 22:12         ` Neil Booth
2002-11-19  4:37           ` Hans-Peter Nilsson
2002-11-18 22:33         ` Andreas Jaeger
2002-11-19  4:33           ` Hans-Peter Nilsson
2002-11-19  7:31             ` Andreas Jaeger
2002-11-19  9:07               ` Hans-Peter Nilsson
2002-11-19  9:15                 ` [RFA:] Take 2 Andreas Jaeger
2002-11-26  5:42         ` [PATCH] Fix configure (was Re: [RFA:] Take 2 (was: Re: RFC: --enable-checking=valgrind.)) Jakub Jelinek
2002-11-26  9:59           ` Richard Henderson
2002-11-28  7:34           ` Hans-Peter Nilsson
2002-11-28  8:08             ` Hans-Peter Nilsson

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=Pine.BSF.4.44.0211121932150.65544-100000@dair.pair.com \
    --to=hp@bitrange.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jh@suse.cz \
    --cc=zack@codesourcery.com \
    /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).