Remove const attribute on get_log2
authorPeter Collingbourne <pcc@google.com>
Mon, 13 May 2013 15:36:12 +0000 (08:36 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 15 May 2013 21:27:53 +0000 (14:27 -0700)
This function is not const, as it can modify log2_m and log2_m_inited.

ChangeLog
math/atest-exp2.c

index a22b803..8a846bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-13  Peter Collingbourne  <pcc@google.com>
+
+       * math/atest-exp2.c (get_log2): Remove const attribute.
+
 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
 
        * math/libm-test.inc (struct test_f_l_data): New type.
index 20836ca..694237d 100644 (file)
@@ -77,7 +77,6 @@ read_mpn_hex(mp_limb_t *x, const char *str)
                                      << (FRAC - i * 4 - 4) % mpbpl);
 }
 
-static mp_limb_t *get_log2(void) __attribute__((const));
 static mp_limb_t *
 get_log2(void)
 {