bugfix to mpfr tests + crosstool-ng patch
Oron Peled
oron@actcom.co.il
Mon Aug 3 01:58:00 GMT 2009
Hi,
Two patches attached. The real bugfix is mpfr-2.4.1-test-tmul.patch.
However, since it touches tests/Makefile.am I had to change
./scripts/build/mpfr.sh in crosstool-ng so it would run autoreconf.
The tmul test uses a compiled in input file in $(srcdir).
The problem is that the Makefile passes it unquoted. The C code
tries to stringify it using clever macros, which may *usually* work.
In my case the source directory was named:
.../toolchain-powerpc-e500v2-linux-gnuspe-1.0-2.fc10/.../tests
And guess what? During testing I found out the program fails because
it tries to open:
.../toolchain-powerpc-e500v2-1-gnuspe-1.0-2.fc10/.../tests
Yes, CPP tokenized the macro before stringifying it and not surprisingly
the 'linux' part was converted to 1.
[on Fedora-10: cpp (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)]
So the attached patch simplify the macros and pass the path as string
from the Makefile.
Cheers,
--
Oron Peled Voice: +972-4-8228492
oron@actcom.co.il http://users.actcom.co.il/~oron
"Copyright protects Software. Patents protect Software Monopolies."
http://swpat.ffii.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crosstool-ng-1.4.1.mpfr.patch
Type: text/x-patch
Size: 822 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20090803/df17235e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpfr-2.4.1-test-tmul.patch
Type: text/x-patch
Size: 1422 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20090803/df17235e/attachment-0001.bin>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list