1. 20 Sep, 2009 5 commits
  2. 19 Sep, 2009 7 commits
    • mips.opt (mrelax-pic-calls): New option. · b53da244
      	* 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
      Adam Nemet committed
    • * vi.po: Update. · 4172245c
      From-SVN: r151881
      Joseph Myers committed
    • Fix long-standing in-tree build include-fixed bug. · 1d93c860
      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
      Ralf Wildenhues committed
    • re PR preprocessor/28435 (-MMD vs not found system header (included from a system header)) · 74dc6a11
      [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
      Chris Demetriou committed
    • re PR fortran/41328 (bad iostat when reading DOS file in a character array (non-advancing)) · b5e7280d
      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
      Jerry DeLisle committed
    • re PR fortran/41328 (bad iostat when reading DOS file in a character array (non-advancing)) · bf187ce8
      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
      Jerry DeLisle committed
    • Daily bump. · 70e42959
      From-SVN: r151876
      GCC Administrator committed
  3. 18 Sep, 2009 17 commits
    • * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>, · e0f3e75b
      	*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
      Jakub Jelinek committed
    • re PR bootstrap/41397 (RTL checking failure compiling libiberty) · bc8b6c98
      	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
      Jakub Jelinek committed
    • freebsd.h: Update comment on types. · ca94da48
      	* config/freebsd.h: Update comment on types.
      	(WINT_TYPE): Define.
      
      From-SVN: r151871
      Gerald Pfeifer committed
    • decl2.c (determine_visibility): Make anonymous types internal. · ecc607fc
      	* 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
      Jason Merrill committed
    • c.opt: Add -fno-deduce-init-list. · 5f5babf1
      	* 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
      Jason Merrill committed
    • hook.in: Fix prefix trailing slash on 64bit host arches. · 172d0c86
      2009-09-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
      
      	* python/hook.in: Fix prefix trailing slash on 64bit host arches.
      
      From-SVN: r151866
      Jan Kratochvil committed
    • value-prof.c (interesting_stringop_to_profile_p): Added output argument to… · eb99f777
      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
      Neil Vachharajani committed
    • dfp.exp: Also run tests in c-c++-common/dfp. · 5eb8c44f
      	* 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
      Janis Johnson committed
    • re PR testsuite/41288 (gcc.target/x86_64/abi/test_struct_returning.c regressions… · 67a436d8
      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
      Jack Howarth committed
    • re PR target/38288 (i386/i386.c: 7 * set but not used variables) · 2a79f8e4
      	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
      Uros Bizjak committed
    • [multiple changes] · 6465b6a7
      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
      Arnaud Charlet committed
    • [multiple changes] · 0816e70c
      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
      Arnaud Charlet committed
    • [multiple changes] · f5e976a5
      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
      Arnaud Charlet committed
    • [multiple changes] · 658cea5b
      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
      Arnaud Charlet committed
    • stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from output decl. · 2b5bcdee
      	* stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
      	output decl.
      
      From-SVN: r151837
      Jakub Jelinek committed
    • Daily bump. · 183d3da9
      From-SVN: r151829
      GCC Administrator committed
    • re PR target/40913 (hppa-hpux: libgcc_s.sl does not have the 'internal name' (=soname) set) · 43eb8947
      	PR target/40913
      	* config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
      
      From-SVN: r151826
      Michael Haubenwallner committed
  4. 17 Sep, 2009 11 commits
    • libstdc++.exp (check_v3_target_binary_io): New. · f16fd827
      	* 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
      Joseph Myers committed
    • vstring.h (to_wstring(long long), [...]): Disable for _GLIBCXX_HAVE_BROKEN_VSWPRINTF. · e10822c2
      	* 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
      Joseph Myers committed
    • re PR c++/39365 (++ operator with volatile bool increments) · 66be89f0
      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
      Andrew Pinski committed
    • dfp-dbg.h: Define EXTERN. · 695a8e62
      	* 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
      Janis Johnson committed
    • PR testsuite/32843 (strikes again) · 987ce557
      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
      Loren J. Rittle committed
    • c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of TYPE_STUB_DECL. · 591a8495
      	* 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
      Jakub Jelinek committed
    • dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and DW_OP_implicit_value… · 417b3023
      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
      Alexandre Oliva committed
    • dwarf2out.c: Include tree-pass.h and gimple.h. · e7f373fa
      
      	* dwarf2out.c: Include tree-pass.h and gimple.h.
      	(loc_list_plus_const): New function.
      	(loc_descriptor_from_tree_1): Rename to ...
      	(loc_descriptor_from_tree): ... remove original.
      	(loc_list_from_tree): New function.
      	(add_AT_location_description): Accept location list.
      	(tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
      	(concatn_mem_loc_descriptor): Remove.
      	(mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
      	returning NULL.
      	(secname_for_decl): Move up.
      	(hidden_reference_p): New function; break out from ...
      	(loc_by_refernece): ... here; move up.
      	(dw_loc_list): New function.
      	(single_element_loc_list): New function.
      	(single_element_loc_list_p): New function.
      	(add_loc_descr_to_each): New function.
      	(add_loc_list): New function.
      	(loc_descr_from_tree): Make wraper of loc_list_from_tree.
      	(loc_list_from_tree): Reroganized from loc_descr_from_tree;
      	add diagnostics why expansion failed.
      	(add_location_or_const_value_attribute): Support location lists.
      	(add_bound_info): Likewise.
      	(descr_info_loc): Update call of loc_descriptor_from_tree.
      	(gen_variable_die): Work on location lists.
      	* final.c (pass_final): Add dump file.
      	* Makefile.in (dwarf2out.o): Add new dependencies.
      
      From-SVN: r151807
      Jan Hubicka committed
    • re PR c/41049 (conversion from integer to decimal float loses trailing zeros) · d2da4af2
      gcc/
      	PR c/41049
      	* real.c decimal_from_integer, decimal_integer_string): New.
      	(real_from_integer): Use them as special case for decimal float.
      	* config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
      	(_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
      	Do not append zero after the decimal point in string to convert.
      gcc/testsuite/
      	PR c/41049
      	* dfp/pr41049.c: New test.
      
      From-SVN: r151806
      Janis Johnson committed
    • re PR testsuite/41385 (Many regressions on trunk) · 51a0d6aa
      2009-09-17  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR testsuite/41385
      	* gcc.dg/dfp/dfp.exp: Properly save DEFAULT_CFLAGS.
      
      From-SVN: r151803
      H.J. Lu committed
    • graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only for ARRAY_REFs. · 98f3eb1f
      2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
      
      gcc:
      	* graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
      	for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
      
      libgomp:
      	* testsuite/libgomp.graphite/bounds.c: New test.
      
      From-SVN: r151802
      Alexander Monakov committed