From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7140 invoked by alias); 25 Jun 2014 15:35:38 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 7126 invoked by uid 89); 25 Jun 2014 15:35:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f181.google.com Received: from mail-ie0-f181.google.com (HELO mail-ie0-f181.google.com) (209.85.223.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 25 Jun 2014 15:35:34 +0000 Received: by mail-ie0-f181.google.com with SMTP id y20so1794893ier.40 for ; Wed, 25 Jun 2014 08:35:32 -0700 (PDT) X-Received: by 10.50.107.42 with SMTP id gz10mr10230240igb.15.1403710532171; Wed, 25 Jun 2014 08:35:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.117.101 with HTTP; Wed, 25 Jun 2014 08:35:12 -0700 (PDT) From: Kito Cheng Date: Wed, 25 Jun 2014 15:35:00 -0000 Message-ID: Subject: [PATCH] Pass correct memory attributes for build constant To: gcc-patches@gcc.gnu.org, Jan Hubicka , Richard Sandiford , Eric Botcazou Content-Type: multipart/mixed; boundary=047d7b10cbb9a3833e04fcaad3f3 X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg02030.txt.bz2 --047d7b10cbb9a3833e04fcaad3f3 Content-Type: text/plain; charset=UTF-8 Content-length: 406 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 * varasm.c (build_constant_desc): Use decl to set mem attributes since exp don't have correct aligment info. --047d7b10cbb9a3833e04fcaad3f3 Content-Type: text/x-patch; charset=US-ASCII; name="varasm.patch" Content-Disposition: attachment; filename="varasm.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hwusq1sd0 Content-length: 578 ZGlmZiAtLWdpdCBhL2djYy92YXJhc20uYyBiL2djYy92YXJhc20uYwppbmRl eCA3YmU1NmYxLi42ZTdjYTVhIDEwMDY0NAotLS0gYS9nY2MvdmFyYXNtLmMK KysrIGIvZ2NjL3ZhcmFzbS5jCkBAIC0zMjAxLDcgKzMyMDEsNyBAQCBidWls ZF9jb25zdGFudF9kZXNjICh0cmVlIGV4cCkKICAgVFJFRV9DT05TVEFOVF9Q T09MX0FERFJFU1NfUCAoc3ltYm9sKSA9IDE7CiAKICAgcnRsID0gZ2VuX2Nv bnN0X21lbSAoVFlQRV9NT0RFIChUUkVFX1RZUEUgKGV4cCkpLCBzeW1ib2wp OwotICBzZXRfbWVtX2F0dHJpYnV0ZXMgKHJ0bCwgZXhwLCAxKTsKKyAgc2V0 X21lbV9hdHRyaWJ1dGVzIChydGwsIGRlY2wsIDEpOwogICBzZXRfbWVtX2Fs aWFzX3NldCAocnRsLCAwKTsKICAgc2V0X21lbV9hbGlhc19zZXQgKHJ0bCwg Y29uc3RfYWxpYXNfc2V0KTsKIAo= --047d7b10cbb9a3833e04fcaad3f3--