From dcdeca7afdd8a1d3f902353724848042c6123b46 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 19 Feb 2015 22:25:52 +0100 Subject: [PATCH] alpha.c (alpha_in_small_data_p): Reject common symbols. * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols. From-SVN: r220825 --- gcc/ChangeLog | 25 ++++++++++++++----------- gcc/config/alpha/alpha.c | 4 ++++ 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d2baaf0d254..04f256c4901 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,10 @@ +2015-02-19 Uros Bizjak + + * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols. + 2015-02-19 Sandra Loosemore - * doc/extend.texi (x86 transactional memory intrinsics): - Copy-edit. + * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit. 2015-02-19 Richard Henderson @@ -17,13 +20,13 @@ 2015-02-19 Maxim Kuvyrkov - * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG. - (rank_for_schedule_debug): Update. - (ready_sort): Make static. Move sorting logic to ... - (ready_sort_debug, ready_sort_real): New static functions. - (schedule_block): Sort both debug insns and real insns in preparation - for ready list trimming. Improve debug output. - * sched-int.h (ready_sort): Remove global declaration. + * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG. + (rank_for_schedule_debug): Update. + (ready_sort): Make static. Move sorting logic to ... + (ready_sort_debug, ready_sort_real): New static functions. + (schedule_block): Sort both debug insns and real insns in preparation + for ready list trimming. Improve debug output. + * sched-int.h (ready_sort): Remove global declaration. 2015-02-18 Trevor Saunders @@ -393,7 +396,7 @@ PR ipa/65028 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function. (inline_call): Use it. - + 2015-02-13 Thomas Schwinge * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to @@ -616,7 +619,7 @@ 2015-02-10 David Wohlferd * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly - modified) reference to Solaris. + modified) reference to Solaris. 2015-02-10 Sandra Loosemore diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 0c0df684dcc..554ff09b055 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -835,6 +835,10 @@ alpha_in_small_data_p (const_tree exp) if (TREE_CODE (exp) == FUNCTION_DECL) return false; + /* COMMON symbols are never small data. */ + if (TREE_CODE (exp) == VAR_DECL && DECL_COMMON (exp)) + return false; + if (TREE_CODE (exp) == VAR_DECL && DECL_SECTION_NAME (exp)) { const char *section = DECL_SECTION_NAME (exp); -- 2.30.2