www.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
X-Recipient: | djgpp-workers AT delorie DOT com |
Message-ID: | <50F07305.902@iki.fi> |
Date: | Fri, 11 Jan 2013 22:16:05 +0200 |
From: | Andris Pavenis <andris DOT pavenis AT iki DOT fi> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
MIME-Version: | 1.0 |
To: | djgpp-workers AT delorie DOT com |
Subject: | Re: gcc-4.8.0 and DJGPP time.h |
References: | <50F0432D DOT 3060108 AT iki DOT fi> <83sj67tuup DOT fsf AT gnu DOT org> |
In-Reply-To: | <83sj67tuup.fsf@gnu.org> |
Reply-To: | djgpp-workers AT delorie DOT com |
On 01/11/2013 08:53 PM, Eli Zaretskii wrote: >> Date: Fri, 11 Jan 2013 18:51:57 +0200 >> From: Andris Pavenis <andris DOT pavenis AT iki DOT fi> >> >> #if ((__GNUC__==4 && __GNUC_MINOR__>=8) || (__GNUC__>4)) >> #include <x86intrin.h> >> #else >> >> current definitions of _rdtsc goes here >> >> #endif >> >> Does such approach look OK? > > Yes, but please put there a comment saying that _rdtsc is defined in > GCC 4.8 and later by that header. > Tested with freshly built gcc-4.8.0 20110111 cross-compiler under Linux (Fedora 17) and in CentOS chroot where I had ancient gcc-4.3.3 cross-compiler installed. In both cases test program which prints _rdtsc() value works OK. No tests with native build of recent gcc-4.8.0 snapshot yet as I do not have it. So its committed to CVS with corresponding comment Andris
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |