This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2] check initializer to be zero in .bss-like sections
- From: "Jan Beulich" <JBeulich at suse dot com>
- To: "Bernd Schmidt" <bschmidt at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 01 Jul 2016 07:42:56 -0600
- Subject: Re: [PATCH v2] check initializer to be zero in .bss-like sections
- Authentication-results: sourceware.org; auth=none
- References: <5776442102000078000FA511 at prv-mh dot provo dot novell dot com> <4033dabb-ca10-e9db-7286-e4f2c137f842 at redhat dot com>
>>> On 01.07.16 at 15:36, <bschmidt@redhat.com> wrote:
> On 07/01/2016 10:21 AM, Jan Beulich wrote:
>> Just like gas, which has recently learned to reject such initializers,
>> gcc shouldn't accept such either.
>> ---
>> v2: Use dg-require-named-sections.
>>
>> gcc/
>> 2016-07-01 Jan Beulich <jbeulich@suse.com>
>>
>> * varasm.c (get_variable_section): Validate initializer in
>> named .bss-like sections.
>>
>> gcc/testsuite/
>> 2016-07-01 Jan Beulich <jbeulich@suse.com>
>>
>> * gcc.dg/bss.c: New.
>
> Looks ok, except why the empty dg-options string in the testcase?
Because I've seen in it that way in various other test cases (and
yes, yet others don't have it). I had to decide for one of the
variants, and if it's not required (nor wanted) I can certainly drop
it.
Jan