2011-01-18 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/unique_ptr.h (default_delete<>::default_delete()):
Declare defaulted per DR 1517.
* testsuite/util/testsuite_common_types.h
(constexpr_defaulted_default_constructible): Add.
* testsuite/20_util/default_delete/cons/constexpr.cc: Use it.
From-SVN: r168947
PR rtl-optimization/47299
* expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
subtarget. Use normal multiplication if both operands are
constants.
* expmed.c (expand_widening_mult): Don't try to optimize constant
multiplication if op0 has VOIDmode. Convert op1 constant to mode
before using it.
* gcc.c-torture/execute/pr47299.c: New test.
From-SVN: r168944
Now that gdb supports Blackfin targets, no need to mask it.
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
From-SVN: r168943
PR c++/47067
* semantics.c (base_field_constructor_elt): New fn.
(cxx_eval_bare_aggregate): Use it.
(build_data_member_initialization): Leave COMPONENT_REF for
vfield inits.
From-SVN: r168937
In gcc/objc/:
2011-01-17 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47314
* objc-act.c (finish_objc): When calling check_duplicates to check
duplicated instance methods, set 'is_class' to 0, not 1.
In gcc/testsuite/:
2011-01-17 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47314
* objc.dg/selector-warn-1.m: New.
* obj-c++.dg/selector-warn-1.mm: New.
From-SVN: r168934
The formulation of the pre-reload pattern allows the lower_subreg
pass to properly split the patterns. This also required re-writing
rx_source_operand and related predicates to accept subregs.
From-SVN: r168929
A standalone __builtin_rx_sat isn't implementable due to needing
to keep the flags live before reload. Instead provide a saturating
add pattern, which hopefully will be pattern-matched by high-level
optimizations.
From-SVN: r168928
The patterns represented with ashift 1 canonically need to have
the ashift as the first operand of the logical operation.
Leave insv represented as a zero_extract store.
Implement a variable store to a 1 bit field as tst+bmne.
Implement a variable store of a condition into a 1 bit field with bmcc.
From-SVN: r168927
Use match_operator, not code_iterators. Use a new helper function,
rx_split_cbranch. Get the modes right on the comparisons. Distinguish
fp comparisons with CC_Fmode.
From-SVN: r168919
To be replaced by the generic compare_elim pass, but we need to disable
this before fiddling with the arrangement of the arithmetic instructions,
as required by the generic pass.
From-SVN: r168916
2011-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gcc.dg/guality/pr36728-1.c: Replace XFAIL for s390(x) with a
target check.
* gcc.dg/guality/pr36728-2.c: Likewise.
From-SVN: r168908
2011-01-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47313
* tree-inline.c (tree_function_versioning): Move DECL_RESULT
handling before copying the body. Properly deal with
by-reference result in SSA form.
* g++.dg/torture/pr47313.C: New testcase.
From-SVN: r168907
* config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
(struct_value_alias_set): Don't define.
(sparc_option_override): Don't set sparc_sr_alias_set and
struct_value_alias_set.
(save_or_restore_regs): Use gen_frame_mem rather than calling
set_mem_alias_set.
(sparc_struct_value_rtx): Likewise.
From-SVN: r168901
PR target/46655
* xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
if <= USHRT_MAX in 32-bit mode.
Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
Co-Authored-By: Michael Haubenwallner <michael.haubenwallner@salomon.at>
From-SVN: r168897
2011-01-17 Tobias Burnus <burnus@net-b.de>
PR fortran/46817
* quadmath-imp.h: Refer to libquadmath not ot libiberty,
bump copyright year and use /**/ instead of // comments.
* quadmath.h: Ditto.
* quadmath-weak.h: Ditto.
* quadmath_io.c: Ditto.
From-SVN: r168892
gcc/:
* doc/install.texi (Configuration, Specific): Wrap long
lines in examples. Allow line wrapping in long options
and URLs where beneficial for PDF output.
From-SVN: r168889
2011-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/47323
* testsuite/28_regex/08_basic_regex/requirements/constexpr_data.cc:
Only test wregex when _GLIBCXX_USE_WCHAR_T is defined.
From-SVN: r168887
2011-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/47320
* testsuite/18_support/numeric_limits/lowest.cc:
Only test wchar_t when _GLIBCXX_USE_WCHAR_T is defined.
From-SVN: r168873
2011-01-16 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/47321
* testsuite/21_strings/basic_string/requirements/typedefs.cc:
Only test std::wstring when _GLIBCXX_USE_WCHAR_T is defined.
From-SVN: r168871