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: Bernd Schmidt <bschmidt at redhat dot com>
- To: Jan Beulich <JBeulich at suse dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 1 Jul 2016 15:36:51 +0200
- 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>
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?
Bernd