This is the mail archive of the gcc-bugs@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]

Re: Java bootstrap failure for libjava/java/io/FilePermission.java


Graham Stott wrote:

> > Yes, I got this too. It appears to be related to:
> >
> > 2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
> >
> >  * stmt.c (estimate_case_costs): Use integer_minus_one_node.
> >
> >  * tree.c (build_common_tree_nodes_2): Set integer_minus_one_node.
> >
> >  * tree.h (tree_index): Add new element TI_INTEGER_MINUS_ONE.
> >  (integer_minus_one_node): Define.
>
> At a guess could we now have exceed 256 different tree nodes?
>
> If we have then this bit of code from java/lang.c is now
> broken because we will trample past the end of the arrays.

Actually, I think its because the Java front end never calls
build_common_tree_nodes{_2}. I'm investigating whether we can have it call
these instead of duplicating much of the code in its
init_decl_processing(). Otherwise init_decl_processing needs to be updated
every time someone needs to add a new global node.

The quick fix would be to add:

integer_minus_one_node = build_int_2 (-1, -1);

to init_decl_processing.

regards

  [ bryce ]



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