- 12 Nov, 2013 12 commits
-
-
* cp-demangle.c (d_copy_templates): Cast result of malloc to (struct d_print_template *). (d_print_comp): Cast result of realloc to (struct d_saved scope *). From-SVN: r204713
Uros Bizjak committed -
2013-11-12 Marek Polacek <polacek@redhat.com> * final.c (update_alignments): Initialize label to NULL_RTX. From-SVN: r204712
Marek Polacek committed -
c-family: * c-common.c (c_common_reswords): Add _Thread_local. c: * c-tree.h (struct c_declspecs): Add thread_gnu_p field. * c-parser.c (c_parser_declspecs): Mention _Thread_local in comment. * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread or _Thread_local as appropriate in diagnostics. (build_null_declspecs): Initialize ret->thread_gnu_p. (declspecs_add_scspec): Handle either __thread or _Thread_local for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if pedantic. Do not disallow _Thread_local extern and _Thread_local static. testsuite: * gcc.dg/c90-thread-local-1.c, gcc.dg/c99-thread-local-1.c, gcc.dg/c11-thread-local-1.c, gcc.dg/c11-thread-local-2.c: New tests. * gcc.dg/tls/diag-2.c, objc.dg/tls/diag-2.m: Update expected diagnostics. From-SVN: r204711
Joseph Myers committed -
* gnat.dg/aggr21.adb: New test. * gnat.dg/aggr21_pkg.ad[sb]: New helper. From-SVN: r204710
Tristan Gingold committed -
* gimple-ssa-isolate-paths.c (check_loadstore): New function. (insert_trap_and_remove_trailing_statements): New argument OP which is the NULL pointer. Emit the trap after the load/store through the NULL pointer. Simplify the RHS of a store through a NULL pointer when trivial to do so. (isolate_path): Corresponding changes. (gimple_ssa_isolate_erroneous_path): Likewise. * gcc.dg/tree-ssa/isolate-1.c: Update expected output. * gcc.dg/tree-ssa/isolate-5.c: New test. From-SVN: r204708
Jeff Law committed -
2013-11-12 Teresa Johnson <tejohnson@google.com> Jan Hubicka <jh@suse.cz> * predict.c (drop_profile): New function. (handle_missing_profiles): Ditto. (counts_to_freqs): Don't overwrite estimated frequencies when function has no profile counts. * predict.h (handle_missing_profiles): Declare. * tree-inline.c (freqs_to_counts): New function. (copy_cfg_body): Invoke freqs_to_counts as needed. * tree-profile.c (tree_profiling): Invoke handle_missing_profiles. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r204704
Teresa Johnson committed -
PR target/59088 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Set for m_HASWELL. (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL. From-SVN: r204701
H.J. Lu committed -
PR target/59084 * config/i386/i386.c (ix86_option_override_internal): Check X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for MASK_AVX256_SPLIT_UNALIGNED_LOAD and MASK_AVX256_SPLIT_UNALIGNED_STORE. * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL): Clear m_COREI7_AVX and update comments. (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise. From-SVN: r204700
H.J. Lu committed -
2013-11-12 Martin Jambor <mjambor@suse.cz> PR rtl-optimization/10474 * ira.c (interesting_dest_for_shprep): New function. (split_live_ranges_for_shrink_wrap): Likewise. (find_moveable_pseudos): Move calculation of dominance info, df_analysios and the final anlyses to... (ira): ...here, call split_live_ranges_for_shrink_wrap. testsuite/ * gcc.dg/pr10474.c: New testcase. * gcc.dg/ira-shrinkwrap-prep-1.c: Likewise. * gcc.dg/ira-shrinkwrap-prep-2.c: Likewise. From-SVN: r204698
Martin Jambor committed -
/cp 2013-11-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57734 * pt.c (lookup_template_class_1): Handle alias template declarations of enumeration types. /testsuite 2013-11-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57734 * g++.dg/cpp0x/alias-decl-enum-1.C: New. From-SVN: r204697
Paolo Carlini committed -
* tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code. Handle type conversion. From-SVN: r204695
Bin Cheng committed -
From-SVN: r204693
GCC Administrator committed
-
- 11 Nov, 2013 20 commits
-
-
Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r204690
Martin Liska committed -
From-SVN: r204688
Ian Lance Taylor committed -
For Solaris and CentOS portability. From-SVN: r204687
Ian Lance Taylor committed -
2013-11-11 Marc Glisse <marc.glisse@inria.fr> Jeff Law <law@redhat.com> gcc/ * tree-ssa-alias.c (stmt_kills_ref_p_1): Use ao_ref_init_from_ptr_and_size for builtins. gcc/testsuite/ * gcc.dg/tree-ssa/alias-27.c: New testcase. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r204686
Marc Glisse committed -
PR target/58853 * config/i386/x86-tune.def (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from TARGET_MISALIGNED_MOVE_STRING_PROLOGUES. * config/i386/i386.h (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES. * config/i386/i386.c (ix86_expand_set_or_movmem): Use TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate misaligned_prologue_used. Check that desired_aling <= epilogue_size_needed. testsuite/ChangeLog: PR target/58853 * gcc.target/i386/pr58853.c: New test. Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com> From-SVN: r204685
Uros Bizjak committed -
From-SVN: r204684
Ian Lance Taylor committed -
re PR tree-optimization/59050 (ICE: tree check: expected integer_cst, have nop_expr in tree_int_cst_lt, at tree.c:7083) 2013-11-11 Cong Hou <congh@google.com> PR tree-optimization/59050 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix. From-SVN: r204683
Cong Hou committed -
PR middle-end/59049 * expmed.c (emit_store_flag): Fail for const-const comparison. From-SVN: r204682
Joern Rennecke committed -
* gcc.dg/tree-ssa/forwprop-28.c: Adjust for ARC LOGICAL_OP_NON_SHORT_CIRCUIT definition. * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-4.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-5.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-6.c: Likewise. * gcc.dg/tree-ssa/vrp47.c: Likewise. * gcc.dg/tree-ssa/vrp87.c: Likewise. From-SVN: r204681
Joern Rennecke committed -
From-SVN: r204680
Joern Rennecke committed -
From-SVN: r204679
Ian Lance Taylor committed -
gimplify.c (gimplify_init_constructor): Do not clear the object when the constructor is incomplete and... * gimplify.c (gimplify_init_constructor): Do not clear the object when the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set. From-SVN: r204678
Eric Botcazou committed -
* tree.h (CONSTRUCTOR_NO_CLEARING): Define. * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it. * tree.def (CONSTRUCTOR): Likewise. * doc/generic.texi (CONSTRUCTOR): Likewise. Update description. * gimplify.c (gimplify_init_constructor): Do not clear the object when the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set. ada/ * gcc-interface/utils2.c (gnat_build_constructor): Also set the flag CONSTRUCTOR_NO_CLEARING on the constructor. From-SVN: r204677
Tristan Gingold committed -
2013-11-11 Basile Starynkevitch <basile@starynkevitch.net> * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before diagnostic_finish. From-SVN: r204674
Basile Starynkevitch committed -
* config/arm/arm.c (arm_new_rtx_costs): Return after handling comparisons. From-SVN: r204673
Kyrylo Tkachov committed -
PR libstdc++/54562 * include/std/mutex (__timed_mutex_impl::__clock_t): Use high_resolution_clock for absolute timeouts, because pthread_mutex_timedlock uses CLOCK_REALTIME not CLOCK_MONOTONIC. (__timed_mutex_impl::_M_try_lock_for): Use steady_clock for relative timeouts as per [thread.req.timing]. (__timed_mutex_impl::_M_try_lock_until<Clock,Duration>): Convert to __clock_t time point instead of using _M_try_lock_for. From-SVN: r204672
Jonathan Wakely committed -
* config.host (arm-wrs-vxworks): Replace arm/t-vxworks with arm/t-elf in tmake_file. * config/arm/t-vxworks: Delete. From-SVN: r204669
Eric Botcazou committed -
From-SVN: r204666
Joern Rennecke committed -
tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump threading paths first, then perform PHI node checks if applicable. * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump threading paths first, then perform PHI node checks if applicable. From-SVN: r204659
Jeff Law committed -
From-SVN: r204658
GCC Administrator committed
-
- 10 Nov, 2013 8 commits
-
-
cvt.c (cp_convert_to_pointer): Call build_ptrmemfunc before maybe_warn_zero_as_null_pointer_constant to avoid... 2013-11-10 Paolo Carlini <paolo.carlini@oracle.com> * cvt.c (cp_convert_to_pointer): Call build_ptrmemfunc before maybe_warn_zero_as_null_pointer_constant to avoid duplicate -Wzero-as-null-pointer-constant diagnostics. * typeck.c (build_ptrmemfunc): Use cp_build_c_cast. From-SVN: r204655
Paolo Carlini committed -
2013-11-10 Janne Blomqvist <jb@gcc.gnu.org> * configure.ac: Check presence of mkostemp. * io/unix.c (set_close_on_exec): New function. (tempfile_open): Use mkostemp and O_CLOEXEC if available, fallback to calling set_close_on_exec. (regular_file): Add O_CLOEXEC to flags if defined. (open_external): Call set_close_on_exec if O_CLOEXEC is not defined. * config.h.in: Regenerated. * configure: Regenerated. * Makefile.in: Regenerated. * aclocal.m4: Regenerated. From-SVN: r204654
Janne Blomqvist committed -
PR plugin/52872 * configure.ac: Adding for exported symbols check and for rdynamic-check executable-extension. * configure: Regenerated. From-SVN: r204651
Kai Tietz committed -
re PR plugins/52872 (--enable-plugin; incorrect test for "exported symbols" and "-rdynamic" in gcc/configure.ac) PR plugin/52862 * configure.ac: Adding for exported symbols check and for rdynamic-check executable-extension. * configure: Regenerated. Co-Authored-By: Kai Tietz <ktietz@redhat.com> From-SVN: r204650
Karlson2k committed -
mode-switching.c (optimize_mode_switching): Mark block as nontransparent, if last_mode at block exit is different from no_mode. * mode-switching.c (optimize_mode_switching): Mark block as nontransparent, if last_mode at block exit is different from no_mode. From-SVN: r204649
Uros Bizjak committed -
2013-11-10 Kai Tietz <ktietz@redhat.com> * config/i386/cygming-crtbegin.c (__gcc_register_frame): Increment load-count on use of LIBGCC_SONAME DLL. (hmod_libgcc): New static variable to hold handle of LIBGCC_SONAME DLL. (__gcc_deregister_frame): Decrement load-count of LIBGCC_SONAME DLL. From-SVN: r204635
Kai Tietz committed -
* config/x86/fenv.c: New file. From-SVN: r204634
Uros Bizjak committed -
From-SVN: r204623
GCC Administrator committed
-