From: Ali Saidi Date: Wed, 2 Jun 2010 17:58:03 +0000 (-0500) Subject: ARM: GCC < 4.3 has some issues with attribute no return on some functions. Fix so... X-Git-Tag: stable_2012_02_02~1325 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fadf2691d8e2724c1bd175c2f505786a50bf12e;p=gem5.git ARM: GCC < 4.3 has some issues with attribute no return on some functions. Fix so it works for older gccs. --- 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; } }};