This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: No way to scan-tree-dump .i01.cgraph?
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Jeffrey A Law <law at redhat dot com>
- Cc: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>, gcc at gcc dot gnu dot org
- Date: Tue, 1 Mar 2005 10:25:37 -0800
- Subject: Re: No way to scan-tree-dump .i01.cgraph?
- References: <Pine.LNX.4.44.0502281702440.2297-100000@alwazn.tat.physik.uni-tuebingen.de> <1109611436.662.18.camel@localhost.localdomain>
On Mon, Feb 28, 2005 at 10:23:56AM -0700, Jeffrey A Law wrote:
> On Mon, 2005-02-28 at 17:08 +0100, Richard Guenther wrote:
> > Hi!
> >
> > It seems the current dg infrastructure does not support scanning
> > tree-dumps dumped via -fdump-ipa-XXX because they are labeled
> > differently. I worked around this by replacing
> >
> > set output_file "[glob [file tail $testcase].t??.[lindex $args 1]]"
> >
> > with
> >
> > set output_file "[glob [file tail $testcase].???.[lindex $args 1]]"
> >
> > but I'm not sure if this is the right way.
> It's as good as any. If you wanted to solve an even bigger problem,
> find a clean way that we can delete the bloody files. I got lost in
> the maze of tcl/expect code when I tried :(
I also find it annoying that the dump files aren't cleaned up. Should
the dump files for failing tests be left, or would it be OK to remove
all of them?
> > Also I need to do more complex matching like the number X in line
> > matching PATTERN should be the same as Y in line matching PATTERN2.
> > Is there a way to do this with dg? Or is it better to output
> > an extra line to the dump file during compile for the condition
> > I want to check?
> I'm not immediately aware of a way to do this. One of the major
> limitations of the framework is the inability to do anything other
> than scan for simple patterns and count how often the pattern
> occurs.
> jeff
Adding extra lines in dump files for use by tests seems good to me, as
long as there are comments in the code explaining what it's for so it
doesn't change.
Janis