Re: RFC: Support non-standard extension (call via casted function pointer)
- To: Eric Botcazou <ebotcazou@adacore.com>
- Cc: gcc@gcc.gnu.org, Jeff Law <law@redhat.com>, Florian Weimer <fweimer@redhat.com>, Richard Biener <richard.guenther@gmail.com>, Thorsten Otto <halgara@yahoo.de>, Michael Karcher <debian@mkarcher.dialup.fu-berlin.de>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, Debian m68k <debian-68k@lists.debian.org>, Matthias Klose <doko@debian.org>
- Subject: Re: RFC: Support non-standard extension (call via casted function pointer)
- From: Andreas Schwab <schwab@linux-m68k.org>
- Date: Sat, 30 Jan 2016 11:33:27 +0100
- Message-id: <[🔎] m2d1sj1hmw.fsf@linux-m68k.org>
- In-reply-to: <[🔎] 2558172.PtrvgZcDPQ@polaris> (Eric Botcazou's message of "Sat, 30 Jan 2016 11:20:33 +0100")
- References: <[🔎] 56A7C307.3010701@mkarcher.dialup.fu-berlin.de> <[🔎] 56AC3925.1080205@redhat.com> <[🔎] m2h9hv1kg0.fsf@linux-m68k.org> <[🔎] 2558172.PtrvgZcDPQ@polaris>
Eric Botcazou <ebotcazou@adacore.com> writes:
>> See PR48835. The Ada situation is even worse, it doesn't even try to
>> cast the (wrongly declared) function to the correct type before calling
>> it.
>
> How could it, since it doesn't know the correct type of the function?
What about the prototype in raise.h?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Reply to: