public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* -fno-common
@ 2019-01-28 15:59 Bernhard Schommer
  2019-01-29  8:29 ` -fno-common Iain Sandoe
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Bernhard Schommer @ 2019-01-28 15:59 UTC (permalink / raw)
  To: GCC Development

Hi,

I would like to know if the handling of the option -fno-common has
changed between version 7.3 and 8.2 for x86. I tried it with the
default system version of OpenSUSE and for example:

const int i;

is placed in the .bss section. With a newer self-compiled version 8.2
the same variable is placed in the section .rodata. I could not find
any information in the Changelog whether the behavior has changed and
thus would like to know if there was any change.

Best,
-Bernhard

^ permalink raw reply	[flat|nested] 10+ messages in thread
* -fno-common
@ 2005-03-31 19:57 Dave Korn
  2005-03-31 20:18 ` -fno-common Daniel Jacobowitz
  0 siblings, 1 reply; 10+ messages in thread
From: Dave Korn @ 2005-03-31 19:57 UTC (permalink / raw)
  To: gcc


  According to the manual,

----------------------snip----------------------
`-fno-common'
     In C, allocate even uninitialized global variables in the data
     section of the object file, rather than generating them as common
     blocks.  
----------------------snip----------------------

  When I compile the following declaration:

----------------------snip----------------------
unsigned int operatingMode;
----------------------snip----------------------

at file-scope, with -fno-common, it actually gets allocated to the .bss
section.

  Is the manual wording just slightly vague here, and both .data and .bss
are regarded as covered by the phrase "the data section of the object file"?
Or should it actually have ended up in .data, not .bss after all?

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....

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

end of thread, other threads:[~2019-01-29 12:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-28 15:59 -fno-common Bernhard Schommer
2019-01-29  8:29 ` -fno-common Iain Sandoe
2019-01-29  9:41 ` -fno-common Richard Biener
2019-01-29  9:54 ` -fno-common David Brown
2019-01-29 10:09   ` -fno-common Bernhard Schommer
2019-01-29 10:13     ` -fno-common Jakub Jelinek
2019-01-29 10:24     ` -fno-common David Brown
2019-01-29 12:05       ` -fno-common Bernhard Schommer
  -- strict thread matches above, loose matches on Subject: below --
2005-03-31 19:57 -fno-common Dave Korn
2005-03-31 20:18 ` -fno-common Daniel Jacobowitz

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).