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 debug/14838] New: [hppa-linux 3.3/3.4/3.5 Regression] ICE when building with -O2 -g


legolas[14:13] make% /opt/gcc/gcc-3.5/bin/gcc -O2 -g -c bug.c
bug.c: In function `Buf_GetAll':
bug.c:13: error: unrecognizable insn:
(insn 31 25 55 bug.c:13 (use (reg/i:SI 28 %r28 [ <result> ])) -1 (insn_list 41 
(nil))
    (nil))
bug.c:13: internal compiler error: in insn_default_length, at insn-attrtab.c:825
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

ICE doesn't happen without -g, or with -O1 -g

code snippet extracted from freebsd-buildutils 

-------- bug.c --------
typedef struct Buffer {
    char    *inPtr;
    char    *outPtr;
} *Buffer;

char *
Buf_GetAll (Buffer bp, int *numcharsPtr)
{
    if (numcharsPtr != 0)
  *numcharsPtr = bp->inPtr - bp->outPtr;

    return (bp->outPtr);
}
-------- bug.c --------

-- 
           Summary: [hppa-linux 3.3/3.4/3.5 Regression] ICE when building
                    with -O2 -g
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tausq at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa-linux
  GCC host triplet: hppa-linux
GCC target triplet: hppa-linux


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


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