(output_init_element): Don't call default_conversion for a STRING_CST if type is...
authorRichard Stallman <rms@gnu.org>
Fri, 13 Aug 1993 05:59:36 +0000 (05:59 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 13 Aug 1993 05:59:36 +0000 (05:59 +0000)
commitfd5d5b94a1a2b798724fd7d92f309ecac8c2eb34
tree697b2c1b5383b07e70aec42bf38da374ebf3920f
parent1930a6180e9d24e5fe15304ca7da3cc0dbd87e18
(output_init_element): Don't call default_conversion for a STRING_CST if type is directly suitable for it.

(output_init_element): Don't call default_conversion
for a STRING_CST if type is directly suitable for it.
(digest_init): Eliminate a lot of code that checks the variable
'element', since element is always 0 in these code paths.

(build_c_cast): For (void *) (FOO *) 0, return a nop_expr
so it doesn't count as a null pointer constant.
(convert_for_assignment, build_binary_op): Pedantically warn about
that case if looking for a null_pointer_constant.
(build_conditional_expr): Likewise.

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