From 8fadf2691d8e2724c1bd175c2f505786a50bf12e Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 2 Jun 2010 12:58:03 -0500 Subject: ARM: GCC < 4.3 has some issues with attribute no return on some functions. Fix so it works for older gccs. --- src/arch/arm/isa/templates/basic.isa | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/arch') diff --git a/src/arch/arm/isa/templates/basic.isa b/src/arch/arm/isa/templates/basic.isa index c6a7566d3..843f90840 100644 --- a/src/arch/arm/isa/templates/basic.isa +++ b/src/arch/arm/isa/templates/basic.isa @@ -89,5 +89,7 @@ def template BasicExecPanic {{ Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const { panic("Execute method called when it shouldn't!"); + // GCC < 4.3 fail to recognize the above panic as no return + return NoFault; } }}; -- cgit v1.2.3