This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix FILE structure alignment


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]