public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/35936]  New: Cannot compile libgcc.S on avr
@ 2008-04-14 19:09 sam at gcc dot gnu dot org
  2008-07-24 19:14 ` [Bug target/35936] " eric dot weddington at atmel dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sam at gcc dot gnu dot org @ 2008-04-14 19:09 UTC (permalink / raw)
  To: gcc-bugs

/home/sam/tmp/gcc-avr/./gcc/xgcc -B/home/sam/tmp/gcc-avr/./gcc/
-B/home/sam/local/i386-linux/avr/bin/ -B/home/sam/local/i386-linux/avr/lib/
-isystem /home/sam/local/i386-linux/avr/include -isystem
/home/sam/local/i386-linux/avr/sys-include -g -O2 -mmcu=avr31 -O2  -g -O2
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I. -I../../.././gcc
-I/home/sam/Dev/gcc/libgcc -I/home/sam/Dev/gcc/libgcc/.
-I/home/sam/Dev/gcc/libgcc/../gcc -I/home/sam/Dev/gcc/libgcc/../include 
-DHAVE_CC_TLS -o _copy_data.o -MT _copy_data.o -MD -MP -MF _copy_data.dep
-DL_copy_data -xassembler-with-cpp \
          -c /home/sam/Dev/gcc/libgcc/../gcc/config/avr/libgcc.S

/home/sam/Dev/gcc/libgcc/../gcc/config/avr/libgcc.S: Assembler messages:
/home/sam/Dev/gcc/libgcc/../gcc/config/avr/libgcc.S:736: Error: illegal opcode
elpm for mcu avr3

I'm using the latest binutils from CVS.

gcc knows that elmp is valid for avr31 and calls "as" with -mmcu=avr3, making
as reject it. Looks awfully like PR #35073 with another opcode.


-- 
           Summary: Cannot compile libgcc.S on avr
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sam at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: avr


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


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

* [Bug target/35936] Cannot compile libgcc.S on avr
  2008-04-14 19:09 [Bug target/35936] New: Cannot compile libgcc.S on avr sam at gcc dot gnu dot org
@ 2008-07-24 19:14 ` eric dot weddington at atmel dot com
  2009-04-26 15:15 ` laci at monda dot hu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: eric dot weddington at atmel dot com @ 2008-07-24 19:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from eric dot weddington at atmel dot com  2008-07-24 19:13 -------
What 4.4 snapshot did you use to build?

I'm getting something very similar, but it's for avr5, not avr3:

../../../../gcc-4.4-20080718/libgcc/../gcc/config/avr/libgcc.S: Assembler
messages:
../../../../gcc-4.4-20080718/libgcc/../gcc/config/avr/libgcc.S:718: Error:
illegal opcode elpm for mcu avr5
make[4]: *** [_copy_data.o] Error 1
make[4]: Leaving directory `/usr/local/avrdev/gcc/build/avr/avr51/libgcc'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/usr/local/avrdev/gcc/build/avr/libgcc'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `/usr/local/avrdev/gcc/build/avr/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/usr/local/avrdev/gcc/build'
make: *** [all] Error 2


-- 


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


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

* [Bug target/35936] Cannot compile libgcc.S on avr
  2008-04-14 19:09 [Bug target/35936] New: Cannot compile libgcc.S on avr sam at gcc dot gnu dot org
  2008-07-24 19:14 ` [Bug target/35936] " eric dot weddington at atmel dot com
@ 2009-04-26 15:15 ` laci at monda dot hu
  2009-08-20 12:03 ` abnikant dot singh at atmel dot com
  2009-08-20 22:33 ` eric dot weddington at atmel dot com
  3 siblings, 0 replies; 5+ messages in thread
From: laci at monda dot hu @ 2009-04-26 15:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from laci at monda dot hu  2009-04-26 15:15 -------
Same bug for me.  I've compiled gcc using

../configure --target=avr --program-prefix="avr-" --enable-languages=c

/home/laci/download/gcc-4.4.0/avr-gcc/./gcc/xgcc
-B/home/laci/download/gcc-4.4.0/avr-gcc/./gcc/ -B/usr/local/avr/bin/
-B/usr/local/avr/lib/ -isystem /usr/local/avr/include -isystem
/usr/local/avr/sys-include -g -O2 -mmcu=avr31 -O2  -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include 
-DDF=SF -Dinhibit_libc -mcall-prologues -Os -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I. -I../../.././gcc
-I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc
-I../../../../libgcc/../include  -DHAVE_CC_TLS -o _tablejump_elpm.o -MT
_tablejump_elpm.o -MD -MP -MF _tablejump_elpm.dep -DL_tablejump_elpm
-xassembler-with-cpp \
          -c ../../../../libgcc/../gcc/config/avr/libgcc.S
../../../../libgcc/../gcc/config/avr/libgcc.S: Assembler messages:
../../../../libgcc/../gcc/config/avr/libgcc.S:886: Error: illegal opcode elpm
for mcu avr3
../../../../libgcc/../gcc/config/avr/libgcc.S:889: Error: illegal opcode elpm
for mcu avr3


-- 

laci at monda dot hu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |laci at monda dot hu


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


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

* [Bug target/35936] Cannot compile libgcc.S on avr
  2008-04-14 19:09 [Bug target/35936] New: Cannot compile libgcc.S on avr sam at gcc dot gnu dot org
  2008-07-24 19:14 ` [Bug target/35936] " eric dot weddington at atmel dot com
  2009-04-26 15:15 ` laci at monda dot hu
@ 2009-08-20 12:03 ` abnikant dot singh at atmel dot com
  2009-08-20 22:33 ` eric dot weddington at atmel dot com
  3 siblings, 0 replies; 5+ messages in thread
From: abnikant dot singh at atmel dot com @ 2009-08-20 12:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from abnikant dot singh at atmel dot com  2009-08-20 12:03 -------
No error observed in gcc-4.4.0,libgcc.S compiles fine for -mmcu=avr31 with the
same command line as reported in the bug


-- 


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


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

* [Bug target/35936] Cannot compile libgcc.S on avr
  2008-04-14 19:09 [Bug target/35936] New: Cannot compile libgcc.S on avr sam at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-08-20 12:03 ` abnikant dot singh at atmel dot com
@ 2009-08-20 22:33 ` eric dot weddington at atmel dot com
  3 siblings, 0 replies; 5+ messages in thread
From: eric dot weddington at atmel dot com @ 2009-08-20 22:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from eric dot weddington at atmel dot com  2009-08-20 22:33 -------
Seems to be fixed now. Closing as WONTFIX.


-- 

eric dot weddington at atmel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


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


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

end of thread, other threads:[~2009-08-20 22:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-14 19:09 [Bug target/35936] New: Cannot compile libgcc.S on avr sam at gcc dot gnu dot org
2008-07-24 19:14 ` [Bug target/35936] " eric dot weddington at atmel dot com
2009-04-26 15:15 ` laci at monda dot hu
2009-08-20 12:03 ` abnikant dot singh at atmel dot com
2009-08-20 22:33 ` eric dot weddington at atmel 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).