This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/14694] New: [tree-ssa] SEGV in tree-nested.c compiling glibc


When compiling glibc's rtld.c we ICE inside tree-nested.c because we try to
process a global VAR_DECL.  This causes convert_nonlocal_reference to run out of
nesting contexts without finding the declaration.

I'm not sure which glibc version exposes this.  Attached is rtld.i that Uli sent
me.  I presume this comes from current CVS?

Also attached is a proposed patch.  Richard, is this the right fix?  We
explicitly check for DECL_EXTERNAL, but we weren't checking for _NONLOCAL nor
globals.  Bootstrap and testing in progress.

-- 
           Summary: [tree-ssa] SEGV in tree-nested.c compiling glibc
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: rth at gcc dot gnu dot org
        ReportedBy: dnovillo at gcc dot gnu dot org
                CC: drepper at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14694


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]