Re: [edk2] [PATCH v2 1/4] MdePkg: Add NORETURN attribute and UNREACHABLE() macro.

2016-06-21 Thread Kinney, Michael D
Reviewed-by: Michael Kinney > -Original Message- > From: Marvin Häuser [mailto:marvin.haeu...@outlook.com] > Sent: Saturday, June 18, 2016 6:29 PM > To: edk2-devel@lists.01.org > Cc: Gao, Liming ; Kinney, Michael D >

Re: [edk2] [PATCH v2 1/4] MdePkg: Add NORETURN attribute and UNREACHABLE() macro.

2016-06-20 Thread Gao, Liming
Reviewed-by: Liming Gao for this series. > -Original Message- > From: Marvin Häuser [mailto:marvin.haeu...@outlook.com] > Sent: Sunday, June 19, 2016 9:29 AM > To: edk2-devel@lists.01.org > Cc: Gao, Liming ; Kinney, Michael D >

[edk2] [PATCH v2 1/4] MdePkg: Add NORETURN attribute and UNREACHABLE() macro.

2016-06-18 Thread Marvin Häuser
The NORETURN attribute informs compilers and analyzers that the flagged function cannot return. This may improve the quality of the optimizations. The UNREACHABLE() macro informs compilers and analyzers that its position cannot be reached, for example eliminating implicit returns. It is