This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/56546] Using the divide operator on unsigned int produces incorrect code on AVR


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56546

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]