aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-12-12 17:52:13 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-12-12 17:52:13 -0500
commitb3776927a68157f417085d6ac7b681b293957396 (patch)
treebe0bf4f3804ee3777655b22bb02cee8027adb2ed
parent58307bcd65aa2d6ad0e185c745eed6e875477124 (diff)
downloadgcc-b3776927a68157f417085d6ac7b681b293957396.zip
gcc-b3776927a68157f417085d6ac7b681b293957396.tar.gz
gcc-b3776927a68157f417085d6ac7b681b293957396.tar.bz2
(emit_library_call): Don't pass VOIDmode to type_for_mode.
From-SVN: r13300
-rw-r--r--gcc/calls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 5802350..c9c2258 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -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,