From patchwork Sat Dec 1 22:46:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix handling of EXPAND_MEMORY for TFmode memory constraint in asm Date: Sat, 01 Dec 2012 12:46:09 -0000 From: John David Anglin X-Patchwork-Id: 203156 Message-Id: <20121201224609.GA18582@hiauly1.hia.nrc.ca> To: gcc-patches@gcc.gnu.org The attached change fixes the compilation of the following asm in libquadmath/math/fmaq.c: asm volatile ("" : : "m" (v.value)); The issue arises because there is no support for directly loading TFmode objects. Ok for trunk? Dave Index: expr.c =================================================================== --- expr.c (revision 193685) +++ expr.c (working copy) @@ -9928,7 +9928,8 @@ && GET_MODE_CLASS (mode) != MODE_COMPLEX_INT && GET_MODE_CLASS (mode) != MODE_COMPLEX_FLOAT && modifier != EXPAND_CONST_ADDRESS - && modifier != EXPAND_INITIALIZER) + && modifier != EXPAND_INITIALIZER + && modifier != EXPAND_MEMORY) /* If the field is volatile, we always want an aligned access. Do this in following two situations: 1. the access is not already naturally