From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8980 invoked by alias); 11 Mar 2013 11:50:27 -0000 Received: (qmail 8843 invoked by uid 48); 11 Mar 2013 11:50:03 -0000 From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/56546] Using the divide operator on unsigned int produces incorrect code on AVR Date: Mon, 11 Mar 2013 11:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-03/txt/msg00848.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56546 Georg-Johann Lay changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution| |INVALID --- Comment #3 from Georg-Johann Lay 2013-03-11 11:50:02 UTC --- (In reply to comment #2) > (In reply to comment #1) >> Is this an unpatched avr-gcc? > > In fact I discovered the issue on a toolchain built with Gentoo's crossdev > tool. They are using a good number of patches but these are not the source of > the problem. After digging a little deeper I discovered that the problem comes > from the build options they use. After a good number of builds on an unpatched > gcc-4.7.2 I've been able to determine that the --disable-multilib option they > use is the source of the issue. --disable-multilib completely messes up the tools, thus closing this PR as INVALID. > Building with > > ../configure [...] Notice that configuring in the source tree is strongly discouraged / not supported. Read the configuring GCC documentation again. If you are using AVR-LibC, you may also want to configure with --with-avrlibc=yes and use AVR-LibC that implements http://savannah.nongnu.org/bugs/?35407