This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fno-common
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Bernhard Schommer <bernhardschommer at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 29 Jan 2019 10:40:53 +0100
- Subject: Re: -fno-common
- References: <CAG8G+nv0QtBoBp0JVyLKPn7rxsF6s2rokfpqVpB4BtJ_Vq4=Ew@mail.gmail.com>
On Mon, Jan 28, 2019 at 4:59 PM Bernhard Schommer
<bernhardschommer@gmail.com> wrote:
>
> 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.
I can confirm this change in behavior. I vaguely remember changes in this
area but I'm not sure if the change was on purpose.
Richard.
> Best,
> -Bernhard