This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix expansion of constants with -fsection-anchors (PR middle-end/52074)
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Guenther <rguenther at suse dot de>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 7 Feb 2012 10:00:50 +0100
- Subject: Re: [PATCH] Fix expansion of constants with -fsection-anchors (PR middle-end/52074)
- References: <20120201164355.GT18768@tyan-ft48-01.lab.bos.redhat.com>
> 2012-02-01 Jakub Jelinek <jakub@redhat.com>
>
> PR middle-end/52074
> * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
> if modifier < EXPAND_SUM call force_operand on the result.
>
> * gcc.c-torture/compile/pr52074.c: New test.
This looks fine to me.
--
Eric Botcazou