RFA: MeP: Fix ICE building newlib
Nick Clifton
nickc@redhat.com
Sun Feb 21 18:42:00 GMT 2010
Hi DJ,
The patch below fixes an ICE building newlib for an mep-elf toolchain.
I had been baffled as to the cause, as it appeared that a internal
tree pointer was being corrupted, so in desperation I tried fixing all
of the compile time warning messages building mep.c. Lo and behold -
after adding a #include "gimple.h" in order to get the prototype for
create_tmp_var() the build started working!
So - the patch below fixes all of the compile time warnings for mep.c,
except those about the %E printf format type not being recognised. I
am not sure if those can actually be fixed without upgrading my host
gcc to a newer version.
Tested by building a mep-elf toolchain.
OK to apply ?
Cheers
Nick
gcc/ChangeLog
2010-02-21 Nick Clifton <nickc@redhat.com>
* config/mep/mep.c: Include gimple.h.
(mep_function_uses_sp): Delete unused function.
(mep_gimplify_va_arg_expr): Change types of pre_p and post_p
parameters. Use unsigned integers to count args. Return a
NULL_RTX rather than an error_mark_node. Tidy up formatting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mep.c.patch
Type: text/x-patch
Size: 3901 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100221/ce81c9a2/attachment.bin>
More information about the Gcc-patches
mailing list