[PATCH] Add scan-ipa-dump functionality

Josh Conner jconner@apple.com
Tue Aug 30 15:33:00 GMT 2005


The attached patch adds scan-ipa-dump functionality to the dejaGNU  
tests, in a manner similar to the scan-tree-dump routines.

Instead of duplicating the scan-tree code in its entirety, this patch  
pulls the common functionality into generic scan-dump routines that  
are invoked by the scan-{tree,ipa}-dump routines.

This work was motivated by a desire to have a way to test PR23584  
(see some discussion of this in the thread starting here: http:// 
gcc.gnu.org/ml/gcc-patches/2005-08/msg01598.html).

To make things consistent, I also pulled the common functionality out  
of cleanup-{rtl,ipa,tree}-dump into a new cleanup-dump routine.

Tested on arm-none-elf, powerpc-apple-darwin8.2.0 (c, c++, and objc),  
and i686-pc-linux-gnu with no change in test results.

OK for mainline?

- Josh

2005-08-30  Josh Conner  <jconner@apple.com>

         * gcc-dg.exp: Load scanipa.exp.
         (cleanup-dump): New procedure.
         (cleanup-rtl-dump, cleanup-tree-dump, cleanup-ipa-dump): Use  
it.
         * scandump.exp: New file.
         * scantree.exp: Use it.
         * scanipa.exp: New file.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: scan-dump.patch
Type: application/octet-stream
Size: 28255 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050830/6c40b9ba/attachment.obj>
-------------- next part --------------



More information about the Gcc-patches mailing list