This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ipa-pure-const ignores volatile cast (PR middle-end/23584)


On 8/27/05, Richard Henderson <rth@redhat.com> wrote:
> On Fri, Aug 26, 2005 at 03:59:58PM -0700, Josh Conner wrote:
> > I'd still like to hear opinions on making the tree-dump test
> > functions support ipa dumps, too, so I can add a test for this PR.
> > Anyone?
> 
> Please.

f.i. by something like the following (untested, more places need to be
fixed):

Index: lib/scantree.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/scantree.exp,v
retrieving revision 1.4
diff -u -c -3 -p -r1.4 scantree.exp
*** lib/scantree.exp    25 Jun 2005 01:45:24 -0000      1.4
--- lib/scantree.exp    28 Aug 2005 07:57:58 -0000
*************** proc scan-tree-dump { args } {
*** 50,56 ****

      # This must match the rule in gcc-dg.exp.
      set src [file tail [lindex $testcase 0]]
!     set output_file "[glob $src.t??.[lindex $args 1]]"

      set fd [open $output_file r]
      set text [read $fd]
--- 50,56 ----

      # This must match the rule in gcc-dg.exp.
      set src [file tail [lindex $testcase 0]]
!     set output_file "[glob $src.???.[lindex $args 1]]"

      set fd [open $output_file r]
      set text [read $fd]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]