mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-06 02:20:34 +08:00
re PR tree-optimization/55890 (calling a builtin func through a cast triggers an ICE)
2013-01-12 Tom de Vries <tom@codesourcery.com> PR middle-end/55890 * calls.c (expand_call): Check if arg_nr is valid. From-SVN: r195119
This commit is contained in:
parent
93b2c9a52e
commit
b3681f139f
@ -1,3 +1,8 @@
|
||||
2013-01-12 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR middle-end/55890
|
||||
* calls.c (expand_call): Check if arg_nr is valid.
|
||||
|
||||
2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
|
||||
|
||||
* doc/extend.texi (X86 Built-in Functions): Add whitespace in
|
||||
|
@ -3134,7 +3134,9 @@ expand_call (tree exp, rtx target, int ignore)
|
||||
int arg_nr = return_flags & ERF_RETURN_ARG_MASK;
|
||||
if (PUSH_ARGS_REVERSED)
|
||||
arg_nr = num_actuals - arg_nr - 1;
|
||||
if (args[arg_nr].reg
|
||||
if (arg_nr >= 0
|
||||
&& arg_nr < num_actuals
|
||||
&& args[arg_nr].reg
|
||||
&& valreg
|
||||
&& REG_P (valreg)
|
||||
&& GET_MODE (args[arg_nr].reg) == GET_MODE (valreg))
|
||||
|
Loading…
x
Reference in New Issue
Block a user