public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC arc port defaults to -fcommon
@ 2021-07-07  8:59 Florian Weimer
  2021-07-07  9:56 ` Richard Biener
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Weimer @ 2021-07-07  8:59 UTC (permalink / raw)
  To: gcc; +Cc: gnu, claziss

It seems to me that the arc port still defaults to -fcommon, presumably
due to this in gcc/common/config/arc/arc-common.c:

static void
arc_option_init_struct (struct gcc_options *opts)
{
  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;
}

Is that really necessary?  Is -fno-common broken on arc?

I plan to switch glibc to build with -fno-common unconditionally, for
all GCC versions and architectures, and I wonder if that would be a
blocker.

Thanks,
Florian


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-07 12:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-07  8:59 GCC arc port defaults to -fcommon Florian Weimer
2021-07-07  9:56 ` Richard Biener
2021-07-07  9:58   ` Richard Biener
2021-07-07 10:06     ` Florian Weimer
2021-07-07 12:18       ` Claudiu Zissulescu
2021-07-07 10:06     ` 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).