Build fails for mips1

Ivan Sichmann Freitas ivansichfreitas@gmail.com
Sun Feb 10 21:25:00 GMT 2013


Up to version 1.20.0, I could build a toolchain for cross compiling code
for mips1 using newlib (plus gcc and binutils) just fine. But with 2.0.0
or git HEAD the compilation fails (see log attached) when trying to use
prefetch instructions, which don't exist in mips1 ISA.

All my toolchain uses --target=mips-elf, and gcc 4.7.2 is configured as
shown in the attached log (there is, however, a custom specfile added to
this gcc buid, which is not run by default, so I'm not ruling out
problemas with my toolchain). The error occurs in memcpy.S (see the
probing of _MIPS_ISA in lines 52 to 57), recently rewritten in pure
assembly. Adding -DDISABLE-PREFETCH fixes the build, but that wasn't
needed before (adding -mips1 to CFLAGS doesn't seem to change anything).

At this point, I'm unsure of the real cause of the problem. Is
-DDISABLE-PREFETCH mandatory from now on? Was --target=mips-elf supposed
to generate mips1 code? Is it a bug in memcpy.S or in my toolchain?

-- 
Ivan Sichmann Freitas
GNU/Linux user #509059
SDF Arpa Member http://isf.sdf.org/about.html
Phone: +55 (19) 8227 8610
-------------- next part --------------
A non-text attachment was scrubbed...
Name: errors.log.bz2
Type: application/x-bzip2
Size: 11135 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20130210/3a999321/attachment.bz2>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.bz2
Type: application/x-bzip2
Size: 5992 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20130210/3a999321/attachment-0001.bz2>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20130210/3a999321/attachment.sig>


More information about the Newlib mailing list