Add wrappers for ExitProcess, TerminateProcess
Tue Oct 6 16:15:00 GMT 2009
Corinna Vinschen wrote:
> Looks good to me. Let's wait for Chris, though. I have just one question.
> Shouldn't exit_process be marked with attribute(noreturn) or is the
> optimizing effect negligible?
It is already marked noreturn, in the declaration at the top of the
file. I got an error when I marked the definition that way --
apparently gcc4 doesn't like that:
attributes are not allowed on a function-definition
I even tried to include the attribute on a (forward) declaration AND the
definition, but I got the same error. The only thing that works is the
way I've already done it: apply the attribute to the (forward)
declaration, but not the definition.
More information about the Cygwin-patches