I trimmed down the file posted earlier to the source attached.

When you define macro CRASH, that's what the compiler does. See below.

I'll try to work further from here, but you're quite welcome to beat me
to it :-)

When running this with -v it is clear - if the error message wasn't
already - that the compiler itself is crashing. That's the thing that
creates an assembler file, which is then meant to be treated by the
assembler (as), part of binutils. It never gets to as.

        Danny

pavilion: {101} arm-mingw32ce-gcc -c -DCRASH k.c
k.c: In function 'ff_fill_linesize':
k.c:12: error: unrecognizable insn:
(insn 6 5 7 3 k.c:9 (set (reg/f:SI 136 [ av_pix_fmt_descriptors.0 ])
        (symbol_ref:SI ("av_pix_fmt_descriptors") [flags 0x440]
<var_decl 0xb7da9000 av_pix_fmt_descriptors>)) -1 (nil))
k.c:12: internal compiler error: in extract_insn, at recog.c:2048
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
pavilion: {102} arm-mingw32ce-gcc -c k.c
k.c:4: warning: array 'av_pix_fmt_descriptors' assumed to have one
element
pavilion: {103} 

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
#ifdef	CRASH
__attribute__((dllimport)) int av_pix_fmt_descriptors[];
#else
int av_pix_fmt_descriptors[];
#endif

__attribute__((dllexport)) int ff_fill_linesize(int pix_fmt)
{
    const int *desc = &av_pix_fmt_descriptors[pix_fmt];

    return 0;
}
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to