ATTRIBUTE_NORETURN on sets_cc0_p

Jeffrey A Law law@cygnus.com
Mon Oct 19 09:21:00 GMT 1998


  In message < vyzzpatkl8h.fsf@issan.cs.uni-dortmund.de >you write:
  > Jeffrey A Law <law@cygnus.com> writes:
  > 
  > |>   In message < vyzvhlkykg9.fsf@issan.cs.uni-dortmund.de >you write:
  > |>   > It looks pretty bogus to me to have a function that returns a value 
  > but
  > |>   > does not return.  ATTRIBUTE_NORETURN does not make sense on a non-vo
  > id
  > |>   > function and is most likely misplaced here.
  > |> For a non-cc0 machine sets_cc0_p unconditionally aborts.
  > 
  > In other words, for non-cc0 machine it is never called, is it?  Thus the
  > actual declaration doesn't matter at all then?
Correct.  If it ever gets called by a non-cc0 machine, that's a bug.

jeff



More information about the Gcc mailing list