1. 12 Sep, 2006 6 commits
  2. 22 Aug, 2006 1 commit
  3. 17 Aug, 2006 1 commit
    • jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. · 97c074fd
      gcc/java/ChangeLog
      	* jvspec.c (lang_specific_driver): Add -s-bc-abi when needed.
      libjava/ChangeLog
      	* configure, Makefile.in: Rebuilt.
      	* Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la.
      	(libgcj_bc_la_SOURCES): New variable.
      	(libgcj_bc_la_LDFLAGS): Likewise.
      	(libgcj_bc_la_LIBADD): Likewise.
      	(libgcj_bc_la_DEPENDENCIES): Likewise.
      	(libgcj_bc_la_LINK): Likewise.
      	(libgcj_bc_dummy_LINK): Likewise.
      	(libgcj_bc.la): New target.
      	(install-exec-hook): Likewise.
      	* libgcj.spec.in (*lib): Use LIBGCJ_SPEC.
      	* libgcj_bc.c: New file.
      	* configure.ac (LIBGCJ_SPEC): New subst.
      	* configure.host (use_libgcj_bc): New variable.
      
      Co-Authored-By: Bryce McKinlay <bryce@mckinlay.net.nz>
      
      From-SVN: r116204
      Jakub Jelinek committed
  4. 10 Aug, 2006 1 commit
    • re PR java/8923 (ICE when modifying a variable decleared "final static") · b576b3a7
      2006-08-10  Simon Martin  <simartin@users.sourceforge.net>
      
              PR java/8923
              * parse.y (build_incdec): Emit an error instead of an ICE if '++'
              or '--' is used with a constant operand.
              (java_complete_lhs): When processing a '++' or '--' expression,
              don't call java_complete_tree but java_complete_lhs, so that a
              static final variable operand is never replaced by its value. This
              avoids an ICE later on.
              (patch_unaryop): Fixed typo in comment.
      
      From-SVN: r116069
      Simon Martin committed
  5. 28 Jul, 2006 1 commit
  6. 14 Jul, 2006 1 commit
  7. 13 Jul, 2006 1 commit
  8. 04 Jul, 2006 1 commit
  9. 23 Jun, 2006 1 commit
    • java-tree.h (update_aliases): Remove · 6de5f432
      2006-06-21  Andrew Haley  <aph@redhat.com>
      
              * java-tree.h (update_aliases): Remove
              * expr.c (expand_iinc): Remove call to update_aliases().
              (STORE_INTERNAL): Likewise.
              * decl.c (update_aliases, initialize_local_variable) 
              (maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls.
      
      From-SVN: r114931
      Andrew Haley committed
  10. 19 Jun, 2006 1 commit
    • re PR java/1305 ([JSR133] GCJ ignores volatile modifier) · fe4e7c65
      2006-06-19  Andrew Haley  <aph@redhat.com>
      
              PR java/1305
              PR java/27908
              * expr.c (java_modify_addr_for_volatile): New function.
              (expand_java_field_op): Handle volatile fields.
              * java-gimplify.c (java_gimplify_component_ref): Call
              java_modify_addr_for_volatile to give the field_ref the correct
              volatile type.
              (java_gimplify_modify_expr): Likewise.
              * java-tree.h (java_modify_addr_for_volatile): New decl.
      
      From-SVN: r114778
      Andrew Haley committed
  11. 17 Jun, 2006 1 commit
  12. 16 Jun, 2006 1 commit
    • class.c (make_class_data): When using flag_indirect_classes, don't initialize… · e046c56e
      class.c (make_class_data): When using flag_indirect_classes, don't initialize the vtable of Class instances.
      
      2006-06-16  Andrew Haley  <aph@redhat.com>
      
              * class.c (make_class_data): When using flag_indirect_classes,
              don't initialize the vtable of Class instances.
      
      2006-06-16  Andrew Haley  <aph@redhat.com>
      
              * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
              copy the whole Class instance from the initializer: instead, copy
              everything but the first word (the vtable pointer).
              Change prototype to (const char* class_initializer).
              (_Jv_RegisterNewClasses): Change prototype to (const char**).
              * java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
              (const char**).
      
      From-SVN: r114714
      Andrew Haley committed
  13. 13 Jun, 2006 1 commit
    • re PR java/1305 ([JSR133] GCJ ignores volatile modifier) · 572f9e47
      2006-06-09  Andrew Haley  <aph@redhat.com>
      
              PR java/1305
              PR java/27908
              * builtins.c (initialize_builtins): Add __sync_synchronize().
              * class.c (add_field): Mark volatile fields.
              * java-gimplify.c (java_gimplify_expr): Call new functions to
              handle self-modifying exprs and COMPONENT_REFs.
              (java_gimplify_component_ref): New.
              (java_gimplify_modify_expr): Add handling for volatiles.
      
      From-SVN: r114609
      Andrew Haley committed
  14. 09 Jun, 2006 1 commit
  15. 08 Jun, 2006 1 commit
    • expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to get_symbol_table_index(). · 313ab5ee
      2006-06-08  Andrew Haley  <aph@redhat.com>
      
              * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to
              get_symbol_table_index().
              (maybe_rewrite_invocation): Set SPECIAL if we need to access a
              private method.
              (build_known_method_ref): New arg: special.  Pass it to
              get_symbol_table_index.
              (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of
              the method list.
              (build_invokevirtual): New arg: special.  Pass it to
              get_symbol_table_index.
              (expand_invoke): New variable: special.
              Pass it to maybe_rewrite_invocation().
              Pass it to build_known_method_ref().
              * class.c (build_symbol_entry): Add new arg: special.  Use it to
              build the symbol table conbstructor.
              (emit_symbol_table): Extract SPECIAL from the method list and pass
              it to build_symbol_entry().
              * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set
              special accordingly.
      
      From-SVN: r114487
      Andrew Haley committed
  16. 06 Jun, 2006 3 commits
  17. 31 May, 2006 1 commit
  18. 29 May, 2006 1 commit
  19. 28 May, 2006 1 commit
  20. 26 May, 2006 2 commits
  21. 24 May, 2006 4 commits
    • * java-tree.h: Fixed flag documentation. · 740dfbde
      From-SVN: r114047
      Tom Tromey committed
    • re PR libgcj/27729 (Field, Method and Constructor need isSynthetic() implemetation) · 5aca4c41
      gcc/java:
      	PR libgcj/27729:
      	* jcf.h (ACC_INVISIBLE): Changed value.
      libjava:
      	PR libgcj/27729:
      	* java/lang/reflect/natField.cc (getAddr): Added parens.
      	* java/lang/reflect/natConstructor.cc (getModifiersInternal):
      	Renamed.  Don't mask flags.
      	* java/lang/reflect/Constructor.java (CONSTRUCTOR_MODIFIERS): New
      	constant.
      	(getModifiersInternal): Renamed.
      	(getModifiers): Rewrote.
      	(isSynthetic, isVarArgs): New methods.
      	(hashCode): Rewrote.
      	(addTypeParameters, toGenericString): New methods.
      	(getTypeParameters): Rewrote.
      	(getSignature): New method.
      	(getGenericParameterTypes, getGenericExceptionTypes): Likewise.
      	* java/lang/reflect/natMethod.cc (getModifiersInternal):
      	Renamed.  Don't mask flags.
      	* java/lang/reflect/natField.cc (getModifiersInternal): Renamed.
      	Don't mask flags.
      	* java/lang/reflect/Modifier.java (BRIDGE, VARARGS, SYNTHETIC,
      	ENUM): New constants.
      	(INVISIBLE): Changed value.
      	* java/lang/reflect/Method.java: Mostly merged with Classpath.
      	(getModifiersInternal): Renamed.
      	(getModifiers): Rewrote.
      	(isBridge, isSynthetic, isVarArgs): New methods.
      	(toGenericString): Likewise.
      	(getTypeParameters): Likewise.
      	(getSignature): Likewise.
      	(getGenericExceptionTypes, getGenericParameterTypes,
      	getGenericReturnType): Likewise.
      	(METHOD_MODIFIERS): New constant.
      	* java/lang/reflect/Field.java: Mostly merged with Classpath.
      	Added javadoc everywhere.
      	(getModifiersInternal): Renamed.
      	(getModifiers, isSynthetic, isEnumConstant): Rewrote.
      	(toGenericString): New method.
      	(getGenericType, getSignature): Likewise.
      	(FIELD_MODIFIERS): New constant.
      
      From-SVN: r114046
      Tom Tromey committed
    • re PR java/27754 (Stack overflow in gcj) · cc07b2db
      2006-05-24  Andrew Haley  <aph@redhat.com>
      
              PR java/27754
              * decl.c (java_add_stmt): Use a STATEMENT_LIST rather than a
              COMPOUND_EXPR.
      
      From-SVN: r114043
      Andrew Haley committed
    • decl.c (java_add_stmt): Use a STATEMENT_LIST rather than a COMPOUND_EXPR. · 5eecfc4d
      2006-05-24  Andrew Haley  <aph@redhat.com>
      
              * decl.c (java_add_stmt): Use a STATEMENT_LIST rather than a
              COMPOUND_EXPR.
      
      From-SVN: r114042
      Andrew Haley committed
  22. 17 May, 2006 1 commit
    • Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o. · 8dc3f290
      gcc/
      
      2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
      	(gcc-options.o): New rule.
      
      	* optc-gen.awk: Protect variables for gcc-options.o with
      	#ifdef GCC_DRIVER/#endif.
      
      gcc/java/
      
      2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* lang.opt (femit-class-file): Remove VarExists.
      
      From-SVN: r113841
      H.J. Lu committed
  23. 16 May, 2006 2 commits
    • verify-impl.c (verify_instructions_0): Special case for Object.<init>. · 6420fb77
      	* verify-impl.c (verify_instructions_0) <op_return>: Special case
      	for Object.<init>.
      
      From-SVN: r113830
      Tom Tromey committed
    • re PR target/26885 (-m64 -m32 no longer creates 32-bit object) · 14c7833c
      gcc/
      
      2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR driver/26885
      	* Makefile.in (GCC_OBJS): New.
      	(OBJS-common): Add opts-common.o.
      	(xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
      	(cpp$(exeext)): Likewise.
      	(gcc.o): Also depend on opts.h.
      	(opts-common.o): New.
      
      	* common.opt (gcoff): Add Negative(gdwarf-2).
      	(gdwarf-2): Add Negative(gstabs).
      	(gstabs): Add Negative(gstabs+).
      	(gstabs+): Add Negative(gvms).
      	(gvms): Add Negative(gxcoff).
      	(gxcoff): Add Negative(gxcoff+).
      	(gxcoff+): Add Negative(gcoff).
      	* config/i386/i386.opt (m32): Add Negative(m64).
      	(m64): Add Negative(m32).
      
      	* doc/options.texi: Document the Negative option.
      
      	* gcc.c: Include "opts.h".
      	(main): Call prune_options after expandargv.
      
      	* optc-gen.awk: Generate common declarations for all flag
      	variables in options.c. Output the neg_index field.
      
      	* opts.c (find_opt): Moved to ...
      	* opts-common.c: Here. New file.
      
      	* opts.h (cl_option): Add a neg_index field.
      	(find_opt): New.
      	(prune_options): Likewise.
      
      gcc/cp/
      
      2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR driver/26885
      	* Make-lang.in (GXX_OBJS): Replace gcc.o with $(GCC_OBJS).
      
      gcc/fortran/
      
      2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR driver/26885
      	* Make-lang.in (GFORTRAN_D_OBJS): Replace gcc.o with
      	$(GCC_OBJS).
      
      gcc/java/
      
      2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR driver/26885
      	* Make-lang.in ($(GCJ)$(exeext)): Replace gcc.o with
      	$(GCC_OBJS).
      
      gcc/treelang/
      
      2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR driver/26885
      	* Make-lang.in (gtreelang$(exeext)): Replace gcc.o with
      	$(GCC_OBJS).
      
      From-SVN: r113824
      H.J. Lu committed
  24. 15 May, 2006 1 commit
    • Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H). · 05b44921
      gcc/ada/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
      	(ada/misc.o): Likewise.
      	(ada/utils.o): Likewise.
      
      gcc/cp/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (cp/decl.o): Add dependency on $(TARGET_H).
      	(cp/decl2.o): Likewise.
      	(cp/typeck.o): Likewise.
      	(cp/cvt.o): Likewise.
      	(cp/parser.o): Likewise.
      	(cp/call.o): Replace target.h with $(TARGET_H).
      
      gcc/fortran/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (fortran/options.o): Depend on $(TARGET_H).
      
      gcc/java/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (java/decl.o): Add dependency on $(TARGET_H).
      	(java/expr.o): Replace target.h with $(TARGET_H).
      	(java/parse.o): Likewise.
      
      gcc/objcp/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (objcp/objcp-decl.o): Add dependency on
      	$(TARGET_H).
      
      gcc/treelang/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (treelang/treetree.o): Add dependency on
      	$(TARGET_H).
      
      From-SVN: r113773
      H.J. Lu committed
  25. 10 May, 2006 1 commit
  26. 05 May, 2006 1 commit
  27. 04 May, 2006 2 commits
    • * java-tree.def (THIS_EXPR): Now a tcc_expression. · 532f41fa
      From-SVN: r113542
      Tom Tromey committed
    • [multiple changes] · b2ed63b4
      2006-05-04  Andrew Haley  <aph@redhat.com>
      
              * class.c (make_field_value): Always build_address_of fdecl if
              there is an initializer.
      
      2006-05-03  Andrew Haley  <aph@redhat.com>
      
              PR libgcj/27352
              * expr.c (maybe_rewrite_invocation): New function.
              (rewrite_arglist_getclass): Likewise.
              (rules): New.
              (expand_invoke): Call maybe_rewrite_invocation.
              * parse.y (patch_invoke): Likewise.
              * java-tree.h: (maybe_rewrite_invocation): New function.
      
      2006-05-03  Andrew Haley  <aph@redhat.com>
      
              PR libgcj/27352
              * java/lang/Class.java (getClassLoader(Class)): New.
              forName(String, Class): New.
              * java/lang/natClass.cc (getClassLoader(Class)): New.
      
      2006-05-02  Andrew Haley  <aph@redhat.com>
      
              * prims.cc (_Jv_NewMultiArray): Check for phantom class.
      
      From-SVN: r113532
      Andrew Haley committed