]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
authorUros Bizjak <uros@gcc.gnu.org>
Sun, 2 Feb 2014 10:21:44 +0000 (11:21 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 2 Feb 2014 10:21:44 +0000 (11:21 +0100)
Backport from mainline
2014-01-30  Jakub Jelinek  <jakub@redhat.com>

* config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.

From-SVN: r207394

gcc/ChangeLog
gcc/config/i386/f16cintrin.h

index 65140b52eded3d43964ce74749b2557ad2967521..af97b9cca807fed54525835ce646bcb7ecc6e434 100644 (file)
@@ -1,3 +1,10 @@
+2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
+
+       Backport from mainline
+       2014-01-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
+
 2014-01-31  Richard Henderson  <rth@redhat.com>
 
        PR middle-end/60004
@@ -23,9 +30,9 @@
        Backport from mainline
        2014-01-25  Walter Lee  <walt@tilera.com>
 
-       * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins): 
+       * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
        Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
-       * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins): 
+       * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
        Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
 
 2014-01-25  Walter Lee  <walt@tilera.com>
@@ -35,8 +42,7 @@
 
        * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
        insns before bundling.
-       * config/tilegx/tilegx.md (tile_network_barrier): Update
-       comment.
+       * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
 
 2014-01-25  Walter Lee  <walt@tilera.com>
 
index 88903c16231f9a5deb694a258d0089ebb12e23fe..4a29fccffe708730f2f77fafc1b5e4a86f1681fc 100644 (file)
@@ -35,7 +35,7 @@
 extern __inline float __attribute__((__gnu_inline__, __always_inline__, __artificial__))
 _cvtsh_ss (unsigned short __S)
 {
-  __v8hi __H = __extension__ (__v8hi){ __S, 0, 0, 0, 0, 0, 0, 0 };
+  __v8hi __H = __extension__ (__v8hi){ (short) __S, 0, 0, 0, 0, 0, 0, 0 };
   __v4sf __A = __builtin_ia32_vcvtph2ps (__H);
   return __builtin_ia32_vec_ext_v4sf (__A, 0);
 }