public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45726]  New: Thumb2 instruction emitted for incompatible CPU
@ 2010-09-19 10:05 rafael dot carre at gmail dot com
  2010-09-19 11:16 ` [Bug c/45726] " mikpe at it dot uu dot se
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: rafael dot carre at gmail dot com @ 2010-09-19 10:05 UTC (permalink / raw)
  To: gcc-bugs

% cat test.c                               
union prop_data_t
{
    unsigned int u;
    struct
    {
        unsigned short s1;
        unsigned short s2;
    };
};

union prop_data_t broken (int a, int b)
{
    union prop_data_t var;

    if (a)
    {
        var.s2 = 0;
        var.s2 = b ? a : 2;
        if (var.s2)
            return var;
    }

    var.u = 0;
    return var;
}
% echo $CC
/usr/local/arm-elf-eabi-cvs/bin/arm-elf-eabi-gcc
% $CC -mcpu=arm9tdmi -c test.c -O -pipe   
{standard input}: Assembler messages:
{standard input}:25: Error: selected processor does not support ARM mode
`movteq r0,2'
% $CC -mcpu=arm9tdmi -c test.c -Ofast -pipe
{standard input}: Assembler messages:
{standard input}:23: Error: selected processor does not support ARM mode
`movteq r3,2'
% $CC -mcpu=arm9tdmi -c test.c -pipe   
% $CC -v                               
Using built-in specs.
COLLECT_GCC=/usr/local/arm-elf-eabi-cvs/bin/arm-elf-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/local/arm-elf-eabi-cvs/libexec/gcc/arm-elf-eabi/4.6.0/lto-wrapper
Target: arm-elf-eabi
Configured with: ../gcc-4.6-20100918/configure
--prefix=/usr/local/arm-elf-eabi-cvs --target=arm-elf-eabi --enable-lto
--enable-languages=c --disable-docs --disable-libssp
Thread model: single
gcc version 4.6.0 20100918 (experimental) (GCC) 
%

Using 20100918 snapshot

reduced from
http://svn.rockbox.org/viewvc.cgi/trunk/apps/plugins/goban/sgf.c?revision=20001&view=markup

I tried to see which optimization broke with -Ox -Q --help=optimizers but the
list printed doesn't seem to be complete.


-- 
           Summary: Thumb2 instruction emitted for incompatible CPU
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rafael dot carre at gmail dot com
GCC target triplet: arm-elf-eabi


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


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

end of thread, other threads:[~2010-09-20 16:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-19 10:05 [Bug c/45726] New: Thumb2 instruction emitted for incompatible CPU rafael dot carre at gmail dot com
2010-09-19 11:16 ` [Bug c/45726] " mikpe at it dot uu dot se
2010-09-20  4:52 ` [Bug target/45726] " pinskia at gcc dot gnu dot org
2010-09-20  7:24 ` rafael dot carre at gmail dot com
2010-09-20  7:47 ` rafael dot carre at gmail dot com
2010-09-20  8:17 ` rafael dot carre at gmail dot com
2010-09-20 10:30 ` mikpe at it dot uu dot se
2010-09-20 11:08 ` rafael dot carre at gmail dot com
2010-09-20 12:02 ` mikpe at it dot uu dot se
2010-09-20 15:20 ` rearnsha at gcc dot gnu dot org
2010-09-20 15:21 ` rearnsha at gcc dot gnu dot org
2010-09-20 15:26 ` rearnsha at gcc dot gnu dot org
2010-09-20 15:27 ` rearnsha at gcc dot gnu dot org
2010-09-20 15:36 ` rearnsha at gcc dot gnu dot org
2010-09-20 15:46 ` rafael dot carre at gmail dot com
2010-09-20 16:13 ` rearnsha at gcc dot gnu dot org
2010-09-20 16:22 ` rearnsha at gcc dot gnu dot org
2010-09-20 16:37 ` mikpe at it dot uu dot se

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).