Commit 5e24110e by Richard Stallman

(expand_call): Check properly for volatile function.

From-SVN: r5053
parent f01d4c3d
...@@ -593,11 +593,12 @@ expand_call (exp, target, ignore) ...@@ -593,11 +593,12 @@ expand_call (exp, target, ignore)
if (TREE_READONLY (fndecl) && ! TREE_THIS_VOLATILE (fndecl) if (TREE_READONLY (fndecl) && ! TREE_THIS_VOLATILE (fndecl)
&& TYPE_MODE (TREE_TYPE (exp)) != VOIDmode) && TYPE_MODE (TREE_TYPE (exp)) != VOIDmode)
is_const = 1; is_const = 1;
if (TREE_THIS_VOLATILE (fndecl))
is_volatile = 1;
} }
} }
is_volatile = TYPE_VOLATILE (TREE_TYPE (TREE_TYPE (p)));
#ifdef REG_PARM_STACK_SPACE #ifdef REG_PARM_STACK_SPACE
#ifdef MAYBE_REG_PARM_STACK_SPACE #ifdef MAYBE_REG_PARM_STACK_SPACE
reg_parm_stack_space = MAYBE_REG_PARM_STACK_SPACE; reg_parm_stack_space = MAYBE_REG_PARM_STACK_SPACE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment