Commit Graph

95369 Commits

Author SHA1 Message Date
Edward Smith-Rowland
c105751c46 stl_tree.h: Make erase return iterator as per DR 130.
2009-08-14  Edward Smith-Rowland  <3dw4rd@verizon.net>

	* include/bits/stl_tree.h: Make erase return iterator as per DR 130.
	* include/bits/stl_set.h: Same.
	* include/bits/stl_multiset.h: Same.
	* include/bits/stl_map.h: Same.
	* include/bits/stl_multimap.h: Same.
	* doc/xml/manual/intro.xml: Document.
	* testsuite/23_containers/set/dr130.cc: New.
	* testsuite/23_containers/multiset/dr130.cc: New.
	* testsuite/23_containers/map/dr130.cc: New.
	* testsuite/23_containers/multimap/dr130.cc: New.

From-SVN: r150768
2009-08-14 17:54:44 +00:00
Janne Blomqvist
0942c722b3 Add comment saying file is deprecated
From-SVN: r150767
2009-08-14 20:54:27 +03:00
Kai Tietz
9827445421 natVMSecureRandomWin32.cc: Add include of java/lang/UnsupportedOperationException.h file.
2009-08-14  Kai Tietz  <kai.tietz@onevision.com>

        * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: Add include of
        java/lang/UnsupportedOperationException.h file.

From-SVN: r150766
2009-08-14 19:49:21 +02:00
Janne Blomqvist
20e0d7f89b PR libfortran/40863 Fix r150107 moving new symbols to C99_1.1 node
From-SVN: r150765
2009-08-14 20:44:50 +03:00
Steve Ellcey
03c5794895 inclhack.def (hpux_imaginary_i): New fix.
2009-08-14  Steve Ellcey  <sje@cup.hp.com>

	* inclhack.def (hpux_imaginary_i): New fix.
	* fixincl.x: Regenerate.
	* tests/base/complex.h: New file.

From-SVN: r150764
2009-08-14 17:20:30 +00:00
Benjamin Kosnik
938cfa0f3d pointer.h: Add pragma system_header, use _GLIBCXX_USE_LONG_LONG, macro cleanup.
2009-08-14  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/pointer.h: Add pragma system_header, use
	_GLIBCXX_USE_LONG_LONG, macro cleanup.

From-SVN: r150763
2009-08-14 16:54:48 +00:00
Benjamin Kosnik
b4d6477637 pointer.h: Add pragma system_header, use _GLIBCXX_USE_LONG_LONG, macro cleanup.
2009-08-14  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/pointer.h: Add pragma system_header, use
	_GLIBCXX_USE_LONG_LONG, macro cleanup.

From-SVN: r150762
2009-08-14 16:51:01 +00:00
Kaveh R. Ghazi
2f440f6aba re PR middle-end/30789 (complex folding inexact)
PR middle-end/30789

	* builtins.c (do_mpc_arg2): Make extern, define for any MPC
	version.  Move declaration...
	* real.h (do_mpc_arg2): ... here.
	* fold-const.c (const_binop): Use MPC for complex MULT_EXPR
	and RDIV_EXPR.

testsuite:
	* gcc.dg/torture/builtin-math-7.c: New.

From-SVN: r150760
2009-08-14 16:44:36 +00:00
Rafael Avila de Espindola
fe83055dfa final.c (add_debug_prefix_map): Don't use GC memory for old_prefix and new_prefix.
2009-08-14  Rafael Avila de Espindola  <espindola@google.com>

        * final.c (add_debug_prefix_map): Don't use GC memory for
        old_prefix and new_prefix.

From-SVN: r150759
2009-08-14 15:39:15 +00:00
Richard Guenther
1a15bfdcdc ipa-prop.c (compute_complex_pass_through): If we cannot compute a non-varying offset for IPA_JF_ANCESTOR punt.
2009-08-14  Richard Guenther  <rguenther@suse.de>

	* ipa-prop.c (compute_complex_pass_through): If we cannot
	compute a non-varying offset for IPA_JF_ANCESTOR punt.

	* gcc.c-torture/execute/20090814-1.c: New testcase.

From-SVN: r150757
2009-08-14 15:07:43 +00:00
Ulrich Weigand
065312cfdd c-lex.c (c_lex_with_flags): Increase size of local variable to avoid memory clobber.
* c-lex.c (c_lex_with_flags): Increase size of local variable
	to avoid memory clobber.

From-SVN: r150756
2009-08-14 14:38:24 +00:00
David Edelsohn
8cac884c9a graphite_autopar: Move to libgomp testsuite.
gcc/testsuite/
        * gcc.dg/graphite/graphite_autopar: Move to libgomp testsuite.

libgomp/
        * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
        * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
        * testsuite/libgomp.graphite/graphite.exp: New.

From-SVN: r150755
2009-08-14 10:02:43 -04:00
Paolo Bonzini
371015a84a re PR target/40934 (ICE in get_hard_regnum, at reg-stack.c:741)
2009-08-14  Paolo Bonzini  <bonzini@gnu.org>

	PR target/40934
	* config/i386/i386.c (ix86_fp_comparison_strategy):
	Only enable/disable sahf at function granularity. 

gcc/testsuite:
2009-08-14  Paolo Bonzini  <bonzini@gnu.org>

	PR target/40934
	* gcc.target/i386/pr40934.c: New.

From-SVN: r150754
2009-08-14 12:14:04 +00:00
Hans-Peter Nilsson
94aca67aaf re PR rtl-optimization/41064 (build breakage for cris-elf building newlib, ICE in extract_insn, from r150726)
PR rtl-optimization/41064
	* reload1.c (reload_as_needed): Don't call extract_insn
	for known invalid replacements after calling
	validate_replace_rtx_group and verify_changes.

From-SVN: r150751
2009-08-14 11:36:45 +00:00
Uros Bizjak
1262fd02b6 re PR target/41019 (Vector conditional move produces wrong code with -O3.)
PR target/41019
	* config/i386/sse.md (SSEMODE124C8): New mode iterator.
	(vcond<SSEMODEF2P:mode>): Assert that operation is supported by
	ix86_expand_fp_vcond.
	(vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
	Assert that operation is supported by ix86_expand_int_vcond.
	(vcondu<SSEMODE124C8:mode>): Ditto.

testsuite/ChangeLog:

	PR target/41019
	* gcc.target/i386/pr41019.c: New test.

From-SVN: r150738
2009-08-14 12:31:09 +02:00
Uros Bizjak
34d3575322 compatibility-ldbl.cc: Include cmath.
* src/compatibility-ldbl.cc: Include cmath.

From-SVN: r150736
2009-08-14 10:35:55 +02:00
Steven G. Kargl
0b3624f6f9 decl.c (gfc_match_type_spec): Whitespace.
2009-08-13  Steven G. Kargl  <kargl@gcc.gnu.org>

    * decl.c (gfc_match_type_spec): Whitespace.

From-SVN: r150734
2009-08-14 05:10:34 +00:00
Jerry DeLisle
525fa3235e re PR fortran/40955 (STDCALL attributes are not saved in the .MOD files)
2009-08-13  Jerry DeLisle <jvdelisle@gcc.gnu.org>

	PR fortran/40955
	* gfortran.dg/winapi.f90: New test.

From-SVN: r150733
2009-08-14 02:35:32 +00:00
DJ Delorie
3e3877f8bd djgpp-stdint.h: New.
* config/i386/djgpp-stdint.h: New.
* config.gcc (djgpp): Use it.

From-SVN: r150732
2009-08-13 22:26:33 -04:00
Benjamin Kosnik
2019698b6b compatibility-ldbl.cc: Include tr1/functional.
2009-08-13  Benjamin Kosnik  <bkoz@redhat.com>

	* src/compatibility-ldbl.cc: Include tr1/functional.

From-SVN: r150731
2009-08-14 01:45:36 +00:00
GCC Administrator
75e1cd805e Daily bump.
From-SVN: r150730
2009-08-14 00:17:14 +00:00
Kaz Kojima
91d1d52101 sh.c (sh_override_options): When flag_exceptions or flag_unwind_tables is on...
* config/sh/sh.c (sh_override_options): When flag_exceptions or
	flag_unwind_tables is on, turn flag_reorder_blocks_and_partition
	off.

From-SVN: r150727
2009-08-13 22:16:07 +00:00
Ghassan Shobaki
2c6dd136d3 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
* tree-ssa-loop-prefetch.c 
	(prune_ref_by_group_reuse): Enhance probabilistic analysis 
	for long-stride pruning.
	(compute_miss_rate): New function to compute the probability
	that two memory references access different cache lines.

From-SVN: r150726
2009-08-13 21:37:24 +00:00
Janus Weil
bc21d3152f re PR fortran/40941 (gfc_typespec: put derived and cl into union)
2009-08-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/40941
	* gfortran.h (gfc_typespec): Put 'derived' and 'cl' into union.
	* decl.c (build_struct): Make sure 'cl' is only used
	if type is BT_CHARACTER.
	* symbol.c (gfc_set_default_type): Ditto.
	* resolve.c (resolve_symbol, resolve_fl_derived): Ditto.
	(resolve_equivalence,resolve_equivalence_derived): Make sure 'derived'
	is only used if type is BT_DERIVED.
	* trans-io.c (transfer_expr): Make sure 'derived' is only used if type
	is BT_DERIVED or BT_INTEGER (special case: C_PTR/C_FUNPTR).
	* array.c: Mechanical replacements to accomodate union in gfc_typespec.
	* check.c: Ditto.
	* data.c: Ditto.
	* decl.c: Ditto.
	* dump-parse-tree.c: Ditto.
	* expr.c: Ditto.
	* interface.c: Ditto.
	* iresolve.c: Ditto.
	* match.c: Ditto.
	* misc.c: Ditto.
	* module.c: Ditto.
	* openmp.c: Ditto.
	* parse.c: Ditto.
	* primary.c: Ditto.
	* resolve.c: Ditto.
	* simplify.c: Ditto.
	* symbol.c: Ditto.
	* target-memory.c: Ditto.
	* trans-array.c: Ditto.
	* trans-common.c: Ditto.
	* trans-const.c: Ditto.
	* trans-decl.c: Ditto.
	* trans-expr.c: Ditto.
	* trans-intrinsic.c: Ditto.
	* trans-io.c: Ditto.
	* trans-stmt.c: Ditto.
	* trans-types.c: Ditto.

From-SVN: r150725
2009-08-13 21:46:46 +02:00
Uros Bizjak
f100a4a841 ChangeLog: Fix whitespace.
* ChangeLog: Fix whitespace.
	* testsuite/ChangeLog: Ditto.

From-SVN: r150724
2009-08-13 21:14:20 +02:00
Janis Johnson
0ca73d34ae re PR c/41046 (decNumber leaves printf call in libgcc)
PR c/41046
	* decContext.c (decContextTestEndian): Call printf only if DECCHECK.
	* decCommon.c ( decFloatShow): Define function only for DECCHECK
	or DECTRACE.

From-SVN: r150720
2009-08-13 16:54:28 +00:00
Dave Korn
241547bbe5 cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
* gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.

From-SVN: r150717
2009-08-13 15:00:42 +00:00
Janus Weil
f6038131ce re PR fortran/40995 (Spurious "Type specified for intrinsic function...ignored" message)
2009-08-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/40995
	* resolve.c (resolve_symbol): Move some checking code to
	resolve_intrinsic, and call this from here.
	(resolve_intrinsic): Some checking code moved here from resolve_symbol.
	Make sure each intrinsic is only resolved once.

2009-08-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/40995
	* gfortran.dg/intrinsic_4.f90: New.
	* gfortran.dg/intrinsic_subroutine.f90: An error message moved to a
	different line.

From-SVN: r150716
2009-08-13 13:16:16 +02:00
Richard Guenther
e5fdcd8cc5 re PR middle-end/41047 (gcc.target/mips/memcpy-1.c failing)
2009-08-13  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41047
	* tree-ssa-ccp.c (ccp_fold): When folding pointer additions
	use the constant pointer type.
	* gimplify.c (canonicalize_addr_expr): Canonicalize independent
	of CV qualifiers on the target pointer type.
	* tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
	conversion check before restrict check.

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

From-SVN: r150715
2009-08-13 08:19:10 +00:00
GCC Administrator
61a28f2135 Daily bump.
From-SVN: r150712
2009-08-13 00:17:20 +00:00
Kaz Kojima
d5652a5a2d re PR target/41029 (ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008)
PR target/41029
	* config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.

From-SVN: r150709
2009-08-12 22:26:13 +00:00
Kaz Kojima
d8158ff1e2 sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
* config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.

From-SVN: r150708
2009-08-12 22:23:49 +00:00
Benjamin Kosnik
5d32a15e3b compatibility-ldbl.cc: Add explicit namespace scope.
2009-08-12  Benjamin Kosnik  <bkoz@redhat.com>

	* src/compatibility-ldbl.cc: Add explicit namespace scope.

From-SVN: r150707
2009-08-12 22:05:50 +00:00
Richard Guenther
88ccda10f1 re PR tree-optimization/41011 (ICE in ipcp_lattice_from_jfunc, at ipa-cp.c:328)
2009-08-12  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/41011
	* ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
	and reference constructing.

	* gfortran.dg/pr41011.f: New testcase.

From-SVN: r150705
2009-08-12 17:55:40 +00:00
David Edelsohn
f3ecb732f3 inclhack.def (aix_complex): New fix.
* inclhack.def (aix_complex): New fix.
        * fixincl.x: Regenerate.

From-SVN: r150704
2009-08-12 13:33:41 -04:00
Xinliang David Li
6eb29714e4 Fix to PR41012
From-SVN: r150703
2009-08-12 16:51:41 +00:00
Andrew Haley
e8e76230ed locks.h: Use atomic builtins For Linux EABI.
2009-08-12  Andrew Haley  <aph@redhat.com>

	* sysdep/arm/locks.h: Use atomic builtins For Linux EABI.
	* configure.ac: Add ATOMICSPEC.
	* libgcj.spec.in: Likewise.
	* configure.host (arm*-linux*): Add -Wno-abi to cxxflags.
	(testsuite/libjava.jvmti/jvmti-interp.exp): Likewise.
	(testsuite/libjava.jvmti/jvmti.exp): Likewise.
	(testsuite/libjava.jni/jni.exp): Likewise.
	Set ATOMICSPEC.
	Set LDFLAGS to work around libtool feature.

From-SVN: r150702
2009-08-12 16:34:00 +00:00
Richard Sandiford
b2a58473d7 re PR bootstrap/41031 (ICE in insert_value_copy_on_edge preventing bootstrap on sparc64 and s390x, testcase on cris-elf)
2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>

	PR tree-optimization/41031
	* tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
	on the partition variable rather than promote_mode on the source
	type.  Assert that the partition variable's type has the same
	mode as the source value's.

From-SVN: r150701
2009-08-12 16:28:36 +00:00
Paolo Bonzini
666e3cebe1 tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation for for_return == 2.
2009-08-12  Paolo Bonzini  <bonzini@gnu.org>

	* doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
	for for_return == 2.
	* function.c (assign_parm_setup_reg): Use for_return == 2, improve
	comments.
	* calls.c (expand_call): Fix typo.
	* explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
	and PARM_DECL.
	* stmt.c (expand_value_return): Use promote_function_mode to copy out
	of pseudo.
	* targhooks.c (default_promote_function_mode): Handle for_return == 2.
	* config/cris/cris.c (cris_promote_function_mode): Likewise.
	* config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
	* config/pa/pa.c (pa_promote_function_mode): Likewise.

From-SVN: r150700
2009-08-12 16:23:12 +00:00
Andrew Haley
4b462d7786 builtins.c (compareAndSwapInt_builtin): Use flag_use_atomic_builtins.
2009-08-12  Andrew Haley  <aph@redhat.com>

	* builtins.c (compareAndSwapInt_builtin): Use
	flag_use_atomic_builtins.
	(compareAndSwapLong_builtin): Likewise.
	(compareAndSwapObject_builtin): Likewise.
	* jvspec.c: Add flag_use_atomic_builtins.
	* gcj.texi: Likewise.
	* java-tree.h: Likewise.
	* lang.opt: Likewise.

From-SVN: r150699
2009-08-12 16:10:12 +00:00
Andrew Haley
97804369a9 synchronize.c: New file.
2009-08-11  Andrew Haley  <aph@redhat.com>

	* gcc.target/arm/synchronize.c: New file.

From-SVN: r150698
2009-08-12 15:55:19 +00:00
Andrew Haley
353a58f77c arm.c (arm_init_libfuncs): Add __sync_synchronize.
2009-08-11  Andrew Haley  <aph@redhat.com>

	* config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.

From-SVN: r150697
2009-08-12 15:54:37 +00:00
Sebastian Pop
4654745dcd Remove pragma GCC diagnostic warning "-Wc++-compat".
2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>

	PR bootstrap/40103
	* graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".

From-SVN: r150696
2009-08-12 15:13:52 +00:00
Richard Guenther
daad02781a alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
2009-08-12  Richard Guenther  <rguenther@suse.de>

	* alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
	* gimplify.c (gimplify_modify_expr): Do not use
	lang_hooks.types_compatible_p.
	* tree-ssa.c (useless_type_conversion_p): For aggregates
	just return false if the canonical types differ.

From-SVN: r150695
2009-08-12 15:10:47 +00:00
Sebastian Pop
30de16328a Prepare expressions to be good phi arguments.
2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/40980
	* sese.c (convert_for_phi_arg): New.
	(add_guard_exit_phis): Use convert_for_phi_arg.

	* testsuite/gfortran.dg/graphite/id-17.f: New.

From-SVN: r150694
2009-08-12 14:32:31 +00:00
Sebastian Pop
8c31ebfa3a Dont add unknown subscript upper bounds.
2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
	unknown subscript upper bounds.

	* testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.

From-SVN: r150693
2009-08-12 14:31:21 +00:00
Sebastian Pop
fb9fb29034 Reimplement interchange heuristic.
2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
	    Pranav Garg  <pranav.garg2107@gmail.com>

	* graphite-interchange.c (gather_access_strides): Removed.
	(ppl_max_for_le): New.
	(build_linearized_memory_access): New.
	(memory_stride_in_loop): New.
	(pbb_interchange_profitable_p): Reimplemented.
	* graphite-ppl.h (ppl_new_id_map): New.
	(ppl_interchange): New.

	* testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.


Co-Authored-By: Pranav Garg <pranav.garg2107@gmail.com>

From-SVN: r150692
2009-08-12 14:30:06 +00:00
Sebastian Pop
312aea7f99 Remove interchange heuristic.
2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-interchange.c (compute_subscript): Removed.
	(compute_array_size_cstr): Removed.
	(compute_array_size_poly): Removed.
	(compute_array_size): Removed.
	(gather_access_strides_poly): Removed.
	(gather_access_strides): Empty.

From-SVN: r150691
2009-08-12 14:28:15 +00:00
Sebastian Pop
25d7cc15a8 Add PDR->nb_subscripts.
2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-dependences.c (dependence_polyhedron_1): Replace
	pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
	(graphite_legal_transform_dr): Same.
	(graphite_carried_dependence_level_k): Same.
	* graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
	Initialize PDR_NB_SUBSCRIPTS.
	(print_pdr_access_layout): Replace pdr_nb_subscripts with
	PDR_NB_SUBSCRIPTS.
	* graphite-poly.h (struct poly_dr): Add nb_subscripts field.
	(PDR_NB_SUBSCRIPTS): New.
	(pdr_nb_subscripts): Removed.
	(pdr_dim): Simplified.
	* graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
	with PDR_NB_SUBSCRIPTS.

From-SVN: r150690
2009-08-12 14:27:33 +00:00
Sebastian Pop
66096911fd Undo changes to the PDR representation.
2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-interchange.c (compute_array_size): Remove use of
	PDR_DATA_CONTAINER.
	* graphite-poly.c (new_poly_dr): Remove argument data_container.
	Do not initialize PDR_DATA_CONTAINER.
	(print_pdr): Do not print PDR_DATA_CONTAINER.
	* graphite-poly.h (struct poly_dr): Remove data_container field.
	(PDR_DATA_CONTAINER): Removed.
	* graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
	PDR_DATA_CONTAINER.
	(build_poly_dr): Same.

From-SVN: r150689
2009-08-12 14:26:42 +00:00