mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-09 19:11:14 +08:00
* c-common.c (c_common_type_for_mode): Check for VOIDmode.
From-SVN: r71732
This commit is contained in:
parent
8a81cc4525
commit
ff42324ea3
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user