[PATCH] Fix PR middle-end/PR34906 in gimplify.c

H.J. Lu hjl.tools@gmail.com
Sun Jun 22 15:30:00 GMT 2008


On Sun, Jun 22, 2008 at 8:02 AM, Laurynas Biveinis
<laurynas.biveinis@gmail.com> wrote:
> This simple patch fixes PR34906. If parse_output_constraint encounters
> an error, it quits early, before setting is_inout value. The caller
> was reading that value afterwards. Fixed by checking the return value
> and setting is_inout to something default on error.
> Bootstrapped/regtested on x86_64-unknown-linux-gnu. OK for trunk?
>
> 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
>
>        * gimplify.c (gimplify_asm_expr): Check the return code of
>        parse_output_constraint call, set function return and is_inout
>        value if it failed.
>

Please mention PR 34906 in your ChangeLog.

Thanks.

-- 
H.J.



More information about the Gcc-patches mailing list