* [gcjx] Patch: FYI: keep going on error
@ 2005-12-02 21:34 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2005-12-02 21:34 UTC (permalink / raw)
To: Java Patch List
I'm checking this in on the gcjx branch.
This lets the compiler keep going even if there is an error.
In particular it will analyze other classes.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* compiler.cc (semantic_analysis): Keep going on failure.
(do_analyze_unit): Likewise.
Index: compiler.cc
===================================================================
--- compiler.cc (revision 107604)
+++ compiler.cc (working copy)
@@ -300,7 +300,7 @@
need_class_method_bodies = false;
for (std::list<ref_unit>::const_iterator i = code_generation_units.begin ();
- ok && i != code_generation_units.end ();
+ i != code_generation_units.end ();
++i)
// Note that we do this single-threaded, as we don't have support
// for MT semantic analysis.
@@ -626,10 +626,9 @@
std::cout << " [analyzing " << unit->get_file_name () << "]"
<< std::endl;
- // fixme is this inefficient? look up the idiom
std::list<ref_class> types = unit->get_types ();
for (std::list<ref_class>::const_iterator j = types.begin ();
- ok && j != types.end ();
+ j != types.end ();
++j)
{
try
@@ -648,7 +647,7 @@
{
exc.set_lexer (unit->get_lexer ());
std::cerr << exc;
- ok = false;
+ break;
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-02 21:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-02 21:34 [gcjx] Patch: FYI: keep going on error Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).