Commit Graph

96136 Commits

Author SHA1 Message Date
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
Jan Kratochvil
172d0c8683 hook.in: Fix prefix trailing slash on 64bit host arches.
2009-09-18  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* python/hook.in: Fix prefix trailing slash on 64bit host arches.

From-SVN: r151866
2009-09-18 20:03:47 +00:00
Neil Vachharajani
eb99f777b1 value-prof.c (interesting_stringop_to_profile_p): Added output argument to indicate which parameter is the size parameter.
2009-09-18  Neil Vachharajani  <nvachhar@google.com>

	    * value-prof.c (interesting_stringop_to_profile_p): Added output
	    argument to indicate which parameter is the size parameter.
	    * value-prof.c (gimple_stringop_fixed_value): Use
	    INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
	    * value-prof.c (gimple_stringops_transform): Update call sites to
	    INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
	    * testsuite/gcc.dg/tree-prof/val-prof-7.c: Added test case.

From-SVN: r151864
2009-09-18 18:39:43 +00:00
Janis Johnson
5eb8c44fc8 dfp.exp: Also run tests in c-c++-common/dfp.
* gcc.dg/dfp/dfp.exp: Also run tests in c-c++-common/dfp.
	* c-c++-common/dfp: New directory.
	* c-c++-common/dfp/dfp-dbg.h: New file.
	* gcc.dg/dfp/call-by-value.c: Move to ...
	* c-c++-common/call-by-value.c: here.
	* gcc.dg/dfp/cast.c: Move to ...
	* c-c++-common/cast.c: here.
	* gcc.dg/dfp/compare-eq-const.c: Move to ...
	* c-c++-common/compare-eq-const.c: here.
	* gcc.dg/dfp/compare-eq-d128.c: Move to ...
	* c-c++-common/compare-eq-d128.c: here.
	* gcc.dg/dfp/compare-eq-d32.c: Move to ...
	* c-c++-common/compare-eq-d32.c: here.
	* gcc.dg/dfp/compare-eq-d64.c: Move to ...
	* c-c++-common/compare-eq-d64.c: here.
	* gcc.dg/dfp/compare-eq-dfp.c: Move to ...
	* c-c++-common/compare-eq-dfp.c: here.
	* gcc.dg/dfp/compare-eq.h: Move to ...
	* c-c++-common/compare-eq.h: here.
	* gcc.dg/dfp/compare-rel-const.c: Move to ...
	* c-c++-common/compare-rel-const.c: here.
	* gcc.dg/dfp/compare-rel-d128.c: Move to ...
	* c-c++-common/compare-rel-d128.c: here.
	* gcc.dg/dfp/compare-rel-d32.c: Move to ...
	* c-c++-common/compare-rel-d32.c: here.
	* gcc.dg/dfp/compare-rel-d64.c: Move to ...
	* c-c++-common/compare-rel-d64.c: here.
	* gcc.dg/dfp/compare-rel-dfp.c: Move to ...
	* c-c++-common/compare-rel-dfp.c: here.
	* gcc.dg/dfp/compare-rel.h: Move to ...
	* c-c++-common/compare-rel.h: here.
	* gcc.dg/dfp/compare-special-d128.c: Move to ...
	* c-c++-common/compare-special-d128.c: here.
	* gcc.dg/dfp/compare-special-d32.c: Move to ...
	* c-c++-common/compare-special-d32.c: here.
	* gcc.dg/dfp/compare-special-d64.c: Move to ...
	* c-c++-common/compare-special-d64.c: here.
	* gcc.dg/dfp/compare-special.h: Move to ...
	* c-c++-common/compare-special.h: here.
	* gcc.dg/dfp/constants-zero.c: Move to ...
	* c-c++-common/constants-zero.c: here.
	* gcc.dg/dfp/convert-bfp-10.c: Move to ...
	* c-c++-common/convert-bfp-10.c: here.
	* gcc.dg/dfp/convert-bfp-11.c: Move to ...
	* c-c++-common/convert-bfp-11.c: here.
	* gcc.dg/dfp/convert-bfp-12.c: Move to ...
	* c-c++-common/convert-bfp-12.c: here.
	* gcc.dg/dfp/convert-bfp-13.c: Move to ...
	* c-c++-common/convert-bfp-13.c: here.
	* gcc.dg/dfp/convert-bfp-14.c: Move to ...
	* c-c++-common/convert-bfp-14.c: here.
	* gcc.dg/dfp/convert-bfp-2.c: Move to ...
	* c-c++-common/convert-bfp-2.c: here.
	* gcc.dg/dfp/convert-bfp-3.c: Move to ...
	* c-c++-common/convert-bfp-3.c: here.
	* gcc.dg/dfp/convert-bfp-4.c: Move to ...
	* c-c++-common/convert-bfp-4.c: here.
	* gcc.dg/dfp/convert-bfp-5.c: Move to ...
	* c-c++-common/convert-bfp-5.c: here.
	* gcc.dg/dfp/convert-bfp-6.c: Move to ...
	* c-c++-common/convert-bfp-6.c: here.
	* gcc.dg/dfp/convert-bfp-7.c: Move to ...
	* c-c++-common/convert-bfp-7.c: here.
	* gcc.dg/dfp/convert-bfp-8.c: Move to ...
	* c-c++-common/convert-bfp-8.c: here.
	* gcc.dg/dfp/convert-bfp-9.c: Move to ...
	* c-c++-common/convert-bfp-9.c: here.
	* gcc.dg/dfp/convert-bfp.c: Move to ...
	* c-c++-common/convert-bfp.c: here.
	* gcc.dg/dfp/convert-bfp-fold.c: Move to ...
	* c-c++-common/convert-bfp-fold.c: here.
	* gcc.dg/dfp/convert-dfp.c: Move to ...
	* c-c++-common/convert-dfp.c: here.
	* gcc.dg/dfp/convert-dfp-fold-2.c: Move to ...
	* c-c++-common/convert-dfp-fold-2.c: here.
	* gcc.dg/dfp/convert-dfp-fold.c: Move to ...
	* c-c++-common/convert-dfp-fold.c: here.
	* gcc.dg/dfp/convert.h: Move to ...
	* c-c++-common/convert.h: here.
	* gcc.dg/dfp/convert-int.c: Move to ...
	* c-c++-common/convert-int.c: here.
	* gcc.dg/dfp/convert-int-fold.c: Move to ...
	* c-c++-common/convert-int-fold.c: here.
	* gcc.dg/dfp/convert-int-max.c: Move to ...
	* c-c++-common/convert-int-max.c: here.
	* gcc.dg/dfp/convert-int-max-fold.c: Move to ...
	* c-c++-common/convert-int-max-fold.c: here.
	* gcc.dg/dfp/convert-int-saturate.c: Move to ...
	* c-c++-common/convert-int-saturate.c: here.
	* gcc.dg/dfp/func-array.c: Move to ...
	* c-c++-common/func-array.c: here.
	* gcc.dg/dfp/func-deref.c: Move to ...
	* c-c++-common/func-deref.c: here.
	* gcc.dg/dfp/func-mixed.c: Move to ...
	* c-c++-common/func-mixed.c: here.
	* gcc.dg/dfp/func-pointer.c: Move to ...
	* c-c++-common/func-pointer.c: here.
	* gcc.dg/dfp/func-scalar.c: Move to ...
	* c-c++-common/func-scalar.c: here.
	* gcc.dg/dfp/func-struct.c: Move to ...
	* c-c++-common/func-struct.c: here.
	* gcc.dg/dfp/func-vararg-alternate-d128-2.c: Move to ...
	* c-c++-common/func-vararg-alternate-d128-2.c: here.
	* gcc.dg/dfp/func-vararg-alternate-d128.c: Move to ...
	* c-c++-common/func-vararg-alternate-d128.c: here.
	* gcc.dg/dfp/func-vararg-alternate-d32.c: Move to ...
	* c-c++-common/func-vararg-alternate-d32.c: here.
	* gcc.dg/dfp/func-vararg-alternate-d64.c: Move to ...
	* c-c++-common/func-vararg-alternate-d64.c: here.
	* gcc.dg/dfp/func-vararg-alternate.h: Move to ...
	* c-c++-common/func-vararg-alternate.h: here.
	* gcc.dg/dfp/func-vararg-dfp.c: Move to ...
	* c-c++-common/func-vararg-dfp.c: here.
	* gcc.dg/dfp/func-vararg-mixed-2.c: Move to ...
	* c-c++-common/func-vararg-mixed-2.c: here.
	* gcc.dg/dfp/func-vararg-mixed.c: Move to ...
	* c-c++-common/func-vararg-mixed.c: here.
	* gcc.dg/dfp/func-vararg-size0.c: Move to ...
	* c-c++-common/func-vararg-size0.c: here.
	* gcc.dg/dfp/inf-1.c: Move to ...
	* c-c++-common/inf-1.c: here.
	* gcc.dg/dfp/loop-index.c: Move to ...
	* c-c++-common/loop-index.c: here.
	* gcc.dg/dfp/modes.c: Move to ...
	* c-c++-common/modes.c: here.
	* gcc.dg/dfp/nan-1.c: Move to ...
	* c-c++-common/nan-1.c: here.
	* gcc.dg/dfp/nan-2.c: Move to ...
	* c-c++-common/nan-2.c: here.
	* gcc.dg/dfp/operator-arith-fold.c: Move to ...
	* c-c++-common/operator-arith-fold.c: here.
	* gcc.dg/dfp/operator-assignment.c: Move to ...
	* c-c++-common/operator-assignment.c: here.
	* gcc.dg/dfp/operator-comma.c: Move to ...
	* c-c++-common/operator-comma.c: here.
	* gcc.dg/dfp/operator-cond.c: Move to ...
	* c-c++-common/operator-cond.c: here.
	* gcc.dg/dfp/operator-logical.c: Move to ...
	* c-c++-common/operator-logical.c: here.
	* gcc.dg/dfp/operator-unary.c: Move to ...
	* c-c++-common/operator-unary.c: here.
	* gcc.dg/dfp/pr31385.c: Move to ...
	* c-c++-common/pr31385.c: here.
	* gcc.dg/dfp/pr33466.c: Move to ...
	* c-c++-common/pr33466.c: here.
	* gcc.dg/dfp/pr35620.c: Move to ...
	* c-c++-common/pr35620.c: here.
	* gcc.dg/dfp/pr36800.c: Move to ...
	* c-c++-common/pr36800.c: here.
	* gcc.dg/dfp/pr39034.c: Move to ...
	* c-c++-common/pr39034.c: here.
	* gcc.dg/dfp/pr39035.c: Move to ...
	* c-c++-common/pr39035.c: here.
	* gcc.dg/dfp/pr39902.c: Move to ...
	* c-c++-common/pr39902.c: here.
	* gcc.dg/dfp/pr39986.c: Move to ...
	* c-c++-common/pr39986.c: here.
	* gcc.dg/dfp/signbit-1.c: Move to ...
	* c-c++-common/signbit-1.c: here.
	* gcc.dg/dfp/signbit-2.c: Move to ...
	* c-c++-common/signbit-2.c: here.
	* gcc.dg/dfp/struct-layout-1.c: Move to ...
	* c-c++-common/struct-layout-1.c: here.
	* gcc.dg/dfp/usual-arith-conv.c: Move to ...
	* c-c++-common/usual-arith-conv.c: here.
	* gcc.dg/dfp/usual-arith-conv-const.c: Move to ...
	* c-c++-common/usual-arith-conv-const.c: here.

From-SVN: r151861
2009-09-18 17:40:28 +00:00
Jack Howarth
67a436d805 re PR testsuite/41288 (gcc.target/x86_64/abi/test_struct_returning.c regressions on *-apple-darwin* at -m64)
PR testsuite/41288
	* gcc.target/x86_64/abi/asm-support-darwin.s (snapshot_ret): Preserve
	stack alignment.

From-SVN: r151855
2009-09-18 17:16:44 +02:00
Uros Bizjak
2a79f8e489 re PR target/38288 (i386/i386.c: 7 * set but not used variables)
PR target/38288
	From David Binderman <dcb314@hotmail.com>:
	* gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
	local variable f.  Remove stale comments.
	(ix86_compute_frame_layout): Remove useless local variable total_size.
	Remove #if 0'd code.
	(legitimate_address_p): Remove useless local variables
	reason_rtx and reason.
	(ix86_split_copysign_const): Remove useless local variable op1.
	(scale_counter): Remove useless local variable piece_size_mask.

From-SVN: r151854
2009-09-18 17:12:48 +02:00
Arnaud Charlet
6465b6a71f [multiple changes]
2009-09-18  Pascal Obry  <obry@adacore.com>

	* mingw32.h: Activate Unicode support for x86-64 Windows platform.

2009-09-18  Vadim Godunko  <godunko@adacore.com>

	* s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.

2009-09-18  Javier Miranda  <miranda@adacore.com>

	* exp_aggr.adb (Backend_Processing_Possible): Disable backend
	processing for array aggregates in the VM backend if the array has
	aliased components.

2009-09-18  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
	the prefix indicates a previous semantic error, and this is the first
	error in the program.

2009-09-18  Bob Duff  <duff@adacore.com>

	* gnat_ugn.texi: Minor editing.

From-SVN: r151844
2009-09-18 16:01:37 +02:00
Arnaud Charlet
0816e70ccf [multiple changes]
2009-09-18  Vincent Celier  <celier@adacore.com>

	* prj.ads, prj.adb (Project_Data): New component
	Imported_Directories_Switches.

2009-09-18  Pascal Obry  <obry@adacore.com>

	* mingw32.h: Include standard _mingw.h file.
	Define _WIN32_WINNT only if not already defined.

From-SVN: r151843
2009-09-18 15:55:20 +02:00
Arnaud Charlet
f5e976a5b5 [multiple changes]
2009-09-18  Thomas Quinot  <quinot@adacore.com>

	* g-socket.adb (Is_Open): New function indicating whether a
	Selector_Type object is open.

2009-09-18  Vincent Celier  <celier@adacore.com>

	* osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
	is deleted before creating it.

2009-09-18  Robert Dewar  <dewar@adacore.com>

	* bindgen.adb: Minor reformatting

From-SVN: r151842
2009-09-18 15:50:26 +02:00
Arnaud Charlet
658cea5b3e [multiple changes]
2009-09-18  Arnaud Charlet  <charlet@adacore.com>

	* s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
	s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
	signal handler is installed.
	* s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
	tasks if Abort_Task_Interrupt cannot be used.

2009-09-18  Vincent Celier  <celier@adacore.com>

	* prj-tree.ads: Minor comment update

From-SVN: r151841
2009-09-18 15:40:54 +02:00
Jakub Jelinek
2b5bcdeec8 stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from output decl.
* stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
	output decl.

From-SVN: r151837
2009-09-18 10:48:31 +02:00
GCC Administrator
183d3da996 Daily bump.
From-SVN: r151829
2009-09-18 00:17:03 +00:00
Michael Haubenwallner
43eb894766 re PR target/40913 (hppa-hpux: libgcc_s.sl does not have the 'internal name' (=soname) set)
PR target/40913
	* config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.

From-SVN: r151826
2009-09-18 00:03:19 +00:00
Joseph Myers
f16fd827c3 libstdc++.exp (check_v3_target_binary_io): New.
* testsuite/lib/libstdc++.exp (check_v3_target_binary_io): New.
	* testsuite/lib/dg-options.exp (dg-require-binary-io): New.
	* testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc,
	testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc,
	testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc,
	testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc,
	testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc,
	testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc,
	testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc,
	testsuite/27_io/basic_istream/readsome/char/6746-2.cc,
	testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc,
	testsuite/27_io/objects/char/10.cc: Use dg-require-binary-io.

From-SVN: r151825
2009-09-18 00:54:25 +01:00
Joseph Myers
e10822c2dc vstring.h (to_wstring(long long), [...]): Disable for _GLIBCXX_HAVE_BROKEN_VSWPRINTF.
* include/ext/vstring.h (to_wstring(long long),
	to_wstring(unsigned long long), to_wstring(long double)): Disable
	for _GLIBCXX_HAVE_BROKEN_VSWPRINTF.

From-SVN: r151824
2009-09-18 00:53:28 +01:00
Andrew Pinski
66be89f022 re PR c++/39365 (++ operator with volatile bool increments)
2009-09-17  Andrew Pinski  <pinskia@gcc.gnu.org>

        PR c++/39365
        * typeck.c (cp_build_unary_op): Check TREE_CODE for bools instead of
        using same_type_p.
        (convert_for_assignment): Likewise.
        * cvt.c (type_promotes_to): Likewise.

2009-09-17  Andrew Pinski  <pinskia@gcc.gnu.org>

        PR c++/39365
        * g++.dg/expr/bool3.C: New test.
        * g++.dg/expr/bool4.C: New test.

From-SVN: r151823
2009-09-17 16:03:55 -07:00
Janis Johnson
695a8e6210 dfp-dbg.h: Define EXTERN.
* gcc/testsuite/gcc.dg/dfp/dfp-dbg.h: Define EXTERN.
	* gcc/testsuite/gcc.dg/dfp/signbit-2.c: Use it.
	* gcc/testsuite/gcc.dg/dfp/func-vararg-alternate.h: Change two
	arguments to unsigned int.
	* gcc/testsuite/gcc.dg/dfp/convert-bfp-10.c: Don't include float.h.
	* gcc/testsuite/gcc.dg/dfp/convert-bfp-fold.c: Include dfp-dbg.h.
	* gcc/testsuite/gcc.dg/dfp/convert-dfp-fold.c: Ditto
	* gcc/testsuite/gcc.dg/dfp/convert-int-max-fold.c: Ditto.
	* gcc/testsuite/gcc.dg/dfp/operator-arith-fold.c: Ditto.
	* gcc/testsuite/gcc.dg/dfp/pr39986.c: Ditto.
	* gcc/testsuite/gcc.dg/dfp/usual-arith-conv-const.c: Ditto.
	* gcc/testsuite/gcc.dg/dfp/pr31385.c: Use mode in typedef, not C type.
	* gcc/testsuite/gcc.dg/dfp/pr35620.c: Define typedef for C++.
	* gcc/testsuite/gcc.dg/dfp/convert-int.c: Define BOOL for C++.
	* gcc/testsuite/gcc.dg/dfp/convert-int-fold.c: Ditto.

From-SVN: r151821
2009-09-17 21:41:38 +00:00
Loren J. Rittle
987ce5575c PR testsuite/32843 (strikes again)
2009-09-17  Loren J. Rittle  <ljrittle@acm.org>

	PR testsuite/32843 (strikes again)
	* src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to
	enable proper extension on char and short.

From-SVN: r151819
2009-09-17 20:54:56 +00:00
Jakub Jelinek
591a849566 c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of TYPE_STUB_DECL.
* c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
	TYPE_STUB_DECL.

	* gcc.dg/debug/dwarf2/struct-loc1.c: New test.

From-SVN: r151816
2009-09-17 22:31:54 +02:00
Alexandre Oliva
417b30235b dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and DW_OP_implicit_value even without dwarf_version 4.
* dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
	DW_OP_implicit_value even without dwarf_version 4.

From-SVN: r151815
2009-09-17 22:29:56 +02:00