Commit Graph

76800 Commits

Author SHA1 Message Date
Richard Henderson 6aa5c6ba9b cgraph.c (dump_cgraph_varpool_node): Don't crash if called before cgraph_function_flags_ready.
* cgraph.c (dump_cgraph_varpool_node): Don't crash if called
        before cgraph_function_flags_ready.

From-SVN: r117203
2006-09-25 10:50:25 -07:00
Mark Wielaard 902f7d1afb Suggested by Aaron M.
2006-09-25  Mark Wielaard  <mark@klomp.org>

	Suggested by Aaron M. Ucko <ucko@debian.org>
	Fixes bug #29203
	* native/fdlibm/mprec.c (ulp): Define L as int32_t.

From-SVN: r117197
2006-09-25 17:30:21 +00:00
Keith Seitz 291ad36e62 * gnu/classpath/jdwp/VMVirtualMachine.java
(_jdwp_suspend_counts): New private variable.
        * gnu/classpath/jdwp/natVMVirtualMachine.cc
        (initialize): Initialize _jdwp_suspend_counts.
        (suspendThread): Implement.
        (resumeThread): Implement.
        (getSuspendCount): Implement.

From-SVN: r117196
2006-09-25 17:08:05 +00:00
Paolo Carlini 47de6f6d2a re PR libstdc++/29179 (bugs in mt_allocator)
2006-09-25  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/29179
	* include/ext/mt_allocator.h (__pool_base): Adjust/extend
	documentation in comments.

From-SVN: r117193
2006-09-25 10:05:27 +00:00
Tobias Schluter 582df53e2a * ChangeLog: attribute change to its author :)
From-SVN: r117192
2006-09-25 09:24:08 +00:00
Tobias Schluter fc29d5c4e8 re PR fortran/21203 (gfortran doesn't work on targets/variants without two floating point types)
PR fortran/21203
	* error.c (show_loci): No need to risk an ICE to output a
	slightly nicer error message.

From-SVN: r117191
2006-09-25 09:19:36 +00:00
GCC Administrator 3c4f2df1c6 Daily bump.
From-SVN: r117189
2006-09-25 00:17:05 +00:00
Bruce Korb 4b70772b2e Clarify how tests are handled
From-SVN: r117185
2006-09-24 20:12:50 +00:00
Paolo Carlini c8bd30ddb3 boost_shared_ptr.h (shared_ptr<>::shared_ptr(const __shared_ptr<>&), [...]): Remove.
2006-09-24  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/boost_shared_ptr.h (shared_ptr<>::shared_ptr(const
	__shared_ptr<>&), shared_ptr(const __weak_ptr<>&),
	shared_ptr(const __shared_ptr<>&, __static_cast_tag),
	shared_ptr(const __shared_ptr<>&, __const_cast_tag),
	shared_ptr(const __shared_ptr<>&, __dynamic_cast_tag),
	weak_ptr<>::weak_ptr(const __shared_ptr<>&), weak_ptr(const
	__weak_ptr<>&)): Remove.
	(shared_ptr<>::shared_ptr(const shared_ptr<>&),
	shared_ptr(const weak_ptr<>&), shared_ptr(const shared_ptr<>&,
	__static_cast_tag), shared_ptr(const shared_ptr<>&,
	__const_cast_tag), shared_ptr(const shared_ptr<>&,
	__dynamic_cast_tag), static_pointer_cast(const shared_ptr<>&),
	const_pointer_cast(const shared_ptr<>&), dynamic_pointer_cast(const
	shared_ptr<>&), weak_ptr<>::weak_ptr(const shared_ptr<>&),
	weak_ptr(const weak_ptr<>&), weak_ptr<>::lock(), 
	__enable_shared_from_this_helper(const __shared_count<>&, const
	enable_shared_from_this<>*, const _Tp2*)): Add. 
	(class enable_shared_from_this): Add.
	* testsuite/tr1/2_general_utilities/memory/enable_shared_from_this/
	1.cc: New.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/casts/1.cc:
	Likewise.
	* testsuite/tr1/2_general_utilities/memory/weak_ptr/lock/1.cc:
	Likewise.

	* include/tr1/boost_shared_ptr.h: Further formatting and
	uglification fixes.

From-SVN: r117184
2006-09-24 19:42:34 +00:00
Zdenek Dvorak af17634547 ivopts-1.c: New test.
* gcc.dg/tree-ssa/ivopts-1.c: New test.
	* gcc.dg/tree-ssa/ivopts-2.c: New test.

Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com>

From-SVN: r117183
2006-09-24 19:11:16 +00:00
Zdenek Dvorak b67102aebd tree-ssa-loop-ivopts.c (aff_combination_convert, [...]): New functions.
* tree-ssa-loop-ivopts.c (aff_combination_convert,
	determine_common_wider_type): New functions.
	(get_computation_aff): Use them to simplify arithmetic between
	UBASE and CBASE if they are shortened from the same type.

Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com>

From-SVN: r117182
2006-09-24 19:03:57 +00:00
Kazu Hirata ab1e659cf7 re PR target/28911 (Cross compiler build for m68k--elf fails on x86_64-linux-gnu)
gcc/
	PR target/28911
	* config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
	-2147483647 - 1 instead of 0x80000000.

gcc/testsuite/
	PR target/28911
	* gcc.dg/pr28911.c: New.

From-SVN: r117181
2006-09-24 18:47:25 +00:00
Graeme Peterson 5997afc39f * MAINTAINERS (Write After Approval): Remove myself.
From-SVN: r117179
2006-09-24 10:04:33 +00:00
Francois-Xavier Coudert 41e41397de Makefile.am: Remove dependency on gfortypes.h.
* Makefile.am: Remove dependency on gfortypes.h.
	* Makefile.in: Regenerate.

From-SVN: r117178
2006-09-24 08:55:52 +00:00
GCC Administrator ee95c13b8f Daily bump.
From-SVN: r117176
2006-09-24 00:17:18 +00:00
Revital Eres 88a65e64ee flags.h (HONOR_NANS): Fix typo in comment.
gcc/
2001-01-01  Revital1 Eres  <ERES@il.ibm.com>

	* flags.h (HONOR_NANS): Fix typo in comment.

From-SVN: r117172
2006-09-23 16:45:25 +00:00
Uros Bizjak d4d7a132ab re PR target/29169 (sse3-not-fisttp.c scan-assembler-not fisttp FAILs on i386-pc-solaris2.10)
PR target/29169
        * gcc.target/i386/sse-21.c: Rename from sse3-not-fisttp.c.
        (dg-options): Add -mfpmath=387.

From-SVN: r117171
2006-09-23 16:40:07 +02:00
Uros Bizjak 895016f635 driver-i386.c (host_detect_local_cpu): Add prototype.
* config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.

From-SVN: r117169
2006-09-23 12:33:27 +02:00
Jakub Jelinek fcb99e7b22 re PR c/28706 (Compile failure with --combine and explicitly aligned structures)
PR c/28706
	PR c/28712
	* tree.c (merge_attributes, attribute_list_contained): If both
	TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
	simple_cst_equal.
	* c-typeck.c (comptypes_internal): Don't consider aggregates
	in different TUs as compatible if there one set of attributes is
	not a subset of the other type's attributes.
	(composite_type): Try harder not to create a new aggregate type.

	* gcc.dg/pr28706.c: New test.
	* gcc.dg/pr28712.c: New test.

From-SVN: r117167
2006-09-23 09:15:37 +02:00
Danny Smith 6a7c793f3e re PR libfortran/27964 (Wrong line ends on windows (XP))
PR libfortran/27964
	* configure.ac: Check for setmode() function.
	* configure: Regenerate.
	* config.h.in: Regenerate.
	* io/unix.c (output_stream): Force stdout to binary mode. 
	(error_stream): Force stderr to binary mode.

From-SVN: r117166
2006-09-23 01:56:55 +00:00
Mike Stump 45163b1afc * obj-c++.dg/encode-3.mm: Fix for 64-bit support.
From-SVN: r117165
2006-09-23 00:27:26 +00:00
GCC Administrator be66ce1fb3 Daily bump.
From-SVN: r117163
2006-09-23 00:17:23 +00:00
Geoffrey Keating 682cd44241 driver-i386.c: Always define host_detect_local_cpu.
* config/i386/driver-i386.c: Always define host_detect_local_cpu.
	* config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
	or x86_64 host.  Define HAVE_LOCAL_CPU_DETECT.
	(CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
	than replicating condition above.
	* config.host (i[34567]86-*-*): Always use driver-i386.o.

From-SVN: r117159
2006-09-22 23:50:51 +00:00
Geoffrey Keating 9281e73dd6 darwin.h (LINK_SYSROOT_SPEC): New.
* config/darwin.h (LINK_SYSROOT_SPEC): New.
	(LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
	the linker by default.

From-SVN: r117158
2006-09-22 23:38:42 +00:00
Geoffrey Keating aaf50ff29c configure.ac: Make need_64_bit_hwint case for x86-darwin match exactly the glob in gcc/config.gcc.
* configure.ac: Make need_64_bit_hwint case for x86-darwin
	match exactly the glob in gcc/config.gcc.
	* configure: Regenerate.

From-SVN: r117156
2006-09-22 23:26:20 +00:00
Marco Trudel f8e0488413 jvmti.cc (_Jv_JVMTI_GetErrorName): Now static.
2006-09-22  Marco Trudel  <mtrudel@gmx.ch>

	* jvmti.cc (_Jv_JVMTI_GetErrorName): Now static.  Marked JNICALL.

From-SVN: r117153
2006-09-22 21:31:15 +00:00
Mike Stump d1ea761665 darwin.h (PROFILE_HOOK): Reassociate comment with code.
* config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
	code.

From-SVN: r117152
2006-09-22 19:47:53 +00:00
Mike Stump c0e8f5d3f5 Fix up whitespacing
From-SVN: r117151
2006-09-22 19:14:35 +00:00
Chao-ying Fu 0c5028980b * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r117150
2006-09-22 18:54:44 +00:00
David Daney 17bdf398eb re PR classpath/28661 (HTTP Header differs b/w java and classpath)
PR classpath/28661
       * gnu/java/net/protocol/http/HTTPURLConnection.java (connect):  Add
       default content-type for POST method.

From-SVN: r117149
2006-09-22 18:45:14 +00:00
Paolo Carlini 3b83e64bd3 PR libstdc++/29134 (vector<bool> bits)
2006-09-22  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/29134 (vector<bool> bits)
	* include/bits/stl_bvector.h (vector<bool>::max_size):
	Use allocator' max_size.
	* testsuite/23_containers/vector/bool/capacity/29134.cc: New.

	* testsuite/23_containers/deque/capacity/29134-2.cc: Minor tweak.
	* testsuite/23_containers/vector/capacity/29134-2.cc: Likewise.

From-SVN: r117148
2006-09-22 17:51:01 +00:00
Paolo Carlini dcd400b56f type_traits (add_reference): Robustify vs reference to void.
2006-09-22  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (add_reference): Robustify vs
	reference to void.
	* testsuite/tr1/4_metaprogramming/reference_modifications/
	add_reference.cc: Add test.

	* include/tr1/memory: include <tr1/type_traits>.
	* include/tr1/boost_shared_ptr.h (__shared_ptr<>::operator*):
	Use add_reference instead.
	* testsuite/tr1/2_general_utilities/memory/enable_shared_from_this/
	explicit_instantiation/1.cc: New.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/tr1/2_general_utilities/memory/weak_ptr/
	explicit_instantiation/1.cc: Likewise.

	* testsuite/util/testsuite_tr1.h: Tweak; avoid empty enum.

	* include/tr1/type_traits_fwd.h: Spelling fix.

	* include/tr1/boost_shared_ptr.h: Obvious stylistic fixes.

From-SVN: r117147
2006-09-22 15:54:52 +00:00
Richard Guenther 79f802f532 re PR middle-end/28964 (partition_stack_vars uses unstable sort)
2006-09-22  Richard Guenther  <rguenther@suse.de>

	PR middle-end/28964
	* cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
	sort of stack variables stable.

From-SVN: r117146
2006-09-22 15:43:27 +00:00
Paolo Carlini 459f9f82ec boost_shared_ptr.h: Trivial formatting fixes.
2006-09-22  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/boost_shared_ptr.h: Trivial formatting fixes.

From-SVN: r117145
2006-09-22 14:22:21 +00:00
Ian Lance Taylor 53e3e587a9 re PR other/29176 (Seg fault in demangler)
PR other/29176
	* cp-demangle.c (d_substitution): Check for overflow when
	computing substitution index.

From-SVN: r117144
2006-09-22 13:52:29 +00:00
Peter Bergner 2319ffbb7a Set REG_POINTER flag according to MEM_POINTER flag.
From-SVN: r117143
2006-09-22 08:42:51 -05:00
Sven de Marothy 2067150ee1 [multiple changes]
2006-08-02  Sven de Marothy  <sven@physto.se>

	* gnu/java/awt/peer/gtk/GtkChoicePeer.java
	(remove): Force event on removing item 0 when it's selected.
	(handleEvent): Always call Choice.selected().
	* java/awt/Choice.java:
	(remove): Simplify and correct.

2006-07-30  Sven de Marothy  <sven@physto.se>

	* java/awt/Choice.java:
	(accessibleAction): Call select() directly.
	(add, insert, remove): Reimplement.
	(dispatchEventImpl): Always call super.
	(processItemEvent): Does not set the index.
	* include/gnu_java_awt_peer_gtk_GtkChoicePeer.h
	* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
	(append): removed.
	(nativeAdd): Name changed to add.
	(selection_changed_cb): Simplify callback.
	* gnu/java/awt/peer/gtk/GtkChoicePeer.java
	(selected): New field.
	(add): Replaced with native impl.
	(handleEvent): New method.

From-SVN: r117142
2006-09-22 13:04:22 +00:00
Zdenek Dvorak 36b2419387 re PR tree-optimization/28888 (ICE in tree check: expected cond_expr, have label_expr in simplify_using_initial_conditions, at tree-ssa-loop-niter.c)
PR tree-optimization/28888
	* tree-if-conv.c (combine_blocks): Rewritten.
	* tree-cfg.c (tree_verify_flow_info): Check that edges with
	EDGE_TRUE/FALSE_VALUE follow COND_EXPR.

	* gcc.dg/pr28888.c: New test.

From-SVN: r117135
2006-09-22 10:02:47 +00:00
Jakub Jelinek 3735874658 tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if needed.
* tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
	needed.

From-SVN: r117134
2006-09-22 10:32:45 +02:00
Keith Seitz ebf29cf63f jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled events.
* jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled
        events.
        (check_enabled_event): New function.
        (check_enabled_events): New function.
        (post_event): New function.
        (_Jv_JVMTI_SetEventNotificationMode): New function.
        (_Jv_JVMTI_SetEventCallbacks): New function.
        (_Jv_JVMTI_Interface): Define SetEventNotificationMode and
        SetEventCallbacks members.
        * include/jvmti-int.h: New file.
        * include/jvmti_md.h (EVENT_SLOTS) [__GCJ_JNI_IMP__]: Define.
        (_CLASSPATH_JVMTIENV_CONTENTS) [__GCJ_JNI_IMPL__]: Define.
        * testsuite/libjava.jvmti/events.java: New file.
        * testsuite/libjava.jvmti/events.out: New file.
        * testsuite/libjava.jvmti/natevents.cc: New file.

From-SVN: r117133
2006-09-22 02:12:12 +00:00
GCC Administrator 14c7148908 Daily bump.
From-SVN: r117131
2006-09-22 00:17:24 +00:00
Sandro Tolaini 9af06953ba configure.ac: Don't use darwin-signal.h as signal handler for Darwin/i386.
2006-09-21  Sandro Tolaini  <tolaini@libero.it>

	* configure.ac: Don't use darwin-signal.h as signal handler for
	Darwin/i386.
	* configure.host: Enable Darwin/i386 as a supported host, with no
	signal unwinding.

From-SVN: r117127
2006-09-21 23:50:50 +00:00
Sandro Tolaini de7a014db3 os_dep.c: Port to Darwin/i386
2006-09-21  Sandro Tolaini  <tolaini@libero.it>

	* os_dep.c: Port to Darwin/i386
	* darwin_stop_world.c: Likewise
	* include/private/gcconfig.h: Likewise

From-SVN: r117126
2006-09-21 23:47:30 +00:00
Mark Mitchell b76d34e959 re PR c++/29016 (tree check: expected class 'expression', have 'exceptional' (baselink) in get_base_var, at ipa-utils.c:224)
PR c++/29016
	* typeck.c (build_unary_op): Don't form an ADDR_EXPR around a
	BASELINK.
	PR c++/29016
	* g++.dg/init/ptrfn1.C: New test.

From-SVN: r117123
2006-09-21 22:18:54 +00:00
Richard Sandiford 2801ed8e2f varasm.c (copy_constant): Fix reversed gcc_assert check.
gcc/
	* varasm.c (copy_constant): Fix reversed gcc_assert check.

From-SVN: r117121
2006-09-21 21:52:23 +00:00
Benjamin Kosnik a1adedd03b type_traits.h (__numeric_traits_integer): New.
2006-09-21  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/type_traits.h (__numeric_traits_integer): New.
	(__numeric_traits_floating): New.
	(__numeric_traits): Use them.
	* testsuite/ext/type_traits.cc: New.

From-SVN: r117119
2006-09-21 20:07:10 +00:00
Lee Millward 32273f9fa6 re PR c++/28303 (ICE on invalid typedef)
PR c++/28303
        * decl.c (grokdeclarator): Return error_mark_node on
        declaration with two or more data types.

        * g++.dg/template/typedef6.C: New test.
        * g++.dg/init/error1.C: Adjust error markers.
        * g++.dg/parse/crash9.C: Likewise.
        * g++.dg/template/crash55.C: Likewise.

From-SVN: r117118
2006-09-21 18:33:49 +00:00
Lee Millward d2a8ac2cf2 re PR c++/28861 (ICE on invalid in-class specialization)
PR c++/28861
        * decl.c (shadow_tag): Return error_mark_node
        if maybe_process_partial_specialization failed.

        * g++.dg/template/spec32.C: New test.
        * g++.dg/parse/crash9.C: Adjust error markers.

From-SVN: r117117
2006-09-21 18:22:11 +00:00
Paolo Carlini 7ffb61d503 hash_map: Remove forward declaration of equality operator...
2006-09-21  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/hash_map: Remove forward declaration of equality
	operator, not needed for friendship of all its instances.
	* include/ext/hash_set: Likewise.
	* include/bits/stl_set.h: Likewise for equality operator and
	operator less.
	* include/bits/stl_multiset.h: Likewise.
	* include/bits/stl_multimap.h: Likewise.
	* include/bits/stl_queue.h: Likewise.
	* include/bits/stl_stack.h: Likewise.
	* include/bits/streambuf_iterator.h: Likewise for copy.
	* include/std/std_streambuf.h: Likewise for __copy_aux and find.
	* include/tr1/boost_shared_ptr.h: Likewise for get_deleter.
	* include/tr1/random: Likewise, remove all forward declarations
	of inserters and extractors.

From-SVN: r117116
2006-09-21 17:54:50 +00:00
Janis Johnson 6750b31e4a decfloat.h (DEC*_DEN): Define using the correct builtins.
gcc:
	* ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.

testsuite:
	* gcc.dg/dfp/decfloat-constants.c: Remove 'dg-do compile', fix typo.

From-SVN: r117115
2006-09-21 17:34:47 +00:00