public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFC] Fix PR38892: "--enable-libgcj-debug" breaks bootstrap.
@ 2009-04-22 19:14 Dave Korn
  2009-04-22 22:51 ` Tom Tromey
  0 siblings, 1 reply; 11+ messages in thread
From: Dave Korn @ 2009-04-22 19:14 UTC (permalink / raw)
  To: java-patches

[ Not subbed, please CC me on replies. ]

    Hello Java team,

  This is the second point at which bootstrap fails for me with libgcj
debug-enabled:

In file included from /gnu/gcc/gcc/libjava/gnu/classpath/natConfiguration.cc:17:
/gnu/gcc/gcc/libjava/gnu/classpath/Configuration.h:32: error: expected
unqualified-id before numeric constant
make[3]: *** [gnu/classpath/natConfiguration.lo] Error 1

  If you look at the relevant source:

    21  class gnu::classpath::Configuration : public ::java::lang::Object
    22  {
    23
    24    Configuration();
    25    static ::java::lang::String * classpath_home();
    26    static jboolean debug();
    27    static ::java::lang::String * toolkit();
    28    static ::java::lang::String * ecj();
    29  public:
    30    static ::java::lang::String * CLASSPATH_HOME;
    31    static ::java::lang::String * CLASSPATH_VERSION;
    32    static jboolean DEBUG;

... you can probably guess immediately what went wrong:

  8592    static jboolean 1;

owing to a "#define DEBUG 1" in include/config.h, autogenerated by configure.

  So there's a preprocessor macro DEBUG that is tested by #ifdefs in
classpath/native and the toplevel intepret*.cc files, and there are a number
of these DEBUG member vars scattered through the java sources.

  One solution that occurred to me was to rename the preprocesser macro to
(e.g.) "__GCJ_DEBUG" throughout.

  Another solution that occurred to me was to rename the java class members to
(e.g.) "JDEBUG" throughout.

  What would the maintainers prefer?  Either, both, or perhaps some other option?

    cheers,
      DaveK

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-04-28  4:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-22 19:14 [RFC] Fix PR38892: "--enable-libgcj-debug" breaks bootstrap Dave Korn
2009-04-22 22:51 ` Tom Tromey
2009-04-22 22:53   ` Dave Korn
2009-04-22 23:02   ` Dave Korn
2009-04-23  1:05     ` Tom Tromey
2009-04-23  2:33       ` Dave Korn
2009-04-26  0:18         ` Tom Tromey
2009-04-26  1:00           ` Dave Korn
2009-04-27 12:22             ` Dave Korn
2009-04-27 22:12               ` Tom Tromey
2009-04-28  4:04                 ` Dave Korn

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).