This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Pass correct memory attributes for build constant
- From: Jeff Law <law at redhat dot com>
- To: Kito Cheng <kito at 0xlab dot org>, gcc-patches at gcc dot gnu dot org, Jan Hubicka <hubicka at ucw dot cz>, Richard Sandiford <rsandifo at linux dot vnet dot ibm dot com>, Eric Botcazou <ebotcazou at adacore dot com>
- Date: Wed, 25 Jun 2014 15:01:31 -0600
- Subject: Re: [PATCH] Pass correct memory attributes for build constant
- Authentication-results: sourceware.org; auth=none
- References: <CA+yXCZCUgioKCimPVvvU10Zwc9a+TFBWBxjbU6pHLMkW8+YV3w at mail dot gmail dot com>
On 06/25/14 09:35, Kito Cheng wrote:
Hi all:
This patch is fix constant memory's symbol_ref don't have right
alignment info since `exp` don't set alignment (and should not set
alignment info for `exp`) , use `decl` to set_mem_attributes for
right alignment info.
ChangLog
2014-06-25 Kito Cheng <kito@0xlab.org>
* varasm.c (build_constant_desc): Use decl to set mem
attributes since exp don't have correct aligment info.
Do you have a testcase for this?
jeff