* c-common.c (c_common_type_for_mode): Check for VOIDmode.

From-SVN: r71732
This commit is contained in:
Nathan Sidwell 2003-09-24 09:15:21 +00:00 committed by Nathan Sidwell
parent 8a81cc4525
commit ff42324ea3
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
* c-common.c (c_common_type_for_mode): Check for VOIDmode.
2003-09-24 Richard Earnshaw <rearnsha@arm.com>
* arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in

View File

@ -1862,6 +1862,9 @@ c_common_type_for_mode (enum machine_mode mode, int unsignedp)
if (mode == TYPE_MODE (long_double_type_node))
return long_double_type_node;
if (mode == TYPE_MODE (void_type_node))
return void_type_node;
if (mode == TYPE_MODE (build_pointer_type (char_type_node)))
return unsignedp ? make_unsigned_type (mode) : make_signed_type (mode);