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 tree-optimization/15577] New: ICE on legal


Probably an inliner bug.  Fails in mainline as of now.
g++ -O3 vv.cc
vv.cc: In function `long int intrand()':
vv.cc:8: internal compiler error: in emit_move_insn, at expr.c:2799


static long seeds[100];
long opp_nextrand(long& seed)
{
     return seed;
}
long intrand()
{
    return opp_nextrand(seeds[0]);
}


First dump after inlining (gimple) looks like
      long int<D5> <D1542>;
            <D1542> = seeds<D1530>;
which is wrong as seeds is an array.

-- 
           Summary: ICE on legal
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dalej at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.3.0
  GCC host triplet: powerpc-apple-darwin7.3.0
GCC target triplet: powerpc-apple-darwin7.3.0


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


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