liboffloadmic plugin: Address -Wnarrowing diagnostics
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 8 Jul 2015 15:47:59 +0000 (17:47 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Wed, 8 Jul 2015 15:47:59 +0000 (17:47 +0200)
commitbb9276646eb0137d984474b27f72275b9df765fc
treefe1b4f57d337decb59c6470393395b7057df10a1
parent1d6cc2e47f85b52bdfa6c4bec142b9d6ac1ca738
liboffloadmic plugin: Address -Wnarrowing diagnostics

    libtool: compile:  [...]/build-gcc/./gcc/xg++ [...] -c [...]/source-gcc/liboffloadmic/plugin/libgomp-plugin-intelmic.cpp [...]
    In file included from [...]/source-gcc/liboffloadmic/plugin/libgomp-plugin-intelmic.cpp:40:0:
    [...]/install/offload-x86_64-intelmicemul-linux-gnu/lib/gcc/x86_64-intelmicemul-linux-gnu/6.0.0/include/main_target_image.h:8628:1: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
     };
     ^
    [...]/install/offload-x86_64-intelmicemul-linux-gnu/lib/gcc/x86_64-intelmicemul-linux-gnu/6.0.0/include/main_target_image.h:8628:1: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
    [...]/install/offload-x86_64-intelmicemul-linux-gnu/lib/gcc/x86_64-intelmicemul-linux-gnu/6.0.0/include/main_target_image.h:8628:1: error: narrowing conversion of '164' from 'int' to 'char' inside { } [-Wnarrowing]
    [many more]

liboffloadmic/
* plugin/Makefile.am (main_target_image.h): Change type of data
member in struct MainTargetImage to uint8_t.
* plugin/Makefile.in: Regenerate.

From-SVN: r225562
liboffloadmic/ChangeLog
liboffloadmic/plugin/Makefile.am
liboffloadmic/plugin/Makefile.in