Skip to content
Snippets Groups Projects
  1. Aug 20, 1999
  2. Aug 19, 1999
    • Tom Tromey's avatar
      natThread.cc (class locker): New class. · bd30fa53
      Tom Tromey authored
      	* java/lang/natThread.cc (class locker): New class.
      	(join): Use a locker around _Jv_CondWait.
      	(sleep): Likewise.
      
      From-SVN: r28770
      bd30fa53
    • Zack Weinberg's avatar
      rtl.def (NOTE): Change format to "iuu0n". · 8f985ec4
      Zack Weinberg authored
      1999-08-19 14:44 -0700  Zack Weinberg  <zack@bitmover.com>
      
      	* rtl.def (NOTE): Change format to "iuu0n".
      	(ADDR_DIFF_VEC): Change format to "eEee0".
      	(ADDRESSOF): Change format to "eit".
      
      	* rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
      	(RTVEC_ELT): Change to match.
      	(XVECEXP): Use XVEC and RTVEC_ELT.
      	(INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
      	ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
      	(PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
      	CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
      	TRAP_CONDITION, TRAP_CODE): Use XEXP.
      	(INTVAL): Use XWINT.
      	(ADDRESSOF_DECL): Use XTREE.
      	(SET_ADDRESSOF_DECL): Delete.
      	(NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
      	NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill.  These have been
      	ifdefed out since 2.6 at least.
      	(gen_rtvec_vv): Delete prototype.
      
      	* rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
      	not rtunion.
      	(copy_most_rtx): Handle 't' format letter.
      	* emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
      	(gen_rtvec_vv): Delete function.  All callers changed to use
      	gen_rtvec_v instead.
      	* print-rtl.c (print_rtx): Move special casing of NOTEs to
      	the '0' format letter.
      
      	* function.c (gen_mem_addressof): Don't use
      	SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
      	instead.
      	* integrate.c (copy_rtx_and_substitute): Likewise.
      	Copy 't' slots with XTREE.
      	(subst_constants): Treat 't' slots like '[swi]' slots.
      	* cse.c (canon_hash, exp_equiv_p): Treat 't' slots like	'0' slots.
      	* jump.c (rtx_equal_for_thread_p): Likewise.
      	* rtlanal.c (rtx_equal_p): Likewise.
      	* stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
      	only four arguments.
      	* gengenrtl.c (type_from_format): Provide correct types for
      	'b' and 't' slots.
      
      
      	* tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
      	If a recent gcc is in use (always in stage2 and beyond), use
      	statement expressions, so we don't make a function call unless
      	the check fails.  Evaluate arguments exactly once.
      	(CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
      	TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
      	Delete.
      	(CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
      	they evaluate their arguments exactly once, irrespective of
      	the compiler in use.
      
      	* tree.c [ENABLE_CHECKING]: Define whichever set of functions
      	is used by the currently-enabled check macros.  This is:
      	(tree_check_failed, tree_class_check_failed): For gcc.
      	(tree_check, tree_class_check, cst_or_constructor_check,
      	expr_check): For other compilers.
      
      	* gencheck.c: Do not define any *_CHECK1 macros.
      
      From-SVN: r28769
      8f985ec4
    • Mike Stump's avatar
      c-common.c (c_get_alias_set): Fix support for poitners and references. · 02af3af6
      Mike Stump authored
      
      	* c-common.c (c_get_alias_set): Fix support for poitners and
      	references.
      
      Co-Authored-By: default avatarMark Mitchell <mark@codesourcery.com>
      
      From-SVN: r28768
      02af3af6
    • Jason Merrill's avatar
      cp-tree.h: Declare flag_use_repository. · 2aaf816d
      Jason Merrill authored
      	* cp-tree.h: Declare flag_use_repository.
      	* pt.c (do_decl_instantiation): Don't complain about duplicate
      	instantiation with -frepo.
      	(do_type_instantiation): Likewise.
      
      	* pt.c (push_template_decl_real): Complain about everything
      	that isn't a valid template.
      
      	* decl2.c (import_export_decl): If -fnew-abi, class linkage doesn't
      	affect inlines.
      
      From-SVN: r28767
      2aaf816d
    • Jason Merrill's avatar
      new · 607eef6e
      Jason Merrill authored
      From-SVN: r28766
      607eef6e
    • Alexandre Petit-Bianco's avatar
      re GNATS gcj/17 (Internal error: segfault on import-classname clash) · 79d13333
      Alexandre Petit-Bianco authored
      Thu Aug 19 10:26:18 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
              * parse.y (method_header): Return a null pointer if the current
              class node is null.
              (finish_method_declaration): Return if the current function decl
              is null.
              (source_start_java_method): Likewise.
              (java_method_add_stmt): Likewise.
      
      This fixes the net PR #17.
      
      From-SVN: r28765
      79d13333
    • Jason Merrill's avatar
      new · 852be00c
      Jason Merrill authored
      From-SVN: r28764
      852be00c
    • Jason Merrill's avatar
      tweak · b736d716
      Jason Merrill authored
      From-SVN: r28763
      b736d716
    • John Wehle's avatar
      alias.c: Include tree.h. · 7790df19
      John Wehle authored
      	* alias.c: Include tree.h.
      	(nonlocal_reference_p, mark_constant_function): New functions.
      	* flow.c (life_analysis): Call mark_constant_function.
      	* rtl.h (mark_constant_function): Declare it.
      
      From-SVN: r28762
      7790df19
    • Nick Clifton's avatar
      Fix test for unrecognisable switches. · 4406229e
      Nick Clifton authored
      From-SVN: r28761
      4406229e
    • Mark Mitchell's avatar
      cp-tree.def (PSEUDO_DTOR_EXPR): New tree code. · 40242ccf
      Mark Mitchell authored
      	* cp-tree.def (PSEUDO_DTOR_EXPR): New tree code.
      	* decl2.c (build_expr_from_tree): Handle it.
      	* error.c (dump_expr): Likewise.
      	* pt.c (for_each_template_parm): Likewise.
      	(tsubst_copy): Likewise.
      	* tree.c (search_tree): Likewise.
      	* semantics.c (finish_pseudo_destructor_call): Create it.
      
      From-SVN: r28760
      40242ccf
    • Jeff Law's avatar
      Daily bump. · 4c44366a
      Jeff Law authored
      From-SVN: r28759
      4c44366a
    • Alexandre Petit-Bianco's avatar
      [multiple changes] · 5cbdba64
      Alexandre Petit-Bianco authored
      Wed Aug 18 13:17:15 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
      	* class.c (emit_register_class): Removed unnecessary call to
       	start_sequence.
      	* parse.y (labeled_block_contains_loop_p): Removed unused local
       	variable.
      
      Tue Aug 17 22:51:44 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
              * parse.y (java_refold): Added prototype.
      
      Tue Aug 17 21:48:41 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
              * parse.y (BINOP_COMPOUND_CANDIDATES): New macro.
              (java_stabilize_reference): Removed unnecessary `else'.
              (java_complete_lhs): Set flag to remember boolean. Call
              java_refold. Added comments.
              (java_decl_equiv): New function.
              (binop_compound_p): Likewise.
              (java_refold): Likewise.
              (patch_unaryop): Striped static field access assigned to decl and
              op. Changed promotion scheme for ++/-- operators.
              (search_loop): New function.
              (labeled_block_contains_loop_p): Likewise.
              (patch_loop_statement): Call labeled_block_contains_loop_p. Added
              comment.
              (patch_bc_statement): Call search_loop. Fixed comment.
      
      Mostly bug fixes in some forms of compound expressions and
      break/continue target lookup.
      
      From-SVN: r28758
      5cbdba64
  3. Aug 18, 1999
    • J"orn Rennecke's avatar
      loop.c (recombine_givs): Set ix field after sorting. · 0aa487d5
      J"orn Rennecke authored
      	* loop.c (recombine_givs): Set ix field after sorting.
      	(recombine_givs): Remove bogus index / giv lockstep looping.
      
      From-SVN: r28757
      0aa487d5
    • Mark Mitchell's avatar
      search.c (setup_class_bindings): Robustify. · dfe2b0b3
      Mark Mitchell authored
      	* search.c (setup_class_bindings): Robustify.
      	* typeck.c (common_type): Use same_type_p, not pointer equality,
      	to compare types.
      
      From-SVN: r28756
      dfe2b0b3
    • Mark Mitchell's avatar
      cp-tree.h (build_lang_field_decl): Remove. · 4ce3d537
      Mark Mitchell authored
              * cp-tree.h (build_lang_field_decl): Remove.
      	* class.c (build_vtable): Replace calls to build_lang_field_decl
      	with build_lang_decl.
      	(prepare_fresh_vtable): Likewise.
      	(finish_struct_1): Likewise.
      	(init_class_processing): Likewise.
      	* decl.c (push_using_decl): Likewise.
      	(init_decl_processsing): Likewise.
      	(grokvardecl): Likewise.
      	(build_ptrmemfunc_type): Likewise.
      	(grokdeclarator): Likewise.
      	(build_enumerator): Likewise.
      	* decl2.c (grok_x_components): Likewise.
      	(do_class_using_decl): Likewise.
      	* except.c (call_eh_info): Likewise.
      	* init.c (init_init_processing): Likewise.
      	* rtti.c (expand_class_decl): Likewise.
      	* tree.c (build_base_fields): Likewise.
      	(build_vbase_pointer_fields): Likewise.
      	* lex.c (build_lang_decl): Build declarations on the permanent
      	obstack if we're building statmeent trees.
      	(retrofit_lang_decl): Handle both the full lang_decl and also the
      	smaller lang_decl_flags here.
      	(build_lang_field_decl): Remove.
      	* pt.c (push_template_decl_real): Issue errors for variable
      	declarations that are not static members.
      
      From-SVN: r28755
      4ce3d537
    • Richard Henderson's avatar
      tree.c (search_tree): Handle TRUTH_{AND,OR,XOR}_EXPR too. · 88049523
      Richard Henderson authored
              * tree.c (search_tree): Handle TRUTH_{AND,OR,XOR}_EXPR too.
              (mapcar): Likewise.
      
      From-SVN: r28754
      88049523
    • Tom Tromey's avatar
      ThreadGroup.java: Fixed now-erroneous comment. · 5a0eb832
      Tom Tromey authored
      	* java/lang/ThreadGroup.java: Fixed now-erroneous comment.
      	* java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
      
      From-SVN: r28753
      5a0eb832
    • Bernd Schmidt's avatar
      Combined compare & jump infrastructure · b30f05db
      Bernd Schmidt authored
      From-SVN: r28752
      b30f05db
    • Bernd Schmidt's avatar
      Indentation fixes · 9bb21998
      Bernd Schmidt authored
      From-SVN: r28751
      9bb21998
    • Bernd Schmidt's avatar
      Make insn-recog.c include function.h · 3648099b
      Bernd Schmidt authored
      From-SVN: r28750
      3648099b
    • Tom Tromey's avatar
      * include/javaprims.h ("Java"): Regenerated namespace decls. · 4c9d8fa8
      Tom Tromey authored
      From-SVN: r28749
      4c9d8fa8
    • Kresten Krab Thorup's avatar
      natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed from _Jv_InternClassStrings. · eb4534a6
      Kresten Krab Thorup authored
      	* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
      	from _Jv_InternClassStrings.
      
      	* prims.cc (_Jv_RunMain): New function.
      	(JvRunMain): Remove gij-support.
      
      	* gij.cc (main): Use _Jv_RunMain.
      
      	* java/util/zip/ZipFile.java: Call readDirectory in constructor.
      
      	* interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
      	argument in temp variable.
      	(continue1): For all op_x2y insns, use temp variable for
      	intermediate value.  Also remove some comments.
      
      	* java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
      	(forName): Don't call _Jv_InitClass.
      
      	* java/lang/Class.java (getResource,getResourceAsStream): Implement.
      
      	* java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
      
      	* java/util/jar/JarInputStream.java: New file.
      
      	* java/util/jar/JarEntry.java: New file.
      
      	* java/util/jar/JarFile.java: New file.
      
      	* java/net/URLClassLoader.java: New file.
      
      	* java/net/JarURLConnection.java: New file.
      
      	* gnu/gcj/protocol/jar/Handler.java: New file.
      
      	* gnu/gcj/protocol/jar/Connection.java: New file.
      
      	* java/security/SecureClassLoader.java: New file.
      
      	* java/lang/ClassLoader.java (parent): New variable.
      	(ClassLoader (ClassLoader)): new constructor.
      	(findClass): New method.
      	(loadClass): Add default 1.2 implementation.
      	(getSystemResourceAsBytes, getResourceAsBytes): Removed.
      	(readfully): Removed.
      
      	* gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
      	(findSystemClass): New method.
      	(VMClassLoader): Constructor rewritten.
      	(init): New method.
      	All other methods removed.
      
      	* java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
      	to gnu::gcj::runtime::VMClassLoader.
      	(_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
      	class entries.
      	(VMClassLoader::findSystemClass): renamed from findBootClass.
      
      	* Makefile.am: Add new files.
      	(FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
      
      	* Makefile.in: Rebuilt.
      
      From-SVN: r28748
      eb4534a6
    • Geoff Keating's avatar
      cse.c (cse_insn): Call never_reached_warning when a jump is changed to be unconditional. · 312f6255
      Geoff Keating authored
      * cse.c (cse_insn): Call never_reached_warning when a jump is
      changed to be unconditional.
      * flags.h: Declare warn_notreached.
      * flow.c (delete_block): Call never_reached_warning when
      a block is deleted.
      * jump.c (delete_barrier_successors): Call never_reached_warning
      when we delete everything after a BARRIER.
      (never_reached_warning): New function.
      * rtl.h: Declare never_reached_warning.
      * toplev.c (warn_notreached): New variable.
      (lang_independent_options): Set warn_notreached
      when -Wunreachable-code.
      (compile_file): We need line numbers for -Wunreachable-code.
      
      Also modify documentation to suit.
      
      From-SVN: r28747
      312f6255
    • Jeff Law's avatar
      Daily bump. · 075ff1b2
      Jeff Law authored
      From-SVN: r28745
      075ff1b2
    • Jan Hubicka's avatar
      Jan Hubicka <hubicka@freesoft.cz> · 77f3d48a
      Jan Hubicka authored
              * haifa-sched.c (insn_unit): Fix typo on out of range test.
              * sched.c (insn_unit): Likewise.
      
      From-SVN: r28744
      77f3d48a
    • Andreas Schwab's avatar
      * combine.c (distribute_notes): Handle REG_EH_RETHROW. · 0e403ec3
      Andreas Schwab authored
      From-SVN: r28743
      0e403ec3
    • Tom Tromey's avatar
      natThread.cc (sleep): Turn 0 millis and 0 nanos into 1 nano. · 212f5d30
      Tom Tromey authored
      	* java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
      	nano.
      	* include/quick-threads.h (_Jv_CondWait): Don't round to 0
      	inappropriately.
      
      From-SVN: r28742
      212f5d30
  4. Aug 17, 1999
    • Mark Mitchell's avatar
      cp-tree.h (back_end_hook): New variable. · 1b12a13e
      Mark Mitchell authored
      	* cp-tree.h (back_end_hook): New variable.
      	* decl2.c (back_end_hook): Define it.
      	(finish_file): If it's non-NULL, call it.
      
      From-SVN: r28741
      1b12a13e
    • Rainer Orth's avatar
      gc_priv.h: Merged IRIX thread changes from include/private/gc_priv.h. · 47359a8e
      Rainer Orth authored
      Tue Aug 10 00:08:29 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
      
      	* gc_priv.h: Merged IRIX thread changes from
      	include/private/gc_priv.h.
      
      From-SVN: r28740
      47359a8e
    • Mark Mitchell's avatar
      decl.c (add_decl_to_level): New function. · cfe507be
      Mark Mitchell authored
      	* decl.c (add_decl_to_level): New function.
      	(push_local_binding): Use it.
      	(find_binding): Fix typo in comment.
      	(pushdecl): Use add_decl_to_level.  Put templates on the
      	corresponding namespace-scope binding levels.
      	* dump.c (dequeue_and_dump): Print the specializations of a
      	template.
      	* pt.c (push_template_decl_real): Don't push a template multiple
      	times.
      
      From-SVN: r28738
      cfe507be
    • Tom Tromey's avatar
      From Bryce McKinlay: · db4b04f1
      Tom Tromey authored
      	* libjava.lang/Array_2.java: New file.
      	* libjava.lang/Array_2.out: New file.
      
      From-SVN: r28737
      db4b04f1
    • Andrew MacLeod's avatar
      flow.c (create_edge_list): Use xmalloc, not malloc. · 57ad4479
      Andrew MacLeod authored
      Tue Aug 17 17:39:43 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>
      
      	* flow.c (create_edge_list): Use xmalloc, not malloc.
      
      From-SVN: r28736
      57ad4479
    • Loren J. Rittle's avatar
      Do not trash single-line C-style comments · c78896f0
      Loren J. Rittle authored
      From-SVN: r28735
      c78896f0
    • Jeff Law's avatar
      Daily bump. · 6baa5e29
      Jeff Law authored
      From-SVN: r28734
      6baa5e29
    • Mark Mitchell's avatar
      cp-tree.h (CALL_DECLARATOR_PARMS): New macro. · 43f887f9
      Mark Mitchell authored
      	* cp-tree.h (CALL_DECLARATOR_PARMS): New macro.
      	(CALL_DECLARATOR_QUALS): Likewise.
      	(CALL_DECARATOR_EXCEPTION_SPEC): Likewise.
      	* decl.c (grokdeclarator): Adjust to use them.
      	* decl2.c (grokfield): Likewise.
      	(reparse_absdcl_as_casts): Likewise.
      	* lex.c (make_call_declarator): Likewise.
      	(set_quals_and_spec): Likewise.
      	* pt.c (tsubst): Likewise.
      	* tree.c (mapcar): Remove special hack to handle third operand of
      	a CALL_EXPR.
      
      From-SVN: r28733
      43f887f9
  5. Aug 16, 1999
    • Andrew MacLeod's avatar
      basic-block.h (struct edge_list): Stucture to maintain a vector of edges. · 410538ea
      Andrew MacLeod authored
      	* basic-block.h (struct edge_list): Stucture to maintain a vector
      	of edges.
      	(EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
      	 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
      	(create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
      	New function prototypes.
      	* flow.c (create_edge_list): Function to create an edge list.
      	(free_edge_list): Discards memory used by an edge list.
      	(print_edge_list): Debug output showing an edge list.
      	(verify_edge_list): Internal consistency check for an edge list.
      
      From-SVN: r28732
      410538ea
    • Mark Mitchell's avatar
      cp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro. · b0d06515
      Mark Mitchell authored
      	* cp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro.
      	* class.c (build_vtable): Use build_lang_field_decl to build the
      	VAR_DECLs for vtables.
      	(prepare_fresh_vtable): Likewise.
      	* decl.c (duplicate_decls): Only copy DECL_SAVED_TREE if
      	CAN_HAVE_FULL_LANG_DECL_P.
      	(push_using_decl): Use build_lang_decl to build USING_DECLs.
      	(grokdeclarator): Use build_lang_decl to build TYPE_DECLs.
      	* lex.c (retrofit_lang_decl): Check CAN_HAVE_FULL_LANG_DECL_P.
      	(build_lang_field_decl): Likewise.
      	(copy_lang_decl): Use CAN_HAVE_FULLLANG_DECL_P to decide how much
      	to copy.
      
      From-SVN: r28731
      b0d06515
    • Gavin Romig-Koch's avatar
      make me the mips maintainer, fix my name · 58e78708
      Gavin Romig-Koch authored
      From-SVN: r28730
      58e78708
Loading