summaryrefslogtreecommitdiff
path: root/gcc/config/avr/avr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/avr/avr.c')
-rw-r--r--gcc/config/avr/avr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 0f8f803fd30..bc51d9181c2 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -552,7 +552,7 @@ out_adj_frame_ptr (FILE *file, int adj)
if (TARGET_TINY_STACK)
{
if (adj < -63 || adj > 63)
- warning ("large frame pointer change (%d) with -mtiny-stack", adj);
+ warning (0, "large frame pointer change (%d) with -mtiny-stack", adj);
/* The high byte (r29) doesn't change - prefer "subi" (1 cycle)
over "sbiw" (2 cycles, same size). */
@@ -4670,14 +4670,14 @@ avr_handle_progmem_attribute (tree *node, tree name,
{
if (DECL_INITIAL (*node) == NULL_TREE && !DECL_EXTERNAL (*node))
{
- warning ("only initialized variables can be placed into "
+ warning (0, "only initialized variables can be placed into "
"program memory area");
*no_add_attrs = true;
}
}
else
{
- warning ("%qs attribute ignored", IDENTIFIER_POINTER (name));
+ warning (0, "%qs attribute ignored", IDENTIFIER_POINTER (name));
*no_add_attrs = true;
}
}
@@ -4696,7 +4696,7 @@ avr_handle_fndecl_attribute (tree *node, tree name,
{
if (TREE_CODE (*node) != FUNCTION_DECL)
{
- warning ("%qs attribute only applies to functions",
+ warning (0, "%qs attribute only applies to functions",
IDENTIFIER_POINTER (name));
*no_add_attrs = true;
}
@@ -4713,7 +4713,7 @@ avr_handle_fndecl_attribute (tree *node, tree name,
{
if (strncmp (func_name, "__vector", strlen ("__vector")) != 0)
{
- warning ("`%s' appears to be a misspelled interrupt handler",
+ warning (0, "`%s' appears to be a misspelled interrupt handler",
func_name);
}
}
@@ -4721,7 +4721,7 @@ avr_handle_fndecl_attribute (tree *node, tree name,
{
if (strncmp (func_name, "__vector", strlen ("__vector")) != 0)
{
- warning ("`%s' appears to be a misspelled signal handler",
+ warning (0, "`%s' appears to be a misspelled signal handler",
func_name);
}
}
@@ -4790,7 +4790,7 @@ avr_section_type_flags (tree decl, const char *name, int reloc)
&& DECL_INITIAL (decl) == NULL_TREE)
flags |= SECTION_BSS; /* @nobits */
else
- warning ("only uninitialized variables can be placed in the "
+ warning (0, "only uninitialized variables can be placed in the "
".noinit section");
}