Note: GCC for Microblaze was used (mb-gcc)

The code that caused the error:

#define APP_ENTRY_POINT_BASE    ((unsigned int)0x300000)
#define APP_ENTRY_POINT_OFFSET  ((unsigned int)0x200000)
#define APP_ENTRY_POINT         (APP_ENTRY_POINT_BASE + APP_ENTRY_POINT_OFFSET)

int main()
{
        (*((void(*)())APP_ENTRY_POINT))();
}


Call and output of compiler:

mb-gcc -c -mno-xl-soft-mul -mxl-pattern-compare -mcpu=v7.10.d
-I../../microblaze_0_sw_platform/microblaze_0/include -xl-mode-executable -g
-O0 -ostarter.o ../starter.c
../starter.c: In function 'main':
../starter.c:18: error: unrecognizable insn:
(call_insn 8 7 9 1 ../starter.c:11 (parallel [
            (call (mem:SI (const_int 5242880 [0x500000]) [0 S4 A32])
                (const_int 24 [0x18]))
            (clobber (reg:SI 15 r15))
        ]) -1 (nil)
    (nil)
    (nil))
../starter.c:18: internal compiler error: in extract_insn, at recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [starter.o] Error 1
Build complete for project starter


-- 
           Summary: GCC (for Microblaze) reports internal compiler error
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: klaus-christian dot saalfeld at sma dot de


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

Reply via email to