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 target/14322] New: Unrecognizable lo_sum insn with -m64 and -fPIC


The following code gives an unrecognizable insn on sparc-sun-solaris
with -m64 -fPIC:

=================================
int foo;
void * f ()
{
        return &foo;
}
=================================

The error message is:

locale.cc: In function `f':
locale.cc:5: error: unrecognizable insn:
(insn 9 8 10 0 (set (reg:DI 112)
        (lo_sum:DI (reg:DI 112)
            (unspec:DI [
                    (symbol_ref:SI ("foo") <var_decl ff202d80 foo>)
                ] 0))) -1 (nil)
    (nil))
locale.cc:5: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: Unrecognizable lo_sum insn with -m64 and -fPIC
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ehrhardt at mathematik dot uni-ulm dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: sparc-sun-solaris2.9


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


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