https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63348

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-09-24
     Ever confirmed|0                           |1

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to baoshan from comment #0)
> 1. Build GCC:
> $ configure --enable-languages=c --target=mips-linux
> --with-as=PATH_TO_MIPS_AS
> (--with-as is needed to set TARGET_CPU_DEFAULT with MASK_EXPLICIT_RELOCS in
> tm.h)
> $ make
> 2. Compile
> $ ./xgcc -O  -fcompare-debug pr43670.c -I. -c
> xgcc: error: pr43670.c: -fcompare-debug failure (length)

You can configure with "--enable-languages=c --target=mips-linux" only and add
-mexplicit-relocs to compile flags:

/ssd/uros/gcc-build-mips/gcc/xgcc -B /ssd/uros/gcc-build-mips/gcc -O -ftree-vrp
-fcompare-debug -S -mexplicit-relocs pr43670.c
xgcc: error: pr43670.c: -fcompare-debug failure (length)

Confirmed - my patch just exposed the problem in generic RTL code.

Reply via email to