Commit 1d0d518e by Jozef Lawrynowicz Committed by Jeff Law

msp430.c (TARGET_WARN_FUNC_RETURN): Define.

	* config/msp430/msp430.c (TARGET_WARN_FUNC_RETURN): Define.
	(msp430_warn_func_return): New.

From-SVN: r260690
parent ba6557e2
2018-05-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/msp430.c (TARGET_WARN_FUNC_RETURN): Define.
(msp430_warn_func_return): New.
2018-05-24 Roger Sayle <roger@nextmovesoftware.com> 2018-05-24 Roger Sayle <roger@nextmovesoftware.com>
* fold-const.c (tree_nonzero_bits): New function. * fold-const.c (tree_nonzero_bits): New function.
......
...@@ -1855,6 +1855,17 @@ msp430_allocate_stack_slots_for_args (void) ...@@ -1855,6 +1855,17 @@ msp430_allocate_stack_slots_for_args (void)
return ! is_naked_func (); return ! is_naked_func ();
} }
#undef TARGET_WARN_FUNC_RETURN
#define TARGET_WARN_FUNC_RETURN msp430_warn_func_return
static bool
msp430_warn_func_return (tree decl)
{
/* Naked functions are implemented entirely in assembly, including the
return sequence, so suppress warnings about this. */
return !is_naked_func (decl);
}
/* Verify MSP430 specific attributes. */ /* Verify MSP430 specific attributes. */
#define TREE_NAME_EQ(NAME, STR) (strcmp (IDENTIFIER_POINTER (NAME), (STR)) == 0) #define TREE_NAME_EQ(NAME, STR) (strcmp (IDENTIFIER_POINTER (NAME), (STR)) == 0)
......
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