On 09/04/2015 09:27 AM, Jakub Jelinek wrote:
Hi!

This patch is a fix for gomp4.1 branch ICEs on
FAIL libgomp.c/for-5.c
FAIL libgomp.c++/for-13.C
that can be reproduced with intelmic emul offloading even on the trunk
with the attached testcase.  The problem is that LTO streaming doesn't
really like earlier unreferenced VAR_DECLs to be streamed late during
output_function (from output_cfg).

The patch fixes it by clearing loop->simduid when optimizations removed
all IL uses of the var and remove_unused_locals is about to nuke it from
cfun->local_decls.

Ok for trunk/5.3 if it passes bootstrap/regtest?

2015-09-04  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/67452
        * tree-ssa-live.c: Include cfgloop.h.
        (remove_unused_locals): Clear loop->simduid if simduid is about
        to be removed from cfun->local_decls.

        * gcc.dg/lto/pr67452_0.c: New test.
OK.
jeff

Reply via email to