1. 09 Jan, 2014 20 commits
    • Put a breakpoint on __sanitizer::Report · d1c0e4ac
      	* gdbasan.in: Put a breakpoint on __sanitizer::Report.
      
      From-SVN: r206481
      H.J. Lu committed
    • re PR libstdc++/59738 (r206444 caused FAIL: 23_containers/vector/52591.cc) · f0bc4aea
      	PR libstdc++/59738
      	* include/bits/stl_vector.h (vector<>::_M_move_assign): Restore
      	support for non-Movable types.
      
      From-SVN: r206480
      Jonathan Wakely committed
    • Rotate libstdc++-v3/ChangeLog · b248fef8
      From-SVN: r206479
      Jonathan Wakely committed
    • re PR target/58115 (testcase gcc.target/i386/intrinsics_4.c failure) · e83b8e2e
      	PR target/58115
      	* tree-core.h (struct target_globals): New forward declaration.
      	(struct tree_target_option): Add globals field.
      	* tree.h (TREE_TARGET_GLOBALS): Define.
      	(prepare_target_option_nodes_for_pch): New prototype.
      	* target-globals.h (struct target_globals): Define even if
      	!SWITCHABLE_TARGET.
      	* tree.c (prepare_target_option_node_for_pch,
      	prepare_target_option_nodes_for_pch): New functions.
      	* config/i386/i386.h (SWITCHABLE_TARGET): Define.
      	* config/i386/i386.c: Include target-globals.h.
      	(ix86_set_current_function): Instead of doing target_reinit
      	unconditionally, use save_target_globals_default_opts and
      	restore_target_globals.
      c-family/
      	* c-pch.c (c_common_write_pch): Call
      	prepare_target_option_nodes_for_pch.
      
      From-SVN: r206478
      Jakub Jelinek committed
    • * sanitizer_common/sanitizer_symbolizer_libbacktrace.h · b5f58ba3
      	(LibbacktraceSymbolizer::Demangle): New declaration.
      	* sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
      	(POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
      	method if possible.
      	* sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
      	"demangle.h" if SANITIZE_CP_DEMANGLE is defined.
      	(struct CplusV3DemangleData): New type.
      	(CplusV3DemangleCallback, CplusV3Demangle): New functions.
      	(SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
      	SymbolizeDataCallback): Use CplusV3Demangle.
      	* sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
      	-DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
      	* libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
      	cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
      	cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
      	cplus_demangle_init_info, cplus_demangle_mangled_name,
      	cplus_demangle_operators, cplus_demangle_print,
      	cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
      	cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
      	is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
      	Define.
      	(__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
      	(memcmp, strncmp): Redefine.
      	* libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
      	../../libiberty/cp-demangle.c.
      	* libbacktrace/bridge.cc (__asan_internal_memcmp,
      	__asan_internal_strncmp): New functions.
      	* sanitizer_common/Makefile.in: Regenerated.
      	* libbacktrace/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* configure.ac: Regenerated.
      	* config.h.in: Regenerated.
      
      From-SVN: r206477
      Jakub Jelinek committed
    • Makefile.am (AM_CPPFLAGS): Add -isystem $(top_srcdir)/include/system. · 2613419a
      	* sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
      	-isystem $(top_srcdir)/include/system.
      	* sanitizer_common/Makefile.in: Regenerated.
      	* include/system/linux/aio_abi.h: New header.
      	* include/system/linux/mroute.h: New header.
      	* include/system/linux/mroute6.h: New header.
      	* include/system/linux/perf_event.h: New header.
      	* include/system/linux/types.h: New header.
      
      From-SVN: r206476
      Jakub Jelinek committed
    • re PR sanitizer/59136 (llvm-symbolizer shouldn't be started always) · c915a581
      	PR sanitizer/59136
      libsanitizer/
      	* sanitizer_common/Makefile.am (AM_CXXFLAGS): If
      	LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
      	and -I/-include flags.
      	* lsan/Makefile.am (liblsan_la_LIBADD): Add
      	libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
      	* tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
      	* ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
      	* asan/Makefile.am (libasan_la_LIBADD): Likewise.
      	* Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
      	libbacktrace.
      	* README.gcc: Document that also lsan and ubsan are
      	maintained in compiler-rt upstream.
      	* libbacktrace/Makefile.am: New file.
      	* libbacktrace/backtrace-rename.h: New file.
      	* libbacktrace/backtrace-supported.h.in: New file.
      	* libbacktrace/bridge.cc: New file.
      	* configure.ac: Add tests needed for libbacktrace build
      	within libsanitizer.
      	* sanitizer_common/Makefile.in: Regenerated.
      	* lsan/Makefile.in: Regenerated.
      	* tsan/Makefile.in: Regenerated.
      	* ubsan/Makefile.in: Regenerated.
      	* libbacktrace/Makefile.in: Generated.
      	* config.h.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      	* interception/Makefile.in: Regenerated.
      	* asan/Makefile.in: Regenerated.
      	* aclocal.m4: Regenerated.
      testsuite/
      	* c-c++-common/asan/strip-path-prefix-1.c: Allow also the
      	filename:line instead of (modulename+offset) form with stripped
      	initial / from the filename.
      
      From-SVN: r206475
      Jakub Jelinek committed
    • go-test.exp (go-gc-tests): Skip nilptr tests that test the other Go compiler. · 2fbec1f2
      	* go.test/go-test.exp (go-gc-tests): Skip nilptr tests that test
      	the other Go compiler.
      
      From-SVN: r206474
      Ian Lance Taylor committed
    • re PR c++/59730 (ICE: in type_dependent_expression_p, at cp/pt.c:19969) · 554b6ea7
      2014-01-09  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/59730
      	* g++.dg/cpp0x/variadic145.C: New.
      
      From-SVN: r206473
      Paolo Carlini committed
    • go-test.exp (go-gc-tests): Don't run peano.go on systems which don't support -fsplit-stack. · 4e520eb4
      	* go.test/go-test.exp (go-gc-tests): Don't run peano.go on systems
      	which don't support -fsplit-stack.  Skip rotate[0123].go tests.
      
      From-SVN: r206470
      Uros Bizjak committed
    • Fix for PR bootstrap/59094 +2014-01-09 Balaji V. · c7b0a171
      Fix for PR bootstrap/59094
      +2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       PR bootstrap/59094
      +       * Makefile.am (cilkincludedir): Fixed a bug to store version-specific
      +       runtime libraries in the correct place.
      +       * Makefile.in: Regenerate.
      +
      
      From-SVN: r206469
      Balaji V. Iyer committed
    • Fix for PR testsuite/59524 2014-01-09 Balaji V. · bfd3806a
      Fix for PR testsuite/59524
      2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      
      +       PR testsuite/59524
      +       * gcc.dg/cilk-plus/cilk-plus.exp: Make sure the cilk keywords tests
      +       are run only if the Cilk library is available/enabled.
      +       * g++.dg/cilk-plus/cilk-plus.exp: Likewise.
      +       * lib/target-supports.exp (check_libcilkrts_available): New 
      function.
      +
      
      From-SVN: r206468
      Balaji V. Iyer committed
    • re PR c++/59631 (ICE using _Cilk_spawn without -fcilkplus) · 9a74f20c
      Fix for PR c++/59631.
      +++ gcc/cp/ChangeLog
      +2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       PR c++/59631
      +       * parser.c (cp_parser_postfix_expression): Added a new if-statement
      +       and replaced an existing if-statement with else-if statement.
      +       Changed an existing error message wording to match the one from the C
      +       parser.
      +
      
      +++ gcc/testsuite/ChangeLog 
      +2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       PR c++/59631
      +       * gcc.dg/cilk-plus/cilk-plus.exp: Removed "-fcilkplus" from flags list.
      +       * g++.dg/cilk-plus/cilk-plus.exp: Likewise.
      +       * c-c++-common/cilk-plus/CK/spawnee_inline.c: Replaced second dg-option
      +       with dg-additional-options.
      +       * c-c++-common/cilk-plus/CK/varargs_test.c: Likewise.
      +       * c-c++-common/cilk-plus/CK/steal_check.c: Likewise.
      +       * c-c++-common/cilk-plus/CK/spawner_inline.c: Likewise.
      +       * c-c++-common/cilk-plus/CK/spawning_arg.c: Likewise.
      +       * c-c++-common/cilk-plus/CK/invalid_spawns.c: Added a dg-options tag.
      +       * c-c++-common/cilk-plus/CK/pr59631.c: New testcase.
      +
      
      gcc/c/ChangeLog
      +2014-01-09  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       PR c++/59631
      +       * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
      +       statements with if-elseif statements.
      +
      
      From-SVN: r206463
      Balaji V. Iyer committed
    • lto.c (gimple_canonical_types_compatible_p): Fix comment. · 63124c48
      2014-01-09  Richard Biener  <rguenther@suse.de>
      
      	* lto.c (gimple_canonical_types_compatible_p): Fix comment.
      
      From-SVN: r206462
      Richard Biener committed
    • re PR fortran/45586 (ICE non-trivial conversion at assignment) · d05b9920
      2014-01-09  Richard Biener  <rguenther@suse.de>
      
      	PR lto/45586
      	* lto.c (hash_canonical_type): Do not hash TREE_ADDRESSABLE,
      	TYPE_ALIGN, TYPE_RESTRICT or TYPE_REF_CAN_ALIAS_ALL.
      	(gimple_canonical_types_compatible_p): Do not compare them either.
      
      From-SVN: r206461
      Richard Biener committed
    • re PR tree-optimization/59715 (wrong code at -Os and above on x86_64-linux-gnu) · 2aaed0f3
      2014-01-09  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/59715
      	* tree-cfg.h (split_critical_edges): Declare.
      	* tree-cfg.c (split_critical_edges): Export.
      	* tree-ssa-sink.c (execute_sink_code): Split critical edges.
      
      	* gcc.dg/torture/pr59715.c: New testcase.
      
      From-SVN: r206460
      Richard Biener committed
    • cfgexpand.c (expand_stack_vars): Optionally disable asan stack protection. · b5ebc991
      2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
      
      	* cfgexpand.c (expand_stack_vars): Optionally disable 
      	asan stack protection.
      	(expand_used_vars): Likewise.
      	(partition_stack_vars): Likewise.
      	* asan.c (asan_emit_stack_protection): Optionally disable 
      	after return stack usage.
      	(instrument_derefs): Optionally disable memory 
      	access instrumentation.
      	(instrument_builtin_call): Likewise.
      	(instrument_strlen_call): Likewise.
      	(asan_protect_global): Optionally disable 
      	global variables protection.
      	* doc/invoke.texi: Added doc for new options.
      	* params.def: Added new options.
      	* params.h: Likewise.
      
      2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
      
      	* c-c++-common/asan/no-asan-globals.c: New test.
      	* c-c++-common/asan/no-instrument-reads.c: Likewise.
      	* c-c++-common/asan/no-instrument-writes.c: Likewise.
      	* c-c++-common/asan/use-after-return-1.c: Likewise.
      	* c-c++-common/asan/no-use-after-return.c: Likewise.
      
      From-SVN: r206458
      Max Ostapenko committed
    • re PR rtl-optimization/59724 (ICE : in rtl_verify_bb_layout, at cfgrtl.c) · b59e0455
      	PR rtl-optimization/59724
      	* ifcvt.c (cond_exec_process_if_block): Don't call
      	flow_find_head_matching_sequence with 0 longest_match.
      	* cfgcleanup.c (flow_find_head_matching_sequence): Count even
      	non-active insns if !stop_after.
      	(try_head_merge_bb): Revert 2014-01-07 changes.
      
      From-SVN: r206456
      Jakub Jelinek committed
    • ree.c (get_sub_rtx): New function, extracted from... · 650c4c85
              * ree.c (get_sub_rtx): New function, extracted from...
              (merge_def_and_ext): Here.
              (combine_reaching_defs): Use get_sub_rtx.
      
      From-SVN: r206454
      Jeff Law committed
    • Daily bump. · cfb28d29
      From-SVN: r206452
      GCC Administrator committed
  2. 08 Jan, 2014 20 commits
    • re PR middle-end/59471 (ICE using vector extensions (non-top-level… · 03694c43
      re PR middle-end/59471 (ICE using vector extensions (non-top-level BIT_FIELD_REF, IMAGPART_EXPR or REALPART_EXPR))
      
      	PR middle-end/59471
      	* gcc.dg/pr59471.c (foo): Avoid vector type arguments or return
      	type, use pointers to vector type instead.
      
      From-SVN: r206448
      Jakub Jelinek committed
    • umips-branch-3.c: New test. · 9f9d82aa
      2014-01-08  Catherine Moore  <clm@codesourcery.com>
      
      	gcc/testsuite/
      	* gcc.target/mips/umips-branch-3.c: New test.
      	* gcc.target/mips/umips-branch-4.c: New test.
      
      	gcc/
      	* config/mips/mips.md (simple_return): Attempt to use JRC for microMIPS.
      	* config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
      
      From-SVN: r206447
      Catherine Moore committed
    • reassoc-32.c, [...]: Extend -mbranch-cost handling to MIPS. · 3e17f429
      gcc/testsuite/
      	* gcc.dg/tree-ssa/reassoc-32.c, gcc.dg/tree-ssa/reassoc-33.c,
      	gcc.dg/tree-ssa/reassoc-34.c, gcc.dg/tree-ssa/reassoc-35.c,
      	gcc.dg/tree-ssa/reassoc-36.c: Extend -mbranch-cost handling to MIPS.
      	* gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c,
      	gcc.dg/tree-ssa/ssa-ifcombine-ccmp-4.c,
      	gcc.dg/tree-ssa/ssa-ifcombine-ccmp-5.c,
      	gcc.dg/tree-ssa/ssa-ifcombine-ccmp-6.c,
      	gcc.dg/tree-ssa/vrp87.c, gcc.dg/tree-ssa/forwprop-28.c: Skip for MIPS.
      
      From-SVN: r206446
      Richard Sandiford committed
    • re PR rtl-optimization/59137 (Miscompilation at -O1 on mips/mipsel) · df6c8808
      gcc/
      	PR rtl-optimization/59137
      	* reorg.c (steal_delay_list_from_target): Call update_block for
      	elided insns.
      	(steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
      
      gcc/testsuite/
      	PR rtl-optimization/59137
      	* gcc.target/mips/pr59137.c: New test.
      
      From-SVN: r206445
      Richard Sandiford committed
    • stl_vector.h (std::vector<>::_M_move_assign): Pass *this allocator instance when… · ace295af
      stl_vector.h (std::vector<>::_M_move_assign): Pass *this allocator instance when building temporary vector instance so that...
      
      2014-01-08  François Dumont  <fdumont@gcc.gnu.org>
      
      	* include/bits/stl_vector.h (std::vector<>::_M_move_assign): Pass
      	*this allocator instance when building temporary vector instance
      	so that *this allocator does not get moved.
      	* include/debug/safe_base.h
      	(_Safe_sequence_base(_Safe_sequence_base&&)): New.
      	* include/debug/vector (__gnu_debug::vector<>(vector&&)): Use new
      	move constructor from _Safe_sequence_base.
      	(__gnu_debug::vector<>(vector&&, const allocator_type&)): Swap
      	safe iterators if the instance is moved.
      	(__gnu_debug::vector<>::operator=(vector&&)): Likewise.
      	* testsuite/23_containers/vector/allocator/move.cc (test01): Add
      	check on a vector iterator.
      	* testsuite/23_containers/vector/allocator/move_assign.cc
      	(test02): Likewise.
      	(test03): New, test with a non-propagating allocator.
      	* testsuite/23_containers/vector/debug/move_assign_neg.cc: New.
      
      From-SVN: r206444
      François Dumont committed
    • rs6000-c.c (altivec_overloaded_builtins): Remove two duplicate entries. · 6170ceff
      2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
      	two duplicate entries.
      
      From-SVN: r206443
      Bill Schmidt committed
    • asm-1.c (dg-options): Remove -m32. · 61072b61
      	* gcc.target/i386/asm-1.c (dg-options): Remove -m32.
      	* gcc.target/i386/incoming-5.c (dg-options): Ditto.
      	* gcc.target/i386/pr55433.c (dg-options): Ditto.
      	* gcc.target/i386/pr57848.c (dg-options): Ditto.
      	* gcc.target/i386/pr59099.c (dg-options): Ditto.
      	Require fpic effective target.
      	* gcc.target/i386/pr56246.c (dg-do): Compile for fpic target only.
      
      From-SVN: r206441
      Uros Bizjak committed
    • revert: mips.c (mips_truncated_op_cost): New function. · 3f140f32
      gcc/
      	Revert:
      	2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
      
      	* config/mips/mips.c (mips_truncated_op_cost): New function.
      	(mips_rtx_costs): Adjust test for BADDU.
      	* config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
      
      	2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
      
      	* config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
      	(*baddu_si): ...this new pattern.
      
      From-SVN: r206440
      Richard Sandiford committed
    • re PR c++/59614 (Explostion in compile time of heavily templated code) · f585f02f
      	PR c++/59614
      	* class.c (abi_tag_data): Add tags field.
      	(check_abi_tags): Initialize it.
      	(find_abi_tags_r): Support collecting missing tags.
      	(mark_type_abi_tags): Don't look at template args.
      	(inherit_targ_abi_tags): New.
      	(check_bases_and_members): Use it.
      	* cp-tree.h (ABI_TAG_IMPLICIT): New.
      	* mangle.c (write_abi_tags): Check it.
      
      From-SVN: r206439
      Jason Merrill committed
    • re PR ipa/59722 (Bootstrap comparison failure on i686-linux) · c6de6665
      	PR ipa/59722
      	* ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
      
      	* gcc.dg/pr59722.c: New test.
      
      From-SVN: r206438
      Jakub Jelinek committed
    • re PR middle-end/57748 (ICE when expanding assignment to unaligned zero-sized array) · 4c437f02
      2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR middle-end/57748
              * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
              inner_reference_p.
              (expand_expr, expand_normal): Adjust.
              * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
              inner_reference_p. Use inner_reference_p to expand inner references.
              (store_expr): Adjust.
              * cfgexpand.c (expand_call_stmt): Adjust.
      
      testsuite:
      2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR middle-end/57748
              * gcc.dg/torture/pr57748-3.c: New test.
              * gcc.dg/torture/pr57748-4.c: New test.
      
      From-SVN: r206437
      Bernd Edlinger committed
    • gcov-io.c (gcov_var): Move from gcov-io.h. · 40d6b753
      2014-01-08  Rong Xu  <xur@google.com> 
      
      	* gcc/gcov-io.c (gcov_var): Move from gcov-io.h.
      	(gcov_position): Ditto.
      	(gcov_is_error): Ditto.
      	(gcov_rewrite): Ditto.
      	* gcc/gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
      	only part to libgcc/libgcov.h.
      	* libgcc/libgcov-driver.c: Use libgcov.h.
      	(buffer_fn_data): Use xmalloc instead of malloc.
      	(gcov_exit_merge_gcda): Ditto.
      	* libgcc/libgcov-driver-system.c (allocate_filename_struct): Ditto.
      	* libgcc/libgcov.h: New common header files for libgcov-*.h.
      	* libgcc/libgcov-interface.c: Use libgcov.h
      	* libgcc/libgcov-merge.c: Ditto.
      	* libgcc/libgcov-profiler.c: Ditto.
      	* libgcc/Makefile.in: Add dependence to libgcov.h
      
      From-SVN: r206435
      Rong Xu committed
    • re PR middle-end/59669 (ICE: SIGSEGV with #pragma omp declare simd linear) · ab04b46e
      	PR middle-end/59669
      	* omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
      testsuite/
      	* gcc.dg/gomp/pr59669-1.c: New test.
      	* gcc.dg/gomp/pr59669-2.c: New test.
      
      From-SVN: r206431
      Marek Polacek committed
    • re PR ipa/59610 (ICE in parm_preserved_before_stmt_p) · 2a537fa7
      2014-01-08  Martin Jambor  <mjambor@suse.cz>
      
      	PR ipa/59610
      testsuite/
      	* gcc.dg/ipa/pr59610.c: New test.
      
      From-SVN: r206430
      Martin Jambor committed
    • re PR fortran/58182 (ICE with global binding name used as a FUNCTION) · 76d3d479
      2014-01-08  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/58182
      	* resolve.c (gfc_verify_binding_labels): Modify order of checks.
      
      
      2014-01-08  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/58182
      	* gfortran.dg/binding_label_tests_26a.f90: New.
      	* gfortran.dg/binding_label_tests_26b.f90: New.
      
      From-SVN: r206429
      Janus Weil committed
    • re PR sanitizer/59667 (ubsan: ICE ubsan_type_descriptor) · 06636b32
      	PR sanitizer/59667
      	* ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
      testsuite/
      	* c-c++-common/ubsan/pr59667.c: New test.
      
      From-SVN: r206423
      Marek Polacek committed
    • re PR rtl-optimization/59649 (BImode miscompiled) · c15677b6
      	PR rtl-optimization/59649
      	* stor-layout.c (get_mode_bounds): For BImode return
      	0 and STORE_FLAG_VALUE.
      
      From-SVN: r206422
      Jakub Jelinek committed
    • re PR middle-end/59630 (ICE converting the return type of a builtin function) · 5c944c6c
      2014-01-08  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/59630
      	* gimple.h (is_gimple_builtin_call): Remove.
      	(gimple_builtin_call_types_compatible_p): New.
      	(gimple_call_builtin_p): New overload.
      	* gimple.c (is_gimple_builtin_call): Remove.
      	(validate_call): Rename to ...
      	(gimple_builtin_call_types_compatible_p): ... this and export.  Also
      	check return types.
      	(validate_type): New static function.
      	(gimple_call_builtin_p): New overload and adjust.
      	* gimple-fold.c (gimple_fold_builtin): Fold the return value.
      	(gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
      	(gimple_fold_stmt_to_constant_1): Likewise.
      	* tsan.c (instrument_gimple): Use gimple_call_builtin_p.
      
      	* gcc.dg/pr59630.c: New testcase.
      
      From-SVN: r206421
      Richard Biener committed
    • re PR middle-end/59471 (ICE using vector extensions (non-top-level… · 0bd34ae4
      re PR middle-end/59471 (ICE using vector extensions (non-top-level BIT_FIELD_REF, IMAGPART_EXPR or REALPART_EXPR))
      
      2014-01-08  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/59471
      	* gimplify.c (gimplify_expr): Gimplify register-register type
      	VIEW_CONVERT_EXPRs to separate stmts.
      
      	* gcc.dg/pr59471.c: New testcase.
      
      From-SVN: r206420
      Richard Biener committed