base-nova: workaround for compiling with GCC 6

Issue #2378
This commit is contained in:
Christian Prochaska 2017-04-10 19:57:38 +02:00 committed by Christian Helmuth
parent bf83c07923
commit f90a4a85e0

View File

@ -113,6 +113,8 @@ void prepare_reinit_main_thread()
** Thread ** ** Thread **
************/ ************/
/* prevent the compiler from optimizing out the 'this' pointer check */
__attribute__((optimize("-fno-delete-null-pointer-checks")))
Native_utcb *Thread::utcb() Native_utcb *Thread::utcb()
{ {
/* /*