[nvptx] Fix Wformat in nvptx_assemble_decl_begin
authorTom de Vries <tdevries@suse.de>
Wed, 9 Sep 2020 13:37:58 +0000 (15:37 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 9 Sep 2020 13:53:24 +0000 (15:53 +0200)
commit5d3c12e4184a5e8d0cfda41e90bb2fcd98e7ddae
tree12e8105d3b5eb6db8b18e40c4ef058f49562f298
parent4e03e2e08b94f65f2be3db17f880c205ec262f87
[nvptx] Fix Wformat in nvptx_assemble_decl_begin

I'm running into this warning:
...
src/gcc/config/nvptx/nvptx.c: In function \
  ‘void nvptx_assemble_decl_begin(FILE*, const char*, const char*, \
  const_tree, long int, unsigned int, bool)’:
src/gcc/config/nvptx/nvptx.c:2229:29: warning: format ‘%d’ expects argument \
  of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
     elt_size * BITS_PER_UNIT);
                             ^
...
which I seem to have introduced in commit b9c7fe59f9f "[nvptx] Fix array
dimension in nvptx_assemble_decl_begin", but not noticed due to configuring
with --disable-build-format-warnings.

Fix this by using the appropriate format.

Rebuild cc1 on nvptx.

gcc/ChangeLog:

* config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Fix Wformat
warning.
gcc/config/nvptx/nvptx.c