Since __builtin_unreachable is only for GCC 4.5, we use exit(0) for now (it will never be reached) to trick GCC.
There is also __builtin_trap() …
Since __builtin_unreachable is only for GCC 4.5, we use exit(0) for now (it will never be reached) to trick GCC.
There is also __builtin_trap() …
Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Aha, cool!
What seems to be the problem that caused the need for a revert? Can't we simply define NORETURN as attribute(noreturn) in nt+windef.h and then leave the built_intrap/unreachable hack in trap_x.h?
-r
It produces many warnings "warning: 'noreturn' function does return" (which are treated as errors). Probably GCC 4.1.3 does not recognize that exit() hack or __builtin_trap() never returns. Unfortunately, I deleted old GCC a long time ago and now can't check how it behaves.
We have to switch to gcc 4.4 and this will be resolved. RosBE-Windows is ready and RosBE-Unix has a release candidate. Is there still something missing to switch ?
Kind regards, Sylvain Petreolle
----- Message d'origine ----
De : Dmitry Gorbachev gorbachev@reactos.org À : ReactOS Development List ros-dev@reactos.org Envoyé le : Dim 24 Janvier 2010, 4 h 01 min 19 s Objet : Re: [ros-dev] [ros-diffs] [sir_richard] 45223
It produces many warnings "warning: 'noreturn' function does return" (which are treated as errors). Probably GCC 4.1.3 does not recognize that exit() hack or __builtin_trap() never returns. Unfortunately, I deleted old GCC a long time ago and now can't check how it behaves.
Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Yes, it seems like the windows build of GCC 4.4.X do not build with makex. Have to discuss that with Colin when he's back.
Sylvain Petreolle schrieb:
We have to switch to gcc 4.4 and this will be resolved. RosBE-Windows is ready and RosBE-Unix has a release candidate. Is there still something missing to switch ?
Kind regards, Sylvain Petreolle
----- Message d'origine ----
De : Dmitry Gorbachevgorbachev@reactos.org À : ReactOS Development Listros-dev@reactos.org Envoyé le : Dim 24 Janvier 2010, 4 h 01 min 19 s Objet : Re: [ros-dev] [ros-diffs] [sir_richard] 45223
It produces many warnings "warning: 'noreturn' function does return" (which are treated as errors). Probably GCC 4.1.3 does not recognize that exit() hack or __builtin_trap() never returns. Unfortunately, I deleted old GCC a long time ago and now can't check how it behaves.
Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev