This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: [tree-ssa] diagnosing switch errors


On Thu, 30 Oct 2003 10:05:14 -0800, Richard Henderson <rth@twiddle.net> wrote:

> So I'm looking at where I should move the bits from stmt.c that
> are intended to handle -Wswitch-default, -Wswitch-enum and the
> like.  It'd be nice to do this somewhere that could be reused by
> all front ends.

Conceptually, I agree that these diagnostics should happen in the front
end.  But it seems infeasible to share that functionality between the
various front ends, so I think it needs to happen later.

The gimplifier is certainly no less appropriate a place for diagnostics
than the expander.  I think it probably makes sense to give these warnings
while lowering the switches.

Jason


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