public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/46426] New: [avr] avr/libgcc.S in SVN r166596 fails to compile
@ 2010-11-11 10:40 j at uriah dot heep.sax.de
  2011-01-31  8:47 ` [Bug target/46426] " Kicer86 at gmail dot com
  2011-06-24 20:43 ` gjl at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: j at uriah dot heep.sax.de @ 2010-11-11 10:40 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [avr] avr/libgcc.S in SVN r166596 fails to compile
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: j@uriah.heep.sax.de


Created attachment 22372
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22372
Suggested patch

Trying to compile trunk/r166596 for the AVR target results in:

/junk/gcc/trunk/build-avr/./gcc/xgcc -B/junk/gcc/trunk/build-avr/./gcc/
-B/junk/test/avr/bin/ -B/junk/test/avr/lib/ -isystem /junk/test/avr/include
-isystem /junk/test/avr/sys-include    -g -O2 -mmcu=avr25 -O2  -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -Dinhibit_libc  -I. -I.
-I../../.././gcc -I../../../../libgcc -I../../../../libgcc/.
-I../../../../libgcc/../gcc -I../../../../libgcc/../include  -DHAVE_CC_TLS
-DUSE_EMUTLS -o _exit.o -MT _exit.o -MD -MP -MF _exit.dep -DL_exit
-xassembler-with-cpp \
          -c ../../../../libgcc/../gcc/config/avr/libgcc.S
../../../../libgcc/../gcc/config/avr/libgcc.S: Assembler messages:
../../../../libgcc/../gcc/config/avr/libgcc.S:655: Error: operation combines
symbols in different segments
gmake[4]: *** [_exit.o] Error 1
gmake[4]: Leaving directory `/junk/gcc/trunk/build-avr/avr/avr25/libgcc'
gmake[3]: *** [multi-do] Error 1
gmake[3]: Leaving directory `/junk/gcc/trunk/build-avr/avr/libgcc'
gmake[2]: *** [all-multi] Error 2
gmake[2]: Leaving directory `/junk/gcc/trunk/build-avr/avr/libgcc'
gmake[1]: *** [all-target-libgcc] Error 2
gmake[1]: Leaving directory `/junk/gcc/trunk/build-avr'
gmake: *** [all] Error 2

The preprocessed source for this is:

# 642 "../../../../libgcc/../gcc/config/avr/libgcc.S"
 .section .fini9,"ax",@progbits
 .global _exit
 .func _exit
_exit:
 .weak exit
exit:


 .section .fini0,"ax",@progbits
 cli
__stop_program:
 rjmp __stop_program
 .endfunc

It complains about ".endfunc".  My guess is another .func/.endfunc is
needed between _exit and __stop_program.

Applying the following patch seems to fix this issue:

Index: gcc/config/avr/libgcc.S
===================================================================
--- gcc/config/avr/libgcc.S    (revision 166596)
+++ gcc/config/avr/libgcc.S    (working copy)
@@ -646,9 +646,11 @@
     .weak    exit
 exit:

+    .endfunc
     /* Code from .fini8 ... .fini1 sections inserted by ld script.  */

     .section .fini0,"ax",@progbits
+    .func    __stop_program
     cli
 __stop_program:
     rjmp    __stop_program


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

* [Bug target/46426] [avr] avr/libgcc.S in SVN r166596 fails to compile
  2010-11-11 10:40 [Bug target/46426] New: [avr] avr/libgcc.S in SVN r166596 fails to compile j at uriah dot heep.sax.de
@ 2011-01-31  8:47 ` Kicer86 at gmail dot com
  2011-06-24 20:43 ` gjl at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: Kicer86 at gmail dot com @ 2011-01-31  8:47 UTC (permalink / raw)
  To: gcc-bugs

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

Michal <Kicer86 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Kicer86 at gmail dot com

--- Comment #1 from Michal <Kicer86 at gmail dot com> 2011-01-31 07:57:14 UTC ---
Same here.
But even if I apply this patch, gcc segfaults for any given source.


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

* [Bug target/46426] [avr] avr/libgcc.S in SVN r166596 fails to compile
  2010-11-11 10:40 [Bug target/46426] New: [avr] avr/libgcc.S in SVN r166596 fails to compile j at uriah dot heep.sax.de
  2011-01-31  8:47 ` [Bug target/46426] " Kicer86 at gmail dot com
@ 2011-06-24 20:43 ` gjl at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-06-24 20:43 UTC (permalink / raw)
  To: gcc-bugs

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |gjl at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-06-24 20:42:13 UTC ---
(In reply to comment #1)
> Same here.
> But even if I apply this patch, gcc segfaults for any given source.

Your issue appears rather to be PR48459

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


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

end of thread, other threads:[~2011-06-24 20:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-11 10:40 [Bug target/46426] New: [avr] avr/libgcc.S in SVN r166596 fails to compile j at uriah dot heep.sax.de
2011-01-31  8:47 ` [Bug target/46426] " Kicer86 at gmail dot com
2011-06-24 20:43 ` gjl 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).