Commit Graph

98117 Commits

Author SHA1 Message Date
Jason Merrill
e4672ccdb3 re PR c++/40750 (Side-effect of member function call not produced in certain circumstances)
PR c++/40750
	* decl.c (grokdeclarator): Clear type_quals for a member function
	declared using a typedef.  Don't complain about adding cv-quals
	to a function typedef in C++0x mode.

From-SVN: r156084
2010-01-20 16:30:20 -05:00
Anthony Green
35b954c12d Testsuite cleanups for moxie.
From-SVN: r156081
2010-01-20 14:17:00 +00:00
Joseph Myers
c04f9611f5 * zh_CN.po: Update.
From-SVN: r156080
2010-01-20 13:15:55 +00:00
Richard Guenther
e9a8afaafc re PR tree-optimization/42717 (ice: verify_ssa failed)
2010-01-20  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/42717
	* tree-ssa-dce.c (get_live_post_dom): Remove.
	(forward_edge_to_pdom): Take an arbitrary edge to copy
	degenerate PHI args from.
	(remove_dead_stmt): Use the first post-dominator even if it
	does not contain live statements as redirection destination.

	* gcc.c-torture/compile/pr42717.c: New testcase.

From-SVN: r156076
2010-01-20 12:30:15 +00:00
Janis Johnson
bd9b2e5379 re PR libstdc++/21769 (per-file control over PCH inclusion)
2010-01-20  Janis Johnson  <janis187@us.ibm.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/21769
	* testsuite/lib/dg-options.exp (add_options_for_no_pch): Add.
	* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
	Use it.


Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r156075
2010-01-20 11:57:44 +00:00
Richard Guenther
be2fd18721 tree-inline.c (estimate_num_insns): Handle EH builtins.
2010-01-20  Richard Guenther  <rguenther@suse.de>

	* tree-inline.c (estimate_num_insns): Handle EH builtins.

From-SVN: r156073
2010-01-20 11:47:39 +00:00
Jakub Jelinek
1124098bb2 sel-sched.c (create_speculation_check): Remove set but not used variable twin.
* sel-sched.c (create_speculation_check): Remove set but not used
	variable twin.
	(try_transformation_cache): Remove set but not used variable ds.
	(calculate_privileged_insns): Remove set but not used variables
	cur_insn and min_spec_insn.
	(find_best_expr): Remove set but not used variable avail_n.
	* tree-predcom.c (base_names_in_chain_on): Remove set but not used
	variable e.
	* cgraphunit.c (assemble_thunk): Remove set but not used variable
	false_label.
	* haifa-sched.c (remove_notes): Remove set but not used variable prev.
	* graphite-clast-to-gimple.c (gloog): Remove set but not used variable
	new_scop_exit_edge.

	* decl.c (create_array_type_for_decl): Remove set but not used
	variable error_msg.  Remove break stmts after return stmts.

From-SVN: r156072
2010-01-20 12:30:05 +01:00
Felyza Wishbringer
83a5ef25d3 re PR bootstrap/42786 (Athlon SSE3 and Fx processors not supported by configure)
PR bootstrap/42786
	* config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
	cpu types.  Add support for *-sse3 cpu types.
	(x86_64-*-*): Ditto.

From-SVN: r156071
2010-01-20 12:27:49 +01:00
Jakub Jelinek
b5c0899b50 re PR middle-end/42803 (c++ compilation hang)
PR middle-end/42803
	* varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
	argument, call initializer_constant_valid_p_1 instead of
	initializer_constant_valid_p, pass CACHE to it, return NULL
	immediately if first call returns NULL.
	(initializer_constant_valid_p_1): New function.
	(initializer_constant_valid_p): Use it.

	* g++.dg/parse/limits-initializer1.C: New test.

From-SVN: r156069
2010-01-20 12:08:24 +01:00
Joern Rennecke
21a942d22b * jvspec.c (lang_specific_driver): Constify two variables named "p".
From-SVN: r156068
2010-01-20 10:35:38 +00:00
Thomas Quinot
5f8f3f94ee * tree.def (PLACEHOLDER_EXPR): Fix comment.
From-SVN: r156067
2010-01-20 09:47:41 +00:00
Joern Rennecke
74f24290bd jcf-parse.c (set_source_filename): Constify variable "dot".
* jcf-parse.c (set_source_filename): Constify variable "dot".
	(load_class): Constify variable "separator".
	Use get_identifier_with_length.

From-SVN: r156066
2010-01-20 09:35:05 +00:00
Joern Rennecke
c24ea6672d * lang.c (java_post_options): Constify variable "dot".
From-SVN: r156064
2010-01-20 08:17:00 +00:00
Jakub Jelinek
80c35b40e4 dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead of MOD...
* dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
	of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
	(loc_list_from_tree): Don't handle unsigned division.  Handle
	signed modulo using DW_OP_{over,over,div,mul,minus}.
	* unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
	modulo instead of signed.

	* gcc.dg/cleanup-13.c: Expect DW_OP_mod to do unsigned modulo instead
	of signed, add a few new tests.

From-SVN: r156063
2010-01-20 09:13:50 +01:00
Joern Rennecke
204803dc83 re PR bootstrap/42812 (--enable-build-with-cxx bootstrap fails on fortran/resolve.c:gfc_resolve)
PR bootstrap/42812
	* gfortran.h  (struct gfc_namespace) <resolved>: Change to signed
	bitfield of width 2.

From-SVN: r156062
2010-01-20 07:52:18 +00:00
DJ Delorie
c72ea08687 h8300.c (F): Add "in_epilogue" flag.
* config/h8300/h8300.c (F): Add "in_epilogue" flag.
(Fpa): Pass it
(h8300_emit_stack_adjustment): Propogate it.
(push): Pass it.
(h8300_expand_prologue): Likewise.
(h8300_expand_epilogue): Likewise.

From-SVN: r156056
2010-01-20 00:58:59 -05:00
Joern Rennecke
e80b7e74ee module.c (mio_f2k_derived): Use enumerator as initializer of enum variable.
* module.c (mio_f2k_derived): Use enumerator as initializer of
	enum variable.

From-SVN: r156055
2010-01-20 05:39:12 +00:00
GCC Administrator
b8b96f2454 Daily bump.
From-SVN: r156053
2010-01-20 00:16:53 +00:00
Janus Weil
63894de2a2 re PR fortran/42804 (ICE with -fcheck=bounds and type bound procedure call on array element)
gcc/fortran/
2010-01-19  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42804
	* resolve.c (extract_compcall_passed_object): Set locus for
	passed-object argument.
	(extract_ppc_passed_object): Set locus and correctly remove PPC
	reference.

gcc/testsuite/
2010-01-19  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42804
	* gfortran.dg/proc_ptr_comp_pass_6.f90: New test.
	* gfortran.dg/typebound_call_12.f03: New test.

From-SVN: r156049
2010-01-19 23:21:35 +01:00
Paul Thomas
702a738bdb re PR fortran/42783 (Bogus Array bounds violation with optional array argument)
2010-01-19  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/42783
	* trans-decl.c (add_argument_checking): Do not use the backend
	decl directly to test for the presence of an optional dummy
	argument.  Use gfc_conv_expr_present, remembering to set the
	symbol referenced.

	PR fortran/42772
	* trans-decl.c (gfc_generate_function_code): Small white space
	changes. If 'recurcheckvar' is NULL do not try to reset it.

2010-01-19  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/42783
	* gfortran.dg/bounds_check_15.f90 : New test.

From-SVN: r156046
2010-01-19 19:46:59 +00:00
Matthias Klose
a4f3bbc6e3 2010-01-19 Matthias Klose <doko@ubuntu.com>
* Regenerate .class files.
        * classpath/lib/java/security/VMSecureRandom*.class: Remove.

From-SVN: r156044
2010-01-19 16:42:47 +00:00
Michael Matz
b61b1f1708 re PR tree-optimization/41783 (r151561 (PRE fix) regresses zeusmp)
PR tree-optimization/41783
	* tree-data-ref.c (toplevel): Include flags.h.
	(dump_data_dependence_relation):  Also dump the inputs if the
	result will be unknown.
	(split_constant_offset_1): Look through some conversions.
	* tree-predcom.c (determine_roots_comp): Restart a new chain if
	the offset from last element is too large.
	(ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
	(reassociate_to_the_same_stmt): Handle vector registers.
	* tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
	(e.g. conversions).
	* tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add 
	wide_prolog_niters argument, emit widening instructions.
	(vect_do_peeling_for_alignment): Adjust caller, use widened
	variant of the iteration cound.
	* Makefile.in (tree-data-ref.o): Add $(FLAGS_H).

testsuite/
	* gfortran.dg/vect/fast-math-mgrid-resid.f: New.

From-SVN: r156043
2010-01-19 16:05:57 +00:00
Ramana Radhakrishnan
b3d7e1910f Fix target/38697
2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

       PR target/38697
       * config/arm/neon-testgen.m (emit_automatics): New parameter
	features. Adjust for Fixed_return_reg feature.
	(test_intrinsic): Call emit_automatics with new feature.
       * config/arm/neon.ml: Update copyright years.
	(features): New Fixed_return_reg feature.
	(ops): Update feature for Vget_low.

2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	PR target/38697.
	* gcc.target/arm/neon/vget_lowf32.c: Regenerate.
	* gcc.target/arm/neon/vget_lowp16.c: Likewise.
	* gcc.target/arm/neon/vget_lowp8.c:  Likewise.
	* gcc.target/arm/neon/vget_lows16.c: Likewise.
	* gcc.target/arm/neon/vget_lows32.c: Likewise.
	* gcc.target/arm/neon/vget_lows64.c: Likewise.
	* gcc.target/arm/neon/vget_lows8.c: Likewise.
	* gcc.target/arm/neon/vget_lowu16.c: Likewise.
	* gcc.target/arm/neon/vget_lowu32.c: Likewise.
	* gcc.target/arm/neon/vget_lowu64.c: Likewise.
	* gcc.target/arm/neon/vget_lowu8.c: Likewise.

From-SVN: r156042
2010-01-19 14:21:14 +00:00
Janus Weil
f89cc1a337 re PR fortran/42545 (type extension: parent component has wrong accessibility)
gcc/fortran/
2010-01-19  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42545
	* resolve.c (resolve_fl_derived): Set the accessibility of the parent
	component for extended types.
	* symbol.c (gfc_find_component): Remove a wrongly-worded error message
	and take care of parent component accessibility.

gcc/testsuite/
2010-01-19  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42545
	* gfortran.dg/extends_6.f03: Modified an error message.
	* gfortran.dg/extends_10.f03: New test.
	* gfortran.dg/private_type_6.f03: Modified an error message.
	* gfortran.dg/structure_constructor_8.f03: Ditto.

From-SVN: r156040
2010-01-19 14:45:07 +01:00
Jakub Jelinek
d6600130fa re PR tree-optimization/42719 ("-fcompare-debug failure" with "-O2 -ftracer")
PR tree-optimization/42719
	* tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
	stmt uses.

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

From-SVN: r156038
2010-01-19 13:39:42 +01:00
Jakub Jelinek
2178b0f93a re PR debug/42728 ("-fcompare-debug failure (length)" at -O1)
PR debug/42728
	* fwprop.c (all_uses_available_at): Return false if def_set dest
	is a REG that is used in def_insn.

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

From-SVN: r156037
2010-01-19 13:38:25 +01:00
Johannes Singler
70202e48b6 re PR libstdc++/42712 (search_n/iterator.cc times out in parallel-mode)
2010-01-19  Johannes Singler  <singler@kit.edu>

        PR libstdc++/42712
        * include/parallel/settings.h (_Settings): Add search_minimal_n.
        * include/parallel/algo.h (__search_switch):
        Add serial fallback for too small inputs.
        (__search_n_switch): Likewise.  Call serial fallback on higher level
        to gain special treatment for __count 0 or 1.
        * testsuite/25_algorithms/search_n/iterator.cc:
        Reenable full test depth for parallel mode.

From-SVN: r156036
2010-01-19 11:18:03 +00:00
Joern Rennecke
f7154d497f target.h (struct gcc_target): Change type of last argument to secondary_reload_info *.
* target.h (struct gcc_target) <secondary_reload>: Change type
	of last argument to secondary_reload_info *.

From-SVN: r156035
2010-01-19 08:22:22 +00:00
Joern Rennecke
ab7e224ace tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
* doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.

	(TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
	Add argument names.

	(TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.

From-SVN: r156034
2010-01-19 05:46:27 +00:00
Anthony Green
547cc7eefe Expect 20040204-1 to pass on moxie.
From-SVN: r156033
2010-01-19 05:34:19 +00:00
Anthony Green
5923a16538 Fix asm-3.c test for moxie.
From-SVN: r156032
2010-01-19 05:19:26 +00:00
GCC Administrator
4d6d1838ae Daily bump.
From-SVN: r156030
2010-01-19 00:17:29 +00:00
Dodji Seketeli
11d7788da1 Revert fix of PR c++/
gcc/cp/ChangeLog:
	* error.c (dump_template_parms, count_non_default_template_args):
	Revert fix of PR c++/42634.

gcc/testsuite/ChangeLog:
	* g++.dg/template/error45.C: reverted as part of reverting the
	fix of PR c++/42634.

From-SVN: r156026
2010-01-19 00:14:01 +01:00
Andreas Tobler
b949bbc8e6 Makefile.am (GJDOC_EX): Use find -name pattern -prune -o.
2010-01-18  Andreas Tobler  <andreast@fgznet.ch>

	* tools/Makefile.am (GJDOC_EX): Use find -name pattern -prune -o.
	* tools/Makefile.in: Regenerate.

From-SVN: r156023
2010-01-18 22:32:40 +01:00
Dodji Seketeli
ebea03e03e re PR c++/42634 (ICE with -g -O2 -std=c++0x in copy_fn_p, at cp/decl.c:9973)
Fix PR c++/42634

gcc/cp/ChangeLog:
    PR c++/42634
    * error.c (dump_template_parms): Use innermost template
    arguments before calling count_non_default_template_args.
    (count_non_default_template_args): We are being called with
    template innermost arguments now. There is no need to ensure
    that again.

gcc/testsuite/ChangeLog:
    PR c++/42634
    * g++.dg/template/error45.C: New test.

From-SVN: r156022
2010-01-18 22:18:49 +01:00
Dodji Seketeli
a5cf630e39 re PR c++/42766 (tree check fail in build_expr_type_conversion)
Fix PR c++/42766

gcc/cp/ChangeLog:
	PR c++/42766
	* cvt.c (build_expr_type_conversion): Look through OVERLOAD.

gcc/testsuite/ChangeLog:
	PR c++/42766
	* g++.dg/conversion/op6.C: New test.

From-SVN: r156020
2010-01-18 20:11:24 +01:00
Eric Botcazou
3b9e834309 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
From-SVN: r156018
2010-01-18 17:55:03 +00:00
Uros Bizjak
f249b40509 re PR target/42774 (ICE in get_aligned_mem, at config/alpha/alpha.c:1484)
PR target/42774
	* config/alpha/predicates.md (aligned_memory_operand): Return 0 for
	memory references with unaligned offsets.  Remove CQImode handling.
	(unaligned_memory_operand): Return 1 for memory references with
	unaligned offsets.  Remove CQImode handling.

testsuite/ChangeLog:

	PR target/42774
	* gcc.target/alpha/pr42774.c: New test.

From-SVN: r156017
2010-01-18 18:46:17 +01:00
Jan Hubicka
8c0a593b84 re PR ada/42068 (ICE in function_and_variable_visibility)
PR middle-end/42068
	* gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
	unit local variables.

From-SVN: r156016
2010-01-18 17:19:13 +00:00
Jan Hubicka
8b7b0c36aa re PR ada/42068 (ICE in function_and_variable_visibility)
PR middle-end/42068
	(create_var_decl_1): Do not set COMMON flag for unit local variables.

From-SVN: r156010
2010-01-18 15:42:05 +00:00
Joseph Myers
413ebfc335 * zh_CN.po: Update.
From-SVN: r156009
2010-01-18 13:28:09 +00:00
Richard Guenther
e23817b3ba re PR middle-end/39954 (Revision 146817 caused unaligned access in gcc.dg/torture/pr26565.c)
2010-01-18  Richard Guenther  <rguenther@suse.de>

	PR middle-end/39954
	* cfgexpand.c (expand_call_stmt): TER pointer arguments in
	builtin calls.

From-SVN: r156008
2010-01-18 12:59:50 +00:00
Daniel Frey
0238e6c9f2 functional (_Bind<_Functor(_Bound_args...)>:: operator()): "Pass" _Result to __call*.
2010-01-18  Daniel Frey  <d.frey@gmx.de>

	* include/std/functional (_Bind<_Functor(_Bound_args...)>::
	operator()): "Pass" _Result to __call*.
	(_Bind<_Functor(_Bound_args...)>::__call*): Adjust, simplify.

From-SVN: r156007
2010-01-18 10:41:30 +00:00
Richard Guenther
1cfd38bea3 re PR tree-optimization/42781 (ICE in pt_solutions_same_restrict_base, at tree-ssa-structalias.c:5072)
2010-01-18  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/42781
	* tree-ssa-structalias.c (find_what_var_points_to): Skip
	restrict processing only if the original variable was
	artificial.

	* gfortran.fortran-torture/compile/pr42781.f90: New testcase.

From-SVN: r156006
2010-01-18 09:57:11 +00:00
Thierry Lafage
f7746c5941 * MAINTAINERS: reindented my entry with tabs instead of spaces.
From-SVN: r156004
2010-01-18 09:33:39 +00:00
Johannes Singler
4d62f1d022 base.h (__unary_negate): Correct comment.
2010-01-18  Johannes Singler  <singler@kit.edu>

        * include/parallel/base.h (__unary_negate): Correct comment.

From-SVN: r156003
2010-01-18 08:44:45 +00:00
Joern Rennecke
0678ade0fe toplev.c (default_get_pch_validity): Rename argument to "sz".
* toplev.c (default_get_pch_validity): Rename argument to "sz".
	* doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.

From-SVN: r156002
2010-01-18 05:46:19 +00:00
Joern Rennecke
72392b813f tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to find number of popped argument bytes.
* doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
	find number of popped argument bytes.

	(TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
	Fix the text that describes the return value for invalid insns.

	(TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.

	(TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
	Clarify what 'cost of the -dependence' is.  Fix quoting.

From-SVN: r155999
2010-01-18 02:47:16 +00:00
GCC Administrator
de65371499 Daily bump.
From-SVN: r155997
2010-01-18 00:16:40 +00:00
Laurent GUERBY
34e6988b72 Makefile.in: Fix typo in arm*-*-linux-gnueabi.
2010-01-17  Laurent GUERBY  <laurent@guerby.net>

	* gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.

From-SVN: r155993
2010-01-17 20:45:50 +00:00