public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2878] arc: Small data doesn't need fcommon option
@ 2021-08-12 12:32 Claudiu Zissulescu
  0 siblings, 0 replies; only message in thread
From: Claudiu Zissulescu @ 2021-08-12 12:32 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2d7967a10c2f3b4652f77a1a2119ba03b3472266

commit r12-2878-g2d7967a10c2f3b4652f77a1a2119ba03b3472266
Author: Claudiu Zissulescu <claziss@synopsys.com>
Date:   Thu Aug 12 14:21:22 2021 +0300

    arc: Small data doesn't need fcommon option
    
    ARC backend is defaulting to -fcommon. This is not anylonger needed, remove it.
    
    gcc/
    2021-08-12  Claudiu Zissulescu  <claziss@synopsys.com>
    
            * common/config/arc/arc-common.c (arc_option_init_struct): Remove
            fno-common reference.
            * config/arc/arc.c (arc_override_options): Remove overriding of
            flag_no_common.
    
    Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>

Diff:
---
 gcc/common/config/arc/arc-common.c | 4 +---
 gcc/config/arc/arc.c               | 3 ---
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/gcc/common/config/arc/arc-common.c b/gcc/common/config/arc/arc-common.c
index 6a119029616..3b36d09997c 100644
--- a/gcc/common/config/arc/arc-common.c
+++ b/gcc/common/config/arc/arc-common.c
@@ -30,10 +30,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "flags.h"
 
 static void
-arc_option_init_struct (struct gcc_options *opts)
+arc_option_init_struct (struct gcc_options *opts ATTRIBUTE_UNUSED)
 {
-  opts->x_flag_no_common = 255; /* Mark as not user-initialized.  */
-
   /* Which cpu we're compiling for (ARC600, ARC601, ARC700, ARCv2).  */
   arc_cpu = PROCESSOR_NONE;
 }
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 69f6ae464e1..92797db96b7 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -1440,9 +1440,6 @@ arc_override_options (void)
   if (flag_pic)
     target_flags |= MASK_NO_SDATA_SET;
 
-  if (flag_no_common == 255)
-    flag_no_common = !TARGET_NO_SDATA_SET;
-
   /* Check for small data option */
   if (!global_options_set.x_g_switch_value && !TARGET_NO_SDATA_SET)
     g_switch_value = TARGET_LL64 ? 8 : 4;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-12 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-12 12:32 [gcc r12-2878] arc: Small data doesn't need fcommon option Claudiu Zissulescu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).