Commit Graph

33011 Commits

Author SHA1 Message Date
Richard Earnshaw
9b598fa08b arm.c (use_return_insn): Don't try to determine the function type until after reload has completed.
* arm.c (use_return_insn): Don't try to determine the function type
until after reload has completed.
(arm_output_epilogue): Don't adjust the sp value recovered from the
stack.
(emit_multi_reg_push): Don't record dwarf information for the pc.
* arm.md (eh_epilogue): The function type may have changed, so it
needs to be recalculated.
* arm/netbsd.h (DWARF2_UNWIND_INFO): Can now use dwarf2 unwind tables
on arm/netbsd.

From-SVN: r39046
2001-01-15 18:13:26 +00:00
Kaveh R. Ghazi
c2b31703ba warn_summary (stageNfilter): Update for recent changes in bootstrap logic.
* warn_summary (stageNfilter): Update for recent changes in
	bootstrap logic.

From-SVN: r39045
2001-01-15 17:53:57 +00:00
Jason Merrill
da4ac6f859 comment
From-SVN: r39044
2001-01-15 12:06:49 -05:00
Mark Mitchell
611081b288 com.c (ffecom_lookup_label): Set DECL_CONTEXT for FORMAT label to current_function_decl.
2001-01-15  Mark Mitchell  <mark@codesourcery.com>

	* com.c (ffecom_lookup_label): Set DECL_CONTEXT for FORMAT
	label to current_function_decl.

From-SVN: r39042
2001-01-15 16:52:49 +00:00
Toon Moene
9f1630a988 20010115.f: New test.
2001-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>

	* g77.f-torture/compile/20010115.f: New test.

From-SVN: r39041
2001-01-15 16:48:35 +00:00
Nathan Sidwell
11b810f116 pt.c (check_nontype_parm): Rename to ...
* pt.c (check_nontype_parm): Rename to ...
	(invalid_nontype_parm_type_p): ... here.
	(process_template_parm): Adjust.
	(convert_template_argument): Adjust.

From-SVN: r39040
2001-01-15 16:18:43 +00:00
Richard Earnshaw
6c98269caa arm.md (cbranchsi4): Correct calculation of branch ranges.
* arm.md (cbranchsi4): Correct calculation of branch ranges.
(negated_cbranchsi4): Likewise.

From-SVN: r39039
2001-01-15 16:17:08 +00:00
Richard Earnshaw
b3c5b2be07 Fix ommision from previous ChangeLog entry.
From-SVN: r39038
2001-01-15 14:35:55 +00:00
Richard Earnshaw
fa13446b1f semi.h (SUBTARGET_EXTRA_SPECS): Define.
* config/arm/semi.h (SUBTARGET_EXTRA_SPECS): Define.
(SUBTARGET_EXTRA_ASM_SPEC): Define to empty string.
(ASM_SPEC): Call subtarget_extra_asm_spec.
* config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Define.
(SUBTARGET_EXTRA_ASM_SPEC): Define to empty string.
(ASM_SPEC): Call subtarget_extra_asm_spec.

From-SVN: r39037
2001-01-15 14:30:38 +00:00
Andreas Jaeger
77ebd4356e i386.c (ix86_init_builtins): Make i size_t to remove warnings.
2001-01-15  Andreas Jaeger  <aj@suse.de>

	* config/i386/i386.c (ix86_init_builtins): Make i size_t to remove warnings.
	(ix86_expand_builtin): Likewise.

	* gencodes.c (output_predicate_decls): Make i size_t to avoid
	warning about comparison between signed and unsigned.

From-SVN: r39036
2001-01-15 14:19:31 +01:00
Geoffrey Keating
998a298e1e * expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
From-SVN: r39035
2001-01-15 12:03:36 +00:00
Nathan Sidwell
db3f4e4eff pt.c (check_nontype_parm): New function.
cp:
	* pt.c (check_nontype_parm): New function.
	(process_template_parm): Use it.
	(convert_template_argument): Use it.
	(convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
	member.
testsuite:
	* g++.old-deja/g++.pt/nontype5.C: New test.

From-SVN: r39034
2001-01-15 09:30:03 +00:00
Jeff Law
eeb9ab559d Daily bump.
From-SVN: r39033
2001-01-15 01:45:17 -07:00
Alexandre Petit-Bianco
2feccc205e All files with updated copyright.
2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	All files with updated copyright.
	* prims.cc (class _Jv_PrimClass): Removed.
	(init_prim_class): New function.
	(DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
	`_Jv_PrimClass' in primitive type declarations. Assign to the
	value returned by `init_prim_class.'
	* gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
	primitive type declarations.
	(JvPrimClass): Cast to `jclass' removed.
	* java/lang/Class.h (Class): New constructor.
	(Class): New copy constructor.
	(initializePrim): New prototype.
	(_Jv_PrimClass): Field removed.
	* java/lang/Object.h (struct _JvObjectPrefix): New virtuals
	nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
	(class java::lang::Object): `finalize' moved up front.
	* java/lang/natClass.cc
	(isAssignableFrom): Turned outline.
	(isInstance): Likewise.
	(isInterface): Likewise, fixed indentation.
	(initializePrim): New function.

(New C++ ABI compatibility patch:
 http://sources.redhat.com/ml/java-patches/2001-q1/msg00065.html)

From-SVN: r39032
2001-01-15 00:11:40 -08:00
Alexandre Petit-Bianco
dc08e60389 All files with updated copyright when applicable.
2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	All files with updated copyright when applicable.
	* Make-lang.in (JVGENMAIN_OBS): Removed java/mangle.o.
	* class.c (mangle_class_field): Function removed.
	(append_gpp_mangled_type, mangle_static_field, mangle_field): Likewise.
	(utf8_cmp, cxx_keyword_p): Moved to lex.c.
	(build_class_ref): Call `java_mangle_class_field' instead of
	`mangle_class_field.'
	(build_dtable_decl): Rewritten to call `java_mangle_vtable.'
	(layout_class): Call `java_mangle_decl' instead of
	`mangle_static_field.'
	(cxx_keywords): Initialized static array moved to `lex.c.'
	(layout_class_method): Changed leading comment. Simplified to
	call `java_mangle_decl.' Local `ptr' moved in for loop body.
	* decl.c (lang_mark_tree): Mark field `package_list.'
	* java-tree.h (TYPE_PACKAGE_LIST): New macro.
	(struct lang_type): New field `package_list.'
	(unicode_mangling_length): Prototype removed.
	(append_gpp_mangled_name, append_gpp_mangled_classtype,
	emit_unicode_mangled_name): Likewise.
	(cxx_keyword_p): New prototype.
	(java_mangle_decl, java_mangle_class_field,
	java_mangle_class_field_from_string, java_mangle_vtable): Likewise.
	* jcf-parse.c (jcf_parse_source): Constify `file' argument to
	`build_expr_wfl.'
	* jvgenmain.c (main_method_prefix): Global variable removed.
	(main_method_suffix): Likewise.
	(do_mangle_classname): New function.
	(main): Call it. Format changed to accomodate new mangling scheme.
	* lex.c: (utf8_cmp): Conditionally prototyped.
	(cxx_keywords): Moved from class.c, conditionally defined.
	(utf8_cmp, cxx_keyword_p): Likewise.
	* mangle.c (obstack.h, ggc.h): Included.
	(mangle_field_decl): New function.
	(mangle_method_decl, mangle_type, mangle_pointer_type,
	mangle_array_type, mangle_record_type,
	find_compression_pointer_match, find_compression_array_match,
	find_compression_record_match,
	find_compression_array_template_match, set_type_package_list,
	entry_match_pointer_p, emit_compression_string, init_mangling,
	finish_mangling, compression_table_add, mangle_member_name): Likewise.
	(mangle_obstack): New global.
	(MANGLE_RAW_STRING): New macro.
	(unicode_mangling_length): Turned static.
	(append_unicode_mangled_name): Renamed from
	`emit_unicode_mangled_name.'  Turned static. `mangle_obstack'
	replaces `obstack', removed from the parameter list.
	(append_gpp_mangled_name): Turned static. `mangle_obstack'
	replaces parameter `obstack', removed from the parameter list. Call
	`append_unicode_mangled_name' instead of `emit_unicode_mangled_name.
	(append_gpp_mangled_classtype): Removed.
	(compression_table, compression_next): New static variables.
	* parse.y (temporary_obstack): Extern declaration removed.

(This is the new C++ ABI compatibility patch:
  http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01225.html)

From-SVN: r39031
2001-01-15 00:01:22 -08:00
Mark Wielaard
b9333bff58 URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
* java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
   (decode): Merge comments with Classpath, don't throw Exception

From-SVN: r39030
2001-01-15 07:58:16 +00:00
Neil Booth
f617c7a36c if-2.c: Comment out occasionally bogus test; we have an equivalent working one below it.
* gcc.dg/cpp/if-2.c: Comment out occasionally bogus test; we
        have an equivalent working one below it.

From-SVN: r39029
2001-01-15 07:51:18 +00:00
Ralf Baechle
1b26cad749 linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change SUBTARGET_CPP_SPEC apropriatly.
* config/mips/linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change
        SUBTARGET_CPP_SPEC apropriatly.

From-SVN: r39028
2001-01-15 06:56:14 +01:00
Jeffrey Oldham
e5aed4e145 instantiate2.C: Add explanatory comment.
2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>

	* g++.old-deja/g++.ext/instantiate2.C: Add explanatory comment.
	* g++.old-deja/g++.ext/instantiate3.C: Likewise.

From-SVN: r39027
2001-01-15 04:30:35 +00:00
Mark Mitchell
e3406b2a3d * varasm.c (make_decl_rtl): Fix typo in last change.
From-SVN: r39026
2001-01-15 04:15:04 +00:00
Fergus Henderson
357c6a4b51 * MAINTAINERS: Add myself as Mercury front-end maintainer.
From-SVN: r39025
2001-01-15 04:00:09 +00:00
Jeffrey Oldham
e3585d4f86 ecos.exp (conpr-1.C): XFAIL if compile emits message containing "init_priority".
2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>

	* g++.dg/special/ecos.exp (conpr-1.C): XFAIL if compile emits
	message containing "init_priority".
	(conpr-2.C): Likewise.
	(conpr-3.C): Likewise.
	* g++.old-deja/g++.ext/initp1.C: XFAIL for Irix.

From-SVN: r39024
2001-01-15 03:56:07 +00:00
Jeffrey Oldham
ea4f1fce75 defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the linker supports the init_priority C++ attribute.
gcc/ChangeLog:
2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>

	* defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the
	linker supports the init_priority C++ attribute.
	* tm.texi (SUPPORTS_INIT_PRIORITY): Documentation for new macro.
	* config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Indicate Irix
	linker does not support init_priority C++ attribute.

gcc/cp/ChangeLog:
2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>

	* tree.c: Add defaults.h
	(cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
	* Make-lang.in (cp/tree.o): Add defaults.h.

From-SVN: r39023
2001-01-15 03:33:56 +00:00
Franz Sirl
bfeee001eb 20010114-2.c: New test.
2001-01-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/execute/20010114-2.c: New test.

From-SVN: r39022
2001-01-15 00:29:53 +00:00
J"orn Rennecke
3e854cf7a8 * Makefile.in (libgcc1-test.o): Depends on stmp-int-hdrs.
From-SVN: r39021
2001-01-14 22:38:22 +00:00
Neil Booth
400023a387 c-parse.in (finish_parse): Add comment about cpp_destroy.
* c-parse.in (finish_parse): Add comment about cpp_destroy.
        * cp/lex.c (finish_parse): Similarly.
        * cppinit.c (cpp_cleanup): Rename cpp_destroy for clarity.
        Return the number of errors encountered.
        * cpplib.h (cpp_cleanup): Rename cpp_destroy, return int.
        * cppmain.c (main): Don't call cpp_destroy.

From-SVN: r39020
2001-01-14 22:00:20 +00:00
Per Bothner
984ad2c633 Various patches to emit better messages on verification errors.
From-SVN: r39019
2001-01-14 13:48:10 -08:00
Joseph Myers
150d3c0086 texi2pod.pl: Require at least perl 5.6.0.
contrib:
	* texi2pod.pl: Require at least perl 5.6.0.

gcc:
	* configure.in: Require at least perl 5.6.0 to regenerate
	manpages.
	* configure: Regenerate.

From-SVN: r39018
2001-01-14 21:47:19 +00:00
Per Bothner
00b4575d1e parse.y (java_complete_lhs case EXPR_WITH_FILE_LOCATION): If body is constant, return body without wrapper.
* parse.y (java_complete_lhs case EXPR_WITH_FILE_LOCATION): If body is
	constant, return body without wrapper.  (Improves constant folding.)
	* lex.c (build_wfl_node):  Clear TREE_TYPE from returned node.

From-SVN: r39017
2001-01-14 12:46:32 -08:00
Richard Henderson
521b92248e genrecog.c (DT_veclen_ge): New.
* genrecog.c (DT_veclen_ge): New.
        (add_to_sequence) [MATCH_PARALLEL]: Generate one.
        (maybe_both_true_2): Simplify DT_veclen vs DT_veclen_ge.
        (nodes_identical_1): Handle DT_veclen_ge.
        (write_cond, debug_decision_2): Likewise.

From-SVN: r39016
2001-01-14 12:35:06 -08:00
Richard Earnshaw
d6c5a76351 arm.md (ldmsi_postinc, [...]): Delete.
* arm.md (ldmsi_postinc, ldmsi, stmsi_postinc, smsi): Delete.  Replace
with ...
(ldmsi_postinc[432], ldmsi[432], stmsi_postinc[432], stmsi[432]): New.

From-SVN: r39015
2001-01-14 19:37:18 +00:00
Andreas Jaeger
3e29b81bda * libio/libio.h: Add test for glibc 2.0.
From-SVN: r39014
2001-01-14 20:12:23 +01:00
Per Bothner
d9da31dd9a expr.c (expand_java_field_op): Assigning to a final field outside an initializer does not violate JVM spec...
* expr.c (expand_java_field_op):  Assigning to a final field outside
	an initializer does not violate JVM spec, so should be warning, not
	error.  (Sun's verifier does not complain - though MicroSoft's does.)

From-SVN: r39013
2001-01-14 09:37:09 -08:00
Neil Booth
6de8f7fc96 cppmain.c (do_preprocessing): New function; most of the old main.
* cppmain.c (do_preprocessing): New function; most of the old
        main.
        (main): Call it to do most of the work.
        (cb): Move from global scope to set_callbacks ().
        (setup_callbacks): Get the callback pointer.
        (general_init, printer_init): Clean up code and comments.

From-SVN: r39012
2001-01-14 16:44:50 +00:00
Richard Earnshaw
17879734ac semi.h (ASM_SPEC): Pass -k to the assembler when compiling PIC.
* config/arm/semi.h (ASM_SPEC): Pass -k to the assembler when
compiling PIC.

From-SVN: r39011
2001-01-14 16:09:47 +00:00
Kazu Hirata
c009a74504 h8300.c (get_shift_alg): Update comments.
2001-01-14  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.c (get_shift_alg): Update comments.

From-SVN: r39010
2001-01-14 15:36:42 +00:00
Joseph Myers
b859a98d15 20010114-1.c: New test.
* gcc.c-torture/compile/20010114-1.c: New test.
	* gcc.c-torture/compile/20010114-1.x: Xfail.
	* gcc.c-torture/compile/20010114-2.c: New test.
	* gcc.c-torture/execute/20010114-1.c: New test.
	* gcc.dg/trunc-1.c: New test.
	* gcc.dg/uninit-B.c: New test.

From-SVN: r39009
2001-01-14 11:38:49 +00:00
Richard Kenner
bd0f0717f1 ggc-page.c (alloc_annon): Call perror and correctly call exit.
* ggc-page.c (alloc_annon): Call perror and correctly call exit.
	(alloc_page, ggc_alloc): Add casts to remove warnings.

From-SVN: r39008
2001-01-14 06:22:12 -05:00
Geoffrey Keating
aa6683f7f1 combine.c (simplify_comparison): Don't change `code' when can't reverse comparison.
* combine.c (simplify_comparison): Don't change `code' when
	can't reverse comparison.

From-SVN: r39007
2001-01-14 10:39:49 +00:00
Richard Henderson
fce7e199d5 rtlanal.c (computed_jump_p_1): Rename from jmp_uses_reg_or_mem; update all call sites.
* rtlanal.c (computed_jump_p_1): Rename from jmp_uses_reg_or_mem;
        update all call sites.  Return true for all non-label constants.

From-SVN: r39006
2001-01-14 02:19:01 -08:00
Jan Hubicka
a1b8572cac i386.c (ix86_expand_compare): Add bypass_test and second_test parameters.
* i386.c (ix86_expand_compare): Add bypass_test and second_test
	parameters.
	(ix86_expand_branch): Update.
	(ix86_expand_setcc): Update to handle multiple test conditions.
	(expand_int_movcc): Likewise.
	(expand_fp_movcc): Likewise.
	* i386-protos.h (ix86_expand_compare): New.
	* i386.md (andqi_?_slp, orqi_?_slp): New.
	(conditional trap expander): Update call to ix86_expand_compare.

From-SVN: r39005
2001-01-14 09:14:03 +00:00
Richard Henderson
264ddbaa68 vax.h (RETURN_POPS_ARGS): Max at 255 arguments.
* config/vax/vax.h (RETURN_POPS_ARGS): Max at 255 arguments.
        * config/vax/vax.md (call_pop): Turn into an expander.
        (call_value_pop): Likewise.
        (call, call_value): New.

From-SVN: r39004
2001-01-14 01:08:51 -08:00
Richard Henderson
5b9b177a8b * config/vax/vax.md (indirect_jump): Use register_operand.
From-SVN: r39003
2001-01-14 01:03:20 -08:00
Richard Henderson
17ad437705 vax.md: Use nonimmediate_operand instead of general_operand in destinations.
* config/vax/vax.md: Use nonimmediate_operand instead of
        general_operand in destinations.

From-SVN: r39002
2001-01-14 00:59:18 -08:00
Jeff Law
57bf4d3933 Daily bump.
From-SVN: r39001
2001-01-14 01:45:10 -07:00
Andreas Jaeger
8752c357c5 i386.c (ix86_split_fp_branch): Remove unused variables.
* config/i386/i386.c (ix86_split_fp_branch): Remove unused
	variables.
	(ix86_fp_compare_mode): Add unused attribute.
	(ix86_expand_fp_movcc): Remove unused variable.
	(ix86_expand_builtin): Make fcode unsigned.

	* expr.c (MOVE_BY_PIECES_P): Cast MOVE_RATIO to unsigned.
	(expand_expr): Add cast to avoid signed warning.
	(store_field): Likewise.
	(store_constructor_field): Likewise.
	(store_constructor): Likewise.
	(store_expr): Likewise.
	(clear_storage): Likewise.
	(emit_group_store): Likewise.
	(emit_group_load): Likewise.

From-SVN: r39000
2001-01-14 08:30:29 +01:00
Nick Clifton
04ae6c5985 Expext the bf64-1.c test to fail for the M*Core
From-SVN: r38999
2001-01-14 00:28:08 +00:00
Joseph Myers
1312c143f8 c-common.c: Move format checking code to ...
* c-common.c: Move format checking code to ...
	* c-format.c: ... here.  New file.  Reorder some functions and
	declarations.
	(decl_handle_format_attribute, decl_handle_format_arg_attribute):
	New functions.
	* c-common.h (decl_handle_format_attribute,
	decl_handle_format_arg_attribute): Declare.
	* Makefile.in (C_AND_OBJC_OBJS): Add c-format.o.
	(c-common.o): Adjust dependencies.
	(c-format.o): New list of dependencies.

cp:
	* Make-lang.in (CXX_C_OBJS): Add c-format.o.

From-SVN: r38998
2001-01-13 23:30:02 +00:00
Joseph Myers
6f6684e699 * gcc.c-torture/compile/20010113-1.c: New test.
From-SVN: r38997
2001-01-13 23:27:06 +00:00
Jakub Jelinek
9e2adb2a1c unroll.c (loop_iterations): If we cannot prove iteration variable is set once in each iteration, punt.
* unroll.c (loop_iterations): If we cannot prove iteration variable
	is set once in each iteration, punt.

From-SVN: r38996
2001-01-13 22:54:10 +01:00