This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/71876] longjmp is miscompiled with -ffreestanding
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Jul 2016 19:36:16 +0000
- Subject: [Bug middle-end/71876] longjmp is miscompiled with -ffreestanding
- Auto-submitted: auto-generated
- References: <bug-71876-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71876
--- Comment #11 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Jeffrey A. Law from comment #10)
> No opinion on the "x" prefix. I think that was already in place when that
> code was updated to support qsetjmp and savectx in the early 90s. I've
> never seen the "x" versions in practice.
>
I would like to get rid of the 25 year old ballast, that is likely good for
nothing.
> ANd yes, you're raising real issues (you can find instances in the real
> world where this has bitten folks).
>
> Unfortunately, I don't know a signature for savectx. I haven't used a
> solaris system in eons.
Maybe it would be a better option to add the returns_twice it to the
fixinclude machinery?