public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/41000]  New: Optional optimization error@(m32r-elf)
@ 2009-08-07 12:57 n-takeda at kwansei dot ac dot jp
  2009-08-07 12:58 ` [Bug c/41000] " n-takeda at kwansei dot ac dot jp
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: n-takeda at kwansei dot ac dot jp @ 2009-08-07 12:57 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1698 bytes --]

I use m32r-elf.

When optional optimization was applied, the value is 25536.
If there is no optional optimization, the value is -40000.

command 
------------------------------------------------------
user@user-laptop:~/study/error/m32r$
/usr/local/gcc-4.4.1_m32r-elf/bin/m32r-elf-gcc m32r.c 
user@user-laptop:~/study/error/m32r$
/usr/local/gcc-4.4.1_m32r-elf/bin/m32r-elf-run a.out
-40000

user@user-laptop:~/study/error/m32r$
/usr/local/gcc-4.4.1_m32r-elf/bin/m32r-elf-gcc m32r.c -O2
user@user-laptop:~/study/error/m32r$
/usr/local/gcc-4.4.1_m32r-elf/bin/m32r-elf-run a.out
25536

os
------------------------------------------------------
user@user-laptop:~/study/error/m32r$ uname -a
Linux user-laptop 2.6.27-14-generic #1 SMP Fri Jul 24 22:19:33 UTC 2009 i686
GNU/Linux

gcc version
------------------------------------------------------
user@user-laptop:~/study/error/m32r$
/usr/local/gcc-4.4.1_m32r-elf/bin/m32r-elf-gcc -v
Using built-in specs.
Target: m32r-elf
Configured with: ../gcc-4.4.1/configure --target=m32r-elf
--prefix=/usr/local/gcc-4.4.1_m32r-elf/ --disable-nls --enable-languages=c
--with-newlib
--with-headers=/home/user/build/gcc-4.4.1_m32r-elf/newlib-1.17.0/newlib/libc/include/
--with-gmp=/usr/local/gmp/4.3.0/ --with-mpfr=/usr/local/mpfr/2.4.1/
Thread model: single
gcc version 4.4.1 (GCC)


-- 
           Summary: Optional optimization error@(m32r-elf)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: n-takeda at kwansei dot ac dot jp


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/41000] Optional optimization error@(m32r-elf)
  2009-08-07 12:57 [Bug c/41000] New: Optional optimization error@(m32r-elf) n-takeda at kwansei dot ac dot jp
@ 2009-08-07 12:58 ` n-takeda at kwansei dot ac dot jp
  2009-08-07 13:01 ` n-takeda at kwansei dot ac dot jp
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: n-takeda at kwansei dot ac dot jp @ 2009-08-07 12:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from n-takeda at kwansei dot ac dot jp  2009-08-07 12:58 -------
Created an attachment (id=18320)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18320&action=view)
c program


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/41000] Optional optimization error@(m32r-elf)
  2009-08-07 12:57 [Bug c/41000] New: Optional optimization error@(m32r-elf) n-takeda at kwansei dot ac dot jp
  2009-08-07 12:58 ` [Bug c/41000] " n-takeda at kwansei dot ac dot jp
@ 2009-08-07 13:01 ` n-takeda at kwansei dot ac dot jp
  2009-08-07 13:39 ` [Bug target/41000] Optional optimization error rguenth at gcc dot gnu dot org
  2009-08-07 16:26 ` dj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: n-takeda at kwansei dot ac dot jp @ 2009-08-07 13:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from n-takeda at kwansei dot ac dot jp  2009-08-07 13:00 -------
Created an attachment (id=18321)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18321&action=view)
preprocessed file


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/41000] Optional optimization error
  2009-08-07 12:57 [Bug c/41000] New: Optional optimization error@(m32r-elf) n-takeda at kwansei dot ac dot jp
  2009-08-07 12:58 ` [Bug c/41000] " n-takeda at kwansei dot ac dot jp
  2009-08-07 13:01 ` n-takeda at kwansei dot ac dot jp
@ 2009-08-07 13:39 ` rguenth at gcc dot gnu dot org
  2009-08-07 16:26 ` dj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-07 13:39 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-08-07 13:39 -------
I guess m32c implements a widening multiplication that isn't correctly
implemented.  Because (short)(40 * -1000) is exactly 25526.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target
 GCC target triplet|                            |m32c-elf
            Summary|Optional optimization       |Optional optimization error
                   |error@(m32r-elf)           |


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/41000] Optional optimization error
  2009-08-07 12:57 [Bug c/41000] New: Optional optimization error@(m32r-elf) n-takeda at kwansei dot ac dot jp
                   ` (2 preceding siblings ...)
  2009-08-07 13:39 ` [Bug target/41000] Optional optimization error rguenth at gcc dot gnu dot org
@ 2009-08-07 16:26 ` dj at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: dj at redhat dot com @ 2009-08-07 16:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dj at redhat dot com  2009-08-07 16:26 -------
m32c != m32r


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-07 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07 12:57 [Bug c/41000] New: Optional optimization error@(m32r-elf) n-takeda at kwansei dot ac dot jp
2009-08-07 12:58 ` [Bug c/41000] " n-takeda at kwansei dot ac dot jp
2009-08-07 13:01 ` n-takeda at kwansei dot ac dot jp
2009-08-07 13:39 ` [Bug target/41000] Optional optimization error rguenth at gcc dot gnu dot org
2009-08-07 16:26 ` dj at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).