NetBSD Problem Report #33097
From minskim@netbsd.org Sat Mar 18 01:43:31 2006
Return-Path: <minskim@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 1335)
id 3A68763B8DB; Sat, 18 Mar 2006 01:43:31 +0000 (UTC)
Message-Id: <20060318014331.3A68763B8DB@narn.netbsd.org>
Date: Sat, 18 Mar 2006 01:43:31 +0000 (UTC)
From: Min Sik Kim <minskim@NetBSD.org>
To: gnats-bugs@netbsd.org
Subject: internal compiler error while building pkgsrc/devel/Coin
X-Send-Pr-Version: 3.95
>Number: 33097
>Category: toolchain
>Synopsis: internal compiler error while building pkgsrc/devel/Coin
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 18 01:45:00 +0000 2006
>Closed-Date: Sat Jan 19 18:50:54 +0000 2008
>Last-Modified: Sat Jan 19 18:50:54 +0000 2008
>Originator: Min Sik Kim
>Release: NetBSD 3.0_STABLE
>Organization:
>Environment:
System: NetBSD sulley 3.0_STABLE NetBSD 3.0_STABLE (SULLEY) #2: Fri Feb 3 21:06:20 PST 2006
Architecture: i386
Machine: i386
>Description:
Building pkgsrc/devel/Coin on i386 with optimization enabled causes
an internal compiler error. According to bulk build results, this
error also occurs on -current.
>How-To-Repeat:
The following is the minimal code to reproduce the error.
% cat > pr.cc <<EOF
class A {
public:
void setOverride(const bool state);
bool getState(const unsigned int bits);
};
inline bool A::getState(const unsigned int bits) {
unsigned int flags = 0;
return (flags & bits) != 0;
}
void A::setOverride(const bool state) {
if (state != getState(0x80000000)) return;
}
EOF
% g++ -O -c pr.cc
pr.cc: In member function `void A::setOverride(bool)':
pr.cc:8: internal compiler error: in fold_single_bit_test, at fold-const.c:4653
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.
%
>Fix:
>Release-Note:
>Audit-Trail:
From: Min Sik Kim <minskim@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/33097 CVS commit: pkgsrc/graphics/Coin
Date: Sun, 19 Mar 2006 20:06:05 +0000 (UTC)
Module Name: pkgsrc
Committed By: minskim
Date: Sun Mar 19 20:06:05 UTC 2006
Modified Files:
pkgsrc/graphics/Coin: Makefile
Added Files:
pkgsrc/graphics/Coin: hacks.mk
Log Message:
Turn off optimization as a workaround for PR toolchain/33097. No PKGREVSION
bump because this package has never built in bulk-builds since the last bump.
Remove BROKEN_IN.
To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 pkgsrc/graphics/Coin/Makefile
cvs rdiff -r0 -r1.1 pkgsrc/graphics/Coin/hacks.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dholland@narn.netbsd.org
State-Changed-When: Sat, 19 Jan 2008 18:50:54 +0000
State-Changed-Why:
The workaround for gcc3 was committed, and gcc4 doesn't seem to be affected.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.