Subject: toolchain/33816: internal compiler error in expand_expr_real_1
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Thomas Klausner <wiz@NetBSD.org>
List: netbsd-bugs
Date: 06/24/2006 22:05:00
>Number:         33816
>Category:       toolchain
>Synopsis:       internal compiler error in expand_expr_real_1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 24 22:05:00 +0000 2006
>Originator:     Thomas Klausner
>Release:        NetBSD 3.99.21/gcc (GCC) 4.1.2 20060603 prerelease (NetBSD nb1 20060602)
>Organization:
>Environment:
	
	
System: NetBSD hiro 3.99.21 NetBSD 3.99.21 (HIRO) #17: Sat Jun 24 16:55:16 CEST 2006 wiz@hiro:/disk/wd1a/archive/cvs/src/sys/arch/i386/compile/obj.i386/HIRO i386
Architecture: i386
Machine: i386
>Description:
When compiling sane-backends-1.0.17nb2, gcc4 in the base system fails
with:
In file included from plustek_pp.c:129:
plustek-pp_misc.c: In function 'MiscAllPointersSet':
plustek-pp_misc.c:657: warning: dereferencing type-punned pointer will break str
ict-aliasing rules
plustek-pp_misc.c:658: warning: dereferencing type-punned pointer will break str
ict-aliasing rules
plustek-pp_motor.c: In function 'motorP96FillHalfStepTable':
plustek-pp_motor.c:1541: internal compiler error: in expand_expr_real_1, at expr
.c:6763
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.

Line 1541 is the memset in:

    if( ps->bMotorSpeedData & 1 ) {

                memset( a_bHalfStepTable,
                       ((ps->Scan.bModuleState != _MotorInStopState) ? 1 : 0),

                                _NUMBER_OF_SCANSTEPS );
        } else {

>How-To-Repeat:
cd /usr/pkgsrc/graphics/sane-backends
make
>Fix:
Sorry, don't know.

>Unformatted: