Commit Graph

55837 Commits

Author SHA1 Message Date
Paolo Carlini
72afd981f8 re PR libstdc++/13838 (std::bitset<>::operator |= error with -D_GLIBCXX_DEBUG)
2004-01-23  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/13838
	* include/debug/bitset (operator|=): Fix typo.
	* testsuite/23_containers/bitset/operations/13838.cc: New.

From-SVN: r76479
2004-01-24 01:25:37 +00:00
Jan Hubicka
3e2a0bd237 * cselib.c (remove_useless_values): Do not access discarded values.
From-SVN: r76478
2004-01-24 00:38:50 +00:00
Joseph Myers
b1adf557d8 c-typeck.c (build_conditional_expr): Do not allow non-lvalue arrays.
* c-typeck.c (build_conditional_expr): Do not allow non-lvalue
	arrays.

testsuite:
	* gcc.dg/c90-array-lval-7.c, gcc.dg/c99-array-lval-7.c: New tests.

From-SVN: r76477
2004-01-24 00:30:58 +00:00
Paolo Carlini
251804e635 basic_string.tcc (insert(size_type, const _CharT*, size_type __n)): Fix length_error check.
2004-01-23  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.tcc (insert(size_type,
	const _CharT*, size_type __n)): Fix length_error check.
	(replace(size_type, size_type, const _CharT*, size_type):
	Ditto; call _M_replace_safe.
	(_M_replace_aux(size_type, size_type, size_type, _CharT):
	Fix length_error check.
	(_M_replace(iterator, iterator, _InputIterator,
	_InputIterator)): Ditto, tweak.
	(_M_replace_safe(size_type, size_type, const _CharT*,
	size_type)): Remove length_error check.

	* include/bits/basic_string.tcc (append(const basic_string&),
	append(const basic_string&, size_type, size_type)): Tweak
	comment.

	* include/bits/basic_string.tcc (copy(_CharT*, size_type,
	size_type)): If __n == 0 don't call traits::copy.

From-SVN: r76476
2004-01-24 00:27:19 +00:00
DJ Delorie
fa2f03062c Makefile.def (target_modules): Don't stage.
* Makefile.def (target_modules) [libiberty]: Don't stage.
* Makefile.in: Rebuilt.

From-SVN: r76475
2004-01-23 19:23:24 -05:00
Stefan Olsson
3cfb44c200 mt_allocator.h: Reduce lock contention.
2004-01-23  Stefan Olsson  <stefan@snon.net>

	* include/ext/mt_allocator.h: Reduce lock contention.

From-SVN: r76474
2004-01-24 00:21:02 +00:00
GCC Administrator
b4eb7029c3 Daily bump.
From-SVN: r76471
2004-01-24 00:16:13 +00:00
Kazu Hirata
55cd46331d * recog.c: Fix a typo in copyright.
From-SVN: r76467
2004-01-23 23:49:36 +00:00
Andrew Pinski
279883ed03 re PR c++/13701 (g++.old-deja/g++.eh/cleanup2.C ICEs)
2004-01-23  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/13701
        * decl.c (finish_function): Move the call to
        finish_fname_decls below the call to
        finish_eh_spec_block.

From-SVN: r76464
2004-01-23 14:57:07 -08:00
Andrew Pinski
4a374c35c8 20030121-1.c: Move to ..
2004-01-23  Andrew Pinski  <apinski@apple.com>

        * gcc.dg/20030121-1.c: Move to ..
        * gcc.dg/20040121-1.c: here.

From-SVN: r76463
2004-01-23 14:45:53 -08:00
Andrew Pinski
bbf294a55b rs6000.md (call): Fix misappiled patch.
2004-01-23  Andrew Pinski  <apinski@apple.com>

        * config/rs6000/rs6000.md (call): Fix misappiled patch.
        (call_value): Likewise.

From-SVN: r76462
2004-01-23 14:41:20 -08:00
Richard Henderson
a475bff7f8 combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
* combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
        (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
        if SHIFT_COUNT_TRUNCATED is set.

From-SVN: r76461
2004-01-23 14:23:10 -08:00
Bob Wilson
3712281f9d xtensa.c (xtensa_va_arg): Handle complex values as separate real and imaginary parts.
* config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
	separate real and imaginary parts.
	* config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.

From-SVN: r76459
2004-01-23 22:12:34 +00:00
Hartmut Penner
99e5c00bc4 re PR rtl-optimization/13674 (ICE in reload_cse_simplify_operands, at postreload.c:378 on PPC64)
2004-01-23  Hartmut Penner <hpenner@de.ibm.com>

        PR target/13674
        * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
        loading into GPR.

From-SVN: r76458
2004-01-23 17:07:06 -05:00
Jan Hubicka
a74ff87764 emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing change.
* emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
	change.

From-SVN: r76457
2004-01-23 22:05:19 +00:00
Jan Hubicka
8b07361ed4 alloc-pool.c (align_four): Kill.
* alloc-pool.c (align_four): Kill.
	(create_alloc_pool): Align size to eight.
	(free_alloc_pool, free_pool): Invalidate deallocated data.

From-SVN: r76456
2004-01-23 22:01:55 +00:00
Ian Lance Taylor
e129d93a7b re PR target/1532 (-O3 generates (obviously) redundant tests and jumps)
PR gcc/1532
	* cse.c (cse_change_cc_mode): New static function.
	(cse_change_cc_mode_insns, cse_cc_succs): Likewise.
	(cse_condition_code_reg): New function.
	* rtl.h (cse_condition_code_reg): Declare.
	* toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
	* target.h (struct gcc_target): Add fixed_condition_code_regs and
	cc_modes_compatible.
	* target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
	(TARGET_CC_MODES_COMPATIBLE): Define.
	(TARGET_INITIALIZER): Add new initializers.
	* targhooks.c (default_cc_modes_compatible): New function.
	* targhooks.c (default_cc_modes_compatible): Declare.
	* hooks.c (hook_bool_intp_intp_false): New function.
	* hooks.h (hook_bool_intp_intp_false): Declare.
	* config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
	(TARGET_CC_MODES_COMPATIBLE): Define.
	(ix86_fixed_condition_code_regs): New static function.
	(ix86_cc_modes_compatible): Likewise.
	* doc/tm.texi (Condition Code): Document new hooks.

From-SVN: r76454
2004-01-23 21:05:21 +00:00
Rainer Orth
f6c930a38a inclhack.def (bad_lval): Renamed to ...
* fixinc/inclhack.def (bad_lval): Renamed to ...
	(alpha_bad_lval): ... this.
	Removed file list.
	Restrict to alpha*-dec-osf*.
	* fixinc/fixincl.x: Regenerate.
	* fixinc/tests/base/dirent.h: Remove, moving test ...
	* fixinc/tests/base/testing.h: ... here, reflecting new name.

From-SVN: r76450
2004-01-23 20:40:52 +00:00
Andrew Pinski
30cab86985 re PR c/13814 (rejects different prototypes than builtin function)
2004-01-23  Zack Weinberg  <zack@codesourcery.com>

        PR c/13814
        * c-decl.c (diagnose_mismatched_decls): Also discard a
        built-in if we encounter an old-style definition with the
        same name.

From-SVN: r76445
2004-01-23 10:38:40 -08:00
Roger Sayle
92c7bc2abc * gcc.dg/builtins-29.c: New test case.
From-SVN: r76444
2004-01-23 18:37:16 +00:00
Zack Weinberg
04b8f97f29 re PR c/18314 (Abnormal behavior in optimization)
PR 18314
	* c-decl.c (diagnose_mismatched_decls): Also discard a
	built-in if we encounter an old-style definition with the
	same name.
testsuite:
	* gcc.dg/builtins-30.c: New testcase.

From-SVN: r76441
2004-01-23 18:13:55 +00:00
Jakub Jelinek
1ab1739cc6 config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was set to default{32,64}.
* config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
	set to default{32,64}.

From-SVN: r76439
2004-01-23 18:42:58 +01:00
Jakub Jelinek
02731d29be linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Corrected to handle kernels with changed ucontext.
* config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
	[!__powerpc64__]: Corrected to handle kernels with changed ucontext.

	* include/powerpc-signal.h: Add #ifndef __powerpc64__ around the
	header.  For __powerpc64__ provide the default-signal.h definitions
	for now.
	* include/x86_64-signal.h [!__x86_64__]: Include java-signal-aux.h
	instead of the dummy definitions.
	* configure.host (x86_64-*): Remove CHECKREFSPEC, add DIVIDESPEC.
	(powerpc64*-*): Remove with_libffi_default.
	Only add -mminimal-toc for 64-bit compilations.
	* configure.in: Use powerpc-signal.h on powerpc64 as well.
	(x86_64-*-linux*): Set SIGNAL_HANDLER_AUX.
	Link SIGNAL_HANDLER_AUX to include/java-signal-aux.h.
	* configure: Rebuilt.

From-SVN: r76437
2004-01-23 18:32:16 +01:00
Eric Botcazou
0a944ef648 fold-const.c (fold_binary_op_with_conditional_arg): Only build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
* fold-const.c (fold_binary_op_with_conditional_arg): Only
	build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.

Co-Authored-By: Olivier Hainque <hainque@act-europe.fr>

From-SVN: r76434
2004-01-23 16:52:07 +00:00
Paolo Carlini
22352844c9 re PR libstdc++/13831 (Unused variable in basic_filebuf::underflow)
2004-01-23  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/13831
	* include/bits/fstream.tcc (underflow): Remove unused
	variable.
	* include/bits/streambuf_iterator.h (equal): Ditto.
	* include/bits/locale_facets.h (_M_convert_from_char):
	Ditto.

From-SVN: r76433
2004-01-23 16:51:24 +00:00
Kaveh R. Ghazi
129057c1ee re PR c/13814 (rejects different prototypes than builtin function)
PR c/13814
	* config/linker-map.gnu (nan): Delete.
	* libmath/mathconf.h (NAN, nan): Delete.
	* linkage.m4 (nan): Don't check for it.
	* libmath/nan.c: Delete file.

	* config.h.in, configure: Regenerate.

From-SVN: r76431
2004-01-23 16:47:06 +00:00
Daniel Jacobowitz
0bfb39efec arm.c (arm_legitimate_address_p): Don't check the mode size for minipool references.
* config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
	size for minipool references.

From-SVN: r76429
2004-01-23 16:33:43 +00:00
Roger Sayle
25348c94e7 real.c (real_floor, real_ceil): Tweak to allow input and output arguments to overlap.
* real.c (real_floor, real_ceil): Tweak to allow input and output
	arguments to overlap.
	(real_round): New function to implement round(3m) semantics.
	* real.h (real_round): Prototype here.
	* builtins.c (fold_builtin_round): New function to constant fold
	round, roundf and roundl.
	(fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.

	* gcc.dg/builtins-29.c: New test case.

From-SVN: r76428
2004-01-23 16:16:33 +00:00
Michael Koch
69f2de23b2 FileLockImpl.java: Compile fixes.
2004-01-23  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/FileLockImpl.java: Compile fixes.

From-SVN: r76427
2004-01-23 15:53:51 +00:00
Michael Koch
0791cb20bc VMClassLoader.java: Reworked imports.
2004-01-23  Michael Koch  <konqueror@gmx.de>

	* java/lang/VMClassLoader.java: Reworked imports.

From-SVN: r76426
2004-01-23 15:29:38 +00:00
Alexandre Oliva
0f2b41b2d8 re PR target/13819 (sh-elf broken; abort in sh_reorg())
PR optimization/13819
* config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
introduced by 2004-01-20's Jan Hubicka's copy_insn change.
(sh_handle_sp_switch_attribute): Remove warning.

From-SVN: r76425
2004-01-23 15:29:09 +00:00
Michael Koch
f1184d57e2 AbstractAction.java: Reformated.
2004-01-23  Michael Koch  <konqueror@gmx.de>

	* javax/swing/AbstractAction.java: Reformated.

From-SVN: r76424
2004-01-23 15:19:28 +00:00
Michael Koch
f0bf056e74 2004-01-23 Michael Koch <konqueror@gmx.de>
* java/text/CollationElementIterator.java:
	(setText): New method.

From-SVN: r76423
2004-01-23 15:15:31 +00:00
Michael Koch
9719e37cec FileLockImpl.java: Fixed filename in copyright.
2004-01-23  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/FileLockImpl.java:
	Fixed filename in copyright.
	(released): Removed.
	(finalize): New method.
	* gnu/java/nio/natFileLockImpl.cc
	(releaseImpl): Implemented.
	* java/nio/channels/FileChannelImpl.java:
	Reworked imports.
	(lock): Implemented.
	(lockImpl): New method.
	(tryLock): Implemented.
	(tryLockImpl): New method.
	* java/nio/channels/natFileChannelImpl.cc
	(lockImpl): New method.
	(tryLockImpl): New method.

From-SVN: r76422
2004-01-23 14:37:09 +00:00
Michael Koch
ca1d829f31 2004-01-23 Michael Koch <konqueror@gmx.de>
* java/io/FileDescriptor.java
	(lock): New method.
	(tryLock): New method.
	(unlock): New method.
	* java/io/natFileDescriptorEcos.cc
	(lock): New method.
	(tryLock): New method.
	(unlock): New method.
	* java/io/natFileDescriptorPosix.cc
	(lock): New method.
	(tryLock): New method.
	(unlock): New method.
	* java/io/natFileDescriptorWin32.cc
	(lock): New method.
	(tryLock): New method.
	(unlock): New method.

From-SVN: r76421
2004-01-23 14:07:28 +00:00
Paolo Carlini
0e707673d2 basic_string.h (push_back(_CharT)): Call _M_replace_aux.
2004-01-23  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.h (push_back(_CharT)):
	Call _M_replace_aux.
	(insert(size_type, const basic_string&)): Trivial tweak.
	(insert(size_type, size_type, _CharT)): Call _M_replace_aux.
	(insert(iterator, _CharT)): Ditto.
	(erase(size_type, size_type)): Ditto.
	(erase(iterator)): Ditto.
	(erase(iterator, iterator)): Ditto.
	(replace(size_type, size_type, size_type, _CharT)): Ditto.

From-SVN: r76420
2004-01-23 13:57:19 +00:00
Michael Koch
55777f44dc 2004-01-23 Michael Koch <konqueror@gmx.de>
* java/io/FileDescriptor.java
	(sync): Moved around, added javadoc.
	(valid): Likewise.
	(open): Likewise.
	(write): Likewise.
	(close): Likewise.
	(setLength): Likewise.
	(seek): Likewise.
	(getLength): Likewise.
	(getFilePointer): Likewise.
	(read): Likewise.
	(available): Likewise.
	(finalize): Likewise.

From-SVN: r76419
2004-01-23 13:50:10 +00:00
Jan Hubicka
72613dfaa2 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
From-SVN: r76416
2004-01-23 14:24:58 +01:00
J"orn Rennecke
7be4d808ff tm.texi: Insert some weasel words when LOAD_EXTEND_OP may or may not return non-NIL.
* doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
	may or may not return non-NIL.
	* postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
	check CANNOT_CHANGE_MODE_CLASS

From-SVN: r76415
2004-01-23 13:01:42 +00:00
Michael Koch
3ac55a5a69 AbstractAction.java: Reformated.
2004-01-23  Michael Koch  <konqueror@gmx.de>

	* javax/swing/AbstractAction.java: Reformated.
	(getPropertyChangeListeners): New method.
	* javax/swing/AbstractCellEditor.java: Reformated.
	(getCellEditorListeners): New method.
	* javax/swing/DefaultListSelectionModel.java
	(listenerList): New field.
	(listeners): Removed.
	(get_listeners): Removed.
	(addListSelectionListener): Rewritten.
	(removeListSelectionListener): Rewritten.
	(getListSelectionListeners): New method.
	(getListeners): New method.
	* javax/swing/JComboBox.java: Imports reworked.
	(addActionListener): Implemented.
	(removeActionListener): Implemented.
	(addItemListener): Implemented.
	(removeItemListener): Implemented.
	(addPopupMenuListener): Implemented.
	(removePopupMenuListener): Implemented.
	(getActionListeners): New method.
	(getItemListeners): New method.
	(getPopupMenuListeners): New method.

From-SVN: r76413
2004-01-23 12:42:10 +00:00
Michael Koch
5d7b2198ba 2004-01-23 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java
	(connect): Don't initialize bufferedOutputStream if not needed.
	(sendRequest): Set property for content length if content is present.
	Write content only if present.
	(getOutputStream): Check if already connected, dont connect,
	initalize bufferedOutputStream if needed.

From-SVN: r76412
2004-01-23 12:32:23 +00:00
Michael Koch
8fac50e006 2004-01-23 Michael Koch <konqueror@gmx.de>
* java/io/FileDescriptor.java
	(in, out, err): Added javadoc.
	(static): Merged loading code.
	(fd, position): Moved around.

From-SVN: r76411
2004-01-23 12:29:05 +00:00
Michael Koch
58cc478949 BitwiseXORComposite-1.png: New file.
2004-01-23  Michael Koch  <konqueror@gmx.de>

	* gnu/java/awt/doc-files/BitwiseXORComposite-1.png:
	New file.

From-SVN: r76410
2004-01-23 12:01:23 +00:00
Michael Koch
834d51fe49 Class.java, [...]: Merged copyright with classpath.
2004-01-23  Michael Koch  <konqueror@gmx.de>

	* java/lang/Class.java,
	java/lang/Object.java,
	java/lang/Thread.java: Merged copyright with classpath.

From-SVN: r76409
2004-01-23 11:56:48 +00:00
Michael Koch
a36d3fe4aa FileDescriptor.java: Merged copyright with classpath to start merging this class.
2004-01-23  Michael Koch  <konqueror@gmx.de>

	* java/io/FileDescriptor.java: Merged copyright with classpath to
	start merging this class.

From-SVN: r76408
2004-01-23 11:45:54 +00:00
Jan Hubicka
23bd7a9342 basic-block.h (PROP_POSTRELOAD): New macro.
* basic-block.h (PROP_POSTRELOAD): New macro.
	(CLEANUP_LOG_LINKS): New.
	* cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
	* toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.

	* cselib.c (value_pool): New.
	(new_cselib_val): Use pool.
	(cselib_init): Initialize value_pool
	(cselib_finish): Free pool.

From-SVN: r76405
2004-01-23 11:02:09 +00:00
Arnaud Charlet
b291953f9d 1aexcept.adb, [...]: Removed, unused.
* 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
	1ssecsta.ads: Removed, unused.

From-SVN: r76404
2004-01-23 11:35:42 +01:00
Arnaud Charlet
b7e429ab79 [multiple changes]
2004-01-23  Robert Dewar  <dewar@gnat.com>

	* exp_aggr.adb: Minor reformatting

	* exp_ch9.adb: Minor code clean up
	Minor reformatting
	Fix bad character in comment

	* targparm.adb (Get_Target_Parameters): Give clean abort error on
	unexpected end of file, along with more detailed message.

2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
	PAT.

	* decl.c (copy_alias_set): New function.
	(gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.

2004-01-23  Doug Rupp  <rupp@gnat.com>

	* Makefile.in (install-gnatlib): Change occurrences of lib$$file to
	lib$${file} in case subsequent character is not a separator.

2004-01-23  Vincent Celier  <celier@gnat.com>

	* 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
	when the GCC version is at least 3.

	* make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
	Remove all "Opt.", to prepare for opt split

	* prj-part.adb (Parse_Single_Project): New Boolean out parameter
	Extends_All. Set to True when the project parsed is an extending all
	project. Fails for importing an extending all project only when the
	imported project is an extending all project.
	(Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
	depending on the value of Extends_All returned.

	* prj-proc.adb (Process): Check that no project shares its object
	directory with a project that extends it, directly or indirectly,
	including a virtual project.
	Check that no project extended by another project shares its object
	directory with another also extended project.

	* prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
	Kind = N_With_Clause

	* prj-tree.ads: Minor reformatting
	Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).

2004-01-23  Ed Schonberg  <schonberg@gnat.com>

	* sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
	applies to a type with an incomplete view, use full view in Name of
	clause, for consistency with uses of Get_Attribute_Definition_Clause.

2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>

	* 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
	SCHED_RR, since other values are not supported by this policy.
	(Initialize): Move initialization of mutex attribute to package
	elaboration, to prevent early access to this variable.

	* Makefile.in: Remove mention of Makefile.adalib, unused.

	* Makefile.adalib: Removed, unused.

From-SVN: r76403
2004-01-23 11:30:04 +01:00
Arnaud Charlet
908f6e7c99 re PR ada/13471 (Bug Box: Storage_Error stack overflow(?), presence of incorrect system.ads causes loop)
PR ada/13471
	* targparm.adb (Get_Target_Parameters): Give clean abort error on
	unexpected end of file, along with more detailed message.

From-SVN: r76402
2004-01-23 10:53:05 +01:00
Eric Botcazou
5c4f4b18cc sparc.c (scan_record_type): New function.
* config/sparc/sparc.c (scan_record_type): New function.
	(function_arg_slotno): Use it to determine which kinds of
	registers the record can be passed in.

From-SVN: r76400
2004-01-23 09:16:56 +00:00