This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] PR ada/54040: [x32] Incorrect timeval and timespec


> I also changed s-osinte-posix.adb and s-osprim-posix.adb
> for x32.  They aren't Linux specific.  What should I do with
> them?

I would use the time_t type defined in s-osinte* (all POSIX implementations
of s-osinte* have such definition, or if they don't, it's easy to add), and
in the s-osinte-linux version we can have a renaming:

   subtype time_t is System.Linux.time_t

and in System.Linux have either:

   type time_t is new Long_Integer;

or

   type time_t is new Long_Long_Integer;

depending on the variant.

Arno


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