]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2756] ntpd hangs in startup with gcc 3.3.5 on ARM
authorHarlan Stenn <stenn@ntp.org>
Sat, 28 Feb 2015 09:11:24 +0000 (09:11 +0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 28 Feb 2015 09:11:24 +0000 (09:11 +0000)
bk: 54f1863ccZnH7QugLgIc12mvq_GjMw

ChangeLog
configure.ac
include/ntp_fp.h

index ebf62bf0390ed2bec79d66989c265e689471363e..5fe210aafb6e63f640cf465176dced11f96fd434 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 * [Bug 2747] Upgrade libevent to 2.1.5-beta.
 * [Bug 2749] ntp/lib/NTP/Util.pm needs update for ntpq -w, IPv6, .POOL. .
 * [Bug 2751] jitter.h has stale copies of l_fp macros.
+* [Bug 2756] ntpd hangs in startup with gcc 3.3.5 on ARM.
 * [Bug 2757] Quiet compiler warnings.
 ---
 (4.2.8p1) 2015/02/04 Released by Harlan Stenn <stenn@ntp.org>
index d82ad2ed2e4d9b74f41302eaf77f39715008b821..7916548ffb4bd7fc749526fba8450efcd5bed407 100644 (file)
@@ -4194,7 +4194,6 @@ case "$ans" in
 esac
 
 AC_MSG_CHECKING([if we should enable NIST lockclock scheme])
-
 AC_ARG_ENABLE(
        [nist],
        [AS_HELP_STRING(
@@ -4214,7 +4213,6 @@ case "$ans" in
 esac
 
 AC_MSG_CHECKING([if we want support for Samba's signing daemon])
-
 AC_ARG_ENABLE(
     [ntp-signd],
     [AS_HELP_STRING(
index 1b97e8b5cf72eb179dfbe8ce8a7725b4e8e5f5a1..780693226207063b541217403f23efca849b301f 100644 (file)
@@ -264,10 +264,13 @@ typedef u_int32 u_fp;
  * headers.  So far the problem has only been seen with gcc, but it
  * may also affect Sun compilers, in which case the defined(__GNUC__)
  * term should be removed.
+ * XSCALE also generates bad code for these, at least with GCC 3.3.5.
+ * This is unrelated to math.h, but the same solution applies.
  */
 #if defined(HAVE_U_INT64) && \
     !(defined(__SVR4) && defined(__sun) && \
-      defined(sparc) && defined(__GNUC__))
+      defined(sparc) && defined(__GNUC__) || \
+      defined(__arm__) && defined(__XSCALE__) && defined(__GNUC__)) 
 
 #include <math.h>      /* ldexp() */