aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2000-02-10c-pragma.c (maximum_field_alignment): Remove duplicate declaration.Franz Sirl4-10/+8
* c-pragma.c (maximum_field_alignment): Remove duplicate declaration. * ch/except.c (maximum_field_alignment): Remove duplicate declaration. From-SVN: r31906
2000-02-10dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin) rather ↵Jason Merrill2-1/+6
than die->die_tag. * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin) rather than die->die_tag. From-SVN: r31905
2000-02-10combine.c (make_extraction, [...]): Avoid warning on mixed-signedness ↵Richard Kenner12-137/+243
conditionals. * combine.c (make_extraction, force_to_mode): Avoid warning on mixed-signedness conditionals. (make_field_assignment, nonzero_bits): Likewise. * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned. (store_split_bit_field, extract_split_bit_field): Likewise. (extract_fixed_bit_field, store_bit_field, * expr.c: Change alignment to be unsigned everywhere. (move_by_pieces, store_constructor_field, store_constructor): Alignment parm is unsigned. (emit_block_move, emit_group_load, emit_group_store): Likewise. (clear_storage, emit_push_insn, compare_from_rtx): Likewise. (do_compare_rtx_and_jump): Likewise. (move_by_pieces_ninsns, clear_by_pieces): Likewise. Compare align with GET_MODE_ALIGNMENT. (expand_expr_unaligned): Pointer to alignment is pointer to unsigned. (get_inner_reference): Likewise. (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts. (expand_assignment): Local vars for alignment now unsigned. (store_constructor, store_field, expand_expr, do_jump): Likewise. (do_compare_and_jump): Likewise. (store_field): Call new function expr_align. * expr.h (emit_block_move, emit_group_load, emit_group_store): Alignment arg now unsigned. (clear_storage, emit_push_insn, compare_from_rtx): Likewise. (do_compare_rtx_and_jump, store_bit_field): Likewise. (extract_bit_field): Likewise. * fold-const.c (add_double): Add cast to eliminate signedness warning. * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned. (get_best_mode): Alignment arg is unsigned. * rtl.h (move_by_pieces): Likewise. * store-layout.c (maximum_field_alignment, set_alignment): Now unsigned. (layout_decl): Alignment arg is now unsigned. Remove unneeded casts. (layout_record, layout_union, layout_type): Remove unneeded casts. Local alignment variables now unsigned. (get_best_mode): Alignment arg now unsigned. * tree.c (expr_align): New function. * tree.h (expr_align): Likewise. (maximum_field_alignment, set_alignment): Now unsigned. (get_inner_reference): Alignment argument is now pointer to unsigned. * varasm.c (assemble_variable): Add cast to eliminate warning. From-SVN: r31904
2000-02-10Fix ia64 compiler problem with gcc.c-torture/compile/920410-1.c.Jim Wilson2-28/+29
* expmed.c (store_bit_field): If op0 and fieldmode are the same size, then store directly into op0. From-SVN: r31903
2000-02-10Fix for ia64 setjmp miscompilation problem.Jim Wilson2-2/+24
* calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for the CALL_INSN, and emit the note immediately after it. From-SVN: r31902
2000-02-10natNativeThread.cc: New file.Tom Tromey10-30/+560
* gnu/gcj/jni/natNativeThread.cc: New file. * gnu/gcj/jni/NativeThread.java: New file. * java/lang/Thread.java (data): Now a RawData. * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv): Declare. * Makefile.in: Rebuilt. * Makefile.am (java/lang/Thread.h): New target. (ordinary_java_source_files): Added NativeThread.java. (nat_source_files): Added natNativeThread.cc. * java/lang/natThread.cc: Include <jni.h> (struct natThread): Added `jni_env' field. (_Jv_GetCurrentJNIEnv): New function. (_Jv_SetCurrentJNIEnv): Likewise. (initialize_native): Initialize jni_env. Include RawData.h. * jni.cc (ThreadGroupClass): New define. (_Jv_JNI_InvokeFunctions): New structure. (JNI_GetCreatedJavaVMs): New function. (the_vm): New global. (JNI_GetDefaultJavaVMInitArgs): New function. Include NativeThread.h. (NativeThreadClass): New define. (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1. (_Jv_JNI_DestroyJavaVM): New function. (_Jv_JNI_AttachCurrentThread): New function. (_Jv_JNI_DetachCurrentThread): New function. (_Jv_JNI_GetEnv): New function. (JNI_CreateJavaVM): New function. (_Jv_JNI_GetJavaVM): New function. (_Jv_JNIFunctions): Added entry for GetJavaVM. * include/jni.h (JavaVMAttachArgs): New structure. (JNI_EDETACHED): New define. (JNI_EVERSION): Likewise. (JavaVM): Define properly. (struct JNIInvokeInterface): New structure. (class _Jv_JavaVM): New class. (JNI_OnLoad, JNI_OnUnload): Declare. (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM, JNI_GetCreatedJavaVMs): Declare. (JavaVMInitArgs): New typedef. (JavaVMOption): Likewise. (JNI_ERR): New define. (JNI_OK): Likewise. From-SVN: r31901
2000-02-10except.c (maybe_start_try): Remove excess argument to `check_start_handlers'.Kaveh R. Ghazi2-1/+2
* except.c (maybe_start_try): Remove excess argument to `check_start_handlers'. From-SVN: r31900
2000-02-10Include a (return) in the epilogue, and emit it using emit_jump_insn notNick Clifton2-3/+12
emit_insn. From-SVN: r31899
2000-02-10function.c (assign_temp): Change zero-sized arrays to size 1.Jan Hubicka4-30/+40
* function.c (assign_temp): Change zero-sized arrays to size 1. * integrate.c (expand_inline_function): Do not update stack_alignment_needed * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY, add some sanity checking, remove optimization for function with zero frame size. From-SVN: r31898
2000-02-10interpret.cc: Don't include fdlibm.h.Andrew Haley5-312/+130
2000-02-10 Andrew Haley <aph@cygnus.com> * interpret.cc: Don't include fdlibm.h. Replace #if with #ifdef throughout. Declare extern __ieee754_fmod. (continue1): Remove op_getfield, op_getstatic, op_putfield, op_putstatic insns. * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer. Search class hierarchy for superclass vtable. * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall off the end of a pointer list. * java/lang/natThread.cc (stop): Don't abort, throw an exception instead. (suspend): Ditto. From-SVN: r31897
2000-02-10* except.c (check_start_handlers): Prototype.Kaveh R. Ghazi2-0/+6
From-SVN: r31896
2000-02-10flow.c (mark_regs_live_at_end): Delete unused variables.Kaveh R. Ghazi6-5/+17
* flow.c (mark_regs_live_at_end): Delete unused variables. * ggc-page.c (ggc_page_print_statistics): bzero -> memset. * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment' in macro FRAME_GROWS_DOWNWARD. * stmt.c (expand_end_bindings): Delete unused variable. * unroll.c (iteration_info): Mark parameter `loop' with ATTRIBUTE_UNUSED. From-SVN: r31895
2000-02-10server.c (load_data): Return NULL if the marker line is not found.Alexandre Oliva2-3/+22
* fixinc/server.c (load_data): Return NULL if the marker line is not found. (run_shell): If load_data returns NULL, retry the command once, in a new shell. From-SVN: r31894
2000-02-10* configure: Rebuilt.Alexandre Oliva2-246/+226
From-SVN: r31893
2000-02-10old fixincludes coup des grasBruce Korb7-3489/+10
From-SVN: r31892
2000-02-10Ian Taylor's new addressBruce Korb1-1/+1
From-SVN: r31891
2000-02-10function.c (thread_prologue_and_epilogue_insns): Uncomment last change.Clinton Popetz2-2/+6
* function.c (thread_prologue_and_epilogue_insns): Uncomment last change. From-SVN: r31890
2000-02-10ir.texi (ADDR_EXPR): Document the fact that an ADDR_EXPR can be used to ↵Mark Mitchell2-2/+8
create an implicit temporary. * ir.texi (ADDR_EXPR): Document the fact that an ADDR_EXPR can be used to create an implicit temporary. From-SVN: r31888
2000-02-10Daily bump.Jeff Law5-5/+5
From-SVN: r31887
2000-02-10class.c (dfs_modify_vtables): Tweak calculation of functions to override.Mark Mitchell3-6/+91
* class.c (dfs_modify_vtables): Tweak calculation of functions to override. From-SVN: r31886
2000-02-09* jump.c (delete_insn): Don't delete user labels at -O0.Richard Henderson2-8/+16
From-SVN: r31885
2000-02-10Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.Robert Lipe2-2/+7
* Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS. Don't link with HOST_LIBS. From-SVN: r31884
2000-02-10configure.in: Correct --help text for --with-dwarf2.Zack Weinberg4-5/+13
* configure.in: Correct --help text for --with-dwarf2. Put tm-dwarf2.h after other tm files, if it's requested. * configure: Regenerate. * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before defining it. From-SVN: r31883
2000-02-10cpplib.h: Provide HASHNODE typedef and forward decl of struct hashnode only.Zack Weinberg10-144/+151
* cpplib.h: Provide HASHNODE typedef and forward decl of struct hashnode only. Kill cpp_hashnode typedef. MACRODEF, DEFINITION, struct hashnode, struct macrodef, struct definition, scan_decls prototype, default defn of INCLUDE_LEN_FUDGE moved elsewhere. * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct definition, and struct hashnode moved here. Remove the unused 'predefined' field from struct definition. Replace the 'args' union with its sole member. All users updated (cpphash.c). Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add multiple include guard. * cpphash.c (hashf): Make static; use better algorithm; drop HASHSIZE parameter; return an unsigned int. (cpp_lookup): Drop HASH parameter. PFILE parameter is used. Calculate HASHSIZE modulus here. (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus here. (create_definition): Drop PREDEFINITION parameter. * cpplib.c (do_define): Don't calculate a hash value here. Don't pass (keyword == NULL) to create_definition. * scan.h: Prototype scan_decls here. * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here. * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All callers of cpp_lookup and cpp_install updated. From-SVN: r31881
2000-02-10Use -static when testing --gc-sections on native targetsJonathan Larmour2-1/+10
From-SVN: r31880
2000-02-10cpphash.c (macarg): Hoist all the flag diddling out of the function...Zack Weinberg7-94/+172
* cpphash.c (macarg): Hoist all the flag diddling out of the function... (macroexpand): ... and out of the loop that calls macarg. Skip over the initial paren before macro arguments with cpp_get_non_space_token; point may be some distance before that paren. Abort if it's not there. * cpplib.c (parse_clear_mark): Delete function. (parse_set_mark, parse_goto_mark): Make static. (ACTIVE_MARK_P): New macro. (skip_block_comment, skip_line_comment): Do not bump the line if ACTIVE_MARK_P is true. (cpp_pop_buffer): The buffer to be popped may not have an active mark. (cpp_get_token): When looking for the initial paren before macro arguments, only set a mark in a file buffer, Always return to that mark before proceeding to call macroexpand or return a NAME token. * cpplib.h: Remove prototypes of parse_set_mark, parse_clear_mark, parse_goto_mark. (struct cpp_options): Rename 'put_out_comments' to 'discard_comments' and invert its sense. * cppinit.c, cpphash.c, cpplib.c: All users of put_out_comments changed to use discard_comments, with opposite sense. From-SVN: r31879
2000-02-09function.c (thread_prologue_and_epilogue_insns): Don't delete the edge from ↵Clinton Popetz2-0/+12
a block that both jumps and falls through to the... * function.c (thread_prologue_and_epilogue_insns): Don't delete the edge from a block that both jumps and falls through to the fallthru block. From-SVN: r31878
2000-02-10natRuntime.cc (_load): Call add_library.Tom Tromey2-0/+7
* java/lang/natRuntime.cc (_load): Call add_library. (loadLibraryInternal): Likewise. From-SVN: r31877
2000-02-10natIconv.cc (Input_iconv::finalize): Call iconv_close when handle is not NULL.Tom Tromey2-2/+8
* gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call iconv_close when handle is not NULL. Thanks to Andrew Haley. (Output_iconv::finalize): Likewise. From-SVN: r31876
2000-02-09In PIC mode, make sure that a constant source address is legitimate.Scott Bambrough2-7/+46
From-SVN: r31873
2000-02-09anonarray3.out: New file.Alexandre Petit-Bianco3-0/+19
2000-02-07 Alexandre Petit-Bianco <apbianco@cygnus.com> * libjava.lang/anonarray3.out: New file. * libjava.lang/anonarray3.java: New file. From-SVN: r31871
2000-02-09decl.c (clear_binding_level): Remove excess initializer.Andrew Haley2-3/+9
2000-02-09 Andrew Haley <aph@cygnus.com> * decl.c (clear_binding_level): Remove excess initializer. (maybe_poplevels): Remove unused variable. (force_poplevels): Ditto. (struct binding_level): Add comment. From-SVN: r31870
2000-02-09* libjava.compile/inner_priv.java: New file.Tom Tromey2-0/+15
From-SVN: r31868
2000-02-09Apply Philip Blundell's patch to fix PIC operands.Philip Blundell3-33/+269
From-SVN: r31867
2000-02-09cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer ends with a ↵Zack Weinberg2-13/+36
newline and a NUL. * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer ends with a newline and a NUL. Don't be so clever manipulating strings. From-SVN: r31864
2000-02-09java-except.h (struct eh_range): Add `expanded' field.Andrew Haley6-23/+207
2000-01-25 Andrew Haley <aph@cygnus.com> * java-except.h (struct eh_range): Add `expanded' field. (maybe_start_try): Add end_pc arg. (maybe_end_try): Ditto. * java-tree.h (force_poplevels): new function. * expr.c (expand_byte_code): Don't call maybe_start_try or maybe_end_try. * except.c (add_handler): Reset expanded. (expand_start_java_handler): Set expanded. (check_start_handlers): Don't expand a start handler that's already been expanded. (maybe_start_try): Add end_pc arg. Only expand a handler which ends after end_pc. (expand_end_java_handler): call force_poplevels. (force_poplevels): new function. * decl.c (binding_level): Add start_pc of binding level. (maybe_pushlevels): Call maybe_start_try when pushing binding levels. (maybe_poplevels): Call maybe_end_try when popping binding levels. (LARGEST_PC): Define. (clear_binding_level): Use LARGEST_PC. * java-tree.h (DEBUG_JAVA_BINDING_LEVELS): new define. * decl.c (DEBUG_JAVA_BINDING_LEVELS): new define. (binding_depth, is_class_level, current_pc): new variables. (struct binding_level): ditto. (indent): new function. (push_jvm_slot): add debugging info. (maybe_pushlevels): ditto. (maybe_poplevels): ditto. (pushlevel): ditto. (poplevel): ditto. (start_java_method): ditto. (give_name_to_locals): comment only. * except.c (binding_depth, is_class_level, current_pc): new variables. (expand_start_java_handler): add debugging info. (expand_end_java_handler): ditto. From-SVN: r31861
2000-02-09* reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,Jan Hubicka2-2/+8
not to BIGGEST_ALIGNMENT. From-SVN: r31860
2000-02-09Daily bump.Jeff Law5-5/+5
From-SVN: r31859
2000-02-09dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.Geoff Keating4-3/+28
* dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant. * dwarf2out.c (dwarf_cfi_name): Print name of new constant. (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed. (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended. * frame.c (execute_cfa_insn): Handle DW_CFA_GNU_negative_offset_extended. From-SVN: r31858
2000-02-08flow.c (tidy_fallthru_edges): Split out from ...Richard Henderson2-34/+52
* flow.c (tidy_fallthru_edges): Split out from ... (delete_unreachable_blocks): ... here. (find_basic_blocks): Use it. From-SVN: r31857
2000-02-08* stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.Richard Kenner2-7/+5
From-SVN: r31856
2000-02-08Properties.java (setProperty): New method.Tom Tromey2-79/+95
* java/util/Properties.java (setProperty): New method. (store): New method. From-SVN: r31855
2000-02-08Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.Zack Weinberg6-8/+57
* Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a. (gen_protos.o): Don't depend on cpplib.h or cpphash.h. (fix-header.o): Don't depend on cpphash.h. * scan.c (hashstr): New function. * scan.h: Prototype it. * fix-header.c: Don't include cpphash.h. Use hashstr. * gen-protos.c: Don't include cpphash.h or cpplib.h. Use hashstr. Report hash table statistics. Add private definition of xrealloc. From-SVN: r31854
2000-02-08* i386.h (TARGET_SWITCHES): Fix typo in option name.Kaveh R. Ghazi2-1/+5
From-SVN: r31853
2000-02-08function.c (thread_prologue_and_epilogue_insns): Don't replace jumps with ↵Clinton Popetz2-1/+6
returns unless they are jumps to the fallthru block. * function.c (thread_prologue_and_epilogue_insns): Don't replace jumps with returns unless they are jumps to the fallthru block. From-SVN: r31852
2000-02-08* i386.md (addqi3_cc): Fix contraints.Jan Hubicka2-2/+6
From-SVN: r31851
2000-02-08* g++.old-deja/g++.other/cast5.C: New test.Nathan Sidwell2-0/+42
From-SVN: r31850
2000-02-08typeck.c (strip_all_pointer_quals): Use TYPE_MAIN_VARIANT, to strip array ↵Nathan Sidwell2-2/+8
element qualifiers too. * typeck.c (strip_all_pointer_quals): Use TYPE_MAIN_VARIANT, to strip array element qualifiers too. From-SVN: r31849
2000-02-08Daily bump.Jeff Law5-5/+5
From-SVN: r31848
2000-02-08* function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.Hans-Peter Nilsson2-0/+8
From-SVN: r31847