public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/51552] New: bfin generates bad assembly
@ 2011-12-14 19:21 joel at gcc dot gnu.org
  2011-12-17  3:29 ` [Bug target/51552] " jiez at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: joel at gcc dot gnu.org @ 2011-12-14 19:21 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51552
           Summary: bfin generates bad assembly
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: joel@gcc.gnu.org


Created attachment 26085
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26085
Preprocessed test case

xgcc (GCC) 4.7.0 20111214 (experimental) [trunk revision 182330]
Target: bfin-rtems4.11 compiling newlib

/home2/joel/build/b-bfin-gcc/./gcc/xgcc -B/home2/joel/build/b-bfin-gcc/./gcc/
-nostdinc -B/home2/joel/build/b-bfin-gcc/bfin-rtems4.11/newlib/ -isystem
/home2/joel/build/b-bfin-gcc/bfin-rtems4.11/newlib/targ-include -isystem
/users/joel/test-gcc/gcc-svn/newlib/libc/include
-B/users/joel/test-gcc/install-svn/bfin-rtems4.11/bin/
-B/users/joel/test-gcc/install-svn/bfin-rtems4.11/lib/ -isystem
/users/joel/test-gcc/install-svn/bfin-rtems4.11/include -isystem
/users/joel/test-gcc/install-svn/bfin-rtems4.11/sys-include   
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"1.19.0\" -DPACKAGE_STRING=\"newlib\ 1.19.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I/users/joel/test-gcc/gcc-svn/newlib/libc/string -D_COMPILING_NEWLIB
-DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED
-DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL
-DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS
-D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -Wall -fno-builtin      -g -O2 -c -o
lib_a-strsignal.o `test -f 'strsignal.c' || echo
'/users/joel/test-gcc/gcc-svn/newlib/libc/string/'`strsignal.c
/tmp/cctEZ5VY.s: Assembler messages:
/tmp/cctEZ5VY.s:24: Error: syntax error. Input text was .LCFI1.
/tmp/cctEZ5VY.s:24: Error: 

Cutting this down, it appears to be the -g flag:


[joel@rtbf64a string]$ /home2/joel/build/b-bfin-gcc/./gcc/xgcc
-B/home2/joel/build/b-bfin-gcc/./gcc/ -O2 -c -fno-builtin j.c
[joel@rtbf64a string]$ /home2/joel/build/b-bfin-gcc/./gcc/xgcc
-B/home2/joel/build/b-bfin-gcc/./gcc/ -O2 -c -g -fno-builtin j.c
/tmp/ccwaXpNe.s: Assembler messages:
/tmp/ccwaXpNe.s:24: Error: syntax error. Input text was .LCFI1.
/tmp/ccwaXpNe.s:24: Error: 

The bad asm generated is here:

.LCFI0:
        R2 = ROT R0 BY 0 ||
.LCFI1:
        R7 = [P2] ||
        nop;

I am guessing there should have been a semi-colon and maybe a nop before
.LCFI1.


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

end of thread, other threads:[~2011-12-21 20:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-14 19:21 [Bug target/51552] New: bfin generates bad assembly joel at gcc dot gnu.org
2011-12-17  3:29 ` [Bug target/51552] " jiez at gcc dot gnu.org
2011-12-21  5:09 ` jiez at gcc dot gnu.org
2011-12-21 18:12 ` rth at gcc dot gnu.org
2011-12-21 18:15 ` rth at gcc dot gnu.org
2011-12-21 20:29 ` rth at gcc dot gnu.org
2011-12-21 20:44 ` rth at gcc dot gnu.org

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