[PATCH] Fix FILE structure alignment

Corinna Vinschen vinschen@redhat.com
Fri Mar 15 13:20:00 GMT 2013


On Mar 15 13:43, Sebastian Huber wrote:
> A recent change turned the offset field of the FILE structure from a
> 32-bit integer into a 64-bit integer on some platforms.  On some
> architectures this results in a wrong alignment of the FILE structure
> allocated by __sfmoreglue().  On SPARC for example you can get now an
> aligment exception.
> 
> newlib/
> 2013-03-15  Sebastian Huber <...>
> 
> 	* newlib/libc/stdio/findfp.c (glue_with_file): New.
> 	(__sfmoreglue): Use glue_with_file to avoid alignment problems.

Patch applied.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat



More information about the Newlib mailing list