In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/730ddfe84dc700d146653b462354bb0979bb825a?hp=7e69463d5ba4e34c2ea10a5c117a1777435209ec>
- Log ----------------------------------------------------------------- commit 730ddfe84dc700d146653b462354bb0979bb825a Author: Jarkko Hietaniemi <j...@iki.fi> Date: Sat Apr 23 11:23:44 2016 -0400 Apple Xcode / clang version updates and additions M hints/darwin.sh commit 8a035c8d97c1b9c6dece478aed82f335afca0433 Author: Jarkko Hietaniemi <j...@iki.fi> Date: Sat Apr 23 11:20:56 2016 -0400 darwin (OS X) hints comments alignment (preparing for the next change) M hints/darwin.sh commit f3dd6bae442aa75eaf92234b8ea09650844284fa Author: Jarkko Hietaniemi <j...@iki.fi> Date: Fri Apr 22 23:09:31 2016 -0400 Time-HiRes version bump M dist/Time-HiRes/Changes M dist/Time-HiRes/HiRes.pm commit de1003b4553058df412757f35324ef710bc68a2e Author: Reini Urban <rur...@cpanel.net> Date: Mon Apr 18 09:38:13 2016 +0200 [PATCH] Time-Hires: Fix declaration-after-statement error with darwin threads rt #113856: the flag -Werror=declaration-after-statement is seemingly not working for clang (in OS X, not yet tested elsewhere), but working as intended for gcc. Since the system cc for OS X is clang (via Apple), this failure to fail has been masked. To restate: without this patch the Time-HiRes does not build in OS X with gcc under usethreads. M dist/Time-HiRes/HiRes.xs ----------------------------------------------------------------------- Summary of changes: dist/Time-HiRes/Changes | 3 +++ dist/Time-HiRes/HiRes.pm | 2 +- dist/Time-HiRes/HiRes.xs | 4 ++-- hints/darwin.sh | 41 ++++++++++++++++++++++++----------------- 4 files changed, 30 insertions(+), 20 deletions(-) diff --git a/dist/Time-HiRes/Changes b/dist/Time-HiRes/Changes index a7f61a0..2fc64fc 100644 --- a/dist/Time-HiRes/Changes +++ b/dist/Time-HiRes/Changes @@ -1,5 +1,8 @@ Revision history for the Perl extension Time::HiRes. +1.9733 [2016-04-23] + - [rt #113856] C90 declaration-after-statement error with darwin threads + 1.9732 [2016-03-13] - MUTEX_LOCK, not PERL_MUTEX_LOCK: blead e5b02b5d - also hrt_ualarm_itimer() is unused: 1cb6cce3 diff --git a/dist/Time-HiRes/HiRes.pm b/dist/Time-HiRes/HiRes.pm index 4915813..ad9a65c 100644 --- a/dist/Time-HiRes/HiRes.pm +++ b/dist/Time-HiRes/HiRes.pm @@ -28,7 +28,7 @@ our @EXPORT_OK = qw (usleep sleep ualarm alarm gettimeofday time tv_interval stat lstat ); -our $VERSION = '1.9732'; +our $VERSION = '1.9733'; our $XS_VERSION = $VERSION; $VERSION = eval $VERSION; diff --git a/dist/Time-HiRes/HiRes.xs b/dist/Time-HiRes/HiRes.xs index 8b8f25c..38ca0dc 100644 --- a/dist/Time-HiRes/HiRes.xs +++ b/dist/Time-HiRes/HiRes.xs @@ -767,11 +767,11 @@ static mach_timebase_info_data_t timebase_info; static struct timespec timespec_init; static int darwin_time_init() { + struct timeval tv; + int success = 1; #ifdef USE_ITHREADS MUTEX_LOCK(&darwin_time_mutex); #endif - struct timeval tv; - int success = 1; if (absolute_time_init == 0) { /* mach_absolute_time() cannot fail */ absolute_time_init = mach_absolute_time(); diff --git a/hints/darwin.sh b/hints/darwin.sh index 2af6ae7..afadf53 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -212,31 +212,38 @@ esac # 10.1.x 5.x.y # Jaguar 10.2.x 6.x.y # Panther 10.3.x 7.x.y -# Tiger 10.4.x 8.x.y 2.0 (gcc4 4.0.0) -# 2.2 (gcc4 4.0.1) +# Tiger 10.4.x 8.x.y 2.0 (gcc4 4.0.0) +# 2.2 (gcc4 4.0.1) # 2.2.1 (gcc 3.3) # 2.5 ? -# Leopard 10.5.x 9.x.y 3.0 (gcc 4.0.1 default) -# 3.1 (gcc 4.2.1) -# Snow Leopard 10.6.x 10.x.y 3.2 (llvm gcc 4.2, clang 2.3 as 1.0) +# Leopard 10.5.x 9.x.y 3.0 (gcc 4.0.1 default) +# 3.1 (gcc 4.2.1) +# Snow Leopard 10.6.x 10.x.y 3.2 (llvm gcc 4.2, clang 2.3 as 1.0) # 3.2.1 (clang 1.0.1 as 1.0.1/24) # 3.2.2 (clang 1.0.2 as 1.0.2/32) # 3.2.3 (clang 1.5 as 1.5/60) # 4.0.1 (clang 2.9 as 2.0/138) -# Lion 10.7.x 11.x.y 4.1 (llvm gcc 4.2.1, clang 3.0 as 2.1/163.7.1) -# 4.2 (clang 3.0 as 3.0/211.10.1) +# Lion 10.7.x 11.x.y 4.1 (llvm gcc 4.2.1, clang 3.0 as 2.1/163.7.1) +# 4.2 (clang 3.0 as 3.0/211.10.1) # 4.3.3 (clang 3.1 as 3.1/318.0.61) -# 4.4 (clang 3.1 as 4.0/421.0.57) -# Mountain Lion 10.8.x 12.x.y 4.5 (clang 3.1 as 4.1/421.11.65, real gcc removed, there is gcc but it's really clang) -# 4.6 (clang 3.2 as 4.2/425.0.24) -# 5.0 (clang 3.3 as 5.0/500.2.75) -# 5.1 (clang 3.4 as 5.1/503.0.38) +# 4.4 (clang 3.1 as 4.0/421.0.57) +# Mountain Lion 10.8.x 12.x.y 4.5 (clang 3.1 as 4.1/421.11.65, real gcc removed, there is gcc but it's really clang) +# 4.6 (clang 3.2 as 4.2/425.0.24) +# 5.0 (clang 3.3 as 5.0/500.2.75) +# 5.1 (clang 3.4 as 5.1/503.0.38) +# 5.1.1 (clang 3.4 as 5.1/503.0.40) # Mavericks 10.9.x 13.x.y 6.0.1 (clang 3.5 as 6.0/600.0.51) -# 6.1 (clang 3.5 as 6.0/600.0.54) -# 6.2 (clang 3.5 as 6.0/600.0.57) -# Yosemite 10.10.x 14.x.y 6.3 (clang 3.6 as 6.1/602.0.49) -# El Capitan 10.11.x 15.x.y 7.0 (clang 3.7 as 7.0/700.0.72) -# 7.1 (clang 3.7 as 7.0/700.1.76) +# 6.1 (clang 3.5 as 6.0/600.0.54) +# 6.1.1 (clang 3.5 as 6.0/600.0.56) +# 6.2 (clang 3.5 as 6.0/600.0.57) +# Yosemite 10.10.x 14.x.y 6.3 (clang 3.6 as 6.1/602.0.49) +# 6.3.1 (clang 3.6 as 6.1/602.0.49) +# 6.3.2 (clang 3.6 as 6.1/602.0.53) +# El Capitan 10.11.x 15.x.y 7.0 (clang 3.7 as 7.0/700.0.72) +# 7.1 (clang 3.7 as 7.0/700.1.76) +# 7.2 (clang 3.7 as 7.0.2/700.1.81) +# 7.2.1 (clang 3.7 as 7.0.2/700.1.81) +# 7.3 (clang 3.7 as 7.3.0/703.0.29) # # Processors Supported -- Perl5 Master Repository