This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39252] Request new feature __builtin_not_reached();
- From: "hpa at zytor dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Feb 2009 22:21:43 -0000
- Subject: [Bug c/39252] Request new feature __builtin_not_reached();
- References: <bug-39252-3556@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from hpa at zytor dot com 2009-02-19 22:21 -------
Let me respectfully disagree, and explain why.
*You* can just create a builtin, but for us (the Linux kernel community) we
stare a multi-year pipeline in the face whenever we have to request a gcc
change. This feature would allow us to do arbitrary trapping constructs via
the existing generic asm feature, without having to do wait for this pipeline
to flush every time we want to do something new.
In theory, ALL asm() constructs could be turned into builtins, and on some
level, that would be the right thing to do. However, I think you can see why
this is completely unrealistic, at least with anything less than us forking gcc
and have an ad hoc compiler for the kernel.
Yes, this feature can be abused. So can *any* use of asm().
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39252