Commit Graph

53321 Commits

Author SHA1 Message Date
Richard Henderson
69ee808667 * decl.c (duplicate_decls): Copy DECL_SAVED_INSNS too.
From-SVN: r71959
2003-09-30 15:58:39 -07:00
Kelley Cook
bf9d3c2774 Convert to ISO C90 prototypes.
From-SVN: r71957
2003-09-30 21:49:01 +00:00
Kelley Cook
6594e599c3 cygwin1.c: Convert to ISO C90 prototypes.
2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>

	* config/i386/cygwin1.c: Convert to ISO C90 prototypes.
	* config/i386/winnt.c: Likewise.
	* config/i386/cygming.h: Likewise.

From-SVN: r71956
2003-09-30 21:28:09 +00:00
Kazu Hirata
518723777f fold-const.c (fold): Fold (A & ~B) - (A & B) into (A ^ B) - B for any B.
* fold-const.c (fold): Fold (A & ~B) - (A & B) into
	(A ^ B) - B for any B.

From-SVN: r71953
2003-09-30 21:07:41 +00:00
Paolo Carlini
ae7c3ba55f stl_algo.h: Minor cosmetic reformattings.
2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/stl_algo.h: Minor cosmetic reformattings.

From-SVN: r71950
2003-09-30 20:16:28 +00:00
Roger Sayle
d186e676b6 jcf-write.c (generate_bytecode_insns): Implement evaluate-once semantics for SAVE_EXPR...
* jcf-write.c (generate_bytecode_insns): Implement evaluate-once
	semantics for SAVE_EXPR, by caching the result in a temporary.

From-SVN: r71949
2003-09-30 18:24:33 +00:00
Nathanael Nerode
8cefb55d77 config.gcc (arm*-*-kaos*, [...]): Disable fixproto.
* config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
	powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.

From-SVN: r71948
2003-09-30 17:23:47 +00:00
Paolo Carlini
cbc6c296e6 stl_algo.h (search_n): Tweak, to spare the first --__n.
2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/stl_algo.h (search_n): Tweak, to spare the
	first --__n.

From-SVN: r71946
2003-09-30 17:03:52 +00:00
Paolo Carlini
2ea247d376 12352.cc: Explicitly qualify exception name.
2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/locale/cons/12352.cc: Explicitly
	qualify exception name.

From-SVN: r71945
2003-09-30 15:19:33 +00:00
Paolo Carlini
155f6fbb62 re PR libstdc++/12438 (Memory leak in locale::combine())
2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/12438
	* include/bits/locale_facets.tcc (locale::combine): Don't
	leak memory if _M_replace_facet throws.
	* testsuite/22_locale/locale/cons/12438.cc: New, from the PR.

	* include/bits/locale_classes.h (locale::locale(const locale&,
	_Facet*)): Tweak, use consistently _M_remove_reference.

From-SVN: r71943
2003-09-30 13:44:59 +00:00
Gabriel Dos Reis
daafa301e4 decl.c (pop_binding): Don't mess with nullifying binding->scope here.
* decl.c (pop_binding): Don't mess with nullifying binding->scope
	here.
	* name-lookup.c: Re-format.
	(cxx_binding_free): Nullify binding->scope.

From-SVN: r71942
2003-09-30 11:56:25 +00:00
Richard Earnshaw
5fb1287933 * arm/ieee754-sf.S: Tidy formatting.
From-SVN: r71941
2003-09-30 10:38:10 +00:00
Nicolas Pitre
6a436e5e45 Nicolas Pitre <nico@cam.org>
Nicolas Pitre <nico@cam.org>
* arm/lib1funcs.asm (ARM_DIV_MOD_BODY) split into ARM_DIV_BODY
and ARM_MOD_BODY.
(ARM_MOD_BODY): rewritten. added clz insns for __ARM_ARCH__ >= 5.
(ARM_DIV_BODY): added clz insns for __ARM_ARCH__ >= 5,
added better divisor alignment in the other case.
(ARM_DIV2_ORDER): added, finds the order of a single bit divisor.
(__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
macros above, add fast exits for divisor >= dividend, etc.

From-SVN: r71940
2003-09-30 10:30:32 +00:00
Richard Earnshaw
47edf59e90 Nicolas Pitre <nico@cam.org>
Nicolas Pitre <nico@cam.org>
* arm/ieee754-df.S: split compilation of fixunsdfsi from
L_fixdfsi target.
* arm/t-arm-elf: add _fixunsdfsi target due to the above.

From-SVN: r71939
2003-09-30 10:21:41 +00:00
Nathanael Nerode
ec2a60b0c4 * config.gcc: Default use_fixproto to 'no'.
From-SVN: r71938
2003-09-30 10:16:39 +00:00
Paolo Carlini
70863cbd39 PR libstdc++/12352 (cont)
2003-09-30  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/12352 (cont)
	* src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
	Don't leak __cloc; don't leak if any of the _M_init_facet(...)
	calls fail.
	(locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
	(locale::_Impl::~_Impl): Don't do anything if !_M_facets,
	!_M_caches, !_M_names.

From-SVN: r71936
2003-09-30 07:28:51 +00:00
Richard Sandiford
573850d4cb re PR rtl-optimization/12345 (internal compiler error: verify_flow_info failed)
PR optimization/12345
	* config/mips/mips-protos.h (mips_restore_gp): Remove.
	(mips_gp_save_slot): Declare.
	* config/mips/mips.c (mips_restore_gp): Remove in favor of...
	(mips_gp_save_slot): ...this new function.
	* config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
	and mips_output_move to generate the output template.
	(call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
	a gp load after a noreturn call.  Load the gp using a move rather
	than an exception_receiver pattern.
	(call_value_internal, call_value_multiple_internal): Likewise.
	(call_split, call_value_split, call_value_multiple_split): Clobber $28.

From-SVN: r71935
2003-09-30 07:14:39 +00:00
GCC Administrator
3c44a3c4b7 Daily bump.
From-SVN: r71929
2003-09-30 00:16:07 +00:00
Carlo Wood
b82c4660a5 re PR debug/12319 (Wrong DW_AT_low_pc and DW_AT_high_pc for DW_TAG_inlined_subroutine)
PR debug/12319
* cfglayout.c (insn_scope):  Use prologue_locator and
epilogue_locator; return the outer function scope for
pro- and epilogue insns.

From-SVN: r71926
2003-09-29 23:09:12 +00:00
Carlo Wood
6fe2eacc48 MAINTAINERS (Write After Approval): Add myself.
2003-09-30  Carlo Wood  <carlo@alinoe.com>

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r71925
2003-09-29 22:51:00 +00:00
Zack Weinberg
563556ca7a objc-act.c (encode_type): Encode INTEGER_TYPEs and REAL_TYPEs based on the bitsize of the type's mode...
* objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
	REAL_TYPEs based on the bitsize of the type's mode, not the
	mode directly.

From-SVN: r71923
2003-09-29 22:28:58 +00:00
Zack Weinberg
21e6f0257f target.c (FFETARGET_ATOF_): Delete.
f:
	* target.c (FFETARGET_ATOF_): Delete.
	(ffetarget_real1, ffetarget_real2): Use real_from_string directly.
	* target.h (FFETARGET_REAL_VALUE_FROM_INT_,
	FFETARGET_REAL_VALUE_FROM_LONGLONG_): Use mode_for_size,
	don't refer to SFmode or DFmode directly.

From-SVN: r71922
2003-09-29 22:21:15 +00:00
Zack Weinberg
783be936d2 trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to initialize dconstp5 and dconstmp5.
ada:
	* trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
	initialize dconstp5 and dconstmp5.

From-SVN: r71921
2003-09-29 22:14:01 +00:00
Rainer Orth
9d34041928 dwarf2out.c (default_eh_frame_section): Split into ...
* dwarf2out.c (default_eh_frame_section): Split into ...
	(named_section_eh_frame_section, collect2_eh_frame_section): ... new
	functions.
	* output.h (named_section_eh_frame_section): Declare.
	(collect2_eh_frame_section): Likewise.

From-SVN: r71920
2003-09-29 22:07:39 +00:00
Zack Weinberg
bc800bb247 * real.c (real_sqrt): Use get_canonical_qnan directly.
From-SVN: r71919
2003-09-29 21:59:58 +00:00
Zack Weinberg
d464f1b822 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
From-SVN: r71918
2003-09-29 21:52:25 +00:00
Zack Weinberg
b409761a1f varasm.c (assemble_real): Use real_to_target directly...
* varasm.c (assemble_real): Use real_to_target directly,
	calculate the number of significant elements of the result
	array and write them out in a loop, instead of using a giant
	switch statement to pick the correct REAL_VALUE_TO_TARGET_*
	macro.

From-SVN: r71917
2003-09-29 21:29:11 +00:00
Jan Hubicka
f820b0cf2c re PR c++/12175 (Tru64 UNIX bootstrap failure: multiply defined symbols linking libstdc++.so)
PR c++/12175
	* varasm.c (notice_global_symbol): Discard external symbols.

	PR optimization/12286
	* gcov-io.c (gcov_read_words): Fix memmove call.
	* profile.c (compute_branch_probabilities): Add extra sanity checks.

	PR C++/12047
	* except.c (build_eh_type_type): Call mark_used on the type.

From-SVN: r71916
2003-09-29 21:19:10 +00:00
Tom Tromey
2cd5614273 re PR libgcj/10596 (Reference and String.intern don't work together)
PR libgcj/10596:
	* include/jvm.h (_Jv_FinalizeString,
	_Jv_RegisterStringFinalizer): Declare.
	* java/lang/natString.cc (_Jv_FinalizeString): Renamed from
	unintern.
	(intern): Updated.
	(_Jv_NewStringUtf8Const): Likewise.
	* java/lang/ref/natReference.cc (finalize_referred_to_object):
	Add special case when finalizing a String.
	(in_hash): New function.
	(_Jv_RegisterStringFinalizer): Likewise.
	(maybe_add_finalize): Likewise.

From-SVN: r71915
2003-09-29 21:13:55 +00:00
Rainer Orth
51ac684e52 configure.in: Remove wildcard from Solaris 8-9/Intel and Solaris 2.3/SPARC...
boehm-gc:
	* configure.in: Remove wildcard from Solaris 8-9/Intel and Solaris
	2.3/SPARC, there are no micro versions.
	Treat Solaris 10 and up alike.
	* configure: Regenerate.

	gcc:
	* config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
	Solaris 7-9.

	* fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
	wildcards which explicitly match micro versions.
	* fixinc/fixincl.x: Regenerate.

	libstdc++-v3:
	* configure.host: Handle Solaris 2.5 micro releases explicitly.
	Remove wildcards from Solaris 2.6, 7-9: there were no
	micro releases.
	Treat Solaris 10 and up like 7-9.

From-SVN: r71914
2003-09-29 20:02:08 +00:00
Paolo Carlini
6821a40b74 stl_algo.h (search_n): Improve the previous fix as suggested by Martin.
2003-09-29  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/stl_algo.h (search_n): Improve the previous
	fix as suggested by Martin.

From-SVN: r71913
2003-09-29 19:43:04 +00:00
Richard Kenner
3ec278de0b Remove extra comma in comment.
From-SVN: r71912
2003-09-29 13:41:47 -04:00
Paolo Carlini
e5012ba5ec [multiple changes]
2003-09-29  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/12296
	* include/bits/istream.tcc (peek): Set eofbit if sgetc
	returns eof.
	* testsuite/27_io/basic_istream/peek/char/12296.cc:
	New, from the PR.

2003-09-29  Nathan Myers  <ncm@cantrip.org>
	    Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/11400
	* include/bits/stl_algo.h (search_n):
	Use iterator_traits<>::difference_type for __n.
	* testsuite/25_algorithms/search_n/11400.cc: New, from the PR.

From-SVN: r71911
2003-09-29 17:36:18 +00:00
Kazu Hirata
38b35623d3 fold-const.c (fold): Fold (A & ~B) - (A & B) into (A ^ B) - B, where B is any power of 2 minus 1.
* fold-const.c (fold): Fold (A & ~B) - (A & B) into
	(A ^ B) - B, where B is any power of 2 minus 1.

From-SVN: r71910
2003-09-29 17:35:11 +00:00
Richard Henderson
1ffcc35206 * g++.dg/init/array10.C: Add dg-options.
From-SVN: r71907
2003-09-29 10:16:09 -07:00
Jan Hubicka
43ac26234a * libgcov.c (gcov_exit): Fix two pastos.
From-SVN: r71906
2003-09-29 17:09:36 +00:00
Kazu Hirata
681a664b13 h8300.md (*tst_extzv_1_n): Combine with the define_split immediately below to form define_insn_and_split.
* config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
	define_split immediately below to form define_insn_and_split.

From-SVN: r71903
2003-09-29 16:34:09 +00:00
Kazu Hirata
22a3d55fdf h8300.md (*tstsi_variable_bit): New.
* config/h8300/h8300.md (*tstsi_variable_bit): New.
	(*tstsi_variable_bit_qi): Likewise.

From-SVN: r71902
2003-09-29 16:32:28 +00:00
Paul Koning
ea57e5adfa MAINTAINERS: Move myself from "Write After Approval" to CPU platform maintainers for pdp11...
* MAINTAINERS: Move myself from "Write After Approval"
to CPU platform maintainers for pdp11 platform.

From-SVN: r71901
2003-09-29 12:27:40 -04:00
Michael Koch
fc5532c0c5 Fixed little typo.
From-SVN: r71900
2003-09-29 12:05:41 +00:00
Michael Koch
b47ea0e89c 2003-09-29 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
	(isMulticastAddress): Dont use local variable to store address length.
	Let the compiler optimize this.
	(getHostName): Merged dcoumentation from classpath.
	(getAddress): Likewise.
	(getHostAddress): Likewise.
	(hashCode): Likewise.
	(equals): Likewise.
	(toString): Likewise.
	(getByName): Likewise.
	(getAllByName): Likewise.

From-SVN: r71899
2003-09-29 11:53:23 +00:00
Michael Koch
3887819542 IndexColorModel.java: Reformated.
2003-09-29  Michael Koch  <konqueror@gmx.de>

	* java/awt/image/IndexColorModel.java: Reformated.

From-SVN: r71898
2003-09-29 11:28:58 +00:00
Michael Koch
7da1da8352 InetAddress.java, URL.java: Reformated.
2003-09-29  Michael Koch  <konqueror@gmx.de>

	* java/net/InetAddress.java,
	java/net/URL.java: Reformated.

From-SVN: r71897
2003-09-29 11:24:28 +00:00
Paolo Carlini
6cd6aed790 12352.cc: Use __attribute__((unused)) for test.
2003-09-29  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/locale/cons/12352.cc:
	Use __attribute__((unused)) for test.

From-SVN: r71896
2003-09-29 08:25:17 +00:00
Bryce McKinlay
e7c4333b11 boehm.cc (_Jv_BuildGCDescr): Put first word of object in most significant bit of descriptor.
* boehm.cc (_Jv_BuildGCDescr): Put first word of object in most
	significant bit of descriptor. Include the vtable and sync_info
	fields.

From-SVN: r71895
2003-09-29 08:13:40 +01:00
Phil Edwards
5560a945d8 cppopts.texi: Use 'dashMP' instead of '-MP' as a cross- reference name.
2003-09-28  Phil Edwards  <phil@codesourcery.com>

	* doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
	reference name.

From-SVN: r71894
2003-09-29 06:19:39 +00:00
Eric Botcazou
ea0738f236 * g++.dg/opt/unroll1.C: Change unsigned to __SIZE_TYPE__.
From-SVN: r71891
2003-09-29 06:14:59 +00:00
GCC Administrator
e8cadb6970 Daily bump.
From-SVN: r71888
2003-09-29 00:16:07 +00:00
Richard Henderson
436fac170a c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not file and line separately.
* c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
        file and line separately.

f/
        * com.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
        file and line separately.
java/
        * check-init.c (check_init): Save and restore input_location
        instead of file and line separately.
        * decl.c (java_expand_body): Likewise.
        * jcf-write.c (generate_bytecode_insns): Likewise.
        * parse.y (safe_layout_class): Likewise.
        * jcf-parse.c (read_class, parse_class_file): Likewise.
        (java_parse_file): Use %H for warning locator.

From-SVN: r71886
2003-09-28 15:18:33 -07:00
Ulrich Weigand
b2ba71cad8 s390.md ("*adddi3_carry1_cc", [...]): New insns.
* config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
	"*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
	"*subdi3_borrow_cconly"): New insns.
	("*addsi3_sub", "*subsi3_sub"): Remove.
	("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
	("*subsi3_cc"): Fix op_type attribute.

From-SVN: r71885
2003-09-28 19:17:49 +00:00