Commit Graph

37260 Commits

Author SHA1 Message Date
GCC Administrator
51c4678a03 Daily bump.
From-SVN: r45179
2001-08-26 07:16:09 +00:00
Aldy Hernandez
f9ad2367e7 mips.c (mips_function_value): Handle complex return values.
* config/mips/mips.c (mips_function_value): Handle complex return
        values.

From-SVN: r45178
2001-08-26 04:51:54 +00:00
Hans-Peter Nilsson
cf728d61ac reload1.c (reload): Make all entries in reg_equiv_memory_loc unshared.
* reload1.c (reload): Make all entries in reg_equiv_memory_loc
	unshared.
	* reload.c (make_memloc): Copy result if it is still
	reg_equiv_memory_loc[regno] on return.
	(subst_reloads) [ENABLE_CHECKING]: Check that none of
	reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
	reg_equiv_mem are modified by the substitutions.

From-SVN: r45177
2001-08-25 21:39:47 +00:00
Jan Hubicka
6ab16dd9ad predict.c (expensive_function_p): New.
* predict.c (expensive_function_p): New.
	* rtl.h (expensive_function_p): Declare.
	* i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
	(use_fast_prologue_epilogue): New static variable.
	(expand_prologue): Set it; emit short prologues if unset.
	(expand_epilogue): Likewise.

From-SVN: r45176
2001-08-25 21:08:28 +00:00
Geoffrey Keating
033c017cb2 961203-1.x: Mark unsupported by stormy16.
* gcc.c-torture/compile/961203-1.x: Mark unsupported by stormy16.
	* gcc.c-torture/compile/980506-1.x: Mark unsupported by stormy16.
	* gcc.c-torture/compile/990617-1.x: Mark unsupported by stormy16.

From-SVN: r45175
2001-08-25 17:24:30 +00:00
Geoffrey Keating
32f30f91ef config.sub: Merge from master sources, rev 1.219.
* config.sub: Merge from master sources, rev 1.219.
	* MAINTAINERS: Add self as contact for stormy16 port.

From-SVN: r45174
2001-08-25 17:20:10 +00:00
Geoffrey Keating
4b58290fe6 config.gcc: Add stormy16-*-elf case.
* config.gcc: Add stormy16-*-elf case.
	* config/stormy16/stormy-abi: New file.
	* config/stormy16/stormy16-lib2.c: New file.
	* config/stormy16/stormy16-protos.h: New file.
	* config/stormy16/stormy16.c: New file.
	* config/stormy16/stormy16.h: New file.
	* config/stormy16/stormy16.md: New file.
	* config/stormy16/t-stormy16: New file.

From-SVN: r45173
2001-08-25 17:14:36 +00:00
Jan Hubicka
d3fe11e624 * i386.h (no-accumulate-outgoing-args): Use proper mask.
From-SVN: r45171
2001-08-25 13:49:51 +00:00
GCC Administrator
c1cf72f572 Daily bump.
From-SVN: r45170
2001-08-25 07:16:44 +00:00
David Edelsohn
1cb18e3c35 rs6000.c (rs6000_initialize_trampoline): Function descriptor members are pointer size, not constant 4.
* config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
        descriptor members are pointer size, not constant 4.
        * config/rs6000/rs6000.md (define_splits): Remove more unused
        constraints.

From-SVN: r45168
2001-08-24 22:26:44 -04:00
Kaveh R. Ghazi
c3bef1a943 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
From-SVN: r45166
2001-08-24 22:26:51 +00:00
Loren J. Rittle
405bfc410e limits.h (__glibcpp_long_double_bits): Only define if not already provided by per-OS file.
* config/cpu/i386/bits/limits.h (__glibcpp_long_double_bits): Only
        define if not already provided by per-OS file.
        * config/os/bsd/freebsd/bits/os_defines.h (__glibcpp_long_double_bits):
        Define.

From-SVN: r45165
2001-08-24 21:57:15 +00:00
Jan van Male
11a584be8d C++STYLE: Fix typo.
2001-08-24  Jan van Male <jan.vanmale@fenk.wau.nl>

	* docs/html/17_intro/C++STYLE:  Fix typo.

From-SVN: r45163
2001-08-24 20:50:53 +00:00
Phil Edwards
b5796814d0 howto.html: Describe implementation of insertion with hints.
2001-08-24  Phil Edwards  <pme@sources.redhat.com>

	* docs/html/23_containers/howto.html:  Describe implementation of
	insertion with hints.

From-SVN: r45161
2001-08-24 20:34:34 +00:00
Kenny Simpson
bfa7321375 std_sstream.h (basic_ostringstream): Fix ctor.
2001-08-24  Kenny Simpson  <kenny.simpson@gs.com>

	libstdc++/3740
	* include/bits/std_sstream.h (basic_ostringstream): Fix ctor.

From-SVN: r45159
2001-08-24 18:52:03 +00:00
Alexandre Petit-Bianco
496849ba9a jcf-parse.c (yyparse): Set magic to 0, don't issue error for a file smaller than 4 bytes.
2001-08-23  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* jcf-parse.c (yyparse): Set magic to 0, don't issue error for a
	file smaller than 4 bytes.
	* parse.y (check_inner_circular_reference): New function.
	(check_circular_reference): Likewise.
	(array_initializer:): Accept {,}.
	(java_check_circular_reference): Rewritten using
	check_circular_reference and check_inner_circular_reference.
	(java_complete_expand_method): Unconditionally save and restore
	the unpurged exception list.
	(build_dot_class_method_invocation): Unmangle signature parameter.

(http://gcc.gnu.org/ml/gcc-patches/2001-08/msg01417.html)

From-SVN: r45156
2001-08-24 10:40:54 -07:00
Sylvain Pion
f2c333a19d re PR libstdc++/3349 (bug in map::insert(p,t))
2001-08-24  Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
            Phil Edwards  <pme@sources.redhat.com>

	PR libstdc++/3349
	* include/bits/stl_tree.h (insert_unique):  Revert last change.
	Values inserted at begin() must be less, not greater, than *begin()'s.
	* testsuite/23_containers/map_insert.cc:  New file.

Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>

From-SVN: r45155
2001-08-24 17:40:31 +00:00
Tom Tromey
224b7b7b0c Field.java (toString): Use Method.appendClassName.
* java/lang/reflect/Field.java (toString): Use
	Method.appendClassName.
	* java/lang/reflect/Constructor.java (toString): Use
	Method.appendClassName.
	* java/lang/reflect/Method.java: Reindented.
	(appendClassName): New method.
	(toString): Use it.
	* defineclass.cc (handleMethod ): Initialize `throws' field of
	method.
	(read_one_method_attribute): Handle Exceptions attribute.
	* java/lang/reflect/natMethod.cc (ClassClass): Removed.
	(ObjectClass): Removed.
	(getType): Compute `exception_types'.
	* java/lang/Class.h (struct _Jv_Method): Added `throws' field.

From-SVN: r45153
2001-08-24 17:24:44 +00:00
Tom Tromey
66b461ce02 decl.c (init_decl_processing): Add `throws' field to method descriptor.
* decl.c (init_decl_processing): Add `throws' field to method
	descriptor.
	* class.c (make_method_value): Compute `throws' field for method.

From-SVN: r45152
2001-08-24 17:24:02 +00:00
Andreas Jaeger
20787c010a * cp/rtti.c (VPARAMS): Fix parameter.
From-SVN: r45151
2001-08-24 19:00:33 +02:00
Zack Weinberg
a242b0831c expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv to zero.
* expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
	to zero.
	(mode_for_extraction): No need for #ifdefs.  Add default-case abort
	to switch.
	(store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
	in if controlling use of insv.
	(extract_bit_field): Likewise, for extv and extzv.

From-SVN: r45150
2001-08-24 16:01:42 +00:00
Jan Hubicka
653753c5e7 * i386.md (movcc peep2): Fix load of 0.
From-SVN: r45149
2001-08-24 15:28:54 +00:00
Kaveh R. Ghazi
ada1133554 fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR, *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
* fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
	*_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.

testsuite:
	* gcc.dg/compare5.c: New testcase.

From-SVN: r45148
2001-08-24 12:18:45 +00:00
Jason Merrill
271e349bc3 tree.c (cp_build_qualified_type_real): Use get_qualified_type.
* tree.c (cp_build_qualified_type_real): Use get_qualified_type.
        (build_cplus_array_type): Use cp_build_qualified_type, not
        TYPE_MAIN_VARIANT, to get an unqualified version.

From-SVN: r45147
2001-08-24 08:11:11 -04:00
Jason Merrill
4ae08f95bb c-pragma.h: Move weak_syms and weak_decls...
* c-pragma.h: Move weak_syms and weak_decls...
        * varasm.c: ...here.  Now static.
        (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
        depend on HANDLE_PRAGMA_WEAK.

From-SVN: r45146
2001-08-24 08:08:35 -04:00
Jason Merrill
0213a35528 c-common.c (c_alignof, [...]): Move here...
* c-common.c (c_alignof, c_alignof_expr): Move here...
        * c-typeck.c: ...from here.
        * c-tree.h, c-common.h: Adjust.

        * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
        (build_cplus_array_type): Use cp_build_qualified_type, not
        TYPE_MAIN_VARIANT, to get an unqualified version.

        * decl2.c (grok_alignof): Lose.
        (build_expr_from_tree): Use expr_sizeof and c_alignof_expr.
        * typeck.c (c_alignof): Lose.
        * semantics.c (finish_sizeof, finish_alignof): New.
        * parse.y: Use them.
        * cp-tree.h: Declare them.

From-SVN: r45145
2001-08-24 08:07:46 -04:00
GCC Administrator
2dc8352c90 Daily bump.
From-SVN: r45143
2001-08-24 07:16:10 +00:00
Benjamin Kosnik
575dd831c7 c_locale_gnu.cc: Minor tweaks.
2001-08-23  Benjamin Kosnik  <bkoz@redhat.com>

	* config/locale/c_locale_gnu.cc: Minor tweaks.
	(moneypunct<wchar_t>): Implement.
	* include/bits/locale_facets.h: Same.
	* testsuite/22_locale/moneypunct.cc: New file.
	* testsuite/22_locale/moneypunct_byname.cc: New file.
	* testsuite/22_locale/moneypunct_char_members.cc: New file.

From-SVN: r45142
2001-08-24 04:11:23 +00:00
David Edelsohn
a9e7dc6cdf Fix PowerPC long double as well.
From-SVN: r45141
2001-08-23 19:02:01 -04:00
David Edelsohn
be3ebbbb9e Correct __s390__ definitions.
From-SVN: r45140
2001-08-23 18:49:20 -04:00
Jason Merrill
d22ec5294d testsuite_flags.in (build-includes): Re-add backward.
* testsuite_flags.in (build-includes): Re-add backward.
(and back out earlier aclocal change)

From-SVN: r45139
2001-08-23 18:35:52 -04:00
Bernd Schmidt
3b63eac49f When moving asms out of the way, don't move all of them to the same place
From-SVN: r45138
2001-08-23 19:27:54 +00:00
Bernd Schmidt
3e7c78058f Fix abort where write_count got to 3
From-SVN: r45137
2001-08-23 19:25:03 +00:00
Jan Hubicka
ab75d1f125 function.c (thread_prologue_and_epilogue_insns): Avoid fallthru flag on edge to exit.
* function.c (thread_prologue_and_epilogue_insns): Avoid
	fallthru flag on edge to exit.

	* i386.md (trunc?fsi splitter): Conditionionize for non-sse.

	* flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
	dead edges.

From-SVN: r45135
2001-08-23 15:33:13 +00:00
Ulrich Drepper
d0708dc1b9 merge from glibc
From-SVN: r45134
2001-08-23 11:19:05 -04:00
Lars Brinkhoff
038c2f5067 Remove unused function
From-SVN: r45131
2001-08-23 13:40:40 +00:00
Lars Brinkhoff
88c1082bf8 dyn-string.h, [...]: replace "GNU CC" with "GCC".
* dyn-string.h, fibheap.h, partition.h, sort.h, splay-tree.h:
	replace "GNU CC" with "GCC".

From-SVN: r45130
2001-08-23 12:07:58 +00:00
Jason Merrill
cbf0bc8370 * aclocal.m4 (GLIBCPP_INCLUDES): Include backward.
From-SVN: r45129
2001-08-23 07:38:07 -04:00
Jason Merrill
fefddd61a0 fix
From-SVN: r45128
2001-08-23 07:34:32 -04:00
Jason Merrill
0585896cdf prune.exp (prune_gcc_output): Also ignore "In constructor" and "In instantiation".
* lib/prune.exp (prune_gcc_output): Also ignore "In constructor"
        and "In instantiation".

From-SVN: r45127
2001-08-23 06:52:12 -04:00
Lars Brinkhoff
40803cd5df genconstants.c, [...]: replace "GNU CC" with "GCC".
* genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
	replace "GNU CC" with "GCC".

From-SVN: r45126
2001-08-23 10:21:42 +00:00
Richard Henderson
7109d28642 ia64.c (ia64_register_move_cost): Add mode arguemnt.
* config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
        Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
        (ia64_secondary_reload_class): Need GR between AR/BR and anything.
        Need GR between FR and not GR_AND_FR.
        * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
        * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
        AR regs before GR regs.
        (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
        (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
        (REGISTER_MOVE_COST): Update.
        (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.

From-SVN: r45125
2001-08-23 00:44:03 -07:00
Richard Henderson
26a952a8a4 regclass.c (init_reg_sets_1): Don't assume cost 2 within a register class.
* regclass.c (init_reg_sets_1): Don't assume cost 2 within
        a register class.

From-SVN: r45124
2001-08-23 00:37:03 -07:00
GCC Administrator
1ba2bace76 Daily bump.
From-SVN: r45123
2001-08-23 07:16:49 +00:00
GCC Administrator
a70481f0fd Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r45122.2
2001-08-23 07:16:45 +00:00
Geoffrey Keating
1558b970d0 reload1.c (emit_reload_insns): Don't look for notes on a NULL store_insn.
* reload1.c (emit_reload_insns): Don't look for notes
	on a NULL store_insn.

From-SVN: r45120
2001-08-23 05:32:09 +00:00
Benjamin Kosnik
0bab15bb70 collate_wchar_t_members.cc: Guard with _GLIBCPP_USE_WCHAR_T.
2001-08-22  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/collate_wchar_t_members.cc: Guard
	with _GLIBCPP_USE_WCHAR_T.

From-SVN: r45118
2001-08-23 04:50:55 +00:00
Kaveh R. Ghazi
0d58773799 sparc.c (uns_small_int): Don't reference a constant >32-bit.
* sparc.c (uns_small_int): Don't reference a constant >32-bit.
	(addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
	(sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
	format specifier warnings.
	(sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.

From-SVN: r45117
2001-08-23 01:27:25 +00:00
David Billinghurst
429e2a45c0 i386-protos.h: Correct declaration of i386_pe_asm_named_section.
* config/i386/i386-protos.h: Correct declaration of
        i386_pe_asm_named_section.

From-SVN: r45116
2001-08-22 17:18:56 -07:00
Anthony Green
cb7d9f6769 Look for lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
From-SVN: r45115
2001-08-22 23:10:07 +00:00