This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Marking a builtin function as `noreturn'.
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: daniel dot towner at picochip dot com (Daniel Towner)
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 1 Mar 2006 09:19:39 -0500 (EST)
- Subject: Re: Marking a builtin function as `noreturn'.
>
> Hi all,
>
> I maintain a port of gcc for an embedded processor which has a HALT
> instruction. This instruction stops the processor, and generates an
> appropriate interrupt to indicate to its parent system that it has
> stopped. The instruction is accessed by the programmer using a
> port-specific builtin, which can then be used, amongst other things, to
> implement the `assert' macro.
Why doesn't this HALT instruction map directly to the trap builtin?
Isn't that a better way of doing it then using a port specific builtin?
-- Pinski