Commit Graph

26301 Commits

Author SHA1 Message Date
Nathan Sidwell
a1cee8a3f3 decl.c (init_decl_processing): Remove duplicate decl of set_alignment.
* decl.c (init_decl_processing): Remove duplicate decl of
	set_alignment.

From-SVN: r31921
2000-02-11 15:49:56 +00:00
Franz Sirl
f70773947a expr.c (compare_records): Delete maximum_field_alignment declaration.
* expr.c (compare_records): Delete maximum_field_alignment declaration.
	* inout.c (inout_init): Likewise.
	(build_chill_gettextaccess): Likewise.
	(build_enum_tables): Likewise.
	* lang.c: Likewise.
	* satisfy.c (satisfy): Likewise.
	* tasking.c (build_tasking_struct): Likewise.
	(build_tasking_message_type): Likewise.
	* typeck.c (build_init_struct): Likewise.

	* except.c (emit_setup_handler): Make save_maximum_field_alignment
	unsigned int to match maximum_field_alignment.
	* inout.c (inout_init): Likewise.
	(build_chill_gettextaccess): Likewise.
	(build_enum_tables): Likewise.
	* tasking.c (build_tasking_struct): Likewise.
	(build_tasking_message_type): Likewise.
	* typeck.c (build_init_struct): Likewise.

From-SVN: r31920
2000-02-11 15:48:24 +00:00
Scott Bambrough
3637ef0c71 Fix tabbing.
From-SVN: r31919
2000-02-11 15:27:52 +00:00
Scott Bambrough
a0085329f4 Add myself to MAINTAINERS file.
From-SVN: r31918
2000-02-11 15:25:31 +00:00
Nathan Sidwell
5a5c85c6f7 cpphash.c (special_symbol): Remove spurious argument to cpp_lookup.
* cpphash.c (special_symbol): Remove spurious argument to
	cpp_lookup.

From-SVN: r31917
2000-02-11 13:46:37 +00:00
Joel Sherrill
0d4ef09cd5 configure.in: (i*86-*-rtems*): Swapped elf and coff stanzas.
* configure.in: (i*86-*-rtems*): Swapped elf and coff
        stanzas.
        * configure: Rebuilt.

From-SVN: r31916
2000-02-11 03:17:46 -07:00
Rodney Brown
84caa961db * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
From-SVN: r31915
2000-02-11 03:05:42 -07:00
Jeffrey A Law
8c417c25d4 * pa.c, pa.h: Remove trigraph sequences within comments.
From-SVN: r31914
2000-02-11 03:01:03 -07:00
Pavel Roskin
d77b457528 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
From-SVN: r31913
2000-02-11 02:53:36 -07:00
Brad Lucier
be200dff75 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
From-SVN: r31912
2000-02-11 02:49:40 -07:00
Jeff Law
b6494a6a94 Daily bump.
From-SVN: r31911
2000-02-11 01:45:38 -07:00
Michael Hayes
f9ef1f0296 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
From-SVN: r31910
2000-02-11 04:59:58 +00:00
Michael Hayes
eff784fe63 c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
* config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
	(ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
	(ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
	(ASM_FILE_END): Use c4x_file_end.
	* config/c4x/c4x.c (c4x_global_label): New function.
 	(c4x_external_ref, c4x_file_end): Likewise.
	* config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
 	(c4x_external_ref, c4x_end_file): Likewise.

From-SVN: r31909
2000-02-11 04:55:07 +00:00
Zack Weinberg
cf4ed945ea cppexp.c: Don't include cpphash.h.
* cppexp.c: Don't include cpphash.h.
	(parse_charconst, cpp_lex): Use cpp_defined.
	(cpp_lex): Use get_directive_token throughout.  Remove
	unnecessary cases from switch.  Move assertion-handling code
	down to OTHER case.
	(cpp_parse_expr): If we see '+' or '-', check the context to
	determine if they are unary or binary operators.  Streamline
	the jumps a bit.  Do not call skip_rest_of_line.

	* cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
	static.  Export get_directive_token.  Update commentary.
	(cpp_defined): New function.
	(do_define): Remove reference to T_PCSTRING.  Call
	free_definition to release memory for old definition, when
	redefining a macro.
	(eval_if_expression): Set only_seen_white to 0 before calling
	cpp_parse_expr.  Call skip_rest_of_line after it returns.
	(cpp_read_check_assertion): Don't preserve a pointer into the
	token buffer across a call to cpp_get_token.

	* Makefile.in (cppexp.o): Don't depend on cpphash.h.
	* cppfiles.c (redundant_include_p): Use cpp_defined.
	* cpphash.c (free_definition): New function.
	(delete_macro): Use it.  Update commentary.
	* cpphash.h: Typedef HASHNODE here.  Prototype cpp_lookup and
	free_definition.
	* cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
	from enum node_type.  Prototype cpp_defined and get_directive_token.
	Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.

	* fix-header.c (check_macro_names): Use cpp_defined.
	(read_scan_file): Set inhibit_warnings and inhibit_errors in
	the options structure.

From-SVN: r31908
2000-02-10 23:47:04 +00:00
Tom Tromey
26439cc59c jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
* include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
	(jboolean): Declare as an attributed int, not a bool.
	(_Jv_func): Declare differently for C.

From-SVN: r31907
2000-02-10 23:44:05 +00:00
Franz Sirl
75cdca5bb9 c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
* c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
	* ch/except.c (maximum_field_alignment): Remove duplicate declaration.

From-SVN: r31906
2000-02-10 23:13:17 +00:00
Jason Merrill
d10b8e053e dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin) rather than die->die_tag.
* dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
        rather than die->die_tag.

From-SVN: r31905
2000-02-10 17:10:36 -05:00
Richard Kenner
729a212576 combine.c (make_extraction, [...]): Avoid warning on mixed-signedness 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-10 17:05:40 -05:00
Jim Wilson
5e4900c7f4 Fix ia64 compiler problem with gcc.c-torture/compile/920410-1.c.
* expmed.c (store_bit_field): If op0 and fieldmode are the same size,
	then store directly into op0.

From-SVN: r31903
2000-02-10 13:09:52 -08:00
Jim Wilson
c2939b5700 Fix for ia64 setjmp miscompilation problem.
* 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-10 13:00:09 -08:00
Tom Tromey
aaf0766e9f natNativeThread.cc: New file.
* 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-10 20:31:48 +00:00
Kaveh R. Ghazi
ef86eabb6c except.c (maybe_start_try): Remove excess argument to `check_start_handlers'.
* except.c (maybe_start_try): Remove excess argument to
	`check_start_handlers'.

From-SVN: r31900
2000-02-10 19:10:07 +00:00
Nick Clifton
7c5f52db01 Include a (return) in the epilogue, and emit it using emit_jump_insn not
emit_insn.

From-SVN: r31899
2000-02-10 17:58:36 +00:00
Jan Hubicka
44affdae26 function.c (assign_temp): Change zero-sized arrays to size 1.
* 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-10 17:43:55 +00:00
Andrew Haley
715bdd8117 interpret.cc: Don't include fdlibm.h.
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 17:16:30 +00:00
Kaveh R. Ghazi
ae0a06c54b * except.c (check_start_handlers): Prototype.
From-SVN: r31896
2000-02-10 16:48:43 +00:00
Kaveh R. Ghazi
d219c7f152 flow.c (mark_regs_live_at_end): Delete unused variables.
* 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-10 16:45:23 +00:00
Alexandre Oliva
d1922b4899 server.c (load_data): Return NULL if the marker line is not found.
* 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 16:29:21 +00:00
Alexandre Oliva
139cfaa75e * configure: Rebuilt.
From-SVN: r31893
2000-02-10 16:16:55 +00:00
Bruce Korb
547a21a8bc old fixincludes coup des gras
From-SVN: r31892
2000-02-10 15:00:06 +00:00
Bruce Korb
89b80b3ece Ian Taylor's new address
From-SVN: r31891
2000-02-10 14:54:27 +00:00
Clinton Popetz
98b7bb3848 function.c (thread_prologue_and_epilogue_insns): Uncomment last change.
* function.c (thread_prologue_and_epilogue_insns): Uncomment
	last change.

From-SVN: r31890
2000-02-10 09:16:33 -05:00
Mark Mitchell
9e4cc72218 ir.texi (ADDR_EXPR): Document the fact that an ADDR_EXPR can be used to 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-10 09:07:59 +00:00
Jeff Law
76177fb35a Daily bump.
From-SVN: r31887
2000-02-10 01:45:06 -07:00
Mark Mitchell
64cfdfb8d2 class.c (dfs_modify_vtables): Tweak calculation of functions to override.
* class.c (dfs_modify_vtables): Tweak calculation of functions to
	override.

From-SVN: r31886
2000-02-10 08:24:15 +00:00
Richard Henderson
ae32f34a96 * jump.c (delete_insn): Don't delete user labels at -O0.
From-SVN: r31885
2000-02-09 23:25:24 -08:00
Robert Lipe
7e1878ef57 Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
* Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
	Don't link with HOST_LIBS.

From-SVN: r31884
2000-02-10 06:28:38 +00:00
Zack Weinberg
756ee60292 configure.in: Correct --help text for --with-dwarf2.
* 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-10 05:32:04 +00:00
Zack Weinberg
bb52fa7f86 cpplib.h: Provide HASHNODE typedef and forward decl of struct hashnode only.
* 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-10 02:23:08 +00:00
Jonathan Larmour
ae6f3fe9f6 Use -static when testing --gc-sections on native targets
From-SVN: r31880
2000-02-10 01:30:43 +00:00
Zack Weinberg
564ad5f49e cpphash.c (macarg): Hoist all the flag diddling out of the function...
* 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-10 00:26:47 +00:00
Clinton Popetz
3a75e42e81 function.c (thread_prologue_and_epilogue_insns): Don't delete the edge from 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-09 19:20:41 -05:00
Tom Tromey
7e3b6e312a natRuntime.cc (_load): Call add_library.
* java/lang/natRuntime.cc (_load): Call add_library.
	(loadLibraryInternal): Likewise.

From-SVN: r31877
2000-02-10 00:17:10 +00:00
Tom Tromey
c56c8c43b9 natIconv.cc (Input_iconv::finalize): Call iconv_close when handle is not NULL.
* 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-10 00:14:54 +00:00
Scott Bambrough
81ee8129ce In PIC mode, make sure that a constant source address is legitimate.
From-SVN: r31873
2000-02-09 20:53:35 +00:00
Alexandre Petit-Bianco
d53cc71518 anonarray3.out: New file.
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-09 20:49:34 +00:00
Andrew Haley
71600a4ae0 decl.c (clear_binding_level): Remove excess initializer.
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 20:38:02 +00:00
Tom Tromey
d38c8dab70 * libjava.compile/inner_priv.java: New file.
From-SVN: r31868
2000-02-09 20:33:33 +00:00
Philip Blundell
82e9d97010 Apply Philip Blundell's patch to fix PIC operands.
From-SVN: r31867
2000-02-09 20:00:29 +00:00
Zack Weinberg
2387c1d432 cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer ends with a 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-09 18:35:41 +00:00