re PR tree-optimization/69047 (memcpy is not as optimized as union is)
authorRichard Biener <rguenther@suse.de>
Tue, 30 Aug 2016 09:22:17 +0000 (09:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 30 Aug 2016 09:22:17 +0000 (09:22 +0000)
2016-08-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69047
* gcc.dg/pr69047.c: Fix byte-order check.

From-SVN: r239857

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr69047.c

index 1691cff63a171832920a1a13ce33ba3c709f4edc..613753e925a42717036c96ead395f9306722748a 100644 (file)
@@ -1,3 +1,8 @@
+2016-08-30  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/69047
+       * gcc.dg/pr69047.c: Fix byte-order check.
+
 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/72866
index 0227df231d87024e81e0809131f233d2fafff687..63d9fd90e83127b9a52b8cb238dd84ac64011253 100644 (file)
@@ -5,9 +5,9 @@ __UINT8_TYPE__
 f(__UINT16_TYPE__ b)
 {
   __UINT8_TYPE__ a;
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
   __builtin_memcpy(&a, &b, sizeof a);
-#elif __BYTE_ORDER == __BIG_ENDIAN
+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
   __builtin_memcpy(&a, (char *)&b + sizeof a, sizeof a);
 #else
   a = b;