OSDN Git Service

(emit_library_call): Don't pass VOIDmode to type_for_mode.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Dec 1996 22:52:13 +0000 (22:52 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Dec 1996 22:52:13 +0000 (22:52 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13300 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/calls.c

index 5802350..c9c2258 100644 (file)
@@ -2505,7 +2505,8 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode,
 
   emit_call_1 (fun, 
                get_identifier (XSTR (orgfun, 0)), 
-              build_function_type (type_for_mode (outmode, 0), NULL_TREE),
+              build_function_type (outmode == VOIDmode ? void_type_node
+                                   : type_for_mode (outmode, 0), NULL_TREE),
                args_size.constant, 0,
               FUNCTION_ARG (args_so_far, VOIDmode, void_type_node, 1),
               outmode != VOIDmode ? hard_libcall_value (outmode) : NULL_RTX,