This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]