public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45207]  New: The -Os flag generates wrong code for ARM966e-s
@ 2010-08-06  7:15 fredrik dot hederstierna at securitas-direct dot com
  2010-08-06  7:20 ` [Bug c/45207] " fredrik dot hederstierna at securitas-direct dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: fredrik dot hederstierna at securitas-direct dot com @ 2010-08-06  7:15 UTC (permalink / raw)
  To: gcc-bugs

We have problems with GCC-4.5.0 and GCC-4.5.1 for ARM when using the "-Os"
optimizer flag. The code crashes due to what seems to be undefined instruction
exception.

If we instead use "-O1" or "-O2" it works fine. Also GCC-4.3.x and GCC-4.4.x
works well.

I also tried to add all excluded -O2 flags when compiling with -Os but this
gave still wrong code.

Our CFLAGS:
-g3 -ggdb3 -gdwarf-2 -mthumb -c -Wall -W -Wextra -Wno-unused-parameter
-mcpu=arm966e-s -Os -mhard-float -mfpu=fpa -ffunction-sections -fdata-sections

I attach build-script for our arm-elf-toolchain built on an intel machine.

Also arm-elf-gdb 7.1 complaints about the elf file when trying to debug:

warning: (Internal error: pc 0x4a42c in read in psymtab, but not in symtab.)

Thanks and Best Regards,
Fredrik Hederstierna


-- 
           Summary: The -Os flag generates wrong code for ARM966e-s
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fredrik dot hederstierna at securitas-direct dot com
GCC target triplet: arm-elf-gcc


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


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-45207-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-06-21 22:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-06  7:15 [Bug c/45207] New: The -Os flag generates wrong code for ARM966e-s fredrik dot hederstierna at securitas-direct dot com
2010-08-06  7:20 ` [Bug c/45207] " fredrik dot hederstierna at securitas-direct dot com
2010-08-06  7:52 ` [Bug target/45207] " pinskia at gcc dot gnu dot org
2010-08-06  8:37 ` [Bug c/45207] " fredrik dot hederstierna at securitas-direct dot com
2010-08-06  9:10 ` fredrik dot hederstierna at securitas-direct dot com
2010-08-06  9:13 ` ramana at gcc dot gnu dot org
2010-08-06 12:06 ` fredrik dot hederstierna at securitas-direct dot com
2010-08-06 19:36 ` siarhei dot siamashka at gmail dot com
2010-08-09  7:55 ` fredrik dot hederstierna at securitas-direct dot com
     [not found] <bug-45207-4@http.gcc.gnu.org/bugzilla/>
2014-06-21 22:54 ` [Bug target/45207] " fredrik.hederstierna@securitas-direct.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).