This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/58084] [4.9 Regression] FAIL: gcc.dg/torture/pr8081.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error)
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Aug 2013 13:17:40 +0000
- Subject: [Bug lto/58084] [4.9 Regression] FAIL: gcc.dg/torture/pr8081.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error)
- Auto-submitted: auto-generated
- References: <bug-58084-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58084
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
If a type is refered to by two functions it is by definition not local. But
as it references a local entity it is local.
Note that you seem to have put the type local for RESULT_DECL but still
have the global type used for the function type that hangs off the
function decl. That type also refers to the PARM_DECLs which are local, too
, now AFAIK.
So, you cannot really make PARM_DECLs or RESULT_DECL local.