Georg-Johann Lay [Wed, 7 Mar 2012 10:33:19 +0000 (10:33 +0000)]
re PR target/52461 ([avr] XMEGA+EBI: RAMPZ clobbered while reading from flash)
libgcc/
PR target/52461
PR target/52508
* config/avr/lib1funcs.S (__do_copy_data): Clear RAMPZ after usage
if RAMPZ affects reading from RAM.
(__tablejump_elpm__): Ditto.
(.xload): Ditto.
(__movmemx_hi): Ditto.
(__do_global_ctors): Right condition for RAMPZ usage is "have ELPM".
(__do_global_dtors): Ditto.
(__xload_1, __xload_2, __xload_3, __xload_4): Ditto.
(__movmemx_hi): Ditto.
gcc/
PR target/52461
* gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
if RAMPZ affects reading from RAM.
From-SVN: r185030
Richard Guenther [Wed, 7 Mar 2012 09:55:26 +0000 (09:55 +0000)]
re PR pch/52518 (gcc fails to find pch files in subincludes)
2012-03-07 Richard Guenther <rguenther@suse.de>
PR pch/52518
PR pch/38987
* doc/invoke.texi (Precompiled Headers): Remove sentence that
suggests you can include PCHs from inside another header.
From-SVN: r185029
Richard Sandiford [Wed, 7 Mar 2012 09:50:36 +0000 (09:50 +0000)]
re PR middle-end/52515 (build fails on cris-elf in unwind-dw2.c, x86_64-unknown-linux-gnu in bid_binarydecimal.c)
gcc/
PR middle-end/52515
* rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
From-SVN: r185028
Kai Tietz [Wed, 7 Mar 2012 09:35:15 +0000 (10:35 +0100)]
invoke.texi (fwritable-relocated-rdata): Document new Cygwin/MinGW target option.
* doc/invoke.texi (fwritable-relocated-rdata): Document
new Cygwin/MinGW target option.
* config/i386/winnt.c (i386_pe_unique_section): Ignore
reloc if flag -fwritable-relocated-rdata is not set.
(i386_pe_section_type_flags): Likewise.
* config/i386/cygming.opt (fwritable-relocated-rdata):
Add new flag variable flag_writable_rel_rdata.
From-SVN: r185027
Richard Guenther [Wed, 7 Mar 2012 09:24:40 +0000 (09:24 +0000)]
tree-ssa-math-opts.c (convert_mult_to_widen): Check actual precision against gimple constraints.
2012-03-07 Richard Guenther <rguenther@suse.de>
* tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
precision against gimple constraints.
From-SVN: r185026
Ian Lance Taylor [Wed, 7 Mar 2012 01:16:20 +0000 (01:16 +0000)]
libgo: Implement and use runtime.Caller, runtime.Func.FileLine.
From-SVN: r185025
GCC Administrator [Wed, 7 Mar 2012 00:19:41 +0000 (00:19 +0000)]
Daily bump.
From-SVN: r185024
Pat Haugen [Tue, 6 Mar 2012 21:54:51 +0000 (21:54 +0000)]
va-arg-25.c: Fix typo for powerpc64-*-* check.
* gcc.dg/torture/va-arg-25.c: Fix typo for powerpc64-*-* check.
From-SVN: r185019
Steven Bosscher [Tue, 6 Mar 2012 19:51:42 +0000 (19:51 +0000)]
f95-lang.c (yyerror, yylex): Remove.
* f95-lang.c (yyerror, yylex): Remove.
(clear_binding_stack): Remove, fold into its only user.
(LANG_HOOKS_PRINT_IDENTIFIER): Do not re-define.
(ridpointers): Remove.
(gfc_eh_initialized_p): Make static.
(gfc_truthvalue_conversion): Move to convert.c.
(gfc_be_parse_file): Clear binding level stack when done.
(gfc_print_identifier): Remove.
(pushlevel): Remove ignored 'ignore' argument. Update all callers.
(poplevel): Remove unused 'reverse' argument. Update all callers.
(ggc_p): Remove.
(gfc_builtin_function): Make static. Do not attempt to make RTL for
builtin functions.
* convert.c (gfc_truthvalue_conversion): Moved here from f95-lang.c,
and made static.
* trans.h (pushlevel, poplevel): Adjust prototypes.
(gfc_truthvalue_conversion, gfc_builtin_function): Remove prototypes.
* trans-openmp.c: Update calls to pushlevel and poplevel.
* trans.c: Likewise.
* trans-decl.c: Likewise.
From-SVN: r185015
Richard Sandiford [Tue, 6 Mar 2012 19:22:10 +0000 (19:22 +0000)]
re PR middle-end/52372 (gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno)
gcc/
PR middle-end/52372
* rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
variables.
(GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
* emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
variables.
(init_emit_regs): Move associated initialization to...
(init_emit_once): ...here.
From-SVN: r185013
Richard Henderson [Tue, 6 Mar 2012 18:20:34 +0000 (10:20 -0800)]
m68k: Limit TAS to 68000 and CF ISA_B.
From-SVN: r185011
Ian Lance Taylor [Tue, 6 Mar 2012 17:57:23 +0000 (17:57 +0000)]
libgo: Update to weekly.2012-03-04 release.
From-SVN: r185010
Michael Meissner [Tue, 6 Mar 2012 17:15:43 +0000 (17:15 +0000)]
re PR target/50310 (ICE: in gen_vcondv2div2df, at config/i386/sse.md:1435 with -O -ftree-vectorize and __builtin_isunordered())
2012-03-05 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/50310
* config/rs6000/vector.md (vector_uneq<mode>): Add support for
UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
(vector_ltgt<mode>): Likewise.
(vector_ordered<mode>): Likewise.
(vector_unordered<mode>): Likewise.
* config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner):
Likewise.
From-SVN: r185007
Aldy Hernandez [Tue, 6 Mar 2012 16:27:37 +0000 (16:27 +0000)]
trans-mem.c: New typedef for tm_region_p.
* trans-mem.c: New typedef for tm_region_p.
Define vector types for tm_region_p.
(tm_region_init): Replace region_worklist to a vector called
bb_regions.
From-SVN: r185000
Daniel Berlin [Tue, 6 Mar 2012 14:04:01 +0000 (14:04 +0000)]
Move myself to loop optimizer reviewer, remove non-algorithmic maintainer section
From-SVN: r184990
Richard Guenther [Tue, 6 Mar 2012 13:16:50 +0000 (13:16 +0000)]
fold-const.c (build_fold_addr_expr_with_type_loc): Fold MEM_REF with constant pointer operand.
2012-03-06 Richard Guenther <rguenther@suse.de>
* fold-const.c (build_fold_addr_expr_with_type_loc): Fold
MEM_REF with constant pointer operand.
From-SVN: r184988
Richard Guenther [Tue, 6 Mar 2012 13:13:14 +0000 (13:13 +0000)]
re PR middle-end/52493 (tree check fail in ptr_derefs_may_alias_p)
2012-03-06 Richard Guenther <rguenther@suse.de>
PR middle-end/52493
* tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
* gcc.dg/torture/pr52493.c: New testcase.
From-SVN: r184987
Tristan Gingold [Tue, 6 Mar 2012 10:46:32 +0000 (10:46 +0000)]
vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
2012-03-06 Tristan Gingold <gingold@adacore.com>
* config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
octaword.
(external_model_kind): Improve documentation.
(vms_pragma_extern_model): Handle relaxed_redef.
(vms_c_register_pragma): Allow expansion for nomember_alignment.
From-SVN: r184986
Georg-Johann Lay [Tue, 6 Mar 2012 10:36:21 +0000 (10:36 +0000)]
invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
* doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
Some more notes on EIND usage and reorder EIND subsection.
From-SVN: r184985
Tristan Gingold [Tue, 6 Mar 2012 10:26:24 +0000 (10:26 +0000)]
vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
2012-03-06 Tristan Gingold <gingold@adacore.com>
* config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
* config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
From-SVN: r184983
Tristan Gingold [Tue, 6 Mar 2012 10:10:58 +0000 (10:10 +0000)]
t-vmsnative (version): Define.
2012-03-06 Tristan Gingold <gingold@adacore.com>
* config/vms/t-vmsnative (version): Define.
* config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
From-SVN: r184982
Richard Guenther [Tue, 6 Mar 2012 09:54:06 +0000 (09:54 +0000)]
re PR middle-end/52097 (ICE: in get_bit_range, at expr.c:4535 with -O -flto -fexceptions -fnon-call-exceptions --param allow-store-data-races=0)
2012-03-06 Richard Guenther <rguenther@suse.de>
PR lto/52097
* lto.c (uniquify_nodes): Merge TYPE_FIELDS of variant types.
* gcc.dg/lto/pr52097_0.c: New testcase.
From-SVN: r184981
Andrey Belevantsev [Tue, 6 Mar 2012 07:31:43 +0000 (11:31 +0400)]
re PR rtl-optimization/52250 (ICE: in sel_remove_bb, at sel-sched-ir.c:5213 with -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling2 and other flags)
PR rtl-optimization/52250
* sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
to put note list into. Unconditionally call move_bb_info.
(move_bb_info): Do not assert the blocks being in the same region,
just drop the note list if they are not.
From-SVN: r184975
GCC Administrator [Tue, 6 Mar 2012 00:19:31 +0000 (00:19 +0000)]
Daily bump.
From-SVN: r184971
Oleg Endo [Mon, 5 Mar 2012 23:12:20 +0000 (23:12 +0000)]
re PR target/51244 ([SH] Inefficient conditional branch and code around T bit)
PR target/51244
* config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
and use unified expansion logic.
* config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
closer to the existing movt insn.
(negc): Rename insn to *negc. Add new expander.
(movnegt): Use xor pattern for T bit negation. Reserve helper
constant for negc pattern.
(*movnegt): New insn and splitter.
PR target/51244
* gcc.target/sh/pr51244-1.c: New.
* gcc.target/sh/pr51244-2.c: New.
* gcc.target/sh/pr51244-3.c: New.
From-SVN: r184966
Bernd Schmidt [Mon, 5 Mar 2012 22:48:30 +0000 (22:48 +0000)]
c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not PLUS_EXPR.
* c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
PLUS_EXPR.
From-SVN: r184965
Richard Henderson [Mon, 5 Mar 2012 22:25:19 +0000 (14:25 -0800)]
genemit.c (main): Include "target.h" in insn-emit.c.
* genemit.c (main): Include "target.h" in insn-emit.c.
* Makefile.in (insn-emit.o): Depend on TARGET_H.
* config/sh/sync.md (atomic_test_and_set): Reference
targetm.atomic_test_and_set_trueval instead of
TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
From-SVN: r184964
Jason Merrill [Mon, 5 Mar 2012 22:12:28 +0000 (17:12 -0500)]
Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn before using it.
* gcc-interface/Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn
before using it.
From-SVN: r184963
Joern Rennecke [Mon, 5 Mar 2012 22:10:47 +0000 (22:10 +0000)]
epiphany.c (epiphany_function_value_regno_p): Make static.
* config/epiphany/epiphany.c (epiphany_function_value_regno_p):
Make static.
From-SVN: r184962
Jason Merrill [Mon, 5 Mar 2012 22:01:49 +0000 (17:01 -0500)]
objc-map.c (objc_map_private_resize, [...]): Don't call _stat functions without MEM_STAT_INFO.
* objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't
call _stat functions without MEM_STAT_INFO.
From-SVN: r184961
Steven Bosscher [Mon, 5 Mar 2012 21:57:13 +0000 (21:57 +0000)]
langhooks.c (add_builtin_type): New function.
* langhooks.c (add_builtin_type): New function.
* langhooks.h (add_builtin_type): Export it.
* config/mep/mep.c (mep_init_builtins): Use it.
* config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
From-SVN: r184960
Jakub Jelinek [Mon, 5 Mar 2012 20:18:56 +0000 (21:18 +0100)]
pt.c (local_specializations): Change from htab_t into struct pointer_map_t *.
* pt.c (local_specializations): Change from htab_t into
struct pointer_map_t *.
(retrieve_local_specializations, register_local_specialization,
tsubst_pack_expansion, instantiate_decl): Adjust users.
(eq_local_specializations, hash_local_specialization): Remove.
From-SVN: r184959
Jakub Jelinek [Mon, 5 Mar 2012 20:17:44 +0000 (21:17 +0100)]
re PR debug/51902 (lexical_blocks inside inlined_subroutines generate duplicate debug_ranges)
PR debug/51902
* tree.h (BLOCK_SAME_RANGE): Define.
* function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
isn't equal to supercontext fragment's fragment chain.
Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
fragment origin.
(blocks_nreverse_all): Likewise.
(reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
BLOCK_SUPERCONTEXT to supercontext fragment instead of
supercontext fragment's fragment origin.
* dwarf2out.c (add_high_low_attributes): If stmt has the same
range as its parent (or parents thereof etc.), use the parent's
DW_AT_ranges value instead of creating a new .debug_ranges range.
From-SVN: r184958
Richard Henderson [Mon, 5 Mar 2012 20:12:14 +0000 (12:12 -0800)]
arm: Enable umull and ctz in longlong.h
* longlong.h [ARM] (umul_ppmm): Use umull for arm3m and later.
[ARM] (count_trailing_zeros): Use the builtin.
From-SVN: r184957
Richard Henderson [Mon, 5 Mar 2012 19:52:08 +0000 (11:52 -0800)]
re PR tree-optimization/52242 (libgomp.c/atomic-2.c failure on s390x)
PR tree-opt/52242
Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
* omp-low.c (expand_omp_atomic): Assume anything aligned to
BIGGEST_ALIGNMENT is aligned.
From-SVN: r184955
Richard Henderson [Mon, 5 Mar 2012 18:57:43 +0000 (10:57 -0800)]
sh: Fix location of TARGET_ATOMIC_TEST_AND_SET_TRUEVAL definition.
* config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
* config/sh/sh.c: ... here.
From-SVN: r184953
Richard Henderson [Mon, 5 Mar 2012 18:57:36 +0000 (10:57 -0800)]
re PR target/52481 (m68k-*: internal compiler error: in extract_insn, at recog.c:2123)
PR target/52481
* config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
instead of calling negqi2 directly.
From-SVN: r184952
Aldy Hernandez [Mon, 5 Mar 2012 18:38:47 +0000 (18:38 +0000)]
re PR middle-end/52463 (libitm.c/memcpy-1.c FAILs)
PR middle-end/52463
* trans-mem.c (tm_region_init): Use last_basic_block.
From-SVN: r184949
Richard Henderson [Mon, 5 Mar 2012 18:37:19 +0000 (10:37 -0800)]
re PR target/52481 (m68k-*: internal compiler error: in extract_insn, at recog.c:2123)
PR target/52481
* config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
instead of calling negqi2 directly.
From-SVN: r184948
Oleg Endo [Mon, 5 Mar 2012 18:18:51 +0000 (18:18 +0000)]
sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
* config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
* config/sh/sync.md (atomic_test_and_set): New expander.
(tasb, atomic_test_and_set_soft): New insns.
* config/sh/sh.opt (menable-tas): New option.
* doc/invoke.texi (SH Options): Document it.
From-SVN: r184947
Jason Merrill [Mon, 5 Mar 2012 18:08:56 +0000 (13:08 -0500)]
re PR c++/51930 (Explicitly instantiated template gets hidden visibility)
PR c++/51930
* decl2.c (determine_visibility): Correct calculation of class
args depth.
* decl.c (check_tag_decl): Adjust warning.
From-SVN: r184946
Jason Merrill [Mon, 5 Mar 2012 18:07:12 +0000 (13:07 -0500)]
method.c (synthesized_method_walk): Cleanups don't affect the EH spec either.
* method.c (synthesized_method_walk): Cleanups don't affect the EH
spec either.
From-SVN: r184945
Ian Lance Taylor [Mon, 5 Mar 2012 17:07:37 +0000 (17:07 +0000)]
runtime: Implement runtime.Callers.
From-SVN: r184944
Torvald Riegel [Mon, 5 Mar 2012 16:34:12 +0000 (16:34 +0000)]
libitm: Don't execute memtransfer/memset if size isn't larger than zero.
libitm/
* dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
memtransfer/memset if size isn't larger than zero.
From-SVN: r184941
Torvald Riegel [Mon, 5 Mar 2012 16:33:55 +0000 (16:33 +0000)]
libitm: Update texinfo docs.
libitm/
* libitm.texi: Link to specification and add a usage example.
From-SVN: r184940
Paolo Carlini [Mon, 5 Mar 2012 16:31:50 +0000 (16:31 +0000)]
stl_algobase.h (iter_swap): In C++11 mode just call swap.
2012-03-05 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_algobase.h (iter_swap): In C++11 mode just
call swap.
* include/bits/stl_bvector.h (swap(_Bit_reference,
_Bit_reference), swap(_Bit_reference, bool&),
swap(bool&, _Bit_reference)): Add.
* testsuite/23_containers/vector/bool/swap.cc: New.
From-SVN: r184939
Richard Guenther [Mon, 5 Mar 2012 15:39:39 +0000 (15:39 +0000)]
cfgloop.c (verify_loop_structure): Verify dominators before using them.
2012-03-05 Richard Guenther <rguenther@suse.de>
* cfgloop.c (verify_loop_structure): Verify dominators before
using them.
* graphite-clast-to-gimple.c (graphite_verify): Do not verify
dominators from here.
* graphite-scop-detection.c (create_sese_edges): Likewise.
* loop-doloop.c (doloop_optimize_loops): Likewise.
* loop-init.c (loop_optimizer_init): Likewise.
* loop-unroll.c (unroll_and_peel_loops): Likewise.
* loop-unswitch.c (unswitch_loops): Likewise.
* tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
* tree-parloops.c (parallelize_loops): Likewise. Verify
only when checking is enabled.
* tree-loop-distribution.c (tree_loop_distribution): Likewise.
From-SVN: r184937
Bernd Schmidt [Mon, 5 Mar 2012 15:38:06 +0000 (15:38 +0000)]
genautomata.c (parse_automata_opt): New static function.
* genautomata.c (parse_automata_opt): New static function.
(initiate_automaton_gen): Remove all option handling code. Remove
argc argument. All callers changed.
(main): Call init_rtx_reader_args_cb with the new function as
argument.
From-SVN: r184936
Joern Rennecke [Mon, 5 Mar 2012 15:01:48 +0000 (15:01 +0000)]
Fix ChangeLog record for 171649:
* ira-conflicts.c: Remove mentioning cover classes from the file.
Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
- ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
+ ALLOCNO_CLASS_COST instead of ALLOCNO_COVER_CLASS_COST. Fix formatting.
From-SVN: r184935
Richard Guenther [Mon, 5 Mar 2012 14:36:18 +0000 (14:36 +0000)]
cfgexpand.c (gimple_expand_cfg): Free dominator info.
2012-03-05 Richard Guenther <rguenther@suse.de>
* cfgexpand.c (gimple_expand_cfg): Free dominator info.
* tree-if-conv.c (combine_blocks): Free post-dominator info
after breaking it.
* tree-parloops.c (create_parallel_loop): Free and re-compute
dominator info after breaking it.
From-SVN: r184933
Richard Guenther [Mon, 5 Mar 2012 13:08:55 +0000 (13:08 +0000)]
re PR middle-end/52353 (-ftrapv -fnon-call-exceptions does not work)
2012-03-05 Richard Guenther <rguenther@suse.de>
PR middle-end/52353
* optabs.h (trapv_unoptab_p): New function.
(trapv_binoptab_p): Likewise.
* optabs.c (expand_binop): Use emit_libcall_block_1 with
a proper equiv_may_trap argument.
(expand_unop): Likewise.
(emit_libcall_block_1): Take extra argument whether the
instruction may trap. Renamed from ...
(emit_libcall_block): ... this. New wrapper.
From-SVN: r184932
Joseph Myers [Mon, 5 Mar 2012 13:06:01 +0000 (13:06 +0000)]
* sv.po: Update.
From-SVN: r184930
Jakub Jelinek [Mon, 5 Mar 2012 12:27:55 +0000 (13:27 +0100)]
re PR tree-optimization/51721 (-Warray-bounds false positives and inconsistencies)
PR tree-optimization/51721
* tree-vrp.c (register_edge_assert_for_2): If comparing
lhs of right shift by constant with an integer constant,
add ASSERT_EXPRs for the rhs1 of the right shift.
* gcc.dg/tree-ssa/vrp63.c: New test.
* gcc.dg/pr51721.c: New test.
From-SVN: r184927
Tristan Gingold [Mon, 5 Mar 2012 11:56:29 +0000 (11:56 +0000)]
configure.ac: Enable gdb and readline for ia64*-*-*vms*.
2012-03-05 Tristan Gingold <gingold@adacore.com>
* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
* configure: Regenerate.
From-SVN: r184926
Jakub Jelinek [Mon, 5 Mar 2012 11:53:01 +0000 (12:53 +0100)]
* cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
From-SVN: r184925
Richard Guenther [Mon, 5 Mar 2012 11:30:40 +0000 (11:30 +0000)]
tree.c (integer_zerop): Handle VECTOR_CSTs.
2012-03-05 Richard Guenther <rguenther@suse.de>
* tree.c (integer_zerop): Handle VECTOR_CSTs.
(integer_onep): Likewise.
(integer_all_onesp): Likewise.
From-SVN: r184923
Georg-Johann Lay [Mon, 5 Mar 2012 10:28:45 +0000 (10:28 +0000)]
avr.md (*umaddqihi4.2): New insn-and-split.
* config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
From-SVN: r184919
Richard Guenther [Mon, 5 Mar 2012 09:40:20 +0000 (09:40 +0000)]
crontab: Remove 4.3 branch from the list of snapshots to make.
2013-03-05 Richard Guenther <rguenther@suse.de>
* crontab: Remove 4.3 branch from the list of snapshots to make.
From-SVN: r184918
Ian Lance Taylor [Mon, 5 Mar 2012 06:39:08 +0000 (06:39 +0000)]
re PR go/52342 (64-bit go.test/test/chan/doubleselect.go times out on Solaris/SPARC)
PR go/52342
runtime: Better big-endian identity hash function.
From-SVN: r184914
Ian Lance Taylor [Mon, 5 Mar 2012 06:04:14 +0000 (06:04 +0000)]
libgo: Fix Solaris ustat.h test.
From-SVN: r184913
Paolo Carlini [Mon, 5 Mar 2012 01:15:28 +0000 (01:15 +0000)]
re PR libstdc++/43813 ([DR1234] vector<T*>(3, NULL) fails to compile)
2012-03-04 Paolo Carlini <paolo.carlini@oracle.com>
Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/43813
* include/bits/stl_iterator_base_types.h (_RequireInputIter): New.
* include/ext/vstring.h (__versa_string<>::__versa_string
(_InputIterator, _InputIterator, const _Alloc&),
__versa_string<>::append(_InputIterator, _InputIterator),
__versa_string<>::assign(_InputIterator, _InputIterator),
__versa_string<>::insert(iterator, _InputIterator,
_InputIterator), __versa_string<>::replace(iterator, iterator,
_InputIterator, _InputIterator)): Use it.
* include/bits/stl_list.h (list<>::list(_InputIterator,
_InputIterator, const allocator_type&), list<>::assign(_InputIterator,
_InputIterator), list<>::insert(iterator, _InputIterator,
_InputIterator)): Likewise.
* include/bits/stl_vector.h (vector<>::vector(_InputIterator,
_InputIterator, const allocator_type&), vector<>::assign(_InputIterator,
_InputIterator), vectort<>::insert(iterator, _InputIterator,
_InputIterator)): Likewise.
* include/bits/stl_deque.h (deque<>::deque(_InputIterator,
_InputIterator, const allocator_type&), deque<>::deque(_InputIterator,
_InputIterator), deque<>::insert(iterator, _InputIterator,
_InputIterator)): Likewise.
* include/bits/stl_bvector.h (vector<>::vector(_InputIterator,
_InputIterator, const allocator_type&), vector<>::deque(_InputIterator,
_InputIterator), vector<>::insert(iterator, _InputIterator,
_InputIterator)): Likewise.
* include/bits/forward_list.h (forward_list<>::forward_list
(_InputIterator, _InputIterator, const allocator_type&),
forward_list<>::assign(_InputIterator, _InputIterator),
forward_list<>::insert_after(const_iterator, _InputIterator,
_InputIterator)): Likewise.
(forward_list<>::_M_initialize_dispatch(,, __true_type): Remove.
(forward_list<>::_M_range_initialize): Add, adjust everywhere.
* include/bits/forward_list.tcc: Adjust.
* include/debug/forward_list: Adjust.
* include/debug/vector: Likewise.
* include/debug/deque: Likewise.
* include/debug/list: Likewise.
* testsuite/ext/vstring/requirements/do_the_right_thing.cc: New.
* testsuite/23_containers/forward_list/requirements/
do_the_right_thing.cc: Likewise.
* testsuite/23_containers/vector/requirements/
do_the_right_thing.cc: Likewise.
* testsuite/23_containers/deque/requirements/
do_the_right_thing.cc: Likewise.
* testsuite/23_containers/list/requirements/
do_the_right_thing.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
assign_neg.cc: Adjust dg-error line number.
* testsuite/23_containers/forward_list/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
assign_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
assign_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
assign_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Likewise.
Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>
From-SVN: r184911
GCC Administrator [Mon, 5 Mar 2012 00:18:48 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r184910
Mikael Morin [Sun, 4 Mar 2012 21:50:08 +0000 (21:50 +0000)]
re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument)
fortran/
PR fortran/50981
* gfortran.h (gfc_is_class_container_ref): New prototype.
* class.c (gfc_is_class_container_ref): New function.
* trans-expr.c (gfc_conv_procedure_call): Add a "_data" component
reference to polymorphic actual arguments.
testsuite/
PR fortran/50981
* gfortran.dg/elemental_optional_args_5.f03: Add subcomponent actual
argument checks.
From-SVN: r184904
Uros Bizjak [Sun, 4 Mar 2012 21:32:36 +0000 (22:32 +0100)]
i386.c (ix86_print_operand): Declare taken and cputaken as bool.
* config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
taken and cputaken as bool.
From-SVN: r184903
H.J. Lu [Sun, 4 Mar 2012 21:23:13 +0000 (21:23 +0000)]
Check Pmode instead of TARGET_64BIT
2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
instead of TARGET_64BIT.
From-SVN: r184901
H.J. Lu [Sun, 4 Mar 2012 21:21:55 +0000 (21:21 +0000)]
Check Pmode to set adjust_stack_insn
2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
adjust_stack_insn.
From-SVN: r184900
H.J. Lu [Sun, 4 Mar 2012 21:19:43 +0000 (21:19 +0000)]
Only handle zero-extended DImode addresses
2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_print_operand_address): Only handle
zero-extended DImode addresses.
From-SVN: r184899
H.J. Lu [Sun, 4 Mar 2012 21:17:34 +0000 (21:17 +0000)]
Update gcc.target/i386/pr52146.c to allow $-
18874240
2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
PR target/52146
* gcc.target/i386/pr52146.c: Update final-scan to allow $-
18874240.
From-SVN: r184898
Anthony Green [Sun, 4 Mar 2012 21:11:09 +0000 (21:11 +0000)]
Merge upstream libffi
From-SVN: r184897
Mikael Morin [Sun, 4 Mar 2012 21:05:32 +0000 (21:05 +0000)]
re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument)
fortran/
PR fortran/50981
* trans-expr.c (gfc_conv_procedure_call): Save se->ss's value.
Handle the case of unallocated arrays passed to elemental procedures.
testsuite/
PR fortran/50981
* gfortran.dg/elemental_optional_args_5.f03: Add array checks.
From-SVN: r184896
Georg-Johann Lay [Sun, 4 Mar 2012 20:56:34 +0000 (20:56 +0000)]
pr52402.c: Add dg-require-effective-target
* gcc.dg/torture/pr52402.c: Add dg-require-effective-target
From-SVN: r184894
Mikael Morin [Sun, 4 Mar 2012 20:46:55 +0000 (20:46 +0000)]
trans.h (struct gfc_ss_info): Move can_be_null_ref component from the data::scalar subcomponent to the toplevel.
fortran/
* trans.h (struct gfc_ss_info): Move can_be_null_ref component from
the data::scalar subcomponent to the toplevel.
* trans-expr.c (gfc_conv_expr): Update component reference.
* trans-array.c (gfc_add_loop_ss_code): Ditto.
(gfc_walk_elemental_function_args): Ditto. Move the conditional setting
the field out of the scalar-only block.
From-SVN: r184893
Uros Bizjak [Sun, 4 Mar 2012 18:54:26 +0000 (19:54 +0100)]
constraints.md (Ya): New internal constraint.
* config/i386/constraints.md (Ya): New internal constraint.
* config/i386/i386.md (zero_extendsidi2): Remove expansion.
(*zero_extendsidi2_rex64): Add x,x alternative.
(*zero_extendsidi2): Ditto. Add o,0 alternative.
Remove flags reg clobber. Adjust corresponding splits.
(zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
zero_extendqisi2 expanders using SWI12 mode iterator.
(zero_extend<mode>si2_and): Macroize insn from
zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
splitters.
(*zero_extend<mode>si2): Macroize insn from
*zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
(*zero_extend*2_movzbl_and): Remove insn patterns.
(zero_extendqihi2_and): Merge corresponding splitter.
(*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
(*zero_extend*2_movzbl_and): Remove insn patterns.
(*anddi_1): Split TYPE_IMOVX instructions.
(*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
(*andhi_1): Ditto.
(and->zext splitter): Add splitter pattern.
(zero extend with andsi3 splitter): Adjust zero_extend pattern.
From-SVN: r184891
Georg-Johann Lay [Sun, 4 Mar 2012 15:40:56 +0000 (15:40 +0000)]
pr49871.c: Add dg-require-effective-target int32plus.
* gcc.dg/debug/dwarf2/pr49871.c: Add dg-require-effective-target
int32plus.
From-SVN: r184887
Francois-Xavier Coudert [Sun, 4 Mar 2012 14:35:56 +0000 (14:35 +0000)]
re PR fortran/36160 (show_locus doesn't deal well with wide characters)
PR fortran/36160
* error.c (gfc_widechar_display_length, gfc_wide_display_length):
New functions.
(print_wide_char_into_buffer): Return length written.
(show_locus): Fix locus displayed when wide characters are present.
From-SVN: r184884
Francois-Xavier Coudert [Sun, 4 Mar 2012 14:29:30 +0000 (14:29 +0000)]
* module.c (gfc_use_module): Improve error message some more.
From-SVN: r184883
Eric Botcazou [Sun, 4 Mar 2012 13:11:06 +0000 (13:11 +0000)]
* gnatvsn.ads (Library_Version): Bump to 4.8.
From-SVN: r184882
Jonathan Wakely [Sun, 4 Mar 2012 12:49:22 +0000 (12:49 +0000)]
re PR libstdc++/52433 ([C++11] debug mode iterators need to move)
PR libstdc++/52433
* include/debug/safe_iterator.h (_Safe_iterator): Add move
constructor and move assignment operator.
* testsuite/23_containers/vector/debug/52433.cc: New.
From-SVN: r184880
Sandra Loosemore [Sun, 4 Mar 2012 07:46:31 +0000 (02:46 -0500)]
invoke.texi (C++ Dialect Options): Minor copy-edits to x86-specific text.
2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
x86-specific text.
(Debugging Options): Likewise.
(Optimize Options): Likewise.
(i386 and x86-64 Options): Discuss -march before -mtune, consistently
with other architectures. Use official processor names with correct
spelling/capitalization. Fix formatting and grammar issues.
(i386 and x86-64 Windows Options): Similar cleanup here.
From-SVN: r184879
Jason Merrill [Sun, 4 Mar 2012 00:55:51 +0000 (19:55 -0500)]
* init.c (perform_member_init): Cope with uninstantiated NSDMI.
From-SVN: r184877
Jason Merrill [Sun, 4 Mar 2012 00:55:44 +0000 (19:55 -0500)]
Core 1270
Core 1270
* call.c (build_aggr_conv): Call reshape_init.
(convert_like_real): Likewise.
* typeck2.c (process_init_constructor): Clear TREE_CONSTANT if
not all constant.
From-SVN: r184876
Jason Merrill [Sun, 4 Mar 2012 00:55:38 +0000 (19:55 -0500)]
mangle.c (write_nested_name): Use decl_mangling_context.
* mangle.c (write_nested_name): Use decl_mangling_context.
(write_prefix, write_template_prefix): Likewise.
From-SVN: r184875
Jason Merrill [Sun, 4 Mar 2012 00:55:31 +0000 (19:55 -0500)]
re PR c++/36797 (ICE mangling __is_empty)
PR c++/36797
* mangle.c (write_expression): Improve diagnostic for TRAIT_EXPR.
From-SVN: r184874
Jason Merrill [Sun, 4 Mar 2012 00:53:30 +0000 (19:53 -0500)]
class.c (add_method): Always build an OVERLOAD for using-decls.
* class.c (add_method): Always build an OVERLOAD for using-decls.
* search.c (lookup_member): Handle getting an OVERLOAD for a
single function.
From-SVN: r184873
GCC Administrator [Sun, 4 Mar 2012 00:19:32 +0000 (00:19 +0000)]
Daily bump.
From-SVN: r184872
Kaz Kojima [Sat, 3 Mar 2012 23:20:34 +0000 (23:20 +0000)]
sh.md (abssi2): Add TARGET_SH1 condition.
* config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
From-SVN: r184867
Kaz Kojima [Sat, 3 Mar 2012 23:19:07 +0000 (23:19 +0000)]
sh.c (sh_dwarf_register_span): Don't apply DBX_REGISTER_NUMBER.
* config/sh/sh.c (sh_dwarf_register_span): Don't apply
DBX_REGISTER_NUMBER.
From-SVN: r184866
Kaz Kojima [Sat, 3 Mar 2012 23:16:08 +0000 (23:16 +0000)]
sh.c (shiftcosts): Return MAX_COST when the first operand is CONST_INT.
* config/sh/sh.c (shiftcosts): Return MAX_COST when the first
operand is CONST_INT. Take COSTS_N_INSNS into account.
(sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
of shiftcosts.
From-SVN: r184865
Francois-Xavier Coudert [Sat, 3 Mar 2012 20:59:58 +0000 (20:59 +0000)]
re PR fortran/52313 (useless error message for old version of .mod file)
PR fortran/52313
* module.c (gfc_use_module): Improve error messages.
From-SVN: r184864
Tobias Burnus [Sat, 3 Mar 2012 18:55:57 +0000 (19:55 +0100)]
re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* resolve.c (resolve_actual_arglist): Properly reset
assumed_type_expr_allowed.
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* gfortran.dg/assumed_type_3.f90: Undo previous commit.
From-SVN: r184863
Richard Henderson [Sat, 3 Mar 2012 18:21:06 +0000 (10:21 -0800)]
optabs.c (expand_atomic_test_and_set): Honor atomic_test_and_set_trueval even when atomic_test_and_set optab is not in use.
* optabs.c (expand_atomic_test_and_set): Honor
atomic_test_and_set_trueval even when atomic_test_and_set
optab is not in use.
From-SVN: r184862
Joseph Myers [Sat, 3 Mar 2012 17:35:34 +0000 (17:35 +0000)]
* de.po: Update.
From-SVN: r184860
H.J. Lu [Sat, 3 Mar 2012 17:04:49 +0000 (17:04 +0000)]
Add Linux/x32 support to Ada
2012-03-03 H.J. Lu <hongjiu.lu@intel.com>
* init.c (__gnat_adjust_context_for_raise): Also check
"orq $0x0,(%esp)" for x32.
* link.c (__gnat_default_libgcc_subdir): set to libx32 for x32.
* gcc-interface/Makefile.in (arch): Set to x32 if MULTISUBDIR
is /x32.
Support x32.
From-SVN: r184859
Tobias Burnus [Sat, 3 Mar 2012 16:09:18 +0000 (17:09 +0100)]
lang.opt (Wc-binding-type): New flag.
2012-03-03 Tobias Burnus <burnus@net-b.de>
* lang.opt (Wc-binding-type): New flag.
* options.c (gfc_init_options, gfc_handle_option): Handle it.
* invoke.texi (Wc-binding-type): Document it.
* gfortran.h (gfc_option_t): Add warn_c_binding_type.
* decl.c (verify_bind_c_sym): Handle -Wc-binding-type.
* symbol.c (gfc_set_default_type, verify_bind_c_derived_type):
Ditto.
2012-03-03 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/bind_c_dts_4.f03: Add dg-options -Wc-binding-type.
* gfortran.dg/bind_c_implicit_vars.f03: Ditto.
* gfortran.dg/bind_c_usage_8.f03: Ditto.
* gfortran.dg/c_kind_tests_2.f03: Ditto.
* gfortran.dg/class_30.f90: Remove dg-warning line.
* gfortran.dg/bind_c_usage_25.f90: New.
From-SVN: r184858
Tobias Burnus [Sat, 3 Mar 2012 14:11:24 +0000 (15:11 +0100)]
re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* gfortran.dg/assumed_type_1.f90: Correct dg-error.
* gfortran.dg/assumed_type_3.f90: Correct dg-error.
* gfortran.dg/assumed_type_4.f90: Correct dg-error.
From-SVN: r184856
Joseph Myers [Sat, 3 Mar 2012 12:06:54 +0000 (12:06 +0000)]
* gcc.pot: Regenerate.
From-SVN: r184854
Tobias Burnus [Sat, 3 Mar 2012 08:40:24 +0000 (09:40 +0100)]
re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* decl.c (gfc_match_decl_type_spec): Support type(*).
(gfc_verify_c_interop): Allow type(*).
* dump-parse-tree.c (show_typespec): Handle type(*).
* expr.c (gfc_copy_expr): Ditto.
* interface.c (compare_type_rank, compare_parameter,
compare_actual_formal, gfc_procedure_use): Ditto.
* libgfortran.h (bt): Add BT_ASSUMED.
* misc.c (gfc_basic_typename, gfc_typename): Handle type(*).
* module.c (bt_types): Ditto.
* resolve.c (assumed_type_expr_allowed): New static variable.
(resolve_actual_arglist, resolve_variable, resolve_symbol):
Handle type(*).
* trans-expr.c (gfc_conv_procedure_call): Ditto.
* trans-types.c (gfc_typenode_for_spec, gfc_get_dtype): Ditto.
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* gfortran.dg/assumed_type_1.f90: New.
* gfortran.dg/assumed_type_2.f90: New.
* gfortran.dg/assumed_type_3.f90: New.
* gfortran.dg/assumed_type_4.f90: New.
From-SVN: r184852
GCC Administrator [Sat, 3 Mar 2012 00:18:42 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r184849
Kaz Kojima [Fri, 2 Mar 2012 23:59:08 +0000 (23:59 +0000)]
re PR rtl-optimization/48596 ([SH] unable to find a register to spill in class 'FPUL_REGS')
PR target/48596
PR target/48806
* config/sh/sh.c (sh_register_move_cost): Increase cost between
GENERAL_REGS and FP_REGS for SImode.
From-SVN: r184844
Paolo Carlini [Fri, 2 Mar 2012 22:24:45 +0000 (22:24 +0000)]
limits (numeric_limits): Fix returns per C++11.
2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/limits (numeric_limits): Fix returns per C++11.
* testsuite/18_support/numeric_limits/primary.cc: New.
From-SVN: r184837