- Aug 20, 1999
-
-
Zack Weinberg authored
1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com> * tree.c (expr_check): Fix typo in last change. From-SVN: r28773
-
- Aug 19, 1999
-
-
Tom Tromey authored
* java/lang/natThread.cc (class locker): New class. (join): Use a locker around _Jv_CondWait. (sleep): Likewise. From-SVN: r28770
-
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
-
Mike Stump authored
* c-common.c (c_get_alias_set): Fix support for poitners and references. Co-Authored-By:
Mark Mitchell <mark@codesourcery.com> From-SVN: r28768
-
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
-
Jason Merrill authored
From-SVN: r28766
-
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
-
Jason Merrill authored
From-SVN: r28764
-
Jason Merrill authored
From-SVN: r28763
-
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
-
Nick Clifton authored
From-SVN: r28761
-
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
-
Jeff Law authored
From-SVN: r28759
-
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
-
- Aug 18, 1999
-
-
J"orn Rennecke authored
* loop.c (recombine_givs): Set ix field after sorting. (recombine_givs): Remove bogus index / giv lockstep looping. From-SVN: r28757
-
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
-
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
-
Richard Henderson authored
* tree.c (search_tree): Handle TRUTH_{AND,OR,XOR}_EXPR too. (mapcar): Likewise. From-SVN: r28754
-
Tom Tromey authored
* java/lang/ThreadGroup.java: Fixed now-erroneous comment. * java/lang/natThread.cc (finish_): Call ThreadGroup.remove. From-SVN: r28753
-
Bernd Schmidt authored
From-SVN: r28752
-
Bernd Schmidt authored
From-SVN: r28751
-
Bernd Schmidt authored
From-SVN: r28750
-
Tom Tromey authored
From-SVN: r28749
-
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
-
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
-
Jeff Law authored
From-SVN: r28745
-
Jan Hubicka authored
* haifa-sched.c (insn_unit): Fix typo on out of range test. * sched.c (insn_unit): Likewise. From-SVN: r28744
-
Andreas Schwab authored
From-SVN: r28743
-
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
-
- Aug 17, 1999
-
-
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
-
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
-
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
-
Tom Tromey authored
* libjava.lang/Array_2.java: New file. * libjava.lang/Array_2.out: New file. From-SVN: r28737
-
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
-
Loren J. Rittle authored
From-SVN: r28735
-
Jeff Law authored
From-SVN: r28734
-
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
-
- Aug 16, 1999
-
-
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
-
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
-
Gavin Romig-Koch authored
From-SVN: r28730
-