From: Zack Weinberg <zack@codesourcery.com>
To: Hans-Peter Nilsson <hp@bitrange.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: RFC: --enable-checking=valgrind.
Date: Mon, 11 Nov 2002 16:53:00 -0000 [thread overview]
Message-ID: <20021112003426.GC2975@egil.codesourcery.com> (raw)
In-Reply-To: <Pine.BSF.4.44.0211110444040.27388-100000@dair.pair.com>
On Mon, Nov 11, 2002 at 04:55:17AM -0500, Hans-Peter Nilsson wrote:
> > I bet many of those indications will go away if you add annotations to
> > cppfiles.c so that it knows what's going on with mmap().
>
> Oh right, that cute mmap trick... With this updated patch, the
> "many-many" indications from cppfiles are replaced by "many",
> for example the following first one.
...
> ==5784== Conditional jump or move depends on uninitialised value(s)
> ==5784== at 0x81EE503: get_attr_prefix_0f (insn-attrtab.c:23298)
> ==5784== by 0x81C536E: insn_default_length (insn-attrtab.c:594)
> ==5784== by 0x817160F: shorten_branches (/home/hp/cvs_areas/gcc/cvs_write/egcs/gcc/final.c:1334)
> ==5784== by 0x836F421: rest_of_compilation (/home/hp/cvs_areas/gcc/cvs_write/egcs/gcc/toplev.c:3546)
> ==5784==
Hmm. This is probabably just one bug, in genattrtab, but genattrtab
is such a mess I don't know where to begin looking.
What's on line 23298 of insn-attrtab.c?
> I don't know what causes that "Line number overflow detected"
> message, but perhaps old binutils.
The stabs debug format has a limit of 65535 lines in a single
translation unit; the x86 insn-recog.c is 54827 lines before #include
processing, presumably the headers push it over the edge. DWARF can
handle this, or we can talk about ways to shrink it.
> * cppfiles.c (read_include_file) [ENABLE_VALGRIND]: When doing the
> mmap+1 trick, annotate the byte after the mmap:ed area as readable.
I think you also need to clear the annotation again when the map is
deallocated, or that one byte might continue to be considered
readable. Probably want to hang onto the region ID, too.
zw
next prev parent reply other threads:[~2002-11-12 0:53 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 [this message]
2002-11-11 17:48 ` Hans-Peter Nilsson
2002-11-12 6:02 ` Jan Hubicka
2002-11-12 17:11 ` Hans-Peter Nilsson
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=20021112003426.GC2975@egil.codesourcery.com \
--to=zack@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hp@bitrange.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).