(common_type): Use TYPE_MAIN_VARIANT when preferring
authorRichard Stallman <rms@gnu.org>
Sun, 18 Jul 1993 18:10:11 +0000 (18:10 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 18 Jul 1993 18:10:11 +0000 (18:10 +0000)
commit366185286aab4ceeb94d98eb54fd9c59708f152a
tree946b52405b7212d1a870b567e708061872e551b8
parentedbc355b88bb2e18409a5a7dde52d5fd779c3d1c
(common_type): Use TYPE_MAIN_VARIANT when preferring
long int to int (when width is the same).

(check_format): With -Wformat, warn about
printf("%ld", 1) even if sizeof (int) == sizeof (long),
since the code isn't portable.  Similarly for "%d" vs 1L.

(convert_arguments) [PROMOTE_PROTOTYPES]:
With -Wconversion, use unpromoted type to check for signedness changes.

From-SVN: r4935
gcc/c-typeck.c