[PATCH] Properly parse invariant &MEM addresses in the GIMPLE FE

Joseph Myers joseph@codesourcery.com
Wed Oct 6 16:25:15 GMT 2021


On Wed, 6 Oct 2021, Richard Biener via Gcc-patches wrote:

> Currently the frontend rejects those addresses as not lvalues
> because the C frontend doens't expect MEM_REF or TARGET_MEM_REF
> to appear (but they would be valid lvalues there).  The following
> fixes that by amending lvalue_p.
> 
> The change also makes the dumping of the source of the testcase
> valid for the GIMPLE FE by not eliding the '&' when dumping
> string literals.
> 
> Bootstrap and regtest running on x86_64-unknown-linux-gnu.
> 
> Joseph, is the C frontend change OK?

Yes.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Gcc-patches mailing list