public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/54040] New: [x32] Incorrect timeval and timespec
@ 2012-07-19 23:37 hjl.tools at gmail dot com
  2013-11-13 20:33 ` [Bug ada/54040] " hjl.tools at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-07-19 23:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54040

             Bug #: 54040
           Summary: [x32] Incorrect timeval and timespec
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


X32 has

/* A time value that is accurate to the nearest
   microsecond but also has a range of years.  */
struct timeval
  {
    __time_t tv_sec;            /* Seconds.  */
    __suseconds_t tv_usec;      /* Microseconds.  */
  };  

and

struct timespec
  {
    __time_t tv_sec;            /* Seconds.  */
    __syscall_slong_t tv_nsec;  /* Nanoseconds.  */
  };

__time_t, __suseconds_t and __syscall_slong_t are 64-bit integers
in x32. But ada run-time assumes all of them are long, which is
32-bit for x32.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-04-09 23:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-19 23:37 [Bug ada/54040] New: [x32] Incorrect timeval and timespec hjl.tools at gmail dot com
2013-11-13 20:33 ` [Bug ada/54040] " hjl.tools at gmail dot com
2013-11-13 20:43 ` hjl.tools at gmail dot com
2013-11-15 12:06 ` hjl at gcc dot gnu.org
2013-11-29 16:19 ` ebotcazou at gcc dot gnu.org
2014-02-22  8:39 ` ebotcazou at gcc dot gnu.org
2014-04-09 14:55 ` ebotcazou at gcc dot gnu.org
2014-04-09 23:19 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).