Commit Graph

62694 Commits

Author SHA1 Message Date
Paolo Carlini b67ed5e845 list_sort_search.cc: Include <ext/new_allocator.h>.
2004-10-19  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/20_util/allocator/list_sort_search.cc:
	Include <ext/new_allocator.h>.
	* testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.

From-SVN: r89269
2004-10-19 08:56:32 +00:00
Kelley Cook 4c67db1411 configure.ac (powerpc-*-darwin*): Require assembler to support .machine directive.
2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.ac (powerpc-*-darwin*): Require assembler to support
	.machine directive.
	* configure: Regenerate.

From-SVN: r89264
2004-10-19 00:21:03 +00:00
GCC Administrator df484c6bbc Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89262.2
2004-10-19 00:16:15 +00:00
GCC Administrator 772024bf45 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r89261.2
2004-10-19 00:16:11 +00:00
Kazu Hirata 193d7268a8 sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting the currently visited word to right.
* sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
	the currently visited word to right.

From-SVN: r89259
2004-10-18 23:56:18 +00:00
Kazu Hirata 00268eb387 reload1.c (ior_hard_reg_set): Remove.
* reload1.c (ior_hard_reg_set): Remove.
	(finish_spills): Use IOR_HARD_REG_SET instead of
	ior_hard_reg_set.

From-SVN: r89258
2004-10-18 23:54:36 +00:00
Kazu Hirata 26ebd00db3 sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting the currently visited word to right.
* sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
	the currently visited word to right.

From-SVN: r89257
2004-10-18 23:51:07 +00:00
Kaz Kojima e0d3b4528f ffi.c (ffi_prep_closure): Set T bit in trampoline for the function returning a structure pointed with R2.
* src/sh/ffi.c (ffi_prep_closure): Set T bit in trampoline for
	the function returning a structure pointed with R2.
	* src/sh/sysv.S (ffi_closure_SYSV): Use R2 as the pointer to
	the structure return value if T bit set.  Emit position
	independent code and EH data if PIC.

From-SVN: r89254
2004-10-18 23:12:20 +00:00
Eric Botcazou 6e7a355c16 re PR middle-end/18045 (signed integer remainder for power of 2 broken)
PR middle-end/18045
	* expmed.c (expand_smod_pow2): Handle modes whose size
	is greater than that of HOST_WIDE_INT.

From-SVN: r89253
2004-10-18 22:45:01 +00:00
Ziemowit Laski d4de696663 c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
[gcc/ChangeLog]
2004-10-18  Ziemowit Laski  <zlaski@apple.com>

        * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.

[gcc/testsuite/ChangeLog]
2004-10-18  Ziemowit Laski  <zlaski@apple.com>

        * objc.dg/method-14.m: New test.

From-SVN: r89252
2004-10-18 22:28:09 +00:00
Eric Botcazou a494ed43ab re PR middle-end/17813 (ada bootstrap failure on i486-linux)
PR middle-end/17813
	* dojump.c (discard_pending_stack_adjust): New function.
	(clear_pending_stack_adjust): Call it.
	* expr.h (discard_pending_stack_adjust): Declare it.
	* explow.c (emit_stack_save): Emit pending stack adjustments
	before saving the stack pointer.
	(emit_stack_restore): Discard pending stack adjustments before
	restoring the stack pointer.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>

From-SVN: r89251
2004-10-18 22:06:36 +00:00
Andrew Pinski 829acd784a pr17529.c: Fix test for non x86.
2004-10-18  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.c-torture/compile/pr17529.c: Fix test for non x86.
        Also xfail as the patch was reverted.

From-SVN: r89249
2004-10-18 15:03:15 -07:00
Richard Henderson a2d366026e c-common.c (handle_mode_attribute): Allow scalar->vector type changes yet.
* c-common.c (handle_mode_attribute): Allow scalar->vector
        type changes yet.

From-SVN: r89248
2004-10-18 15:01:51 -07:00
Andrew Pinski 135a488f23 Fix typo.
From-SVN: r89247
2004-10-18 14:54:11 -07:00
Matthias Klose 95e1958054 * gnatvsn.ads: Set gnat library version to 4.0.
From-SVN: r89246
2004-10-18 21:47:21 +00:00
Kazu Hirata df9af2bb6b expr.c (expand_expr_real_1): Don't request a value to expand_assignment.
* expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
	value to expand_assignment.

From-SVN: r89245
2004-10-18 21:18:23 +00:00
Kazu Hirata ab51c2f00c tree-cfg.c (cleanup_tree_cfg): Don't iterate on thread_jumps.
* tree-cfg.c (cleanup_tree_cfg): Don't iterate on
	thread_jumps.
	(thread_jumps): Iterate until no new forwarder block arises.

From-SVN: r89244
2004-10-18 21:16:53 +00:00
Kazu Hirata 78b6731db8 tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
* tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
	(thread_jumps): Use forwardable as cache of
	tree_forwarder_block_p throughout the function.

From-SVN: r89243
2004-10-18 21:14:34 +00:00
Andreas Krebbel 320b0f6a1e cfg.c (dump_flow_info): Remove redundant dump of reg life info.
2004-10-18  Andreas Krebbel  <krebbel1@de.ibm.com>

	* cfg.c (dump_flow_info): Remove redundant dump of reg life info.

From-SVN: r89240
2004-10-18 19:58:01 +00:00
Andrew Pinski c2f55a1baa re PR middle-end/16973 (Differences between addresses of labels broken)
2004-10-18  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/16973
        * gcc.dg/pr16973.c: New test.

From-SVN: r89238
2004-10-18 12:38:47 -07:00
Andrew Pinski 775689606a re PR middle-end/15014 (labels after are removed even though they are used)
2004-10-18  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/15014
        PR middle-end/16973
        * tree-cfg.c (remove_bb): If we have a label expression in the
        basic block and the label we have taken the address, move the
        label expression to the basic block which is previous in the
        linked list.
        (tree_verify_flow_info): Fix printing out the label name of the
        problematic label expression.

From-SVN: r89237
2004-10-18 12:29:52 -07:00
David Edelsohn b1c79b464f Note PR rtl-optimization/18002.
From-SVN: r89236
2004-10-18 14:47:38 -04:00
Pat Haugen b757b9f8b2 simplify-rtx.c (mode_signbit_p): Externalize function...
2004-10-18  Pat Haugen  <pthaugen@us.ibm.com>

        * simplify-rtx.c (mode_signbit_p): Externalize function...
        * rtl.h (mode_signbit_p): ... to here.
        * combine.c (simplify_shift_const): Recognize PLUS signbit as
        canonical form of XOR signbit and move to outer op.

From-SVN: r89235
2004-10-18 14:46:06 -04:00
Diego Novillo 1a1804c270 tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
* tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
	Update all callers.
	* tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
	Don't call fold_stmt more than once, use bsi_replace.

From-SVN: r89234
2004-10-18 14:01:10 -04:00
Diego Novillo bca9e17b5a re PR tree-optimization/17656 (internal compiler error: in replace_immediate_uses, at tree-ssa.c:1041)
PR tree-optimization/17656
	* tree-ssa.c (replace_immediate_uses): When replacing a
	constant, if the call to fold_stmt produced a different
	statement, get an appropriate statement pointer by scanning
	STMT's basic block.

	PR tree-optimization/17656
	* testsuite/gcc.c-torture/compile/pr17656.c: New test.

From-SVN: r89233
2004-10-18 13:39:47 -04:00
Nathan Sidwell 18e4be8561 cp-tree.h (UNIQUELY_DERIVED_FROM_P): Adjust lookup_base call.
cp:
	* cp-tree.h (UNIQUELY_DERIVED_FROM_P): Adjust lookup_base call.
	(ACCESSIBLY_UNIQUELY_DERIVED_P): Remove.
	(PUBLICLY_UNIQUELY_DERIVED_P): Adjust lookup_base call.
	(enum base_access): Reorganize.
	(accessible_base_p, accessible_p): Add consider_local_p parameter.
	* call.c (standard_conversion): Update comment about
	DERIVED_FROM_P.
	(enforce_access): Adjust accessible_p call.
	(build_over_call): Adjust accessible_base_p call.
	* class.c (convert_to_base): Adjust lookup_base call.
	(build_vtbl_ref_1): Likewise.
	(warn_about_ambiguous_bases): Likewise. Add early exit.
	* cvt.c (convert_to_pointer_force) Adjust lookup_base call.
	* search.c (accessible_base_p): Add consider_local_p parameter.
	(lookup_base): Pass consider_local_p to accessible_base_p call.
	(friend_accessible_p): Check whether scope is a class member.
	Remove unnecessary class template check.
	(accessible_p): Add consider_local_p parameter. Use it.
	(adjust_result_of_qualified_name_lookup): Adjust lookup_base call.
	* tree.c (maybe_dummy_object): Likewise.
	* typeck.c (comp_except_type): Use PUBLICLY_UNIQUELY_DERIVED_P.
	(build_class_member_access_expr): Adjust lookup_base call.
	* typeck2.c (binfo_or_else): Likewise.
	* rtti.c (build_dynamic_cast_1): Access can consider friendship
	and current scope.
testsuite:
	* g++.dg/eh/shadow1.C: New.

From-SVN: r89232
2004-10-18 17:21:36 +00:00
Richard Henderson b499264121 * pointer-set.c (hash1): Don't use libm functions in fallback case.
From-SVN: r89231
2004-10-18 09:44:50 -07:00
H.J. Lu f072a5c8aa Correct date.
From-SVN: r89229
2004-10-18 09:06:10 -07:00
H.J. Lu 3b415018d3 re PR bootstrap/17684 (/usr/ccs/bin/ld: Can't create libgcc_s.sl)
2004-11-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/17684
	* Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
	(stage1-start): Remove and copy libunwind.a and
	libunwind*$(SHLIB_EXT) instead of libunwind*.
	(stage2-start): Likewise.
	(stage3-start): Likewise.
	(stage4-start): Likewise.
	(stageprofile-start): Likewise.
	(stagefeedback-start): Likewise.

	* config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
	the shared library to be created and don't remove the existing
	shared library.
	* config/arm/t-netbsd (SHLIB_LINK): Likewise.
	* config/i386/t-nwld (SHLIB_LINK): Likewise.
	* config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
	* config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
	* config/sh/t-linux (SHLIB_LINK): Likewise.
	* config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
	* config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
	* config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
	* config/t-slibgcc-sld (SHLIB_LINK): Likewise.

	* mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
	files.

From-SVN: r89227
2004-10-18 08:52:51 -07:00
Kazu Hirata a204196782 basic-block.h (reg_set_iterator): New.
* basic-block.h (reg_set_iterator): New.
	(EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
	(EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
	(EXECUTE_IF_AND_IN_REG_SET): Likewise.
	* caller-save.c (save_call_clobbered_regs): Adjust to the new
	style.
	* cfgcleanup.c (thread_jump): Likewise.
	* cfgrtl.c (safe_insert_insn_on_edge): Likewise.
	* conflict.c (conflict_graph_compute): Likewise.
	* flow.c (verify_local_live_at_start, update_life_info,
	initialize_uninitialized_subregs, propagate_one_insn,
	init_propagate_block_info, free_propagate_block_info,
	propagate_block, dump_regset): Likewise.
	* global.c (global_conflicts): Likewise.
	* graph.c (start_bb): Likewise.
	* local-alloc.c (update_equiv_regs): Likewise.
	* loop.c (load_mems): Likewise.
	* reload1.c (compute_use_by_pseudos, order_regs_for_reload,
	find_reg, finish_spills): Likewise.
	* resource.c (mark_target_live_regs): Likewise.
	* sched-deps.c (sched_analyze_insn): Likewise.
	* sched-rgn.c (sched-rgn.c): Likewise.
	* config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.

From-SVN: r89226
2004-10-18 15:11:31 +00:00
Jeroen Frijters 2ddfd02523 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
* java/security/Security.java
	(static): Use AccessController.doPrivileged to get system property.

From-SVN: r89225
2004-10-18 15:07:04 +00:00
Sven de Marothy 691e8c0f15 2004-10-18 Sven de Marothy <sven@physto.se>
* java/nio/ByteBufferHelper.java
	(putDouble): Use Double.toRawLongBits instead.

From-SVN: r89224
2004-10-18 14:41:45 +00:00
Mark Wielaard bc2fed82b5 ExtraClassLoader.java: New.
2004-10-18  Mark Wielaard  <mark@klomp.org>
        Andrew Haley  <aph@redhat.com>

        * testsuite/libjava.lang/ExtraClassLoader.java: New.

Co-Authored-By: Andrew Haley <aph@redhat.com>

From-SVN: r89222
2004-10-18 14:13:18 +00:00
Andrew Haley 963ebe78d4 re PR libgcj/18036 (Bad interaction between interpreter and Class.forName())
2004-10-18  Andrew Haley  <aph@redhat.com>

        PR java/18036:
        * gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
        and correct logic used to find interpreter.

From-SVN: r89221
2004-10-18 14:07:42 +00:00
Jeroen Frijters e5871096f0 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
* java/util/logging/LogManager.java
	(findAncestor): Fixed IndexOutOfBoundsException.

From-SVN: r89220
2004-10-18 14:05:04 +00:00
Michael Koch 0736f19f4e BufferedInputStream.java: Fixed @author tag.
2004-10-18  Michael Koch  <konqueror@gmx.de>

	* java/io/BufferedInputStream.java: Fixed @author tag.
	(read): Simplified expression.
	(read): Merged javadoc a bit more.
	(read): Renamed 'remain' to 'totalBytesRead'.
	* java/io/DataInputStream.java,
	java/io/DataOutputStream.java,
	java/io/ObjectInputStream.java,
	java/io/ObjectOutputStream.java:
	Reworked modifier order.

From-SVN: r89218
2004-10-18 13:40:05 +00:00
Jakub Jelinek ba3ed8d806 i386.md (addqi_1_slp): Test for incdec_operand operand 1 instead of 2
* config/i386/i386.md (addqi_1_slp): Test for incdec_operand
	operand 1 instead of 2

	* gcc.c-torture/compile/20041018-1.c: New test.

From-SVN: r89212
2004-10-18 15:01:36 +02:00
Michael Koch df397ce2bd Inet4Address.java: Merged file header and javadocs.
2004-10-18  Michael Koch  <konqueror@gmx.de>

	* java/net/Inet4Address.java: Merged file header and javadocs.
	* java/net/Inet6Address.java: Likewise.
	* java/net/InetAddress.java
	(getCanonicalHostName): Create Inet4Address object instead of
	InetAddress and add comment regarding IPv6.
	(toString): Simplified.

From-SVN: r89211
2004-10-18 12:36:27 +00:00
Michael Koch 2c661756f4 [multiple changes]
2004-10-18  Michael Koch  <konqueror@gmx.de>

	* gnu/java/net/protocol/http/Connection.java,
	java/nio/MappedByteBufferImpl.java,
	java/text/RuleBasedCollator.java,
	java/util/ResourceBundle.java:
	Reworked import statements.

2004-10-18  Jeroen Frijters  <jeroen@frijters.net>

	* java/security/IdentityScope.java
	(systemScope): Removed useless initializer.
	* java/security/Policy.java
	(currentPolicy): Likewise.

From-SVN: r89210
2004-10-18 12:22:51 +00:00
Kazu Hirata 2cd0e9f4ed * loop-unroll.c: Fix comment typos.
From-SVN: r89209
2004-10-18 12:15:45 +00:00
Michael Koch 3330802695 System.java: Revert accidential change.
2004-10-18  Michael Koch  <konqueror@gmx.de>

	* java/lang/System.java: Revert accidential change.

From-SVN: r89208
2004-10-18 11:09:11 +00:00
Michael Koch 2047d8e479 Math.java, [...]: Reworked import statements, HTML in javadocs and modifier orders.
2004-10-18  Michael Koch  <konqueror@gmx.de>

	* java/lang/Math.java,
	java/lang/Package.java,
	java/lang/Runtime.java,
	java/lang/StrictMath.java,
	java/lang/System.java,
	java/lang/Thread.java,
	java/lang/ThreadLocal.java,
	java/lang/Void.java:
	Reworked import statements, HTML in javadocs and modifier orders.

From-SVN: r89207
2004-10-18 10:41:56 +00:00
Jeroen Frijters 36071b5cbe 2004-10-18 Jeroen Frijters <jeroen@frijters.net>
* java/util/Timer.java
	(nr): Removed useless initializer.
	* java/util/logging/LogRecord.java
	(lastSeqNum): Likewise.
	* javax/naming/spi/NamingManager.java
	(icfb, ofb): Likewise.

From-SVN: r89206
2004-10-18 10:23:59 +00:00
Michael Koch 73aab3dec3 PlainDatagramSocketImpl.java: Reworked import statements.
2004-10-18  Michael Koch  <konqueror@gmx.de>

	* gnu/java/net/PlainDatagramSocketImpl.java:
	Reworked import statements.
	* gnu/java/security/provider/DSAParameters.java:
	Fixed copyrigth years.
	* java/net/JarURLConnection.java:
	Fixed HTML in @author tags.

From-SVN: r89205
2004-10-18 10:14:24 +00:00
Michael Koch 4e2721c3f3 2004-10-18 Michael Koch <konqueror@gmx.de>
* java/rmi/activation/ActivationSystem.java
	(SYSTEM_PORT): Initialize with correct port number.

From-SVN: r89202
2004-10-18 09:49:16 +00:00
Michael Koch 7b040d4c07 [multiple changes]
2004-10-18  Michael Koch  <konqueror@gmx.de>

	* java/lang/reflect/Proxy.java: Improved javadocs.

2004-10-18  Michael Koch  <konqueror@gmx.de>

	* java/lang/reflect/AccessibleObject.java
	(checkPermission): Removed redundant final modifier.
	(secureSetAccessible): Likewise.
	* java/lang/reflect/Proxy.java:
	Reworked import statements.
	(generate): Removed redundant final modifier.
	* java/lang/reflect/ReflectPermission.java:
	Reorder package declaration and import statement.

2004-10-18  Jeroen Frijters  <jeroen@frijters.net>

	* java/lang/reflect/Proxy.java
	(count): Removed useless initializer.

From-SVN: r89201
2004-10-18 09:46:48 +00:00
Paolo Carlini cc6e67d442 basic_string.tcc (_M_mutate): Do not reallocate unnecessarily when _M_rep() == &_S_empty_rep() and __new_size...
2004-10-18  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.tcc (_M_mutate): Do not reallocate
	unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
	== capacity() (== 0): is ok to just leave everything unchanged.

	* include/bits/basic_string.h: Minor formatting fixes.
	* include/bits/basic_string.tcc: Likewise.

From-SVN: r89199
2004-10-18 08:43:17 +00:00
Steven Bosscher 7e698b2c89 Make-lang.in (java/parse.o-warn, [...]): New rules to work around old Bison warnings.
* Make-lang.in (java/parse.o-warn, java/parse-scan.o-warn):
	New rules to work around old Bison warnings.

From-SVN: r89198
2004-10-18 06:35:09 +00:00
Revital Eres f37a4f143d Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
2004-10-18  Revital Eres  <eres@il.ibm.com>

        * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
        * loop-unroll.c: Include varray.h.
        (struct var_to_expand, struct opt_info): Rename split_ivs_info to
        opt_info and expand it to support variable expansion.
        (analyze_insns_in_loop): Rename analyze_ivs_to_split and
        expand it to support variable expansion.
        (pt_info_start_duplication): Rename si_info_start_duplication.
        (apply_opt_in_copies): Rename split_ivs_in_copies and add support
        to the variable expansion optimization.
        (free_opt_info): Rename free_si_info.
        (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
        expand_var_during_unrolling, insert_var_expansion_initialization,
        combine_var_copies_in_loop_exit, release_var_copies,
        get_expansion): New functions.
        (peel_loop_completely, unroll_loop_constant_iterations,
        unroll_loop_runtime_iterations, peel_loop_simple,
        unroll_loop_stupid): Change uses of struct si_info
        to struct opt_info
        and add uses of fvariable-expansion-in-unroller flag.
        * params.def: Add parameter to restrict the number of expansions.
        * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
        the number of expansions.
        * common.opt: (fvariable-expansion-in-unroller): New flag.
        * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.

From-SVN: r89197
2004-10-18 05:31:28 +00:00
Danny Smith 535306d0de cygming.h (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES to 0.
* config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
	__GXX_MERGED_TYPEINFO_NAMES to 0.

From-SVN: r89196
2004-10-18 03:48:57 +00:00