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 c/27515] New: internal compiler error: in extract_insn, at recog.c:2083


Please include in your bug report all of the following items, the first three
of which can be obtained from the output of gcc -v:

    * the exact version of GCC;
    * the system type;
    * the options given when GCC was configured/built; 

$ /x/sim/nomura/root.linux/gcc346/bin/gcc -v
Reading specs from
/x/sim/nomura/root.linux/gcc346/lib/gcc/x86_64-unknown-linux-gnu/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --enable-languages=c
--prefix=/x/sim/nomura/root.linux/gcc346
Thread model: posix
gcc version 3.4.6

    * the complete command line that triggers the bug;

[nahant]$ /x/sim/nomura/root.linux/gcc346/bin/gcc -O1 -fno-omit-frame-pointer  
bug2.c

    * the compiler output (error messages, warnings, etc.);

bug2.c: In function `foo':
bug2.c:13: error: unrecognizable insn:
(insn 39 19 38 0 (set (reg:SI 0 ax [63])
        (subreg:SI (plus:DI (subreg:DI (reg:SI 6 bp) 0)
                (const_int -4 [0xfffffffffffffffc])) 0)) -1 (nil)
    (nil))
bug2.c:13: internal compiler error: in extract_insn, at recog.c:2083

 and
    * the preprocessed file (*.i*) that triggers the bug, generated by adding
-save-temps to the complete compilation command

[nahant]$ cat bug2.i
# 1 "bug2.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bug2.c"
void foo(int addr)
{
 unsigned char * u8p;
 unsigned char prefix_in_octet;
 int num_octets_to_zero;

        if (prefix_in_octet != 0)
          u8p++;

        num_octets_to_zero = u8p - (unsigned char *) &addr;

 bar (u8p, num_octets_to_zero);
}


-- 
           Summary: internal compiler error: in extract_insn, at
                    recog.c:2083
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nomura at netapp dot com
  GCC host triplet: x86_64-redhat-linux


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


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