public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libffi/46792] libffi fails building for cris-elf
  2010-12-03 20:21 [Bug libffi/46792] New: libffi fails building for cris-elf hp at gcc dot gnu.org
@ 2010-12-03 20:21 ` hp at gcc dot gnu.org
  2010-12-03 20:39 ` hp at gcc dot gnu.org
  2010-12-03 20:41 ` hp at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hp at gcc dot gnu.org @ 2010-12-03 20:21 UTC (permalink / raw)
  To: gcc-bugs

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

Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2010.12.03 20:21:50
         AssignedTo|unassigned at gcc dot       |hp at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug libffi/46792] New: libffi fails building for cris-elf
@ 2010-12-03 20:21 hp at gcc dot gnu.org
  2010-12-03 20:21 ` [Bug libffi/46792] " hp at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hp at gcc dot gnu.org @ 2010-12-03 20:21 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: libffi fails building for cris-elf
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libffi
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hp@gcc.gnu.org
            Target: cris-axis-elf


When support for CRIS v32 was added to the CRIS port, a "v32" multilib was
added to cris-elf.  Unfortunately, libffi wasn't updated, resulting in build
failure for the whole of gcc without special configure options:

libtool: compile:  /tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/xgcc
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/./gcc/ -nostd\
inc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v32/newlib/ -isystem
/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/\
v32/newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/cr\
is-elf/v32/libgloss/cris
-L/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/v32/libgloss/libnosys
-L/tmp/hpautotest-gcc1/g\
cc/libgloss/cris -B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/bin/
-B/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/lib/ -i\
system /tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/include -isystem
/tmp/hpautotest-gcc1/cris-elf/pre/cris-elf/sys-inclu\
de -march=v32 -mbest-lib-options -DHAVE_CONFIG_H -I.
-I/tmp/hpautotest-gcc1/gcc/libffi -I. -I/tmp/hpautotest-gcc1/gcc/l\
ibffi/include -Iinclude -I/tmp/hpautotest-gcc1/gcc/libffi/src -I.
-I/tmp/hpautotest-gcc1/gcc/libffi/include -Iinclude -\
I/tmp/hpautotest-gcc1/gcc/libffi/src -g -O2 -MT src/cris/sysv.lo -MD -MP -MF
src/cris/.deps/sysv.Tpo -c /tmp/hpautotest\
-gcc1/gcc/libffi/src/cris/sysv.S -o src/cris/sysv.o
/tmp/hpautotest-gcc1/gcc/libffi/src/cris/sysv.S: Assembler messages:
/tmp/hpautotest-gcc1/gcc/libffi/src/cris/sysv.S:51: Error: Unknown opcode:
`push'

A temporary fix is to disable libffi for cris-elf. (No other action should be
necessary: cris-linux doesn't have a v32 multilib and the crisv32-* tuples
aren't matched by libffi configure.)
The correct fix is not that hard; there's a common assembly-language subset
used in other assembly codes, for example newlib+libgloss.
E.g. push R -> subq 4,$sp / move.d R,[$sp]
(equivalent in function, size and cycles except when condition codes need to be
preserved.)
I'll fix this the temporary way, then suspend the PR.


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

* [Bug libffi/46792] libffi fails building for cris-elf
  2010-12-03 20:21 [Bug libffi/46792] New: libffi fails building for cris-elf hp at gcc dot gnu.org
  2010-12-03 20:21 ` [Bug libffi/46792] " hp at gcc dot gnu.org
@ 2010-12-03 20:39 ` hp at gcc dot gnu.org
  2010-12-03 20:41 ` hp at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hp at gcc dot gnu.org @ 2010-12-03 20:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2010-12-03 20:38:54 UTC ---
Author: hp
Date: Fri Dec  3 20:38:47 2010
New Revision: 167442

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167442
Log:
    PR libffi/46792
    * configure.ac (cris-*-elf, crisv32-*-elf): Disable target-libffi.
    * configure: Regenerate.

Modified:
    trunk/ChangeLog
    trunk/configure
    trunk/configure.ac


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

* [Bug libffi/46792] libffi fails building for cris-elf
  2010-12-03 20:21 [Bug libffi/46792] New: libffi fails building for cris-elf hp at gcc dot gnu.org
  2010-12-03 20:21 ` [Bug libffi/46792] " hp at gcc dot gnu.org
  2010-12-03 20:39 ` hp at gcc dot gnu.org
@ 2010-12-03 20:41 ` hp at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hp at gcc dot gnu.org @ 2010-12-03 20:41 UTC (permalink / raw)
  To: gcc-bugs

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

Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |SUSPENDED


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

end of thread, other threads:[~2010-12-03 20:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-03 20:21 [Bug libffi/46792] New: libffi fails building for cris-elf hp at gcc dot gnu.org
2010-12-03 20:21 ` [Bug libffi/46792] " hp at gcc dot gnu.org
2010-12-03 20:39 ` hp at gcc dot gnu.org
2010-12-03 20:41 ` hp 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).