NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/44102: Internal compiler error on trivial source
The following reply was made to PR toolchain/44102; it has been noted by GNATS.
From: Paul Koning <paul_koning%dell.com@localhost>
To: <gnats-bugs%NetBSD.org@localhost>
Cc: <toolchain-manager%netbsd.org@localhost>,
<gnats-admin%netbsd.org@localhost>,
<netbsd-bugs%netbsd.org@localhost>,
<lacombar%gmail.com@localhost>
Subject: Re: toolchain/44102: Internal compiler error on trivial source
Date: Wed, 17 Nov 2010 10:44:36 -0500
On Nov 17, 2010, at 12:30 AM, David Holland wrote:
> The following reply was made to PR toolchain/44102; it has been noted =
by GNATS.
>=20
> From: David Holland <dholland-bugs%netbsd.org@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc:=20
> Subject: Re: toolchain/44102: Internal compiler error on trivial =
source
> Date: Wed, 17 Nov 2010 05:29:11 +0000
>=20
> On Wed, Nov 17, 2010 at 05:20:01AM +0000, lacombar%gmail.com@localhost wrote:
>> static inline void __attribute__((noreturn))
>> __bug()
>> {
>> }
>=20
> Yes, so it shouldn't crash, but this is not valid code and there is
> almost certainly no way to trigger the problem with valid code.
>=20
> Probably not even all that hard to find by inspecting the gcc =
source...
I'm not sure about not that hard...
Some testing shows the following:
gcc 4.2.1 (on Mac OS) also has the issue
gcc 4.5.0 (for MIPS/NetBSD) is ok
gcc 4.6.0 (current trunk pre-release) is ok
"ok" means it produces a warning "'noreturn' function does return".
So one solution to this PR would be to update the toolchain to 4.5.1 =
(the latest released gcc).
paul
Home |
Main Index |
Thread Index |
Old Index