summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/calls.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-04-09 13:44:52 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-04-09 13:44:52 +0000
commit454abcd55d12d4ef15ec29c89b2ad4d47f3c82d1 (patch)
tree03ae5cb442348bb46932a1a62039a44962996f47 /gnu/usr.bin/gcc/calls.c
parentc1c4ca433ba86feadc773a80691f0e693d52ecd8 (diff)
Revert to older (working) version of gcc, plus recent changes.
Diffstat (limited to 'gnu/usr.bin/gcc/calls.c')
-rw-r--r--gnu/usr.bin/gcc/calls.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/gnu/usr.bin/gcc/calls.c b/gnu/usr.bin/gcc/calls.c
index 5eedf493af1..ad05be4f7c0 100644
--- a/gnu/usr.bin/gcc/calls.c
+++ b/gnu/usr.bin/gcc/calls.c
@@ -563,8 +563,6 @@ expand_call (exp, target, ignore)
/* Nonzero if it is plausible that this is a call to alloca. */
int may_be_alloca;
- /* Nonzero if this is a call to malloc or a related function. */
- int is_malloc;
/* Nonzero if this is a call to setjmp or a related function. */
int returns_twice;
/* Nonzero if this is a call to `longjmp'. */
@@ -853,7 +851,6 @@ expand_call (exp, target, ignore)
returns_twice = 0;
is_longjmp = 0;
- is_malloc = 0;
if (name != 0 && IDENTIFIER_LENGTH (DECL_NAME (fndecl)) <= 15)
{
@@ -893,10 +890,6 @@ expand_call (exp, target, ignore)
else if (tname[0] == 'l' && tname[1] == 'o'
&& ! strcmp (tname, "longjmp"))
is_longjmp = 1;
- /* Only recognize malloc when alias analysis is enabled. */
- else if (tname[0] == 'm' && flag_alias_check
- && ! strcmp(tname, "malloc"))
- is_malloc = 1;
}
if (may_be_alloca)
@@ -1369,7 +1362,7 @@ expand_call (exp, target, ignore)
/* Now we are about to start emitting insns that can be deleted
if a libcall is deleted. */
- if (is_const || is_malloc)
+ if (is_const)
start_sequence ();
/* If we have no actual push instructions, or shouldn't use them,
@@ -1958,20 +1951,6 @@ expand_call (exp, target, ignore)
end_sequence ();
emit_insns (insns);
}
- else if (is_malloc)
- {
- rtx temp = gen_reg_rtx (GET_MODE (valreg));
- rtx last, insns;
-
- emit_move_insn (temp, valreg);
- last = get_last_insn ();
- REG_NOTES (last) =
- gen_rtx (EXPR_LIST, REG_NOALIAS, temp, REG_NOTES (last));
- insns = get_insns ();
- end_sequence ();
- emit_insns (insns);
- valreg = temp;
- }
/* For calls to `setjmp', etc., inform flow.c it should complain
if nonvolatile values are live. */