Commit Graph

95855 Commits

Author SHA1 Message Date
Richard Guenther
9a8a2b7a38 re PR preprocessor/38987 (Including a precompiled header from another header causes invalid assembly to be generated)
2009-09-22  Richard Guenther  <rguenther@suse.de>

	PR pch/38987
	* files.c (pch_open_file): Disallow non-toplevel PCH inclusion.

From-SVN: r151970
2009-09-22 08:37:31 +00:00
Richard Guenther
f61e18ec67 re PR tree-optimization/41428 (CCP doesn't fold all comparisons it could)
2009-09-22  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/41428
	* tree-ssa-ccp.c (ccp_fold_stmt): New function.
	(ccp_finalize): Pass it to substitute_and_fold.

	* g++.dg/tree-ssa/pr41428.C: New testcase.

From-SVN: r151969
2009-09-22 08:34:52 +00:00
Richard Guenther
ff7ffb8f2a tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2009-09-22  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
	(substitute_and_fold): Adjust prototype.
	* tree-vrp.c (vrp_evaluate_conditional): Make static.
	(simplify_stmt_using_ranges): Likewise.
	(fold_predicate_in): Move here from tree-ssa-propagate.c.
	(vrp_fold_stmt): New function.
	(vrp_finalize): Pass it to substitute_and_fold.
	* tree-flow.h (vrp_evaluate_conditional): Remove.
	(simplify_stmt_using_ranges): Likewise.
	* tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
	* tree-ssa-copy.c (fini_copy_prop): Likewise.
	* tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
	member.
	(fold_predicate_in): Move to tree-vrp.c.
	(substitute_and_fold): Use the callback instead of calling into
	tree-vrp.c functions directly.

From-SVN: r151968
2009-09-22 08:30:34 +00:00
Jakub Jelinek
8b659ecb8e dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned comparison warning on rs6000.
* dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
	comparison warning on rs6000.

From-SVN: r151967
2009-09-22 08:43:53 +02:00
Jakub Jelinek
40742b4269 re PR middle-end/41429 (gomp tests timeout with -fpic)
PR middle-end/41429
	* tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
	GIMPLE_EH_MUST_NOT_THROW cleanup.
	(verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.

	* g++.dg/gomp/pr41429.C: New test.

From-SVN: r151966
2009-09-22 08:42:26 +02:00
Peter O'Gorman
c8c1ca587b Correct the copyright year. It is not 2006 or 2007.
From-SVN: r151961
2009-09-22 02:37:45 +00:00
Jack Howarth
c9c80434b6 re PR middle-end/41260 (major regressions on *-apple-darwin10 at -m64 caused by r147995)
PR middle-end/41260
* gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
* gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
LIB_SPEC for darwin10 and later since it always uses the unwinder in
libSystem which is derived from the gcc 4.2.1 unwinder.

From-SVN: r151960
2009-09-22 02:28:19 +00:00
Dave Korn
e0fd74691d re PR middle-end/41357 (libgomp build fail)
PR middle-end/41357
	* varasm.c (default_encode_section_info): Copy TLS model into
	sym_ref flags regardless of backend support for TLS, for all
	model types except TLS_MODEL_EMULATED.

From-SVN: r151959
2009-09-22 01:33:53 +00:00
Dave Korn
cf09842e67 re PR bootstrap/41404 (expr.c undefined reference while linking jc1)
PR bootstrap/41404
	* dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
	we can handle it correctly.

From-SVN: r151958
2009-09-22 01:17:24 +00:00
GCC Administrator
1b6429d765 Daily bump.
From-SVN: r151957
2009-09-22 00:16:50 +00:00
Joel Sherrill
9673668f4d s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
2009-09-21  Joel Sherrill <joel.sherrill@oarcorp.com>

	* s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
	Bind to getpagesize() in RTEMS 4.10 and newer.

From-SVN: r151946
2009-09-21 20:52:46 +00:00
Gerald Pfeifer
c1493544c1 * doc/install.texi (os2): Remove section.
From-SVN: r151945
2009-09-21 20:50:57 +00:00
Gerald Pfeifer
2f55829ea0 * doc/standards.texi (Objective-C): Adjust two URLs.
From-SVN: r151944
2009-09-21 20:34:47 +00:00
Ralf Wildenhues
79cd2b2322 Require c++ in stage1_languages with --enable-gold in combined bootstrap.
/:
	* configure.ac: If bootstrapping a combined tree with
	--enable-gold, require c++ in stage1_languages.
	* configure: Regenerate.

From-SVN: r151943
2009-09-21 20:32:37 +00:00
Ralf Wildenhues
ab9dcd0c1e toplevel configure: bootstrap target_libs of stage1_languages.
/:
	* configure.ac: Also add target_libs of stage1_languages to
	bootstrap_target_libs.
	* configure: Regenerate.

From-SVN: r151942
2009-09-21 20:31:18 +00:00
Gerald Pfeifer
ed20c43e49 appendix_contributing.xml: Adjust link to coreutils.
* doc/xml/manual/appendix_contributing.xml: Adjust link to
	coreutils.

From-SVN: r151941
2009-09-21 20:15:07 +00:00
Ralf Wildenhues
ca6d0d6209 Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
/*
	* configure.ac: Diagnose --enable-build-with-cxx bootstrap
	with --enable-languages not containing c++.
	* configure: Regenerate.

From-SVN: r151939
2009-09-21 19:24:40 +00:00
Rainer Orth
576891f9a6 ada: init.c (__gnat_error_handler): Cast msg to const char *.
* env.c [__alpha__ && __osf__] (_BSD): Define.
	* init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
	to const char *.

From-SVN: r151938
2009-09-21 18:58:29 +00:00
Giuseppe Scrivano
d9334061ea tree-tailcall.c (process_assignment): Don't check if a multiplication or an addition are already present.
2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>

	* tree-tailcall.c (process_assignment): Don't check if a multiplication
	or an addition are already present.
	(find_tail_calls): Combine multiple additions and multiplications.
	(adjust_accumulator_values): Emit accumulators.

testsuite:
2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>

	* gcc.dg/tree-ssa/tailrecursion-6.c: New file.

From-SVN: r151935
2009-09-21 16:41:58 +00:00
Jason Merrill
334738b440 re PR c++/41421 ([C++0x] Trivial types should require trivial default constructor.)
PR c++/41421
	* tree.c (trivial_type_p): Fix logic.

From-SVN: r151932
2009-09-21 12:11:26 -04:00
Jason Merrill
c67a1c461a * name-lookup.c (push_class_level_binding): Sanity check.
From-SVN: r151931
2009-09-21 12:11:19 -04:00
Kai Tietz
4b51caf2da i386.c (ix86_expand_epilogue): Adjust offset for xmm register restore.
2009-09-21  Kai Tietz  <kai.tietz@onevision.com>

	* config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
	xmm register restore.

2009-09-21  Kai Tietz  <kai.tietz@onevision.com>

	* gcc.dg/torture/calleesave-sse.c: New.

From-SVN: r151918
2009-09-21 15:24:37 +02:00
Jan Hubicka
5b5fba56fe inline-params.c: New testcase.
* gcc.dg/guality/inline-params.c: New testcase.

	* dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
	(dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
	restore at the end.

From-SVN: r151917
2009-09-21 12:48:37 +00:00
Uros Bizjak
9e2ceea07a ieee.exp (additional_flags): Add -fno-inline.
* gcc.c-torture/execute/ieee/ieee.exp (additional_flags):
	Add -fno-inline.
	* gcc.c-torture/execute/ieee/pr36332.c (foo): Remove attributes.
	* gcc.c-torture/execute/ieee/pr30704.c (f1): Ditto.
	(f2): Ditto.

From-SVN: r151915
2009-09-21 12:52:57 +02:00
Eric Botcazou
473ebbc582 * stor-layout.c (layout_type): Remove obsolete code.
From-SVN: r151913
2009-09-21 05:55:22 +00:00
GCC Administrator
b31b556704 Daily bump.
From-SVN: r151911
2009-09-21 00:17:08 +00:00
H.J. Lu
f7d1fabcba ipa-sra-1.c (dg-options): Add -fipa-sra.
2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.dg/ipa/ipa-sra-1.c (dg-options): Add -fipa-sra.
	* gcc.dg/ipa/ipa-sra-2.c (dg-options): Likewise.
	* gcc.dg/ipa/ipa-sra-3.c (dg-options): Likewise.
	* gcc.dg/ipa/ipa-sra-4.c (dg-options): Likewise.
	* gcc.dg/ipa/ipa-sra-5.c (dg-options): Likewise.

From-SVN: r151908
2009-09-20 14:13:56 -07:00
Andrew Pinski
15651f0bbd re PR tree-optimization/40642 (ICE with -fprofile-generate)
2009-09-20  Andrew Pinski  <pinskia@gcc.gnu.org>

        PR middle-end/40642
        * g++.dg/torture/pr40642.C: New testcase.

From-SVN: r151907
2009-09-20 13:05:00 -07:00
H.J. Lu
1dbb24a3f3 re PR bootstrap/41395 (Revision 151800 failed bootstrap)
2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/41395
	* opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.

From-SVN: r151905
2009-09-20 10:59:44 -07:00
Kaveh R. Ghazi
ca75b92633 re PR middle-end/30789 (complex folding inexact)
PR middle-end/30789
	* builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
	(do_mpc_ckconv): Accept FORCE_CONVERT parameter.
	(fold_builtin_2, do_mpc_arg1): Update accordingly.
	* fold-const.c (const_binop): Likewise.
	* real.h (do_mpc_arg2): Update prototype.

testsuite:
	* gcc.dg/torture/builtin-math-7.c: Update for testing Annex G
	cases in static initializers.

From-SVN: r151904
2009-09-20 15:39:22 +00:00
Jan Hubicka
c4a80a2df3 dwarf2out.c (add_const_value_attribute): Return true if successful.
* dwarf2out.c (add_const_value_attribute): Return true if successful.
	(add_location_or_const_value_attribute): Rewrite using loc_list_from_tree.
	(tree_add_const_value_attribute): Return true if successful.
	(tree_add_const_value_attribute_for_decl): Likewise.

	* dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
	(loc_descriptor): ... here;
	(loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
	(cst_pool_loc_descr): Break out from ...; do not reffer constant
	pool items that was not marked for output.
	(loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
	(loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
	(loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
	handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
	IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
	CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
	DW_OP_stack_value to get address of items that are not available
	as addresses.
	(dw_loc_list): Handle single element lists correctly.

From-SVN: r151901
2009-09-20 12:04:21 +00:00
Kai Tietz
0b1d7060b5 unwind-dw2-fde.c (classify_object_over_fdes): Cast the constant 1 to _Unwind_Ptr.
2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
            Pascal Obry  <obry@adacore.com>

        * unwind-dw2-fde.c (classify_object_over_fdes):
        Cast the constant 1 to _Unwind_Ptr.
        (add_fdes): Likewise.
        (linear_search_fdes): Likewise.


Co-Authored-By: Pascal Obry <obry@adacore.com>

From-SVN: r151899
2009-09-20 13:03:33 +02:00
Eric Botcazou
d0566a63a5 * stor-layout.c (set_sizetype): Avoid useless type copy.
From-SVN: r151898
2009-09-20 10:55:30 +00:00
Eric Botcazou
f8e25a2a6c Adjust component
From-SVN: r151897
2009-09-20 10:54:20 +00:00
Richard Sandiford
49576e25cb configure.ac (gcc_cv_ld_mips_personality_relaxation): New feature check.
gcc/
	* configure.ac (gcc_cv_ld_mips_personality_relaxation): New
	feature check.
	(HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
	* configure, config.in: Regenerate.
	* dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
	DW_EH_PE_absptr.
	* config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
	(ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
	for global data if the output could be used in a shared library.
	* config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
	to 0 if TARGET_WRITABLE_EH_FRAME.

From-SVN: r151896
2009-09-20 10:36:05 +00:00
Kai Tietz
63c6c7e070 [multiple changes]
2009-09-20  Paolo Bonzini <bonzini@gnu.org>

	PR/39886
	* combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
	just when insn is equal to BB_END (bb).

2009-09-20  Kai Tietz  <kai.tietz@onevision.com>

	* gcc.c-tortue/compile/pr39886.c: New.

From-SVN: r151895
2009-09-20 11:22:11 +02:00
Chris Demetriou
ed6d9a1b9b re PR preprocessor/28435 (-MMD vs not found system header (included from a system header))
[gcc/testsuite/ChangeLog]
2009-09-20  Chris Demetriou  <cgd@google.com>

        PR preprocessor/28435:
        * gcc.dg/cpp/missing-header-MD.c: Make output checking match
        gcc.dg/cpp/missing-header-1.c, and add PR number to test comment.
        * gcc.dg/cpp/missing-header-MMD.c: Likewise.
        * gcc.dg/cpp/missing-sysheader-MD.c: Likewise.
        * gcc.dg/cpp/missing-sysheader-MMD.c: Likewise.

From-SVN: r151894
2009-09-20 01:08:06 -07:00
GCC Administrator
e39696dca7 Daily bump.
From-SVN: r151893
2009-09-20 00:16:52 +00:00
Adam Nemet
b53da24424 mips.opt (mrelax-pic-calls): New option.
* config/mips/mips.opt (mrelax-pic-calls): New option.
	* config/mips/mips.c (mips_strip_unspec_address): Move it up in
	the file.
	(mips_unspec_call): Change "unspec_call" expander into this.
	(mips_strip_unspec_call): New function.
	(mips_got_load): Call mips_unspec_call instead of
	gen_unspec_call<mode>.
	(mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
	MIPS_CALL.
	(mips_cfg_in_reorg): New function.
	(mips16_lay_out_constants): Use it to decide whether to call
	CFG-aware insn splitting.
	(r10k_insert_cache_barriers): Move CFG set-up code from here to
	mips_reorg.  Move DF set-up code from here ...
	(mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
	from here.
	(mips_reorg): Call mips_df_reorg instead of
	r10k_insert_cache_barriers.  Move CFG set-up code here from
	r10k_insert_cache_barriers.
	(mips_call_expr_from_insn): New function.
	(mips_pic_call_symbol_from_set): Likewise.
	(mips_find_pic_call_symbol): Likewise.
	(mips_annotate_pic_call_expr): Likewise.
	(mips_get_pic_call_symbol): Likewise.
	(mips_annotate_pic_calls): Likewise.
	(mips_override_options): Disable -mrelax-pic-calls unless PIC
	calls are used.
	(mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
	* config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
	* config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
	directive.
	* config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
	(unspec_call<mode>): Remove it.
	(sibcall_internal, sibcall_value_internal,
	sibcall_value_multiple_internal, call_internal, call_split,
	call_value_internal, call_value_split,
	call_value_multiple_internal, call_value_multiple_split): Pass
	SIZE_OPNO to MIPS_CALL.
	(call_internal_direct, call_direct_split,
	call_value_internal_direct, call_value_direct_split): Pass -1 as
	SIZE_OPNO to MIPS_CALL.
	* configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
	* configure: Regenerate.
	* doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
	and -mno-relax-pic-calls.
	(MIPS Options): Document -mrelax-pic-calls
	and -mno-relax-pic-calls.

testsuite/
	* gcc.target/mips/mips.exp: Add relax-pic-calls
	under -mfoo/-mno-foo options.
	(mips-dg-options): Make -mrelax-pic-calls imply -mno-plt, -mabicalls
	and -mexplicit-relocs.
	* gcc.target/mips/call-1.c: New test.
	* gcc.target/mips/call-2.c: New test.
	* gcc.target/mips/call-3.c: New test.
	* gcc.target/mips/lazy-binding-1.c: Add MIPS-specific dg-options.
	* gcc.dg/tree-ssa/loop-1.c: Likewise.

From-SVN: r151890
2009-09-19 20:23:55 +00:00
Joseph Myers
4172245c93 * vi.po: Update.
From-SVN: r151881
2009-09-19 13:30:33 +01:00
Ralf Wildenhues
1d93c86061 Fix long-standing in-tree build include-fixed bug.
gcc/:
	PR bootstrap/35619
	* Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
	in the directory this rule is called from, rather than the
	toplevel 'gcc' directory, to fix in-tree build.

From-SVN: r151880
2009-09-19 08:29:58 +00:00
Chris Demetriou
74dc6a1190 re PR preprocessor/28435 (-MMD vs not found system header (included from a system header))
[libcpp/ChangeLog]
2009-09-18  Chris Demetriou  <cgd@google.com>

	PR preprocessor/28435:
	* include/cpplib.h (struct cpp_options): Add new member
	deps.need_preprocessor_output.
	* files.c (open_file_failed): If preprocessor output is needed
	always report an error.

[gcc/ChangeLog]
2009-09-19  Chris Demetriou  <cgd@google.com>

	PR preprocessor/28435:
	* c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
	to cpplib that the preprocessor output is needed.

[gcc/testsuite/ChangeLog]
2009-09-19  Chris Demetriou  <cgd@google.com>

	PR preprocessor/28435:
	* gcc.dg/cpp/missing-header-MD.c: New test.
	* gcc.dg/cpp/missing-header-MMD.c: New test.
	* gcc.dg/cpp/missing-sysheader-MD.c: New test.
	* gcc.dg/cpp/missing-sysheader-MMD.c: New test.

From-SVN: r151879
2009-09-18 23:15:21 -07:00
Jerry DeLisle
b5e7280daa re PR fortran/41328 (bad iostat when reading DOS file in a character array (non-advancing))
2009-09-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/41328
	* gfortran.dg/cr_lf.f90: Modify test to include check that no EOR with
	EOF works.

From-SVN: r151878
2009-09-19 04:45:00 +00:00
Jerry DeLisle
bf187ce8be re PR fortran/41328 (bad iostat when reading DOS file in a character array (non-advancing))
2009-09-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/41328
	* io/transfer.c (read_sf): Set at_eof flag on short read if any
	characters were successfully read so that EOF condition with no EOR
	marker succeeds.

From-SVN: r151877
2009-09-19 04:41:38 +00:00
GCC Administrator
70e4295998 Daily bump.
From-SVN: r151876
2009-09-19 00:17:57 +00:00
Jakub Jelinek
e0f3e75b71 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
*restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
	*return_and_restore_fpregs_<mode>,
	*return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.

From-SVN: r151873
2009-09-19 01:23:48 +02:00
Jakub Jelinek
bc8b6c988d re PR bootstrap/41397 (RTL checking failure compiling libiberty)
PR bootstrap/41397
	* dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
	instead of assuming it has always a REG inside of it.

From-SVN: r151872
2009-09-19 01:17:25 +02:00
Gerald Pfeifer
ca94da4829 freebsd.h: Update comment on types.
* config/freebsd.h: Update comment on types.
	(WINT_TYPE): Define.

From-SVN: r151871
2009-09-18 22:15:58 +00:00
Jason Merrill
ecc607fc08 decl2.c (determine_visibility): Make anonymous types internal.
* decl2.c (determine_visibility): Make anonymous types internal.
	(mark_used): Complain about types without linkage used in
	decls with internal linkage.
	(vague_linkage_fn_p): Split out from...
	* decl.c (maybe_commonize_var): ...here.
	(grokdeclarator): Adjust linkage when a typedef gives linkage name.
	* tree.c (no_linkage_check): Check the enclosing class and template
	arguments.

	* cp-tree.h (TYPE_NAMESPACE_SCOPE_P): New.

From-SVN: r151868
2009-09-18 17:25:18 -04:00
Jason Merrill
5f5babf18b c.opt: Add -fno-deduce-init-list.
* c.opt: Add -fno-deduce-init-list.
	* pt.c (get_pattern_parm): New.
	(listify): Split out from...
	(listify_autos): ...here.
	(unify): Deduce std::initializer_list for T.
	* call.c (build_over_call): Warn about it.

From-SVN: r151867
2009-09-18 17:25:10 -04:00