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



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.
> 
> From: David Holland <dholland-bugs%netbsd.org@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc: 
> Subject: Re: toolchain/44102: Internal compiler error on trivial source
> Date: Wed, 17 Nov 2010 05:29:11 +0000
> 
> On Wed, Nov 17, 2010 at 05:20:01AM +0000, lacombar%gmail.com@localhost wrote:
>> static inline void __attribute__((noreturn))
>> __bug()
>> {
>> }
> 
> 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.
> 
> 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