On Wed, 2014-03-26 at 00:25 +0100, Eric Botcazou wrote: > > Should I file a bug to get feedback on this issue? I know Ada is not the > > most prioritized language for gcc, but anyway. The current > > implementation is not POSIX-compliant. > > Can you post a complete patch doing the reversion? Breaking POSIX and every > Unix for the sake of x32 is definitely too much in my opinion.
The commits are: http://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e3a1f6b50495473f677f413d8740808a3fde5a9a http://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=d2a4f256f9bc035ef2d6874c4e4c20c83ebf00b4 I think doing special casing for x32 as indicated in the previous mail could solve the problem also for that architecture. Add/modify gcc/ada/{s-linux-x32.ads,s-osprim-x32.ads} according to: type tv_nsec_t is private; type tv_nsec_t is new Long_Long_Integer; type timespec is record tv_sec : time_t; tv_nsec : tv_nsec_t; end record; pragma Convention (C, timespec);