Commit Graph

100452 Commits

Author SHA1 Message Date
Joern Rennecke 765a03052d Import AC_CHECK_DECL for C++ fixes from git Autoconf.
config/:
	PR bootstrap/42798
	* override.m4 (_AC_CHECK_DECL_BODY, _AC_CHECK_DECLS): Import
	definitions from git Autoconf.

Co-Authored-By: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

From-SVN: r160210
2010-06-03 06:32:27 +00:00
Matthias Klose 64a6444721 libtool-version: Bump soversion.
2010-06-03  Matthias Klose  <doko@ubuntu.com>

        * libtool-version: Bump soversion.

From-SVN: r160209
2010-06-03 05:05:26 +00:00
Alan Modra d9d7a1bf89 re PR rtl-optimization/44169 (Wrong code while generating TLS offsets)
PR target/44169
	* config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
	* config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
	rtx to gen_load_toc_v4_PIC_1b.  Tidy.
	(rs6000_emit_load_toc_table): Likewise.

From-SVN: r160206
2010-06-03 12:17:11 +09:30
Jan Hubicka 514f01ad19 passes.c (init_optimization_passes): Put ipa reference after ipa pure-const.
* passes.c (init_optimization_passes): Put ipa reference
	after ipa pure-const.

From-SVN: r160205
2010-06-03 02:06:01 +00:00
Jan Hubicka 22a8d1e68a ipa-reference.c (ipa_reference_local_vars_info_d): Remove calls_read_all and calls_write_all.
* ipa-reference.c (ipa_reference_local_vars_info_d): Remove
	calls_read_all and calls_write_all.
	(get_reference_optimization_summary): Fix formatting.
	(is_proper_for_analysis): Check that decl is not readonly.
	(propagate_bits): Check CONST/PURE/noreturn flags.
	(ipa_init): Move all_module_statics to optimization_summary_obstack.
	(analyze_function): Ignore indirect edges.
	(copy_global_bitmap): For all module statics, do nothing.
	(generate_summary): Do not print calls_read_all/calls_write_all.
	(read_write_all_from_decl): Take node as argument; check
	cgraph_node_cannot_return.
	(propagate): Reorganize read_all/write_all computation;
	check indirect edges; check ecf flags; use all_module_statics
	in the results; do not free all_module_statics.
	(stream_out_bitmap): Handle all_module_statics.
	(ipa_reference_write_optimization_summary): Likewise; use
	varpool/cgraph encoders to get boundaries.
	(ipa_reference_read_optimization_summary): Read in all_module_statics;
	use it when possible.

From-SVN: r160204
2010-06-03 02:04:20 +00:00
GCC Administrator 2aaef41ac6 Daily bump.
From-SVN: r160203
2010-06-03 00:17:35 +00:00
Michael Meissner 9290279704 PR target/44218, improve -mrecip on powerpc
From-SVN: r160199
2010-06-03 00:06:12 +00:00
Jonathan Wakely 6c07d08b90 parser.c (cp_parser_mem_initializer_list): Change error text.
2010-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* parser.c (cp_parser_mem_initializer_list): Change error text.

From-SVN: r160198
2010-06-02 23:37:28 +01:00
Richard Guenther eef4a60326 re PR middle-end/44291 (ICE in set_user_assembler_libfunc)
2010-06-03  Richard Guenther  <rguenther@suse.de>

	PR middle-end/44291
	* optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
	(set_user_assembler_libfunc): Likewise.

From-SVN: r160197
2010-06-02 22:22:52 +00:00
Steven Bosscher 77ec430740 mkconfig.sh: Include insn-flags.h and insn-constants.h before defaults.h.
* mkconfig.sh: Include insn-flags.h and insn-constants.h before
	defaults.h.
	* except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
	to defaults.h
	* expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
	DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
	FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
	STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
	STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
	STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
	STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
	STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
	* defaults.h: Updated for above mentioned changes.

From-SVN: r160195
2010-06-02 22:05:45 +00:00
H.J. Lu 3f7c0b1bc3 Use __SIZE_TYPE__ to define size_t.
2010-06-02  H.J. Lu  <hongjiu.lu@intel.com>

	* g++.dg/torture/pr44295.C (size_t): Use __SIZE_TYPE__.

From-SVN: r160193
2010-06-02 14:17:50 -07:00
Kai Tietz ef2d9e4ddd c-common.c: Remove header include of tm_p.h.
2010-06-02  Kai Tietz  <kai.tietz@onevision.com>

        * c-common.c: Remove header include of tm_p.h.
        * Makefile.in (c-common.o): Remove TM_P_H dependency.

From-SVN: r160191
2010-06-02 23:05:47 +02:00
Jakub Jelinek 5d588f836b re PR c++/44361 (-Wunused-but-set-variable vs. explicit void cast)
PR c++/44361
	* cvt.c (convert_to_void): If implicit is NULL, call mark_rvalue_use
	instead of calling mark_exp_read only when not an assignment.

From-SVN: r160188
2010-06-02 21:57:08 +02:00
Jakub Jelinek 9fc8daccc5 re PR debug/44367 (-O0 -g wrong DW_AT_location on c++ class retval)
PR debug/44367
	* semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P,
	DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result.
	Set DECL_VALUE_EXPR on var.

From-SVN: r160187
2010-06-02 21:55:33 +02:00
Jakub Jelinek add86e09a5 re PR debug/44367 (-O0 -g wrong DW_AT_location on c++ class retval)
PR debug/44367
	* semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P,
	DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result.
	Set DECL_VALUE_EXPR on var.

From-SVN: r160186
2010-06-02 21:52:07 +02:00
Jakub Jelinek 53e030f143 tree.h (struct tree_decl_map): New type.
* tree.h (struct tree_decl_map): New type.
	(tree_decl_map_eq, tree_decl_map_marked_p): Define.
	(tree_decl_map_hash): New prototype.
	(debug_expr_for_decl, value_expr_for_decl): Change into
	tree_decl_map hashtab from tree_map.
	(init_ttree): Adjust initialization.
	(tree_decl_map_hash): New function.
	(decl_debug_expr_lookup, decl_debug_expr_insert,
	decl_value_expr_lookup, decl_value_expr_insert): Adjust.
cp/
	* cp-objcp-common.c (shadowed_var_for_decl): Change into
	tree_decl_map hashtab from tree_map.
	(decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Adjust.
	(init_shadowed_var_for_decl): Adjust initialization.

From-SVN: r160185
2010-06-02 21:49:21 +02:00
Jason Merrill 3333a2ddeb * error.c (dump_type): Improve typedef handling.
From-SVN: r160184
2010-06-02 15:19:31 -04:00
Jason Merrill 1e00382978 re PR c++/44333 (Ambiguity with typedef and using namespace)
PR c++/44333
	* name-lookup.c (same_entity_p): New.
	(ambiguous_decl): Multiple declarations of the same entity
	are not ambiguous.

From-SVN: r160183
2010-06-02 15:19:05 -04:00
Jonathan Wakely c440459b92 pointer.cc: Fix which tests are run.
2010-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* testsuite/tr1/2_general_utilities/shared_ptr/cons/pointer.cc: Fix
	which tests are run.
	* testsuite/20_util/shared_ptr/cons/pointer.cc: Likewise.

From-SVN: r160182
2010-06-02 20:02:41 +01:00
Rainer Orth a619822289 configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2 linker emulations.
* configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
	linker emulations.
	* configure: Regenerate.
	* config.in: Regenerate.

	* config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
	(X86_64_EMULATION): Define.
	(TARGET_LD_EMULATION): Use them.

	* config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
	(SPARC64_EMULATION): Define.
	(LINK_ARCH_SPEC): Use them.

From-SVN: r160178
2010-06-02 17:39:39 +00:00
H.J. Lu b6b7f70355 Remove testsuite/ from filenames.
From-SVN: r160170
2010-06-02 10:08:12 -07:00
H.J. Lu 8eff024add Add a testcase for PR middle-end/44372.
2010-06-02  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/44372
	* g++.dg/ipa/pr44372.C: New.

From-SVN: r160169
2010-06-02 10:04:13 -07:00
Sebastian Pop d6abd6d8bd Use smallest_mode_for_size for computing the precision types of new graphite IVs.
2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-clast-to-gimple.c (gcc_type_for_interval): Use
	smallest_mode_for_size for computing the precision types of new
	graphite IVs.  Do not call lang_hooks.types.type_for_size.

From-SVN: r160165
2010-06-02 16:39:47 +00:00
Sebastian Pop 718d3588b0 Only reset the GIMPLE_DEBUG information in the code gen of if-conversion.
2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>

	* tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
	information.
	(remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.

From-SVN: r160164
2010-06-02 16:39:37 +00:00
Sebastian Pop 5521cae9c2 Fix PR44363: don't abort when the ifcvt analysis fails to recognize a Gimple stmt.
2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/44363
	* tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
	return false instead.

From-SVN: r160163
2010-06-02 16:39:26 +00:00
Jan Hubicka 437ffe7b16 re PR middle-end/44295 (Failed to build 483.xalancbmk in SPEC CPU 2006)
PR middle-end/44295
	* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
	create new cgraph node to check callee.
	* testsuite/g++.dg/torture/pr44295.C: Neww testcase.

From-SVN: r160159
2010-06-02 15:39:43 +00:00
Jan Hubicka 98166192bb * gcc.dg/tree-ssa/loadpre6.c: Update.
From-SVN: r160158
2010-06-02 15:37:29 +00:00
Richard Guenther ac3c28391e header_plugin.c: Include cp-tree.h before diagnostic.h.
2010-06-02  Richard Guenther  <rguenther@suse.de>

	* g++.dg/plugin/header_plugin.c: Include cp-tree.h before
	diagnostic.h.

From-SVN: r160155
2010-06-02 14:35:01 +00:00
Richard Guenther f3dcdff755 lto-streamer-in.c (input_gimple_stmt): Fix typo.
2010-06-02  Richard Guenther  <rguenther@suse.de>

	* lto-streamer-in.c (input_gimple_stmt): Fix typo.

From-SVN: r160154
2010-06-02 14:27:22 +00:00
Richard Guenther 396717c949 lto-wrapper.c (lto_wrapper_exit): Rename to ...
2010-06-02  Richard Guenther  <rguenther@suse.de>

	* lto-wrapper.c (lto_wrapper_exit): Rename to ...
	(lto_wrapper_cleanup): ... this.  Do not exit.
	(fatal): Adjust.  Exit here.
	(fatal_perror): Likewise.
	(fatal_signal): New function.
	(main): Set up signal handlers to cleanup temporary files.
	* Makefile.in (lto-wrapper.o): Adjust dependencies.

From-SVN: r160153
2010-06-02 13:58:27 +00:00
Richard Guenther 2698955a09 re PR tree-optimization/44377 (ICE: gimple check: expected gimple_return(error_mark), have gimple_call() in gimple_return_retval, at gimple.h:4311 with -fipa-pta)
2010-06-02  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/44377
	* tree-ssa-structalias.c (find_func_aliases): Fix typo.

From-SVN: r160152
2010-06-02 12:27:24 +00:00
Andreas Krebbel 30972225f6 2097.md (z10_fhex): Remove insn reservation.
2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/2097.md (z10_fhex): Remove insn reservation.
	* config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
	(*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
	*mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
	instruction.
	* config/s390/s390.c: Don't accept fp zeros as valid constants
	anymore.

From-SVN: r160151
2010-06-02 12:03:22 +00:00
Jan Hubicka d4fb676f6f bitmap.c (bitmap_descriptor): Add search_iter.
* bitmap.c (bitmap_descriptor): Add search_iter.
	(bitmap_find_bit): Increment it.
	(print_statistics): Print it.

From-SVN: r160148
2010-06-02 11:53:16 +00:00
Nathan Froyd 36c4a482b2 tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call instead of gimple_build_call_vec.
* tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
	instead of gimple_build_call_vec.  Delete unnecessary local variable.

From-SVN: r160147
2010-06-02 11:40:13 +00:00
Andrew Haley 69baf0a35d download_prerequisites: New script.
2010-06-02  Andrew Haley  <aph@redhat.com>

	* download_prerequisites: New script.

From-SVN: r160146
2010-06-02 11:14:19 +00:00
Steven Bosscher f66d6761ee gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling" change from yesterday.
* gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
	change from yesterday.

From-SVN: r160144
2010-06-02 09:12:50 +00:00
Steven Bosscher a8cd9c51a0 * c-ada-spec.c: Clean up redundant includes.
From-SVN: r160143
2010-06-02 08:15:38 +00:00
Iain Sandoe 0a63468495 lto.exp (lto-link-and-maybe-run): Show the options in the link fail message.
* lib/lto.exp (lto-link-and-maybe-run): Show the options in
	the link fail message.

From-SVN: r160141
2010-06-02 07:29:54 +00:00
Tobias Burnus aac18c0250 re PR fortran/44360 (wrong-code: host-associated procedure wrongly favoured to use-associated one)
2010-06-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44360
        * parse.c (gfc_fixup_sibling_symbols): Do not "fix"
        use-associated symbols.

2010-06-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44360
        * gfortran.dg/use_13.f90: New test case.

From-SVN: r160138
2010-06-02 07:55:19 +02:00
Jerry DeLisle a76135dc57 re PR fortran/44371 (STOP parsing rejects valid code)
2010-06-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/44371
	* gfortran.dg/error_stop_2.f08: Minor update.

From-SVN: r160135
2010-06-02 05:02:07 +00:00
Jerry DeLisle df842ed971 re PR fortran/44371 (STOP parsing rejects valid code)
2010-06-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/44371
	* gfortran.dg/error_stop_1.f08: New test.
	* gfortran.dg/error_stop_2.f08: New test.

From-SVN: r160134
2010-06-02 04:46:38 +00:00
Jerry DeLisle 022d926033 re PR fortran/44371 (STOP parsing rejects valid code)
2010-06-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/44371
	* match.c (gfc_match_stopcode): Move gfc_match_eos call inside 
	condition block.

From-SVN: r160133
2010-06-02 04:42:41 +00:00
Jason Merrill 4c9b38955a DR 990
DR 990
	* call.c (add_list_candidates): Prefer the default constructor.
	(build_aggr_conv): Treat missing initializers like { }.
	* typeck2.c (process_init_constructor_record): Likewise.
	* init.c (expand_default_init): Use digest_init for
	direct aggregate initialization, too.

	* call.c (add_list_candidates): Split out...
	(build_user_type_conversion_1): ...from here.
	(build_new_method_call): And here.
	(implicit_conversion): Propagate LOOKUP_NO_NARROWING.

From-SVN: r160132
2010-06-01 23:55:42 -04:00
Jason Merrill e590156063 re PR c++/44358 ([C++0x] initializer list can't convert to map)
PR c++/44358
	* call.c (build_list_conv): Set list-initialization flags properly.

From-SVN: r160131
2010-06-01 23:55:28 -04:00
GCC Administrator 591c890c93 Daily bump.
From-SVN: r160130
2010-06-02 00:17:21 +00:00
Rafael Avila de Espindola 621e1f2e99 plugin-api.h (ld_plugin_tag): Add LDPT_OUTPUT_NAME.
2010-06-01  Rafael Espindola  <espindola@google.com>

	* plugin-api.h (ld_plugin_tag): Add LDPT_OUTPUT_NAME.

From-SVN: r160126
2010-06-02 00:08:58 +00:00
Steven Bosscher 2eb79bbbb3 gimplify.c: Do not include except.h and optabs.h.
* gimplify.c: Do not include except.h and optabs.h.
	(gimplify_body): Do not initialize RTL profiling.
	* gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
	langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
	* gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
	output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
	langhooks.h.

	* tree-pretty-print.h: Include pretty-print.h.
	* gimple-pretty-print.h: Include pretty-print.h.

	* tree-pretty-print.c: Do not include diagnostic.h.
	* tree-vrp.c: Likewise.
	* tree-tailcall.c: Likewise
	* tree-scalar-evolution.c: Likewise
	* tree-ssa-dse.c: Likewise
	* tree-chrec.c: Likewise
	* tree-ssa-sccvn.c: Likewise
	* tree-ssa-copyrename.c: Likewise
	* tree-nomudflap.c: Likewise
	* tree-call-cdce.c: Likewise
	* tree-stdarg.c: Likewise
	* tree-ssa-math-opts.c: Likewise
	* tree-nrv.c: Likewise
	* tree-ssa-sink.c: Likewise
	* tree-browser.c: Likewise
	* tree-ssa-loop-ivcanon.c: Likewise
	* tree-ssa-loop.c: Likewise
	* tree-parloops.c: Likewise
	* tree-ssa-address.c: Likewise
	* tree-ssa-ifcombine.c: Likewise
	* tree-if-conv.c: Likewise
	* tree-data-ref.c: Likewise
	* tree-affine.c: Likewise
	* tree-ssa-phiopt.c: Likewise
	* tree-ssa-coalesce.c: Likewise
	* tree-ssa-pre.c: Likewise
	* tree-ssa-live.c: Likewise
	* tree-predcom.c: Likewise
	* tree-ssa-forwprop.c: Likewise
	* tree-ssa-dce.c: Likewise
	* tree-ssa-ter.c: Likewise
	* tree-ssa-loop-prefetch.c: Likewise
	* tree-optimize.c: Likewise
	* tree-ssa-phiprop.c: Likewise
	* tree-object-size.c: Likewise
	* tree-outof-ssa.c: Likewise
	* tree-ssa-structalias.c: Likewise
	* tree-switch-conversion.c: Likewise
	* tree-ssa-reassoc.c: Likewise
	* tree-ssa-operands.c: Likewise
	* tree-vectorizer.c: Likewise
	* tree-vect-data-refs.c: Likewise
	* tree-vect-generic.c: Likewise
	* tree-vect-stmts.c: Likewise
	* tree-vect-patterns.c: Likewise
	* tree-vect-slp.c: Likewise
	* tree-vect-loop.c: Likewise
	* tree-ssa-loop-ivopts.c: Likewise
	* tree-ssa-loop-im.c: Likewise
	* tree-ssa-loop-niter.c: Likewise
	* tree-ssa-loop-unswitch.c: Likewise
	* tree-ssa-loop-manip.c: Likewise
	* tree-ssa-loop-ch.c: Likewise
	* tree-dump.c: Likewise
	* tree-complex.c: Likewise

	* tree-into-ssa.c: Do not include diagnostic.h and expr.h.
	* tree-ssa-uninit.c: Likewise
	* tree-ssa-threadupdate.c: Likewise
	* tree-ssa-uncprop.c: Likewise
	* tree-ssa-ccp.c: Likewise
	* tree-ssa-dom.c: Likewise
	* tree-ssa-propagate.c: Likewise
	* tree-ssa-alias.c: Likewise
	* tree-dfa.c: Likewise
	* tree-cfgcleanup.c: Likewise
	* tree-sra.c: Likewise
	* tree-ssa-copy.c: Likewise
	* tree-ssa.c: Likewise
	* tree-profile.c: Likewise
	* tree-cfg.c: Likewise
	* tree-ssa-threadedge.c: Likewise
	* tree-vect-loop-manip.c: Likewise

	* tree-inline.c: Do not include diagnostic.h and expr.h.
	Include rtl.h.
	(copy_decl_for_dup_finish): Do not use NULL_RTX.

	* tree-loop-linear.c: Do not include diagnostic.h, expr.h,
	and optabs.h.
	* tree-loop-distribution.c: Likewise.

From-SVN: r160125
2010-06-01 22:00:56 +00:00
Jan Hubicka 73add7fe29 ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
* ipa-pure-const.c (local_pure_const): Do NORETURN discovery.

	* testsuite/gcc.dg/noreturn-8.c: New testcase.

From-SVN: r160124
2010-06-01 21:55:49 +00:00
Jan Hubicka a669ca47cb noreturn-1_1.c: Remove dg-do annotations.
* testsuite/gcc.dg/lto/noreturn-1_1.c: Remove dg-do annotations.
	* testsuite/gcc.dg/lto/noreturn-1_0.c: Move it here.

From-SVN: r160123
2010-06-01 21:40:43 +00:00
Jan Hubicka 566d09eff6 tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...; remove return value.
* tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
	remove return value.
	(split_bbs_on_noreturn_calls) .... here.
	* tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
	* tree-flow.h (fixup_noreturn_call): New.
	* testsuite/gcc.dg/lto/noreturn-1_1.c: New testcase.
	* testsuite/gcc.dg/lto/noreturn-1_0.c: New testcase.

From-SVN: r160122
2010-06-01 20:35:08 +00:00