This is the mail archive of the 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] Cleanup tree-ssa-uninit.c exports

On Thu, Sep 12, 2013 at 3:53 PM, Andrew MacLeod <> wrote:
> It turns out that ssa_undefined_value_p() is also used in tree-complex.c and
> tree-ssa-pre.c.  doh.
> That routine is *almost* pass independent...  only the last line uses
> 'possibly_undefined_names'.  Since the late warning pass initializes and
> then clears that pointer_set when done, those other 2 passes obviously don't
> need that part.
> So I moved the majority of  ssa_undefined_value_p() to tree-ssa.c and added
> a new local routine  'has_undefined_value_p()' to tree-ssa-uninit.c.   It
> first calls ssa_undefined_value_p() and then does the pass dependent check.
> I also moved the early warning pass stuff from tree-ssa.c into
> tree-ssa-uninit.c where it belongs.
> Now there is nothing exported from tree-ssa-uninit.c, and the one pass
> independent routine is now in tree-ssa.[ch].
> Bootstrapped on x86_64-unknown-linux-gnu.  regression  testing underway.
> Assuming no regressions, OK?



> Andrew

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