public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36845]  New: The compiler fails to build the support libraries and generates incorrect code for a target
@ 2008-07-15 23:06 zoltan at bendor dot com dot au
  2008-07-18 22:31 ` [Bug c/36845] " wvangulik at xs4all dot nl
  2008-07-19 13:06 ` eric dot weddington at atmel dot com
  0 siblings, 2 replies; 3+ messages in thread
From: zoltan at bendor dot com dot au @ 2008-07-15 23:06 UTC (permalink / raw)
  To: gcc-bugs

With multilib enabled when building libgcc for avr35, the compiler generates
instructions that are illegal on that target (movw) and fails, failing the
whole installation process.

To reproduce the bug:

$ ../gcc-4.3.1/configure --target=avr-elf --disable-libada --disable-libssp
--enable-languages=c
$ make

... lots of output, then, when compiling _mulsi3:

../../../../gcc-4.3.1/libgcc/../gcc/config/avr/libgcc.S: Assembler messages:
../../../../gcc-4.3.1/libgcc/../gcc/config/avr/libgcc.S:281: Error: illegal
opcode movw for mcu avr3
../../../../gcc-4.3.1/libgcc/../gcc/config/avr/libgcc.S:283: Error: illegal
opcode movw for mcu avr3
make[4]: *** [_mulsi3.o] Error 1

and the build process stops.

Quick tests show that the generated crosscompiler avoids movw when compiling to
avr3 but generates it when compiling for avr35. The following function can be
used to demonstrate it:

int foo( int a, int *p ) { return a + *p; }

and then:

$ xgcc -O3 -mmcu=avr35 -c foo.c
/tmp/cc0IiYn4.s: Assembler messages:
/tmp/cc0IiYn4.s:15: Error: illegal opcode movw for mcu avr3
/tmp/cc0IiYn4.s:20: Error: illegal opcode movw for mcu avr3


-- 
           Summary: The compiler fails to build the support libraries and
                    generates incorrect code for a target
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zoltan at bendor dot com dot au
 GCC build triplet: x86-linux-elf
  GCC host triplet: x86-linux-elf
GCC target triplet: avr-unknown-elf


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


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

* [Bug c/36845] The compiler fails to build the support libraries and generates incorrect code for a target
  2008-07-15 23:06 [Bug c/36845] New: The compiler fails to build the support libraries and generates incorrect code for a target zoltan at bendor dot com dot au
@ 2008-07-18 22:31 ` wvangulik at xs4all dot nl
  2008-07-19 13:06 ` eric dot weddington at atmel dot com
  1 sibling, 0 replies; 3+ messages in thread
From: wvangulik at xs4all dot nl @ 2008-07-18 22:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from wvangulik at xs4all dot nl  2008-07-18 22:31 -------
This is because binutils 2.18 does not support architecture 35. Please update
to 2.18.5 (dev snapshot) ftp://sourceware.org/pub/binutils/snapshots. Search
the avr-gcc list for more info.


-- 


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


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

* [Bug c/36845] The compiler fails to build the support libraries and generates incorrect code for a target
  2008-07-15 23:06 [Bug c/36845] New: The compiler fails to build the support libraries and generates incorrect code for a target zoltan at bendor dot com dot au
  2008-07-18 22:31 ` [Bug c/36845] " wvangulik at xs4all dot nl
@ 2008-07-19 13:06 ` eric dot weddington at atmel dot com
  1 sibling, 0 replies; 3+ messages in thread
From: eric dot weddington at atmel dot com @ 2008-07-19 13:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from eric dot weddington at atmel dot com  2008-07-19 13:05 -------


*** This bug has been marked as a duplicate of 35073 ***


-- 

eric dot weddington at atmel dot com changed:

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


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


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

end of thread, other threads:[~2008-07-19 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-15 23:06 [Bug c/36845] New: The compiler fails to build the support libraries and generates incorrect code for a target zoltan at bendor dot com dot au
2008-07-18 22:31 ` [Bug c/36845] " wvangulik at xs4all dot nl
2008-07-19 13:06 ` 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).