Commit Graph

108325 Commits

Author SHA1 Message Date
Michael Meissner
df10b6d444 PR target/48258, improve vector reduction on power7
From-SVN: r172981
2011-04-26 17:48:29 +00:00
Joseph Myers
35a5db0448 fr30.h (inhibit_libc): Don't define.
* config/fr30/fr30.h (inhibit_libc): Don't define.
	* config/m32r/m32r-protos.h: Correct comment.
	* config/v850/v850.h (GHS_default_section_names,
	GHS_current_section_names): Use tree, not union tree_node *.

From-SVN: r172980
2011-04-26 17:35:51 +01:00
Rainer Orth
a14ce7d44d Fixed gcc.dg/binop-xor[1-5].c filenames.
From-SVN: r172979
2011-04-26 16:18:04 +00:00
Xinliang David Li
2f964ad6d4 Implement -Wno-maybe-uninitialized
From-SVN: r172978
2011-04-26 16:06:09 +00:00
Martin Jambor
86262bb186 class.c (cp_fold_obj_type_ref): Remove.
2011-04-26  Martin Jambor  <mjambor@suse.cz>

	* class.c (cp_fold_obj_type_ref): Remove.
	* cp-tree.h (cp_fold_obj_type_ref): Remove declaration.

From-SVN: r172977
2011-04-26 17:49:22 +02:00
Rainer Orth
9c7bd91af7 iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
* config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test
	TARGET_NEWABI.
	(WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
	(TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.

From-SVN: r172976
2011-04-26 15:42:17 +00:00
Rainer Orth
c2f36e21b2 mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
* config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
	* config/mips/mips.opt (mmips-tfile): Remove.

	* doc/install.texi (Specific, mips-*-*): Move mips-tfile,
	mips-tdump reference to ...
	(Specific, alpha*-dec-osf5.1): ... here.
	Adapt for Tru64 UNIX.
	* doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
	reference by Tru64 UNIX.

From-SVN: r172975
2011-04-26 15:33:10 +00:00
Joseph Myers
0921678355 * de.po: Update.
From-SVN: r172973
2011-04-26 15:56:51 +01:00
Jakub Jelinek
0c5f6539ad re PR debug/48768 (ICE in get_expr_operands())
PR debug/48768
	* tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
	is error_mark_node, set value to NULL.

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

From-SVN: r172968
2011-04-26 15:35:21 +02:00
Jakub Jelinek
2c9da85bf0 re PR tree-optimization/48734 (ICE in eliminate_redundant_comparison, at tree-ssa-reassoc.c:1321)
PR tree-optimization/48734
	* tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
	if return value from maybe_fold_*_comparsions isn't something
	the code is prepared to handle.

	* gcc.c-torture/compile/pr48734.c: New test.

From-SVN: r172967
2011-04-26 15:33:49 +02:00
Jakub Jelinek
ac6fdeacaf re PR testsuite/48753 (FAIL: gcc.dg/tree-prof/val-prof-2.c)
PR testsuite/48753
	* gcc.dg/tree-prof/val-prof-2.c: Adjust for 32-bit HWI.

From-SVN: r172966
2011-04-26 15:31:17 +02:00
Uros Bizjak
77fa1d54b9 predicates.md (ext_QIreg_operand): Remove extra mode check.
* config/i386/predicates.md (ext_QIreg_operand): Remove extra
	mode check.
	(ext_QIreg_nomode_operands): Remove.
	* config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
	(*andsi_1): Ditto.
	(*andhi_1): Ditto.

From-SVN: r172965
2011-04-26 15:02:55 +02:00
Richard Guenther
e6e26e59a3 re PR c/48731 (regression: __attribute__((flatten)) produces error with function calling variadic functions)
2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/48731
	* gcc.dg/torture/pr48731.c: New testcase.

From-SVN: r172964
2011-04-26 13:00:53 +00:00
Andrew Stubbs
0e2a6c2b23 arm.c (arm_gen_constant): Remove can_negate_initial.
2011-04-26  Andrew Stubbs  <ams@codesourcery.com>

	gcc/
	* config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.

From-SVN: r172962
2011-04-26 10:51:04 +00:00
Paolo Carlini
12e35602e8 2011-04-26 Paolo Carlini <paolo.carlini@oracle.com>
Tweak recent ChangeLog entry.

From-SVN: r172960
2011-04-26 10:34:44 +00:00
Richard Guenther
304dfbe364 re PR preprocessor/48248 (Wrong error message location when compiling preprocessed code)
2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR preprocessor/48248
	* c-ppoutput.c (maybe_print_line): Always optimize newlines
	for output size with -P.

From-SVN: r172959
2011-04-26 10:14:34 +00:00
Richard Biener
e73a83fc7c c-typeck.c (build_unary_op): Do not expand array-refs via pointer arithmetic.
2011-04-26  Richard Guenther  <rguenther@suse.de>

	* c-typeck.c (build_unary_op): Do not expand array-refs via
	pointer arithmetic.  Only adjust qualifiers for function types.

From-SVN: r172958
2011-04-26 10:12:34 +00:00
Richard Biener
961562d8d8 re PR tree-optimization/48694 (possible memory hog bug)
2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR middle-end/48694
	* tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
	* fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
	compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat
	trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF
	is set.

	* gcc.dg/torture/pr48694-1.c: New testcase.
	* gcc.dg/torture/pr48694-2.c: Likewise.

From-SVN: r172957
2011-04-26 10:12:14 +00:00
Richard Guenther
ce3ba3827f re PR testsuite/48753 (FAIL: gcc.dg/tree-prof/val-prof-2.c)
2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR testsuite/48753
	* gcc.dg/tree-prof/val-prof-2.c: Adjust.

From-SVN: r172955
2011-04-26 10:03:12 +00:00
Richard Guenther
ad0e2567d6 re PR tree-optimization/48694 (possible memory hog bug)
2011-04-26  Richard Guenther  <rguenther@suse.de>

	PR middle-end/48694
	* tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
	* fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
	compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat
	trees with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF
	is set.

	* gcc.dg/torture/pr48694-1.c: New testcase.
	* gcc.dg/torture/pr48694-2.c: Likewise.

From-SVN: r172954
2011-04-26 09:21:44 +00:00
GCC Administrator
0d467c0bf2 Daily bump.
From-SVN: r172950
2011-04-26 00:19:11 +00:00
Paolo Carlini
74e883ce8c c-common.c (struct c_common_resword): Add __underlying_type.
/gcc
2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* c-family/c-common.c (struct c_common_resword): Add
	__underlying_type.
	* c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
	* doc/extend.texi: Document __underlying_type.

/cp
2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* cp-tree.def: Add a new UNDERLYING_TYPE tree code.
	* cp-tree.h (enum cp_trait_kind): Add CPTK_UNDERLYING_TYPE, tidy.
	(UNDERLYING_TYPE_TYPE): Add.
	* cp-objcp-common.c (cp_common_init_ts): Mark UNDERLYING_TYPE
	as TS_COMMON.
	* parser.c (cp_lexer_next_token_is_decl_specifier_keyword,
	cp_parser_simple_type_specifier): Handle UNDERLYING_TYPE.
	(cp_parser_trait_expr): Deal with RID_UNDERLYING_TYPE; tidy.
	* semantics.c (finish_underlying_type): New.
	* typeck.c (structural_comptypes): Handle UNDERLYING_TYPE.
	* error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise.
	* cxx-pretty-print.c (p_cxx_type_id): Likewise.
	* tree.c (cp_walk_subtrees): Likewise.
	* pt.c (for_each_template_parm_r, tsubst, unify,
	dependent_type_p_r): Likewise.
	* mangle.c (write_type): Sorry for __underlying_type.

/testsuite
2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/ext/underlying_type1.C: New.
	* g++.dg/ext/underlying_type2.C: Likewise.
	* g++.dg/ext/underlying_type3.C: Likewise.
	* g++.dg/ext/underlying_type4.C: Likewise.
	* g++.dg/ext/underlying_type5.C: Likewise.
	* g++.dg/ext/underlying_type6.C: Likewise.
	* g++.dg/ext/underlying_type7.C: Likewise.
	* g++.dg/ext/underlying_type8.C: Likewise.
	* g++.dg/ext/underlying_type9.C: Likewise.
	* g++.dg/ext/underlying_type10.C: Likewise.

From-SVN: r172945
2011-04-25 23:50:35 +00:00
Paolo Carlini
a47407f631 type_traits (struct underlying_type): Add.
2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/type_traits (struct underlying_type): Add.
	* testsuite/20_util/underlying_type/requirements/typedefs-1.cc: New.
	* testsuite/20_util/underlying_type/requirements/typedefs-2.cc:
	Likewise.
	* testsuite/20_util/underlying_type/requirements/
	explicit_instantiation.cc: Likewise.
	* testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
	line number.

From-SVN: r172944
2011-04-25 23:04:16 +00:00
Paolo Carlini
a0d260fcc5 c-common.c (struct c_common_resword): Add __underlying_type.
/gcc
2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* c-family/c-common.c (struct c_common_resword): Add
	__underlying_type.
	* c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.

/cp
2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* cp-tree.def: Add a new UNDERLYING_TYPE tree code.
	* cp-tree.h (enum cp_trait_kind): Add CPTK_UNDERLYING_TYPE, tidy.
	(UNDERLYING_TYPE_TYPE): Add.
	* cp-objcp-common.c (cp_common_init_ts): Mark UNDERLYING_TYPE
	as TS_COMMON.
	* parser.c (cp_lexer_next_token_is_decl_specifier_keyword,
	cp_parser_simple_type_specifier): Handle UNDERLYING_TYPE.
	(cp_parser_trait_expr): Deal with RID_UNDERLYING_TYPE; tidy.
	* semantics.c (finish_underlying_type): New.
	* typeck.c (structural_comptypes): Handle UNDERLYING_TYPE.
	* error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise.
	* cxx-pretty-print.c (p_cxx_type_id): Likewise.
	* tree.c (cp_walk_subtrees): Likewise.
	* pt.c (for_each_template_parm_r, tsubst, unify,
	dependent_type_p_r): Likewise.
	* mangle.c (write_type): Sorry for __underlying_type.
	* doc/extend.texi: Document __underlying_type.

/testsuite
2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/ext/underlying_type1.C: New.
	* g++.dg/ext/underlying_type2.C: Likewise.
	* g++.dg/ext/underlying_type3.C: Likewise.
	* g++.dg/ext/underlying_type4.C: Likewise.
	* g++.dg/ext/underlying_type5.C: Likewise.
	* g++.dg/ext/underlying_type6.C: Likewise.
	* g++.dg/ext/underlying_type7.C: Likewise.
	* g++.dg/ext/underlying_type8.C: Likewise.
	* g++.dg/ext/underlying_type9.C: Likewise.
	* g++.dg/ext/underlying_type10.C: Likewise.

From-SVN: r172943
2011-04-25 22:27:19 +00:00
Jason Merrill
d95f258e90 re PR c++/48707 ([c++0x] ICE initializing static const int)
PR c++/48707
	* decl.c (type_dependent_init_p): New.
	(cp_finish_decl): Check it.
	* pt.c (any_type_dependent_elements_p): New.
	* cp-tree.h: Declare it.

From-SVN: r172941
2011-04-25 17:51:33 -04:00
Segher Boessenkool
4d583bb9fc titan.md (automata_option "progress"): Remove.
2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>

        * config/rs6000/titan.md (automata_option "progress"): Remove.

From-SVN: r172940
2011-04-25 22:00:02 +02:00
Jeff Law
f49ad34456 Typo in test
From-SVN: r172939
2011-04-25 13:59:46 -06:00
Jeff Law
1f3fcdc3a9 tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
* tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.

	* gcc.dg/tree-ssa/vrp56.c: new test.

From-SVN: r172938
2011-04-25 13:55:13 -06:00
Rainer Orth
328db4501e * go.test/go-test.exp (go-set-goarch): Accept mips*-*-*.
From-SVN: r172937
2011-04-25 19:44:48 +00:00
Ian Lance Taylor
eb864be48f libgo/time: Support Irix 6 location of zoneinfo files.
From-SVN: r172936
2011-04-25 19:42:33 +00:00
Ian Lance Taylor
9f3b1e6c60 libgo: Irix 6 patches.
From Rainer Orth.

From-SVN: r172935
2011-04-25 19:36:12 +00:00
Jan Kratochvil
e5b0dad8fd ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.
include/
	* ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.

contrib/
	* paranoia.cc (ENUM_BITFIELD): Remove.

gcc/
	* system.h (ENUM_BITFIELD): Remove.

libcpp/
	* system.h (ENUM_BITFIELD): Remove.

From-SVN: r172933
2011-04-25 18:05:37 +00:00
Ian Lance Taylor
482829acf2 Use backend interface for function types.
Drop type_tree() functions for Float_type and Complex_type.
Don't define builtin functions until gogo is created.

	* go-gcc.cc (Gcc_backend::error_type): Implement.
	(Gcc_backend::string_type): Remove.
	(Gcc_backend::function_type): Change signature and implement.
	(Gcc_backend::struct_type): Change signature.
	(Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
	(Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
	(Gcc_backend::pointer_type): Check for error.
	* Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.

From-SVN: r172932
2011-04-25 17:21:28 +00:00
Evan Shaw
0aa5e7f22a Use backend interface for basic types
* go-gcc.c (class Gcc_tree): Make get_tree const.
	(Gcc_backend::void_type): Implement.
	(Gcc_backend::bool_type): Implement.
	(Gcc_backend::integer_type): Implement.
	(Gcc_backend::float_type): Implement.
	(Gcc_backend::complex_type): New function.
	(Gcc_backend::pointer_type): New function.
	(Gcc_backend::make_type): New function.
	(type_to_tree): New function.

From-SVN: r172931
2011-04-25 16:39:24 +00:00
Maxim Kuvyrkov
5157a881bb combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals for STORE_FLAG_VALUE==-1 case.
* combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
	for STORE_FLAG_VALUE==-1 case.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r172930
2011-04-25 12:06:27 +00:00
GCC Administrator
0c289711f3 Daily bump.
From-SVN: r172929
2011-04-25 00:18:21 +00:00
Paolo Carlini
6b77089f40 multiway_merge.h: Uglify equally_split and equally_split_point throughout.
2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/parallel/multiway_merge.h: Uglify equally_split
	and equally_split_point throughout.
	* include/parallel/par_loop.h: Likewise.
	* include/parallel/equally_split.h: Likewise.
	* include/parallel/set_operations.h: Likewise.
	* include/parallel/unique_copy.h: Likewise.
	* include/parallel/multiway_mergesort.h: Likewise.
	* include/parallel/search.h: Likewise.
	* include/parallel/partial_sum.h: Likewise.
	* include/parallel/find.h: Likewise.

From-SVN: r172923
2011-04-24 23:51:49 +00:00
Richard Sandiford
ed4c109ee8 Author: Richard Sandiford <richard.sandiford@linaro.org>
PR target/43804
* gcc/config/m68k/constraints.md (T): Allow PIC operands that satisfy
LEGITIMATE_PIC_OPERAND_P.

From-SVN: r172920
2011-04-24 20:04:24 +00:00
Gerald Pfeifer
8179f67493 parallel_mode.xml: Fix link to libgomp online documentation.
* doc/xml/manual/parallel_mode.xml: Fix link to libgomp online
	documentation.  Expand link text.

From-SVN: r172916
2011-04-24 11:11:00 +00:00
Gerald Pfeifer
f172dd9af9 * libsupc++/cxxabi.h: Adjust link to FAQ entry.
From-SVN: r172915
2011-04-24 10:51:00 +00:00
Jan Hubicka
f3181aa202 ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette WPA hack.
* ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
	WPA hack.
	* ipa-prop.h (ipa_get_param, ipa_is_param_used, ipa_param_cannot_devirtualize_p,
	ipa_param_types_vec_empty, ipa_get_ith_jump_func, ipa_get_lattice):
	Fortify array bounds.
	* ipa-inline-analysis.c (add_clause): Fix clause ordering.
	(and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
	Sanity check predicate length.
	(remap_predicate): Likewise; sanity check jump functions.
	(inline_read_section, inline_write_summary): Sanity check
	predicate length.

From-SVN: r172914
2011-04-24 10:43:00 +00:00
Gerald Pfeifer
739986ef4a * README: Refer to our generic bug reporting page.
From-SVN: r172913
2011-04-24 10:04:26 +00:00
Paolo Carlini
5307cbaa75 re PR other/48748 (Undocumented type traits used in libstdc++-4.6)
2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR other/48748
	* doc/extend.texi (Type Traits): Document __is_standard_layout,
	__is_literal_type, and __is_trivial; update throughout about
	possibly cv-qualified void types.

From-SVN: r172911
2011-04-24 09:42:16 +00:00
Gerald Pfeifer
bebd5f993c sourcebuild.texi (Ada Tests): Adjust reference to ACATS testsuite and make it version agnostic.
* doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
	testsuite and make it version agnostic.

From-SVN: r172910
2011-04-24 09:34:22 +00:00
GCC Administrator
2cf63542d1 Daily bump.
From-SVN: r172909
2011-04-24 00:18:45 +00:00
Jakub Jelinek
6cfae07011 re PR preprocessor/48740 (Raw C++0x strings and trigraphs mix badly)
PR preprocessor/48740
	* lex.c (lex_raw_string): When raw string ends with
	??) followed by raw prefix and ", ensure it is preprocessed
	with ??) rather than ??].

	* c-c++-common/raw-string-11.c: New test.

From-SVN: r172903
2011-04-24 01:32:09 +02:00
Gerald Pfeifer
8d6a2f6968 gnat_ugn.texi (Complexity Metrics Control): Update link to the Watson/McCabe paper.
* gnat_ugn.texi (Complexity Metrics Control): Update link to
	the Watson/McCabe paper.

From-SVN: r172902
2011-04-23 19:55:32 +00:00
John David Anglin
d2b897f4b5 pr48616.c (dg-options): Add -fno-common to options on hppa*-*-hpux*.
* gcc.dg/pr48616.c (dg-options): Add -fno-common to options on
	hppa*-*-hpux*.

From-SVN: r172899
2011-04-23 17:44:24 +00:00
Jan Hubicka
7ee28a7471 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
From-SVN: r172898
2011-04-23 11:37:26 +00:00
Tobias Burnus
c49eaa233a re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
2011-04-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/18918
        * module.c (mio_array_spec): Set as->cotype on reading.
        * resolve.c (resolve_allocate_expr): Fix allocating coarray
        components.

2011-04-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/18918
        * gfortran.dg/coarray_19.f90: New.

From-SVN: r172897
2011-04-23 12:26:38 +02:00