platform/upstream/linaro-gcc.git
11 years agoFix logging to not use /tmp or the current directory; get
ctice [Tue, 20 Aug 2013 20:43:16 +0000 (20:43 +0000)]
Fix logging to not use /tmp or the current directory; get
the location for writing log files from an environment
variable; use secure getenv whenever possible.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201890 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * MAINTAINERS: Add myself as RTL optimizers reviewer.
steven [Tue, 20 Aug 2013 19:23:24 +0000 (19:23 +0000)]
* MAINTAINERS: Add myself as RTL optimizers reviewer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201889 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-20 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Tue, 20 Aug 2013 19:20:42 +0000 (19:20 +0000)]
2013-08-20  Phil Muldoon  <pmuldoon@redhat.com>

PR libstdc++/53477
http://sourceware.org/bugzilla/show_bug.cgi?id=15195

* python/libstdcxx/v6/printers.py (Printer.__call__): If a value
is a reference, fetch referenced value.
(RxPrinter.invoke): Ditto.
* testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add -O0
flag. Add referenced value tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201888 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRevert my last two changes, r201865 and r201864
dmalcolm [Tue, 20 Aug 2013 15:51:18 +0000 (15:51 +0000)]
Revert my last two changes, r201865 and r201864

2013-08-20  David Malcolm  <dmalcolm@redhat.com>

Revert my last two changes, r201865 and r201864:

Revert r201865:
2013-08-20  David Malcolm  <dmalcolm@redhat.com>

Make opt_pass and gcc::pass_manager be GC-managed, so that pass
instances can own GC refs.

* Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
* context.c (gcc::context::gt_ggc_mx): Traverse passes_.
(gcc::context::gt_pch_nx): Likewise.
(gcc::context::gt_pch_nx):  Likewise.
* ggc.h (gt_ggc_mx <T>): New.
(gt_pch_nx_with_op <T>): New.
(gt_pch_nx <T>): New.
* passes.c (opt_pass::gt_ggc_mx): New.
(opt_pass::gt_pch_nx): New.
(opt_pass::gt_pch_nx_with_op): New.
(pass_manager::gt_ggc_mx): New.
(pass_manager::gt_pch_nx): New.
(pass_manager::gt_pch_nx_with_op): New.
(pass_manager::operator new): Use
ggc_internal_cleared_alloc_stat rather than xcalloc.
* pass_manager.h (class pass_manager): Add GTY((user)) marking.
(pass_manager::gt_ggc_mx): New.
(pass_manager::gt_pch_nx): New.
(pass_manager::gt_pch_nx_with_op): New.
* tree-pass.h (class opt_pass): Add GTY((user)) marking.
(opt_pass::operator new): New.
(opt_pass::gt_ggc_mx): New.
(opt_pass::gt_pch_nx): New.
(opt_pass::gt_pch_nx_with_op): New.

Revert r201864:
2013-08-20  David Malcolm  <dmalcolm@redhat.com>

* Makefile.in (GTFILES): Add context.h.
* context.c (gcc::context::operator new): New.
(gcc::context::gt_ggc_mx): New.
(gcc::context::gt_pch_nx): New.
(gcc::context::gt_pch_nx): New.
* context.h (gcc::context): Add GTY((user)) marking.
(gcc::context::operator new): New.
(gcc::context::gt_ggc_mx): New.
(gcc::context::gt_pch_nx): New.
(gcc::context::gt_pch_nx): New.
(g): Add GTY marking.
(gt_ggc_mx (gcc::context *)): New.
(gt_pch_nx (gcc::context *)): New.
(gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
void *cookie)): New.
* gengtype.c (open_base_files) <ifiles>: Add context.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201887 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * dce.c (fini_dce): Call df_analyze again just in case
law [Tue, 20 Aug 2013 15:14:49 +0000 (15:14 +0000)]
   * dce.c (fini_dce): Call df_analyze again just in case
       delete_unmarked_insns removed anything.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201886 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-20 Janus Weil <janus@gcc.gnu.org>
janus [Tue, 20 Aug 2013 14:16:26 +0000 (14:16 +0000)]
2013-08-20  Janus Weil  <janus@gcc.gnu.org>

PR fortran/53655
* trans-decl.c (generate_local_decl): Check if type has any components.

2013-08-20  Janus Weil  <janus@gcc.gnu.org>

PR fortran/53655
* gfortran.dg/intent_out_8.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201884 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-20 Teresa Johnson <tejohnson@google.com>
tejohnson [Tue, 20 Aug 2013 13:29:53 +0000 (13:29 +0000)]
2013-08-20  Teresa Johnson  <tejohnson@google.com>

PR rtl-optimizations/57451
* final.c (reemit_insn_block_notes): Prevent lexical blocks
from crossing split section boundaries.

* testsuite/g++.dg/tree-prof/pr57451.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201883 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR c++/58119
jason [Tue, 20 Aug 2013 12:58:47 +0000 (12:58 +0000)]
PR c++/58119
* cvt.c (build_expr_type_conversion): Don't complain about a
template that can't match the desired type category.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201880 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
mgretton [Tue, 20 Aug 2013 12:18:36 +0000 (12:18 +0000)]
2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>

* config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
* config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
with MULTLIB_DEFAULTS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201879 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * target.def (narrow_volatile_bitfield): Note that the default
nickc [Tue, 20 Aug 2013 12:17:16 +0000 (12:17 +0000)]
* target.def (narrow_volatile_bitfield): Note that the default
value is false, not !TARGET_STRICT_ALIGN.
* doc/tm.texi: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201878 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 20 Aug 2013 11:53:34 +0000 (11:53 +0000)]
2013-08-20  Paolo Carlini  <paolo.carlini@oracle.com>

* Fix ChangeLog.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201875 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 20 Aug 2013 11:39:15 +0000 (11:39 +0000)]
2013-08-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58190
* g++.dg/pr57878.C: Use __SIZE_TYPE__.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201874 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * error.c (pp_ggc_formatted_text): New.
gdr [Tue, 20 Aug 2013 11:23:30 +0000 (11:23 +0000)]
* error.c (pp_ggc_formatted_text): New.
(type_as_string): Use it in lieu of pp_formatted_text.
(type_as_string_translate): Likewise.
(expr_as_string): Likewise.
(decl_as_string): Likewise.
(decl_as_string_translate): Likewise.
(lang_decl_name): Likewise.
(decl_to_string): Likewise.
(expr_to_string): Likewise.
(fndecl_to_string): Likewise.
(parm_to_string): Likewise.
(type_to_string): Likewise.
(args_to_string): Likewise.
(subst_to_string): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201873 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-20 Tim Shen <timshen91@gmail.com>
timshen [Tue, 20 Aug 2013 10:36:42 +0000 (10:36 +0000)]
2013-08-20  Tim Shen  <timshen91@gmail.com>

* include/bits/regex_constants.h: Add underlying `unsigned int` for
  enum syntax_option_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201872 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago Fix LIB_SPEC for systems without libpthread.
kyukhin [Tue, 20 Aug 2013 08:31:40 +0000 (08:31 +0000)]
Fix LIB_SPEC for systems without libpthread.

* config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
* config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
for Android.
* config/i386/linux-common.h: Likewise.
* config/mips/linux-common.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201871 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree-ssa-ccp.c (get_default_value): Remove redundant condition
law [Tue, 20 Aug 2013 06:25:10 +0000 (06:25 +0000)]
   * tree-ssa-ccp.c (get_default_value): Remove redundant condition
       checks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201870 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoinclude/
amodra [Tue, 20 Aug 2013 05:31:41 +0000 (05:31 +0000)]
include/
* floatformat.h (floatformat_ibm_long_double): Delete.
(floatformat_ibm_long_double_big): Declare.
(floatformat_ibm_long_double_little): Declare.
libiberty/
* floatformat.c (floatformat_ibm_long_double): Rename to..
(floatformat_ibm_long_double_big): ..this.
(floatformat_ibm_long_double_little): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201869 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-19 Benjamin De Kosnik <bkoz@gnu.org>
bkoz [Tue, 20 Aug 2013 03:10:19 +0000 (03:10 +0000)]
2013-08-19  Benjamin De Kosnik  <bkoz@gnu.org>

* MAINTAINERS: Update name, email.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201868 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix for PR c/57490.
bviyer [Tue, 20 Aug 2013 01:10:56 +0000 (01:10 +0000)]
Fix for PR c/57490.

gcc/c/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * c-array-notation.c (fix_conditional_array_notations_1): Added a
+       check for truth values.
+       (expand_array_notation_exprs): Added truth values case.  Removed an
+       unwanted else.  Added for-loop to walk through subtrees in default
+       case.
+

gcc/cp/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * cp-array-notation.c (cp_expand_cond_array_notations): Added a
+       check for truth values.
+       (expand_array_notation_exprs): Added truth values case.  Removed an
+       unwanted else.  Added for-loop to walk through subtrees in default
+       case.
+       * call.c (build_cxx_call): Inherited the type of the array notation for
+       certain built-in array notation functions.
+

gcc/testsuite/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * c-c++-common/cilk-plus/AN/pr57490.c: New test.
+

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201867 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoMake opt_pass and gcc::pass_manager be GC-managed
dmalcolm [Tue, 20 Aug 2013 00:54:49 +0000 (00:54 +0000)]
Make opt_pass and gcc::pass_manager be GC-managed

2013-08-20  David Malcolm  <dmalcolm@redhat.com>

Make opt_pass and gcc::pass_manager be GC-managed, so that pass
instances can own GC refs.

* Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
* context.c (gcc::context::gt_ggc_mx): Traverse passes_.
(gcc::context::gt_pch_nx): Likewise.
(gcc::context::gt_pch_nx):  Likewise.
* ggc.h (gt_ggc_mx <T>): New.
(gt_pch_nx_with_op <T>): New.
(gt_pch_nx <T>): New.
* passes.c (opt_pass::gt_ggc_mx): New.
(opt_pass::gt_pch_nx): New.
(opt_pass::gt_pch_nx_with_op): New.
(pass_manager::gt_ggc_mx): New.
(pass_manager::gt_pch_nx): New.
(pass_manager::gt_pch_nx_with_op): New.
(pass_manager::operator new): Use
ggc_internal_cleared_alloc_stat rather than xcalloc.
* pass_manager.h (class pass_manager): Add GTY((user)) marking.
(pass_manager::gt_ggc_mx): New.
(pass_manager::gt_pch_nx): New.
(pass_manager::gt_pch_nx_with_op): New.
* tree-pass.h (class opt_pass): Add GTY((user)) marking.
(opt_pass::operator new): New.
(opt_pass::gt_ggc_mx): New.
(opt_pass::gt_pch_nx): New.
(opt_pass::gt_pch_nx_with_op): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201865 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoMake gcc::context be GC-managed
dmalcolm [Tue, 20 Aug 2013 00:48:14 +0000 (00:48 +0000)]
Make gcc::context be GC-managed

* Makefile.in (GTFILES): Add context.h.
* context.c (gcc::context::operator new): New.
(gcc::context::gt_ggc_mx): New.
(gcc::context::gt_pch_nx): New.
(gcc::context::gt_pch_nx): New.
* context.h (gcc::context): Add GTY((user)) marking.
(gcc::context::operator new): New.
(gcc::context::gt_ggc_mx): New.
(gcc::context::gt_pch_nx): New.
(gcc::context::gt_pch_nx): New.
(g): Add GTY marking.
(gt_ggc_mx (gcc::context *)): New.
(gt_pch_nx (gcc::context *)): New.
(gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
void *cookie)): New.
* gengtype.c (open_base_files) <ifiles>: Add context.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201864 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Tue, 20 Aug 2013 00:16:58 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201863 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/57865
amodra [Mon, 19 Aug 2013 23:39:05 +0000 (23:39 +0000)]
PR target/57865
* config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
(rs6000_emit_epilogue): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201860 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-19 Dehao Chen (dehao@google.com)
dehao [Mon, 19 Aug 2013 22:14:00 +0000 (22:14 +0000)]
2013-08-19  Dehao Chen (dehao@google.com)

        * value-prof.c (gimple_ic): Fix the bug of adding EH edge.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201859 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-19 Dehao Chen <dehao@google.com>
dehao [Mon, 19 Aug 2013 20:11:09 +0000 (20:11 +0000)]
2013-08-19  Dehao Chen  <dehao@google.com>

* dwarf2.def (DW_AT_GNU_discriminator): New attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201855 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
bergner [Mon, 19 Aug 2013 17:49:33 +0000 (17:49 +0000)]
gcc/
* builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
(BUILT_IN_FABSD64): Likewise.
(BUILT_IN_FABSD128): Likewise.
* builtins.c (expand_builtin): Add support for new DFP ABS builtins.
(fold_builtin_1): Likewise.
* config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping destination
and source operands.
(*abstd2_fpr): Likewise.
(*nabstd2_fpr): Likewise.

gcc/testsuite/
* gcc.target/powerpc/dfp-dd-2.c: New test.
* gcc.target/powerpc/dfp-td-2.c: Likewise.
* gcc.target/powerpc/dfp-td-3.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201849 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/testsuite/
rsandifo [Mon, 19 Aug 2013 17:35:57 +0000 (17:35 +0000)]
gcc/testsuite/
* gcc.target/mips/mulsize-1.c: Check for SLL as well as SUBU.
* gcc.target/mips/mulsize-2.c: Check for ADDU rather than SUBU.
Check for SLL too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201848 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
rsandifo [Mon, 19 Aug 2013 17:29:59 +0000 (17:29 +0000)]
gcc/
* config/mips/mips.c (mips_adjust_insn_length): Add checks for
JUMP_P and INSN_P.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201847 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * doc/invoke.texi (-fcilkplus): Clarify that implementation is
aldyh [Mon, 19 Aug 2013 17:19:38 +0000 (17:19 +0000)]
* doc/invoke.texi (-fcilkplus): Clarify that implementation is
incomplete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201846 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/tree-ssa/vrp87.c [avr-*-*] (dg-additional-options): New.
amylaar [Mon, 19 Aug 2013 17:01:23 +0000 (17:01 +0000)]
    * gcc.dg/tree-ssa/vrp87.c [avr-*-*] (dg-additional-options): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201845 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/52641
amylaar [Mon, 19 Aug 2013 15:16:45 +0000 (15:16 +0000)]
    PR testsuite/52641
        * gcc.dg/tree-ssa/pr31261.c [int16]: Change expected unsigned type.
        * gcc.dg/tree-ssa/ssa-pre-21.c [! size32plus]: Mark as xfail.
        * gcc.dg/tree-ssa/vector-4.c (SItype): New typedef.
        (v4si): Use it.
        * gcc.dg/tree-ssa/ssa-pre-30.c: Test requires int32.
        * gcc.dg/tree-ssa/vrp58.c: Adjust scan expression for int16.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201844 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/tree-ssa/vrp55.c: Use keeps_null_pointer_checks to determine
amylaar [Mon, 19 Aug 2013 15:13:33 +0000 (15:13 +0000)]
    * gcc.dg/tree-ssa/vrp55.c: Use keeps_null_pointer_checks to determine
        correct test response.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201843 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/tree-ssa/ssa-dom-thread-4.c [avr-*-*]: Expect 6 times
amylaar [Mon, 19 Aug 2013 15:11:55 +0000 (15:11 +0000)]
    * gcc.dg/tree-ssa/ssa-dom-thread-4.c [avr-*-*]: Expect 6 times
        "Threaded".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201842 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 19 Aug 2013 14:23:37 +0000 (14:23 +0000)]
2013-08-19  Paolo Carlini  <paolo.carlini@oracle.com>

* parser.c (cp_parser_lambda_introducer, cp_parser_decltype_expr):
Use cp_parser_lookup_name_simple.

2013-08-19  Paolo Carlini  <paolo.carlini@oracle.com>

* name-lookup.h (pop_bindings_and_leave_scope): Declare.
* name-lookup.c (pop_bindings_and_leave_scope): Define.
* parser.c (cp_parser_lambda_declarator_opt,
cp_parser_direct_declarator, cp_parser_cache_defarg): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201839 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
kyukhin [Mon, 19 Aug 2013 12:21:26 +0000 (12:21 +0000)]
* target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
* builtins.c (default_libc_has_function): New.
(gnu_libc_has_function): Ditto.
(no_c99_libc_has_function): Ditto.
(expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
(fold_builtin_sincos): Likewise.
(fold_builtin_cexp): Likewise.
* builtins.def (DEF_C94_BUILTIN): Likewise.
(DEF_C99_BUILTIN): Likewise.
(DEF_C99_C90RES_BUILTIN): Likewise.
(DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
definitions to using this define.
* config/darwin-protos.h (darwin_libc_has_function): New.
* config/darwin.c: (darwin_libc_has_function: Ditto.
* config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
* config/darwin.h: Ditto.
* config/elfos.h: Ditto.
* config/freebsd.h: Ditto.
* config/i386/cygming.h: Ditto.
* config/i386/djgpp.h: Ditto.
* config/i386/i386-interix.h: Ditto.
* config/microblaze/microblaze.h: Ditto.
* config/mmix/mmix.h: Ditto.
* config/gnu-user.h: Ditto.
* config/ia64/hpux.h: Ditto.
* config/pa/pa-hpux.h: Ditto.
* config/pdp11/pdp11.h: Ditto.
* config/picochip/picochip.h: Ditto.
* config/linux.h: Ditto.
* config/netbsd.h: Ditto.
* config/openbsd.h: Ditto.
* config/rs6000/aix43.h: Ditto.
* config/rs6000/aix51.h: Ditto.
* config/rs6000/aix52.h: Ditto.
* config/rs6000/aix53.h: Ditto.
* config/rs6000/aix61.h: Ditto.
* config/rs6000/darwin.h: Ditto.
* config/rs6000/linux.h: Ditto.
* config/rs6000/linux64.h: Ditto.
* config/s390/tpf.h: Ditto.
* config/sol2-10.h: Ditto.
* config/sol2.h: Ditto.
* config/vms/vms.h: Ditto.
* config/vxworks.h: Ditto.
* config/linux-android.c (linux_android_libc_has_function):
New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
* config/linux-protos.h (linux_android_libc_has_function):
New declaration.
* config/i386/i386.c (ix86_libc_has_function): New.
* config/i386/i386-protos.h
(ix86_libc_has_function): New declaration.
* config/i386/i386.md
("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
("isinf<mode>2): Likewise.
* convert.c (convert_to_integer): Using new target hook
TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
TARGET_C99_FUNCTIONS.
* fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
* tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
* coretypes.h (function_class): New enum for different
classes of functions.
* defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
* doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
(TARGET_HAS_SINCOS): Likewise.
(TARGET_LIBC_HAS_FUNCTION): New.
* doc/tm.texi: Regenerated.
* targhooks.h (default_libc_has_function): New declaration.
(no_c99_libc_has_function): Ditto.
(gnu_libc_has_function): Ditto.
* system.h: Add the poisoning of TARGET_C99_FUNCTIONS
and TARGET_HAS_SINCOS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201838 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/avr/progmem-error-1.cpp: Update linenumber of error.
amylaar [Mon, 19 Aug 2013 11:59:39 +0000 (11:59 +0000)]
* gcc.target/avr/progmem-error-1.cpp: Update linenumber of error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201837 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * Makeifle-in (ipa-devirt.o): New.
hubicka [Mon, 19 Aug 2013 10:14:06 +0000 (10:14 +0000)]
* Makeifle-in (ipa-devirt.o): New.
(GTFILES): Add ipa-utils.h and ipa-devirt.c
* cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
(analyze_functions): Look into possible targets of polymorphic call.
* dumpfile.c (dump_files): Add type-inheritance dump.
* dumpfile.h (TDI_inheritance): New.
* ipa-devirt.c: New file.
* ipa-utils.h (odr_type_d): Forward declare.
(odr_type): New type.
(build_type_inheritance_graph): Declare.
(possible_polymorphic_call_targets): Declare and introduce inline
variant when only edge is pased.
(dump_possible_polymorphic_call_targets): Likewise.
* timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
* tree.c (type_in_anonymous_namespace_p): Break out from ...
(types_same_for_odr): ... here.
* tree.h (type_in_anonymous_namespace_p): Declare.

* g++.dg/ipa/type-inheritance-1.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201836 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-19 Janus Weil <janus@gcc.gnu.org>
janus [Mon, 19 Aug 2013 09:03:20 +0000 (09:03 +0000)]
2013-08-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46271
* openmp.c (resolve_omp_clauses): Bugfix for procedure pointers.

2013-08-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46271
* gfortran.dg/gomp/proc_ptr_1.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201835 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Mon, 19 Aug 2013 00:16:48 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201832 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agolibgcc:
iains [Sun, 18 Aug 2013 15:50:17 +0000 (15:50 +0000)]
libgcc:

PR gcov-profile/58127
* libgcov.c (__gcov_indirect_call_callee): Don't make this a
__thread var for emulated TLS.
(__gcov_indirect_call_counters): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201829 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR tree-optimization/58006
jakub [Sun, 18 Aug 2013 15:23:24 +0000 (15:23 +0000)]
PR tree-optimization/58006
* tree-parloops.c (take_address_of): Don't ICE if get_name
returns NULL.
(eliminate_local_variables_stmt): Remove clobber stmts.

* g++.dg/opt/pr58006.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201827 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
ebotcazou [Sun, 18 Aug 2013 14:58:58 +0000 (14:58 +0000)]
* cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
error message is issued for an alias to undefined symbol.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201826 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-18 Tim Shen <timshen91@gmail.com>
timshen [Sun, 18 Aug 2013 13:55:48 +0000 (13:55 +0000)]
2013-08-18  Tim Shen  <timshen91@gmail.com>

* include/bits/regex_automaton.h: _S_opcode_backref.
* include/bits/regex_automaton.tcc: Backref automaton support.
* include/bits/regex_compiler.tcc: Parsing support.
* include/bits/regex_executor.h: Add _M_traits for _DFSExecutor.
* include/bits/regex_executor.tcc: Add _S_opcode_backref support.
* testsuite/28_regex/algorithms/regex_match/ecma/string_backref.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201825 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * cgraph.c (cgraph_create_indirect_edge): Discover
hubicka [Sun, 18 Aug 2013 09:22:42 +0000 (09:22 +0000)]
* cgraph.c (cgraph_create_indirect_edge): Discover
polymorphic calls and record basic info into indirect_info.
* gimple-fold.c (gimple_fold_call): When doing BINFO based
devirtualization, ignore objc function calls.
* ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
call with no parm index info.
* ipa-prop.c (ipa_analyze_call_uses): Likewise.
* tree.c (virtual_method_call_p): New function.
* tree.h (virtual_method_call_p): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201824 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR c++/58083
jason [Sun, 18 Aug 2013 01:06:49 +0000 (01:06 +0000)]
PR c++/58083
* name-lookup.c (push_class_level_binding_1): It's OK to push a
lambda type after the enclosing type is complete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201822 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Sun, 18 Aug 2013 00:16:26 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201821 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * error.c (dump_scope): Add a cxx_pretty_printer parameter.
gdr [Sat, 17 Aug 2013 20:31:02 +0000 (20:31 +0000)]
* error.c (dump_scope): Add a cxx_pretty_printer parameter.
Adjust callers.
(dump_template_argument): Likewise.
(dump_template_argument_list): Likewise.
(dump_template_parameter): Likewise.
(dump_template_bindings): Likewise.
(dump_alias_template_specialization): Likewise.
(dump_type): Likewise.
(dump_typename): Likewise.
(dump_aggr_type): Likewise.
(dump_type_prefix): Likewise.
(dump_type_suffix): Likewise.
(dump_global_iord): Likewise.
(dump_simple_decl): Likewise.
(dump_decl): Likewise.
(dump_template_decl): Likewise.
(dump_function_decl): Likewise.
(dump_parameters): Likewise.
(dump_ref_qualifier): Likewise.
(dump_exception_spec): Likewise.
(dump_function_name): Likewise.
(dump_template_parms): Likewise.
(dump_call_expr_args): Likewise.
(dump_aggr_init_expr_args): Likewise.
(dump_expr_list): Likewise.
(dump_expr_init_vec): Likewise.
(dump_expr): Likewise.
(dump_binary_op): Likewise.
(dump_unary_op): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201818 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/58179
hubicka [Sat, 17 Aug 2013 18:14:18 +0000 (18:14 +0000)]
PR middle-end/58179
* tree.c (obj_type_ref_class): Do not ICE on non-method calls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201817 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agocompiler: Don't generate value reference in range clause if receiver is a sink.
ian [Sat, 17 Aug 2013 18:04:35 +0000 (18:04 +0000)]
compiler: Don't generate value reference in range clause if receiver is a sink.

The panic in test/fixedbugs/bug454.go was caused by the generation of an unnecessary var reference when writing a range value into a sink. If the receiving variable is a sink, there's no need to dereference a possible NULL pointer.

Fixes Issue 24.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201815 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
dje [Sat, 17 Aug 2013 00:43:38 +0000 (00:43 +0000)]
    * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
        attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201812 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Sat, 17 Aug 2013 00:16:32 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201811 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/mips/mips16.S (CE_STARTFN, CE_ENDFN): New macros.
macro [Fri, 16 Aug 2013 22:23:29 +0000 (22:23 +0000)]
* config/mips/mips16.S (CE_STARTFN, CE_ENDFN): New macros.
(RET_FUNCTION): Use them in place of STARTFN and ENDFN.
(CALL_STUB_NO_RET): Likewise.
(CALL_STUB_RET): Likewise.
* config/mips/libgcc-mips16.ver: Remove __mips16_call_stub and
__mips16_ret call/return stub symbols.
* config.host <mips*-*-linux>: For non-R5900 add t-slibgcc-libgcc
to tmake_file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201805 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoSupport "gcc" namespace in gengtype
dmalcolm [Fri, 16 Aug 2013 19:46:12 +0000 (19:46 +0000)]
Support "gcc" namespace in gengtype

gcc/
* gengtype.c (type_for_name): Add special-case support for
locating types within the "gcc::" namespace.
(open_base_files): Emit a "using namespace gcc" directive.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201800 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-14 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Fri, 16 Aug 2013 15:28:13 +0000 (15:28 +0000)]
2013-08-14  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/58160
* config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.

* config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
array instead of each individual operand as a separate argument.
(emit_fusion_gpr_load): Likewise.
(expand_fusion_gpr_load): Add new function declaration.

* config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
signature to have the operands passed as an array, instead of as
separate arguments.  Allow ZERO_EXTEND to be in the memory
address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
depend on the register live/dead flags when peepholes are run.
(expand_fusion_gpr_load): New function to be called from the
peephole2 pass, to change the register that addis sets to be the
target register.
(emit_fusion_gpr_load): Change the calling signature to have the
operands passed as an array, instead of as separate arguments.
Allow ZERO_EXTEND to be in the memory address, and also
SIGN_EXTEND if -mpower8-fusion-sign.

* config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
unspec enumeration.
(power8 fusion peephole/peephole2): Rework the fusion peepholes to
adjust the register addis loads up in the peephole2 pass.  Do not
depend on the register live/dead state when the peephole pass is
done.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201792 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix bad interaction between GTY((user)) and incomplete declarations
dmalcolm [Fri, 16 Aug 2013 14:59:02 +0000 (14:59 +0000)]
Fix bad interaction between GTY((user)) and incomplete declarations

gcc/
* gengtype.c (create_user_defined_type): Ensure that the kind
is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
declaration is seen before the GTY((user)) marking.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201791 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/58105
uros [Fri, 16 Aug 2013 13:22:36 +0000 (13:22 +0000)]
PR target/58105
* config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201790 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
hubicka [Fri, 16 Aug 2013 12:38:04 +0000 (12:38 +0000)]
* gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
arugment expected_type.
(gimple_fold_call): Use it.
* gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
* ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
* ipa-prop.c (ipa_analyze_virtual_call_uses): Use
obj_type_ref_class.
(try_make_edge_direct_virtual_call): Likewise.
* tree.c (obj_type_ref_class): New.
* tree.h (obj_type_ref_class): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201789 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * sched-vis.c (rtl_slim_pp_initialized): Remove.
gdr [Fri, 16 Aug 2013 10:42:49 +0000 (10:42 +0000)]
* sched-vis.c (rtl_slim_pp_initialized): Remove.
(rtl_slim_pp): Likewise.
(init_rtl_slim_pretty_print): Likewise.
(dump_value_slim):  Don't call it.  Use local pretty printer.
(dump_insn_slim): Likewise.
(dump_rtl_slim): Likewise.
(str_pattern_slim): Likewise.
* tree-mudflap.c (mf_varname_tree): Use local pretty printer.
Simplify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201785 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-16 Tim Shen <timshen91@gmail.com>
paolo [Fri, 16 Aug 2013 09:06:31 +0000 (09:06 +0000)]
2013-08-16  Tim Shen  <timshen91@gmail.com>

* include/bits/regex.h (regex_traits<>::transform_primary):
Avoid past-the-end dereferences.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201783 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR tree-optimization/58164
jakub [Fri, 16 Aug 2013 09:05:52 +0000 (09:05 +0000)]
PR tree-optimization/58164
* gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
walk gimple_goto_dest of GIMPLE_GOTO.

* gcc.c-torture/compile/pr58164.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201782 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR tree-optimization/58165
jakub [Fri, 16 Aug 2013 08:57:29 +0000 (08:57 +0000)]
PR tree-optimization/58165
* tree-call-cdce.c (shrink_wrap_one_built_in_call): If
bi_call must be the last stmt in a bb, don't split_block, instead
use fallthru edge from it and give up if there is none.
Release conds vector when returning early.

* g++.dg/opt/pr58165.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201780 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Fri, 16 Aug 2013 00:16:41 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201779 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Thu, 15 Aug 2013 00:16:38 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201758 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-14 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 15 Aug 2013 00:15:12 +0000 (00:15 +0000)]
2013-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/58163
* include/bits/basic_string.h (basic_string<>::operator[]): Fix
_GLIBCXX_DEBUG_PEDASSERT check vs C++11.
* include/ext/vstring.h: Likewise.
* testsuite/21_strings/basic_string/element_access/char/58163.cc:
New.
* testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc:
Likewise.
* testsuite/ext/vstring/element_access/char/58163.cc: Likewise.
* testsuite/ext/vstring/element_access/wchar_t/58163.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201755 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago/cp
paolo [Wed, 14 Aug 2013 21:42:54 +0000 (21:42 +0000)]
/cp
2013-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51912
* cp-tree.h (LOOKUP_NO_NON_INTEGRAL): Add.
* decl.c (case_conversion): Use it.
* call.c (standard_conversion): Likewise.
(implicit_conversion): Adjust.

/testsuite
2013-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51912
* g++.dg/cpp0x/enum28.C: New.
* g++.dg/cpp0x/enum15.C: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201754 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Wed, 14 Aug 2013 21:04:07 +0000 (21:04 +0000)]
2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
Revert:
2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* configure.tgt: Add -msoft-float to XCFLAGS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201753 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRemove unused variable and field
davidxl [Wed, 14 Aug 2013 20:57:52 +0000 (20:57 +0000)]
Remove unused variable and field

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201752 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc:
wschmidt [Wed, 14 Aug 2013 20:38:33 +0000 (20:38 +0000)]
gcc:

2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/57949
* doc/invoke.texi: Add documentation of mcompat-align-parm
option.
* config/rs6000/rs6000.opt: Add mcompat-align-parm option.
* config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
and Linux, correct BLKmode alignment when 128-bit alignment is
required and compatibility flag is not set.
(rs6000_gimplify_va_arg): For AIX and Linux, honor specified
alignment for zero-size arguments when compatibility flag is not
set.

gcc/testsuite:

2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/57949
* gcc.target/powerpc/pr57949-1.c: New.
* gcc.target/powerpc/pr57949-2.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201750 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR tree-optimization/58145
jakub [Wed, 14 Aug 2013 20:34:56 +0000 (20:34 +0000)]
PR tree-optimization/58145
* tree-sra.c (build_ref_for_offset): If prev_base has
TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.

* gcc.dg/pr58145-1.c: New test.
* gcc.dg/pr58145-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201748 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/debug/dwarf2/global-used-types.c: Request dwarf output.
amylaar [Wed, 14 Aug 2013 20:19:12 +0000 (20:19 +0000)]
    * gcc.dg/debug/dwarf2/global-used-types.c: Request dwarf output.
        * gcc.dg/debug/dwarf2/inline2.c: Likewise.
        * gcc.dg/debug/dwarf2/inline3.c: Likewise.
        * gcc.dg/debug/dwarf2/pr37726.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-1.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-2.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-3.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-4.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-5.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-6.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41543.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41695.c: Likewise.
        * gcc.dg/debug/dwarf2/pr43237.c: Likewise.
        * gcc.dg/debug/dwarf2/pr47939-1.c: Likewise.
        * gcc.dg/debug/dwarf2/pr47939-2.c: Likewise.
        * gcc.dg/debug/dwarf2/pr47939-3.c: Likewise.
        * gcc.dg/debug/dwarf2/pr47939-4.c: Likewise.
        * gcc.dg/debug/dwarf2/pr53948.c: Likewise.
        * gcc.dg/debug/dwarf2/struct-loc1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201747 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/tree-ssa/pr42585.c: Add avr-*-* to list of targets to
amylaar [Wed, 14 Aug 2013 18:44:51 +0000 (18:44 +0000)]
* gcc.dg/tree-ssa/pr42585.c: Add avr-*-* to list of targets to
exclude from scan test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201744 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/52641
amylaar [Wed, 14 Aug 2013 18:39:59 +0000 (18:39 +0000)]
    PR testsuite/52641
        * c-c++-common/simulate-thread/bitfields-2.c: Run test only for
        target { ! int16 }.
        * gcc.dg/tree-ssa/pr54245.c: Do slsr scan only for target { ! int16 }.
        * gcc.dg/tree-ssa/slsr-1.c: Adjust multiplicators to scan for for
        target { int16 }.  Restrict existing tests to target { int32 }
        where appropriate.
        * gcc.dg/tree-ssa/slsr-2.c, gcc.dg/tree-ssa/slsr-27.c: Likewise.
        * gcc.dg/tree-ssa/slsr-28.c, gcc.dg/tree-ssa/slsr-29.c: Likewise.
        * gcc.dg/tree-ssa/slsr-3.c, gcc.dg/tree-ssa/ssa-ccp-23.c: Likewise.
        * lib/target-supports.exp (check_effective_target_int32): New proc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201743 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/52641
amylaar [Wed, 14 Aug 2013 18:36:52 +0000 (18:36 +0000)]
    PR testsuite/52641
        * c-c++-common/scal-to-vec1.c: Add !int16 and large_double conditions
        to tests that assume int/double are larger than short/float.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201742 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/strlenopt-10.c [avr-*-*]: Reduce number of expected
amylaar [Wed, 14 Aug 2013 18:32:57 +0000 (18:32 +0000)]
* gcc.dg/strlenopt-10.c [avr-*-*]: Reduce number of expected
memcpy by one.
* gcc.dg/strlenopt-11.c [avr-*-*]: Likewise.
Expect l to be optimized away.
* gcc.dg/strlenopt-13.c [avr-*-*]: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201741 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/pr46647.c: xfail for avr-*-*.
amylaar [Wed, 14 Aug 2013 18:28:30 +0000 (18:28 +0000)]
    * gcc.dg/pr46647.c: xfail for avr-*-*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201740 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/pr44214-1.c (v2df): Define size using sizeof (double).
amylaar [Wed, 14 Aug 2013 18:24:06 +0000 (18:24 +0000)]
* gcc.dg/pr44214-1.c (v2df): Define size using sizeof (double).
* gcc.dg/pr44214-3.c (v2df): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201739 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/c99-stdint-1.c [avr-*-*]: Update line number for dg-bogus.
amylaar [Wed, 14 Aug 2013 18:21:25 +0000 (18:21 +0000)]
    * gcc.dg/c99-stdint-1.c [avr-*-*]: Update line number for dg-bogus.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201738 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/c99-stdint-1.c [avr-*-*]: Update line number for dg-bogus.
amylaar [Wed, 14 Aug 2013 18:17:28 +0000 (18:17 +0000)]
    * gcc.dg/c99-stdint-1.c [avr-*-*]: Update line number for dg-bogus.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201737 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR testsuite/52641
amylaar [Wed, 14 Aug 2013 18:13:38 +0000 (18:13 +0000)]
    PR testsuite/52641
        * gcc.c-torture/execute/pr56799.x: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201736 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix unitialized var
davidxl [Wed, 14 Aug 2013 18:12:20 +0000 (18:12 +0000)]
Fix unitialized var

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201735 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/debug/dwarf2/dwarf2.exp: Replace -gdwarf-2 with -gdwarf.
amylaar [Wed, 14 Aug 2013 18:08:22 +0000 (18:08 +0000)]
    * gcc.dg/debug/dwarf2/dwarf2.exp: Replace -gdwarf-2 with -gdwarf.
        * gcc.dg/debug/dwarf2/dwarf-die7.c: Likewise.
        * gcc.dg/debug/dwarf2/static1.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-dfp.c: Likewise.
        * gcc.dg/debug/dwarf2/fesd-any.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-uninit.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-die1.c: Likewise.
        * gcc.dg/debug/dwarf2/var1.c: Likewise.
        * gcc.dg/debug/dwarf2/pr29609-2.c: Likewise.
        * gcc.dg/debug/dwarf2/aranges-fnsec-1.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-die3.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-merge.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-char1.c: Likewise.
        * gcc.dg/debug/dwarf2/discriminator.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-char2.c: Likewise.
        * gcc.dg/debug/dwarf2/fesd-baseonly.c: Likewise.
        * gcc.dg/debug/dwarf2/pr36690-3.c: Likewise.
        * gcc.dg/debug/dwarf2/const-2.c: Likewise.
        * gcc.dg/debug/dwarf2/ipa-cp1.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-char3.c: Likewise.
        * gcc.dg/debug/dwarf2/var2.c: Likewise.
        * gcc.dg/debug/dwarf2/pr36690-2.c: Likewise.
        * gcc.dg/debug/dwarf2/pr31230.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-float.c: Likewise.
        * gcc.dg/debug/dwarf2/short-circuit.c: Likewise.
        * gcc.dg/debug/dwarf2/pr36690-1.c: Likewise.
        * gcc.dg/debug/dwarf2/fesd-reduced.c: Likewise.
        * gcc.dg/debug/dwarf2/pr37616.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-die2.c: Likewise.
        * gcc.dg/debug/dwarf2/inline1.c: Likewise.
        * gcc.dg/debug/dwarf2/fesd-sys.c: Likewise.
        * gcc.dg/debug/dwarf2/pr29609-1.c: Likewise.
        * gcc.dg/debug/dwarf2/asm-line1.c: Likewise.
        * gcc.dg/debug/dwarf2/c99-typedef1.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf2-macro.c: Likewise.
        * gcc.dg/debug/dwarf2/fesd-none.c: Likewise.
        * gcc.dg/debug/dwarf2/pr51410.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-file1.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-die6.c: Likewise.
        * gcc.dg/debug/dwarf2/const-2b.c: Likewise.
        * gcc.dg/debug/dwarf2/dwarf-die5.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201734 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoImplement -mno-default, option documentation and code refactoring
davidxl [Wed, 14 Aug 2013 17:41:02 +0000 (17:41 +0000)]
Implement -mno-default, option documentation and code refactoring

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201732 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/arm/pr19599.c: Skip for -mthumb.
janis [Wed, 14 Aug 2013 16:53:27 +0000 (16:53 +0000)]
* gcc.target/arm/pr19599.c: Skip for -mthumb.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201731 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/arm/atomic-comp-swap-release-acquire.c: Move dg-do
janis [Wed, 14 Aug 2013 16:52:40 +0000 (16:52 +0000)]
* gcc.target/arm/atomic-comp-swap-release-acquire.c: Move dg-do
to be the first test directive.
* gcc.target/arm/atomic-op-acq_rel.c: Likewise.
* gcc.target/arm/atomic-op-acquire.c: Likewise.
* gcc.target/arm/atomic-op-char.c: Likewise.
* gcc.target/arm/atomic-op-consume.c: Likewise.
* gcc.target/arm/atomic-op-int.c: Likewise.
* gcc.target/arm/atomic-op-relaxed.c: Likewise.
* gcc.target/arm/atomic-op-release.c: Likewise.
* gcc.target/arm/atomic-op-seq_cst.c: Likewise.
* gcc.target/arm/atomic-op-short.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201730 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * src/c++98/compatibility.cc (_ZTIe): Use
uros [Wed, 14 Aug 2013 14:59:46 +0000 (14:59 +0000)]
* src/c++98/compatibility.cc (_ZTIe): Use
reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
(_ZTIPe): Ditto.
(ZTIPKe): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201729 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoPR rtl-optimization/57662
amonakov [Wed, 14 Aug 2013 14:31:26 +0000 (14:31 +0000)]
PR rtl-optimization/57662

gcc/
* sel-sched.c (code_motion_process_successors): When the current insn
is removed after the recursive traversal, break from the loop.
Add comments and debug printouts.

testsuite/

* gcc.dg/pr57662.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201728 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * src/c++98/compatibility.cc (_ZTIe): Use (const cast *)
uros [Wed, 14 Aug 2013 14:22:56 +0000 (14:22 +0000)]
* src/c++98/compatibility.cc (_ZTIe): Use (const cast *)
to avoid -Wcast-qual warnings.
(_ZTIPe): Ditto.
(ZTIPKe): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201727 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * src/c++98/compatibility.cc (_ZTIe): Use const_cast to avoid warning.
uros [Wed, 14 Aug 2013 11:27:56 +0000 (11:27 +0000)]
* src/c++98/compatibility.cc (_ZTIe): Use const_cast to avoid warning.
(_ZTIPe): Ditto.
(ZTIPKe): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201723 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/58067
jakub [Wed, 14 Aug 2013 09:09:58 +0000 (09:09 +0000)]
PR target/58067
* config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
there also UNSPEC_PLTOFF.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201720 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago* ipa-inline-analysis.c (add_clause): Avoid shifting integer
mpolacek [Wed, 14 Aug 2013 04:44:37 +0000 (04:44 +0000)]
* ipa-inline-analysis.c (add_clause): Avoid shifting integer
NUM_CONDITIONS bit positions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201719 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Wed, 14 Aug 2013 00:16:49 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201717 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
ccoutant [Tue, 13 Aug 2013 23:39:54 +0000 (23:39 +0000)]
gcc/
* dwarf2out.c (CHECKSUM_BLOCK): New macro.
(attr_checksum): Hash vector contents instead of pointer.
(attr_checksum_ordered): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201712 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/mips/nan-legacy.c: Accept 4294967295 as an
macro [Tue, 13 Aug 2013 21:39:26 +0000 (21:39 +0000)]
* gcc.target/mips/nan-legacy.c: Accept 4294967295 as an
alternative to -1.
* gcc.target/mips/nans-legacy.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201711 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/mips/fabs-2008.c: Correct scan-assembler pattern
macro [Tue, 13 Aug 2013 21:36:47 +0000 (21:36 +0000)]
* gcc.target/mips/fabs-2008.c: Correct scan-assembler pattern
escapes.
* gcc.target/mips/fabs-legacy.c: Likewise.
* gcc.target/mips/fabsf-2008.c: Likewise.
* gcc.target/mips/fabsf-legacy.c: Likewise.
* gcc.target/mips/fneg-2008.c: Likewise.
* gcc.target/mips/fneg-legacy.c: Likewise.
* gcc.target/mips/fnegf-2008.c: Likewise.
* gcc.target/mips/fnegf-legacy.c: Likewise.
* gcc.target/mips/nan-2008.c: Likewise.
* gcc.target/mips/nan-legacy.c: Likewise.
* gcc.target/mips/nanf-2008.c: Likewise.
* gcc.target/mips/nanf-legacy.c: Likewise.
* gcc.target/mips/nans-2008.c: Likewise.
* gcc.target/mips/nans-legacy.c: Likewise.
* gcc.target/mips/nansf-2008.c: Likewise.
* gcc.target/mips/nansf-legacy.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201710 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
uros [Tue, 13 Aug 2013 20:45:27 +0000 (20:45 +0000)]
* config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
when Pmode != word_mode.  Add length_address attribute.
(sse3_monitor_<mode>): Merge from sse3_monitor and
sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
Pmode != word_mode.  Update insn length attribute.
* config/i386/i386.c (ix86_option_override_internal): Update
ix86_gen_monitor selection for merged sse3_monitor insn.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201708 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
ebotcazou [Tue, 13 Aug 2013 19:58:24 +0000 (19:58 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
sets of derived types in ASIS mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201705 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true.
ebotcazou [Tue, 13 Aug 2013 19:53:37 +0000 (19:53 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true.
(is_cplusplus_method): Likewise, and False with false.
(components_need_strict_alignment): Likewise.
* gcc-interface/misc.c (gnat_init_gcc_fp): Likewise.
* gcc-interface/trans.c (Loop_Statement_to_gnu): Likewise.
(Handled_Sequence_Of_Statements_to_gnu): Likewise.
(add_cleanup): Likewise.
(Sloc_to_locus1): Likewise.
(Sloc_to_locus): Likewise.
(set_expr_location_from_node): Likewise.
* gcc-interface/utils.c (potential_alignment_gap): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201704 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc-interface/trans.c (set_end_locus_from_node): Clear column info
ebotcazou [Tue, 13 Aug 2013 19:49:21 +0000 (19:49 +0000)]
* gcc-interface/trans.c (set_end_locus_from_node): Clear column info
for the end_locus of a block if it does not come from an End_Label.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201703 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If
ebotcazou [Tue, 13 Aug 2013 19:43:47 +0000 (19:43 +0000)]
* gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If
there is no End_Label, attach cleanup actions to the sloc of the HSS
node instead.
(Exception_Handler_to_gnu_zcx): Associate cleanup actions with the sloc
of the handler itself.
(add_cleanup): Clear column information in sloc of cleanup actions.
(Sloc_to_locus1): New static function.
(Sloc_to_locus): Call it.
(set_expr_location_from_node1): New static function.
(set_expr_location_from_node): Call it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201702 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
jules [Tue, 13 Aug 2013 17:33:09 +0000 (17:33 +0000)]
* config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
perform invalid legitimization on greater-than-word-size modes for
TARGET_E500_DOUBLE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201701 138bc75d-0d04-0410-961f-82ee72b054a4