* config/fp-bit.c (abort): Add noreturn attribute.
* config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
gcc_unreachable as appropriate.
(ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
* config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
ASM_OUTPUT_REG_POP): Likewise.
From-SVN: r98854
+2005-04-27 Nathan Sidwell <nathan@codesourcery.com>
+
+ * config/fp-bit.c (abort): Add noreturn attribute.
+
+ * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
+ gcc_unreachable as appropriate.
+ (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
+ * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
+ ASM_OUTPUT_REG_POP): Likewise.
+
2005-04-27 Paolo Bonzini <bonzini@gnu.org>
* tree-complex.c (expand_vector_operations_1): Do not build
{
tree a;
- if (TREE_CODE (func) != FUNCTION_DECL)
- abort ();
+ gcc_assert (TREE_CODE (func) == FUNCTION_DECL);
a = lookup_attribute ("naked", DECL_ATTRIBUTES (func));
return a != NULL_TREE;
case REG_Y: return "Y";
case REG_Z: return "Z";
default:
- abort ();
+ gcc_unreachable ();
}
return NULL;
}
case LTU:
return "lo";
default:
- abort ();
+ gcc_unreachable ();
}
}
case LEU:
return LTU;
default:
- abort ();
+ gcc_unreachable ();
}
}
#define ASM_OUTPUT_REG_PUSH(STREAM, REGNO) \
{ \
- if (REGNO > 31) \
- abort (); \
+ gcc_assert (REGNO < 32); \
fprintf (STREAM, "\tpush\tr%d", REGNO); \
}
#define ASM_OUTPUT_REG_POP(STREAM, REGNO) \
{ \
- if (REGNO > 31) \
- abort (); \
+ gcc_assert (REGNO < 32); \
fprintf (STREAM, "\tpop\tr%d", REGNO); \
}
#endif
#ifdef EXTENDED_FLOAT_STUBS
-extern void abort (void);
+extern __attribute__ ((__noreturn__)) void abort (void);
void __extendsfxf2 (void) { abort(); }
void __extenddfxf2 (void) { abort(); }
void __truncxfdf2 (void) { abort(); }