1. 12 Nov, 2013 12 commits
    • cp-demangle.c (d_copy_templates): Cast result of malloc to (struct d_print_template *). · 27297d2d
      	* 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
    • final.c (update_alignments): Initialize label to NULL_RTX. · 33fd5699
      2013-11-12  Marek Polacek  <polacek@redhat.com>
      
      	* final.c (update_alignments): Initialize label to NULL_RTX.
      
      From-SVN: r204712
      Marek Polacek committed
    • c-common.c (c_common_reswords): Add _Thread_local. · 582d9b50
      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
    • aggr21.adb: New test. · e9dc0547
      	* 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. · 6ab7a3d7
      	* 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
    • predict.c (drop_profile): New function. · eb4b92c1
      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
    • Turn on SEE unaligned load and store for Haswell · a720b48e
      	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
    • Properly handle AVX256 unaligned load and store · cd3c1b1c
      	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
    • re PR rtl-optimization/10474 (shrink wrapping for functions) · 732dad8f
      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
    • re PR c++/57734 (Returning template alias to enum class fails with "invalid declarator") · e4c04ff0
      /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. · 801a661c
      	* tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
      	Handle type conversion.
      
      From-SVN: r204695
      Bin Cheng committed
    • Daily bump. · 97a23b74
      From-SVN: r204693
      GCC Administrator committed
  2. 11 Nov, 2013 20 commits
  3. 10 Nov, 2013 8 commits