mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 21:01:29 +08:00
m32c.c (m32c_special_page_vector_p): Move declarations before code.
* config/m32c/m32c.c (m32c_special_page_vector_p): Move declarations before code. (current_function_special_page_vector): Likewise. (m32c_expand_insv): Silence a warning. From-SVN: r146614
This commit is contained in:
parent
a58f7da12a
commit
653e2568d9
@ -1,3 +1,10 @@
|
||||
2009-04-22 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* config/m32c/m32c.c (m32c_special_page_vector_p): Move
|
||||
declarations before code.
|
||||
(current_function_special_page_vector): Likewise.
|
||||
(m32c_expand_insv): Silence a warning.
|
||||
|
||||
2009-04-21 Taras Glek <tglek@mozilla.com>
|
||||
|
||||
* alias.c: Update GTY annotations to new syntax.
|
||||
|
@ -2771,10 +2771,12 @@ interrupt_handler (tree * node ATTRIBUTE_UNUSED,
|
||||
int
|
||||
m32c_special_page_vector_p (tree func)
|
||||
{
|
||||
tree list;
|
||||
|
||||
if (TREE_CODE (func) != FUNCTION_DECL)
|
||||
return 0;
|
||||
|
||||
tree list = M32C_ATTRIBUTES (func);
|
||||
list = M32C_ATTRIBUTES (func);
|
||||
while (list)
|
||||
{
|
||||
if (is_attribute_p ("function_vector", TREE_PURPOSE (list)))
|
||||
@ -2837,12 +2839,13 @@ current_function_special_page_vector (rtx x)
|
||||
if ((GET_CODE(x) == SYMBOL_REF)
|
||||
&& (SYMBOL_REF_FLAGS (x) & SYMBOL_FLAG_FUNCVEC_FUNCTION))
|
||||
{
|
||||
tree list;
|
||||
tree t = SYMBOL_REF_DECL (x);
|
||||
|
||||
if (TREE_CODE (t) != FUNCTION_DECL)
|
||||
return 0;
|
||||
|
||||
tree list = M32C_ATTRIBUTES (t);
|
||||
list = M32C_ATTRIBUTES (t);
|
||||
while (list)
|
||||
{
|
||||
if (is_attribute_p ("function_vector", TREE_PURPOSE (list)))
|
||||
@ -3870,6 +3873,7 @@ m32c_expand_insv (rtx *operands)
|
||||
case 5: p = gen_iorqi3_24 (op0, src0, GEN_INT (mask)); break;
|
||||
case 6: p = gen_iorhi3_16 (op0, src0, GEN_INT (mask)); break;
|
||||
case 7: p = gen_iorhi3_24 (op0, src0, GEN_INT (mask)); break;
|
||||
default: p = NULL_RTX; break; /* Not reached, but silences a warning. */
|
||||
}
|
||||
|
||||
emit_insn (p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user