diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2017-01-06 03:34:25 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2017-01-06 03:34:25 +0000 |
commit | 435f3f7adf6c1ae34547c4859205f4ec7beb8a93 (patch) | |
tree | ef6481220571101b18b84ff2a010256645d29fce /gcc/fortran/simplify.c | |
parent | a172ab790bb47dc296099506157019f8d4874637 (diff) | |
download | gcc-435f3f7adf6c1ae34547c4859205f4ec7beb8a93.zip gcc-435f3f7adf6c1ae34547c4859205f4ec7beb8a93.tar.gz gcc-435f3f7adf6c1ae34547c4859205f4ec7beb8a93.tar.bz2 |
[bootstrap-O1] change value type to avoid sprintf buffer size warning
In stage2 of bootstrap-O1, the code that warns if sprintf might
overflow its output buffer cannot tell that an unsigned value narrowed
to 16 bits will fit in 4 bytes with %4x.
Converting the value to 'unsigned short' makes it obvious that it
fits, at least on machines with 16-bit shorts.
for gcc/c-family/ChangeLog
* c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
value to unsigned short to fit in 4 hex digits without
warnings.
From-SVN: r244121
Diffstat (limited to 'gcc/fortran/simplify.c')
0 files changed, 0 insertions, 0 deletions