Commit Graph

75092 Commits

Author SHA1 Message Date
Volker Reichelt
80cdd94a6c re PR c++/27547 (ICE on invalid operator=)
PR c++/27547
	* decl.c (copy_fn_p): Return early on non-member functions.

	* g++.dg/other/operator1.C: New test.

From-SVN: r113696
2006-05-11 14:41:03 +00:00
Andrew Haley
c6c097b26c natSharedLibLoader.cc (init): Remove debugging line.
2006-05-11  Andrew Haley  <aph@redhat.com>

        * gnu/gcj/runtime/natSharedLibLoader.cc (init): Remove debugging
        line.

From-SVN: r113693
2006-05-11 09:57:53 +00:00
Richard Guenther
497cfe246b re PR middle-end/27529 (Does not fold (char *)(size_t)char_ptr or (size_t)(char *)size_t_var)
2006-05-11  Richard Guenther  <rguenther@suse.de>

	PR middle-end/27529
	* fold-const.c (fold_unary): Handle intermediate conversion
	to a pointer type like intermediate conversion to an integer
	type in folding of (T1)(T2)var to var.
	Match the code to the comment in the final conversion for
	(T1)(T2)var to (T1)var regarding to type precision.  Rather
	than disallow T1 being of pointer type, assert that both T1
	and var are of pointer type or not.  Make sure not to fall
	over the frontends lazyness wrt array to pointer decay though.

	* gcc.dg/tree-ssa/foldcast-1.c: New testcase.

From-SVN: r113692
2006-05-11 08:29:40 +00:00
GCC Administrator
34b95ebe0e Daily bump.
From-SVN: r113690
2006-05-11 00:17:24 +00:00
Janis Johnson
65c3758b85 target-supports-dg.exp (check-flags): New.
* lib/target-supports-dg.exp (check-flags): New.
	(dg-skip-if): Move flag checks.

From-SVN: r113686
2006-05-10 22:13:39 +00:00
Steve Ellcey
403ac6aca3 libstdc++.exp (check_v3_target_cxa_atexit): Move to gcc subdir.
* testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit):
	Move to gcc subdir.
	* testsuite/lib/dg-options.exp (dg-require-iconv): Remove.
	(dg-require-cxa-atexit): Move to gcc subdir.

From-SVN: r113685
2006-05-10 21:58:34 +00:00
Steve Ellcey
21f638b9b0 target-supports-dg.exp (dg-require-cxa-atexit): New.
* lib/target-supports-dg.exp (dg-require-cxa-atexit): New.
	* lib/target-supports.dg (check_cxa_atexit_available): New.

From-SVN: r113684
2006-05-10 21:55:34 +00:00
Richard Earnshaw
29e339b95a r113709@merlin: rearnsha | 2006-05-10 22:53:26 +0100
r113709@merlin:  rearnsha | 2006-05-10 22:53:26 +0100
 	* arm.c (arm_struct_value_rtx): Delete.
 	(TARGET_STRUCT_VALUE_RTX): Use the default definition.
 	(arm_init_cumulative_args): Always initialize nregs to zero.

From-SVN: r113683
2006-05-10 21:54:06 +00:00
Richard Guenther
5ac4f3bb75 re PR tree-optimization/27532 (__builtin_object_size does not handle &a + b.)
2006-05-10  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27532
	* tree-object-size.c (plus_expr_object_size): Fix typo.

From-SVN: r113682
2006-05-10 19:41:46 +00:00
Paolo Carlini
0fc125eaee hashtable (hashtable_iterator<>::hashtable_iterator(), [...]): Add.
2006-05-10  Paolo Carlini  <pcarlini@suse.de>
	    Peter Doerfler  <gcc@pdoerfler.com>

	* include/tr1/hashtable (hashtable_iterator<>::hashtable_iterator(),
	hashtable_const_iterator<>::hashtable_const_iterator(),
	node_iterator<>::node_iterator(),
	node_const_iterator<>::node_const_iterator()): Add.
	(node_iterator<>::node_iterator(hash_node<>*),
	node_const_iterator<>::node_const_iterator(hash_node<>*)): Tweak,
	remove default.
	* testsuite/tr1/6_containers/unordered/hashtable/
	iterators_default_constructor.c: New.

Co-Authored-By: Peter Doerfler <gcc@pdoerfler.com>

From-SVN: r113681
2006-05-10 18:37:54 +00:00
Thomas Koenig
3a7e3b6994 re PR fortran/27470 (wrong memory allocator for derived types)
2005-05-10  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/27470
	* trans-array.c(gfc_array_allocate):  If ref->next exists
	that is if there is a statement like ALLOCATE(foo%bar(2)),
	F95 rules require that bar should be a pointer.

2005-05-10  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/27470
	* gfortran.dg/multiple_allocation_2.f90:  New test case.

From-SVN: r113680
2006-05-10 18:26:51 +00:00
Kazu Hirata
0e2df6898a * gcc.target/arm/pr27387.C: Fix a comment typo.
From-SVN: r113678
2006-05-10 17:50:34 +00:00
Andrew Haley
e68dbbf5a3 natClassLoader.cc: Add comments.
2006-05-10  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc: Add comments.

From-SVN: r113677
2006-05-10 17:50:09 +00:00
Andrew Haley
e080b30bd7 class.c (emit_indirect_register_classes): Fix comment.
2006-05-10  Andrew Haley  <aph@redhat.com>

        * class.c (emit_indirect_register_classes): Fix comment.

From-SVN: r113676
2006-05-10 17:49:23 +00:00
Kazu Hirata
e43d8b8a0e re PR target/24949 (FAIL: gcc.c-torture/compile/20000403-2.c -O0)
PR target/24949
	* config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
	ashrdi_const, ashrdi3): Use a scratch register.

From-SVN: r113675
2006-05-10 17:35:24 +00:00
Andrew Haley
fdafd4613f prims.cc (_Jv_soleIndirectCompiledEngine): New.
2006-05-09  Andrew Haley  <aph@redhat.com>

        * prims.cc (_Jv_soleIndirectCompiledEngine): New.
        * include/execution.h (Jv_CompiledEngine::do_allocate_static_fields):
        Remove body.
        (_Jv_CompiledEngine::allocate_field_initializers): New.
        (_Jv_CompiledEngine::_Jv_CompiledEngine): Initialize
        allocate_field_initializers.
        (class _Jv_IndirectCompiledClass): New.
        (struct _Jv_IndirectCompiledEngine): New.
        * java/lang/Class.h: (IndirectCompiledEngine): New.
        * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Set
        engine to _Jv_soleIndirectCompiledEngine
        * link.cc (ensure_fields_laid_out): Call
        engine->allocate_field_initializers().

From-SVN: r113674
2006-05-10 17:17:20 +00:00
Marc Glisse
05a79eb6bc pool_allocator.h: Add missing std:: qualifications.
2006-05-10  Marc Glisse  <marc.glisse@normalesup.org>

	* include/ext/pool_allocator.h: Add missing std:: qualifications.
	* include/ext/mt_allocator.h: Likewise.
	* include/ext/pb_assoc/detail/resize_policy/
	hash_load_check_resize_trigger_imp.hpp: Likewise.
	* include/ext/pb_assoc/detail/resize_policy/
	hash_standard_resize_policy_imp.hpp: Likewise.
	* include/ext/pb_assoc/detail/lu_policy/
	counter_lu_metadata_imp.hpp: Likewise.
	* include/ext/pb_assoc/detail/map_debug_base.hpp: Likewise.
	* libsupc++/eh_alloc.cc: Typo: memcpy -> memset.

From-SVN: r113673
2006-05-10 15:43:20 +00:00
Francois-Xavier Coudert
7fdf6c6980 re PR fortran/20460 (Nasty extensions that should always warn)
PR fortran/20460
	* resolve.c (gfc_resolve_index): Make REAL array indices a
	GFC_STD_LEGACY feature.

From-SVN: r113672
2006-05-10 14:58:48 +00:00
Francois-Xavier Coudert
8e785b78e8 re PR fortran/24549 ([4.1 only] ICE with invalid pseudo-declaration statement)
PR fortran/24549
	* parse.c (reject_statement): Clear gfc_new_block.
	* gfortran.dg/error_recovery_1.f90: New test.

From-SVN: r113671
2006-05-10 14:51:26 +00:00
Richard Guenther
a04d8591f2 re PR middle-end/27302 (Fold does not fold (i < j) == (j > i) to 1)
2006-05-10  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27302
	* fold-const.c (operand_equal_p): For two comparisons,
	try comparison of one comparison code swapped if that yields
	the same code.

	* gcc.dg/torture/pr27302.c: New testcase.

From-SVN: r113670
2006-05-10 10:22:39 +00:00
Ben Elliston
4db60bd06f tree-pretty-print.c (pretty_print_string): No need to handle '\0' as a special character.
* tree-pretty-print.c (pretty_print_string): No need to handle
        '\0' as a special character.

From-SVN: r113669
2006-05-10 11:18:28 +10:00
Ben Elliston
9c5835d588 tree.h: Include "hashtab.h".
* tree.h: Include "hashtab.h".
        (iterative_hash_expr): Use hashval_t in its prototype.
        * Makefile.in (TREE_H): Add $(HASHTAB_H).

From-SVN: r113668
2006-05-10 11:10:11 +10:00
GCC Administrator
88d1293a3a Daily bump.
From-SVN: r113666
2006-05-10 00:17:34 +00:00
Steve Ellcey
543b60091e re PR bootstrap/26872 (Internal Compiler Error when bootstrap GCC 4.1.0 with GCC 4.0.2)
PR bootstrap/26872
	* config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
	(hppa*64*-*-hpux11*): Ditto.
	(hppa[12]*-*-hpux11*): Ditto.

From-SVN: r113661
2006-05-09 20:00:55 +00:00
David Edelsohn
7ac159a508 re PR bootstrap/26545 (undeclared 64bit constants in c-common.c)
PR target/26545
	* config/rs6000/aix41.h (TARGET_64BIT): Define.

From-SVN: r113659
2006-05-09 13:09:06 -04:00
Steven G. Kargl
08f366731e Commit chnages missed in the previous commit.
From-SVN: r113658
2006-05-09 16:25:21 +00:00
Michael Matz
fa959ce486 config.host (<i[34567]86-*-*, [...]): Set host_extra_gcc_objs and host_xmake_file.
* config.host (<i[34567]86-*-*, x86_64-*-*>): Set
	host_extra_gcc_objs and host_xmake_file.
	(<*-*-linux*>): Don't overwrite host_xmake_file.
	* gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
	* config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
	(host_detect_local_cpu): Declare.
	(CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
	* config/i386/i386.c (override_options): Handle -mtune=native
	as -mtune=generic.
	* config/i386/x-i386: New file.
	* config/i386/driver-i386.c: New file.
	* doc/invoke.texi (<i386 and x86-64 Options>): Describe
	cpu-type "native".

From-SVN: r113655
2006-05-09 15:40:12 +00:00
Dirk Mueller
f9c3744b7f re PR middle-end/27498 (fold does not fold reads from constant static strings)
2006-05-09  Dirk Mueller  <dmueller@suse.de>
	Richard Guenther  <rguenther@suse.de>

	PR middle-end/27498
	* fold-const.c (fold_read_from_constant_string): Relax check
	for matching types to matching modes.

	* gcc.dg/tree-ssa/pr27498.c: New testcase.

Co-Authored-By: Richard Guenther <rguenther@suse.de>

From-SVN: r113651
2006-05-09 14:16:50 +00:00
Zdenek Dvorak
2c790a2884 re PR rtl-optimization/27335 (ICE in get_loop_body)
PR rtl-optimization/27335
	* loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
	loops.

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

From-SVN: r113648
2006-05-09 09:10:15 +00:00
Richard Sandiford
ec4fc7edaf mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
2006-05-06  Chao-ying Fu  <fu@mips.com>
	    Richard Sandiford  <richard@codesourcery.com>

gcc/
	* config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
	(vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
	* config/mips/mips.md (UNSPEC_SCC): New constant.
	* config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
	* config/mips/mips.c (mips_reverse_fp_cond_p): New function.
	(mips_emit_compare): Use it.
	(mips_expand_vcondv2sf): New function.

gcc/testsuite/
	* gcc.target/mips/mips-ps-5.c: New file.

From-SVN: r113644
2006-05-09 07:42:38 +00:00
Ben Elliston
5038b1e9dd Remove conflict marker around 2006-05-07.
From-SVN: r113643
2006-05-09 15:25:08 +10:00
Daniel Berlin
74be08f84e re PR tree-optimization/27093 (verify_ssa failed: definition does not dominate use)
2006-05-08  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR tree-optimization/27093
	* tree-ssa-alias.c (recalculate_used_alone): Mark variables for 
	renaming when they become not-used_alone.

From-SVN: r113641
2006-05-09 01:28:47 +00:00
John David Anglin
fdaaf00202 hpux-unwind.h (pa_fallback_frame_state): Handle return parameter relocation and relocation stubs.
* hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
	relocation and relocation stubs.

From-SVN: r113640
2006-05-09 00:36:11 +00:00
GCC Administrator
096cc29a10 Daily bump.
From-SVN: r113638
2006-05-09 00:17:02 +00:00
Eric Christopher
90c9232337 unwind-dw2-fde-darwin.c (examine_objects): Only check data section for ppc.
2006-05-08  Eric Christopher  <echristo@apple.com>

        * unwind-dw2-fde-darwin.c (examine_objects): Only check data
        section for ppc.

From-SVN: r113634
2006-05-08 22:16:31 +00:00
Jan Hubicka
04f77d0f3b re PR middle-end/25962 (Pointer (null) check after the use in cgraph.c)
PR middle-end/25962
	* cgraphunit.c (decide_is_function_needed): When not optimizing even
	unused static functions are needed.

	* gcc.dg/pr25962.c: New.

From-SVN: r113633
2006-05-08 21:42:17 +00:00
Roger Sayle
857e575351 re PR target/27158 (ICE in extract_insn with -maltivec)
PR target/27158
	* reload.c (find_reloads_toplev): Only return the simplified SUBREG
	of a reg_equiv_constant if the result is a legitimate constant.

	* gcc.target/powerpc/pr27158.c: New test case.

From-SVN: r113632
2006-05-08 21:09:49 +00:00
Laurent GUERBY
13637c491f re PR testsuite/27476 (ACATS: Ada testsuite Bourne shell compatibility problem on hpux)
2006-05-08  Laurent GUERBY  <laurent@guerby.net>

        PR testsuite/27476
        * ada/acats/run_all.sh: Use test -z.

From-SVN: r113630
2006-05-08 16:50:40 +00:00
Francois-Xavier Coudert
2813414c11 re PR fortran/18271 (INT is allowed in a specification expression)
PR libfortran/18271
	* gfortran.dg/spec_expr_3.f90: New test.

From-SVN: r113627
2006-05-08 09:59:09 +00:00
Uros Bizjak
b81bd6c9a2 re PR target/27277 (standard i387 constant loading insns (fldz, fld1) are not generated anymore)
PR target/27277
	* config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
	standard 80387 constants, raise the cost to prevent
	compress_float_constant() to generate load from memory.

From-SVN: r113622
2006-05-08 08:10:03 +02:00
Kazu Hirata
bca504069d see.c, [...]: Fix comment typos.
* see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
	typos.

From-SVN: r113621
2006-05-08 05:17:54 +00:00
Kazu Hirata
923d16d409 * config/arm/constraints.md (c): Fix a typo.
From-SVN: r113620
2006-05-08 05:10:07 +00:00
Kazu Hirata
a876121de3 Remove the svn:mime-type property.
From-SVN: r113619
2006-05-08 05:03:35 +00:00
H.J. Lu
67a4b39110 re PR target/24879 ([4.1]: SSE3 monitor intrinsic doesn't work in 64bit)
gcc/

2006-05-07  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/24879
	* config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
	inline function.
	(_mm_mwait): Likewise.

	* config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
	"mwait".
	(sse3_monitor): Make it 32bit only.
	(sse3_monitor64): New. 64bit monitor.

gcc/testsuite/

2006-05-07  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/24879
	* gcc.target/i386/monitor.c: New file.

From-SVN: r113617
2006-05-07 20:43:07 -07:00
Alan Modra
0b913ffcd3 pr27095.c: xfail *-*-darwin*.
* gcc.dg/pr27095.c: xfail *-*-darwin*.

From-SVN: r113616
2006-05-08 10:09:10 +09:30
Volker Reichelt
15218346be re PR c++/27447 (ICE on invalid ptr-to-member-function)
PR c++/27447
	* decl2.c (build_memfn_type): Skip invalid functions and class types.

	* g++.dg/other/ptrmem7.C: New test.

From-SVN: r113615
2006-05-08 00:26:08 +00:00
GCC Administrator
abf5fd2fab Daily bump.
From-SVN: r113613
2006-05-08 00:17:25 +00:00
Volker Reichelt
f7360901e7 re PR target/27421 (ICE with invalid array in struct)
PR target/27421
	* config/i386/i386.c (classify_argument): Skip fields with invalid
	types.

	* gcc.dg/array-9.c: New test.

From-SVN: r113609
2006-05-07 21:15:33 +00:00
Richard Guenther
18455d174e re PR middle-end/27409 (ICE in get_constraint_for_component_ref)
2006-05-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27409
	* tree-ssa-structalias.c (get_constraint_for_component_ref):
	Do not try to find zero-sized subvars.

	* gcc.dg/torture/pr27409.c: New testcase.

From-SVN: r113607
2006-05-07 21:03:55 +00:00
Paolo Carlini
e716a54401 type_traits (integral_constant<>::value): Define.
2006-05-07  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (integral_constant<>::value): Define.
	* testsuite/tr1/4_metaprogramming/helper_classes/static_definition.cc:
	New.

From-SVN: r113605
2006-05-07 16:52:41 +00:00