public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
@ 2001-06-13 11:56 Joel Sherrill
  0 siblings, 0 replies; 7+ messages in thread
From: Joel Sherrill @ 2001-06-13 11:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/3147; it has been noted by GNATS.

From: Joel Sherrill <joel.sherrill@OARcorp.com>
To: Philip Blundell <philb@gnu.org>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
Date: Wed, 13 Jun 2001 13:51:53 -0500

 Philip Blundell wrote:
 > 
 > >gc
 > >c/libgcc2.c -o libgcc/thumb/_muldi3.o
 > >/tmp/ccNuRMlh.s: Assembler messages:
 > >/tmp/ccNuRMlh.s:23: Error: Garbage following instruction
 > >/tmp/ccNuRMlh.s:24: Error: Garbage following instruction
 > >/tmp/ccNuRMlh.s:25: Error: dest and source1 one must be the same register
 > 
 > I can't reproduce this.  A build with --target=arm-elf worked fine on my
 > machine.  I'm using some old snapshot from the binutils mainline (it calls
 > itself 2.10.91) but I don't think that should make any difference.
 > 
 
 I received a patch from Richard Henderson which is now included in
 the mainline gcc to fix this.  It is hard to know which side to blame
 when gcc and gas don't like each other. :)
 
 > p.
 > 
 >   -------------------------------------------------------------------------------
 >    Part 1.2Type: application/pgp-signature


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

* Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
@ 2001-07-06 11:09 neil
  0 siblings, 0 replies; 7+ messages in thread
From: neil @ 2001-07-06 11:09 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, joel, nobody

Synopsis: arm-elf and arm-rtems unbuildable on 3.0 branch

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Fri Jul  6 11:09:13 2001
State-Changed-Why:
    Reported fixed by submitter.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3147&database=gcc


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

* Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
@ 2001-06-13 12:06 Philip Blundell
  0 siblings, 0 replies; 7+ messages in thread
From: Philip Blundell @ 2001-06-13 12:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/3147; it has been noted by GNATS.

From: Philip Blundell <philb@gnu.org>
To: joel.sherrill@OARcorp.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch 
Date: Wed, 13 Jun 2001 19:56:57 +0100

 --==_Exmh_364413970P
 Content-Type: text/plain; charset=us-ascii
 
 >I received a patch from Richard Henderson which is now included in
 >the mainline gcc to fix this.  It is hard to know which side to blame
 >when gcc and gas don't like each other. :)
 
 Okay.  So the PR can be closed?
 
 Thanks
 
 p.
 
 
 
 --==_Exmh_364413970P
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.5 (GNU/Linux)
 Comment: Exmh version 2.1.1 10/15/1999 (debian)
 
 iD8DBQE7J7d5VTLPJe9CT30RAuJmAJ0TN6BeubOnhkEzGyRz/yuaE/lqegCfceH3
 XY5vXtle8wBTLCJwrjK7+js=
 =vcaM
 -----END PGP SIGNATURE-----
 
 --==_Exmh_364413970P--


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

* Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
@ 2001-06-13 11:46 Philip Blundell
  0 siblings, 0 replies; 7+ messages in thread
From: Philip Blundell @ 2001-06-13 11:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/3147; it has been noted by GNATS.

From: Philip Blundell <philb@gnu.org>
To: joel@OARcorp.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch 
Date: Wed, 13 Jun 2001 19:43:47 +0100

 --==_Exmh_361390804P
 Content-Type: text/plain; charset=us-ascii
 
 >gc
 >c/libgcc2.c -o libgcc/thumb/_muldi3.o
 >/tmp/ccNuRMlh.s: Assembler messages:
 >/tmp/ccNuRMlh.s:23: Error: Garbage following instruction
 >/tmp/ccNuRMlh.s:24: Error: Garbage following instruction
 >/tmp/ccNuRMlh.s:25: Error: dest and source1 one must be the same register
 
 I can't reproduce this.  A build with --target=arm-elf worked fine on my 
 machine.  I'm using some old snapshot from the binutils mainline (it calls 
 itself 2.10.91) but I don't think that should make any difference.
 
 p.
 
 
 
 --==_Exmh_361390804P
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.5 (GNU/Linux)
 Comment: Exmh version 2.1.1 10/15/1999 (debian)
 
 iD8DBQE7J7RiVTLPJe9CT30RAn3ZAKDRR4oAAQvsRV5FlwFctbfyCiYzxQCfSI82
 0mByOCLs4DL/WgZkRka4xkM=
 =xn/q
 -----END PGP SIGNATURE-----
 
 --==_Exmh_361390804P--


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

* Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
@ 2001-06-13  4:46 Richard Earnshaw
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Earnshaw @ 2001-06-13  4:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/3147; it has been noted by GNATS.

From: Richard Earnshaw <rearnsha@arm.com>
To: joel@OARcorp.com
Cc: gcc-gnats@gcc.gnu.org, Richard.Earnshaw@arm.com
Subject: Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 
 branch
Date: Wed, 13 Jun 2001 12:35:42 +0100

 This is a multipart MIME message.
 
 --==_Exmh_5568127680
 Content-Type: text/plain; charset=us-ascii
 
 The problem is that some of the ARM files are forcibly defining __arm__ in 
 CPP_PREDEFINES.  This is wrong, since it causes longlong.h to define 
 multiplication routines that are invalid for THUMB code.
 
 Please try this patch:
 
 <date>  Richard Earnshaw (rearnsha@arm.com)
 
 	* arm/conix-elf.h, arm/unknown-elf-oabi.h, arm/rtems-elf.h
 	(CPP_PREDEFINES): Don't pre-define "arm" or "__arm__" here.
 
 
 --==_Exmh_5568127680
 Content-Type: application/x-patch ; name="darm.patch"
 Content-Description: darm.patch
 Content-Disposition: attachment; filename="darm.patch"
 
 Index: conix-elf.h
 ===================================================================
 RCS file: /cvs/gcc/egcs/gcc/config/arm/conix-elf.h,v
 retrieving revision 1.5.4.1
 diff -p -r1.5.4.1 conix-elf.h
 *** conix-elf.h	2001/05/13 07:10:07	1.5.4.1
 --- conix-elf.h	2001/06/13 11:31:11
 *************** func_ptr __DTOR_END__[1] = { (func_ptr) 
 *** 147,153 ****
   #endif
        
   #define CPP_PREDEFINES \
 !   "-D__arm__ -D__CONIX__ -Acpu=arm -Amachine=arm -D__ELF__"
   
   /* Now get the routine arm-elf definitions.  */
   #include "arm/elf.h"
 --- 147,153 ----
   #endif
        
   #define CPP_PREDEFINES \
 !   "-D__CONIX__ -Acpu=arm -Amachine=arm -D__ELF__"
   
   /* Now get the routine arm-elf definitions.  */
   #include "arm/elf.h"
 Index: rtems-elf.h
 ===================================================================
 RCS file: /cvs/gcc/egcs/gcc/config/arm/rtems-elf.h,v
 retrieving revision 1.1
 diff -p -r1.1 rtems-elf.h
 *** rtems-elf.h	2000/12/07 02:42:01	1.1
 --- rtems-elf.h	2001/06/13 11:31:11
 *************** Boston, MA 02111-1307, USA.  */
 *** 26,32 ****
   #include "unknown-elf.h"
   
   #undef CPP_PREDEFINES
 ! #define CPP_PREDEFINES "-Darm -Darm_elf -Drtems -D__rtems__ -D__ELF__ \
      -Asystem(rtems) -Acpu(arm) -Amachine(arm)"
   
   /*#undef INVOKE_main*/
 --- 26,32 ----
   #include "unknown-elf.h"
   
   #undef CPP_PREDEFINES
 ! #define CPP_PREDEFINES "-Darm_elf -Drtems -D__rtems__ -D__ELF__ \
      -Asystem(rtems) -Acpu(arm) -Amachine(arm)"
   
   /*#undef INVOKE_main*/
 Index: unknown-elf-oabi.h
 ===================================================================
 RCS file: /cvs/gcc/egcs/gcc/config/arm/unknown-elf-oabi.h,v
 retrieving revision 1.3
 diff -p -r1.3 unknown-elf-oabi.h
 *** unknown-elf-oabi.h	2000/11/02 23:29:08	1.3
 --- unknown-elf-oabi.h	2001/06/13 11:31:11
 *************** Boston, MA 02111-1307, USA.  */
 *** 24,30 ****
   #define TARGET_VERSION	fputs (" (ARM/ELF non-Linux old abi)", stderr);
   #endif
   
 ! #define CPP_PREDEFINES "-Darm_oabi -Darm -Darm_elf -Acpu=arm -Amachine=arm -D__ELF__"
   
   #ifndef ASM_SPEC
   #define ASM_SPEC "-moabi %{mbig-endian:-EB} %{mcpu=*:-m%*} %{march=*:-m%*} \
 --- 24,30 ----
   #define TARGET_VERSION	fputs (" (ARM/ELF non-Linux old abi)", stderr);
   #endif
   
 ! #define CPP_PREDEFINES "-Darm_oabi -Darm_elf -Acpu=arm -Amachine=arm -D__ELF__"
   
   #ifndef ASM_SPEC
   #define ASM_SPEC "-moabi %{mbig-endian:-EB} %{mcpu=*:-m%*} %{march=*:-m%*} \
 
 --==_Exmh_5568127680--
 
 


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

* Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
@ 2001-06-13  0:36 Philip Blundell
  0 siblings, 0 replies; 7+ messages in thread
From: Philip Blundell @ 2001-06-13  0:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/3147; it has been noted by GNATS.

From: Philip Blundell <philb@gnu.org>
To: joel@OARcorp.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch 
Date: Wed, 13 Jun 2001 08:31:10 +0100

 --==_Exmh_104880588P
 Content-Type: text/plain; charset=us-ascii
 
 >/tmp/ccNuRMlh.s:31: Error: bad instruction `adds r4,lr,r4'
 >/tmp/ccNuRMlh.s:32: Error: bad instruction `addcs r7,r7,#65536'  
 
 Strange - you seem to be getting ARM code despite the `-mthumb' option.  I'll 
 investigate this later today if nobody beats me to it.
 
 >Unknown.  I suspect that using binutils 2.11 rather than 2.10 
 >might get around this.  But generally binutils 2.11 is broken
 >on other platforms that have RTEMS targets so it is not in use
 >yet.
 
 Please try the binutils-2.11.1pre1 archive I made the other day and see if 
 that fixes your problems with 2.11.
 
 p.
 
 
 
 --==_Exmh_104880588P
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.5 (GNU/Linux)
 Comment: Exmh version 2.1.1 10/15/1999 (debian)
 
 iD8DBQE7Jxa+VTLPJe9CT30RAhCXAKCwzYfcHwLdfBni/7mXbPuBRQxRswCggiZ9
 V+9loSKSlAJ0Hx6Ew6O2Apc=
 =7dRc
 -----END PGP SIGNATURE-----
 
 --==_Exmh_104880588P--


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

* bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
@ 2001-06-12 14:56 joel
  0 siblings, 0 replies; 7+ messages in thread
From: joel @ 2001-06-12 14:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3147
>Category:       bootstrap
>Synopsis:       arm-elf and arm-rtems unbuildable on 3.0 branch
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 12 14:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     joel@OARcorp.com
>Release:        gcc 3.0-20010527
>Organization:
>Environment:
GNU/Linux x86 (RedHat 6.2) targetting both arm-elf
and arm-rtems
>Description:
Both fail during initial tool build with this:

/usr3/ftp_archive/gnu/gcc/ss/b/b-arm/gcc/xgcc -B/usr3/ftp_archive/gnu/gcc/ss/b/b
-arm/gcc/ -nostdinc -B/usr3/ftp_archive/gnu/gcc/ss/b/b-arm/arm-rtems/newlib/ -is
ystem /usr3/ftp_archive/gnu/gcc/ss/b/b-arm/arm-rtems/newlib/targ-include -isyste
m /usr3/ftp_archive/gnu/gcc/ss/b/gcc-3.0-20010527/newlib/libc/include -B/opt/rte
ms/arm-rtems/bin/ -B/opt/rtems/arm-rtems/lib/ -isystem /opt/rtems/arm-rtems/incl
ude -O2 -I../../gcc-3.0-20010527/gcc/../newlib/libc/sys/rtems/include -DCROSS_CO
MPILE -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototy
pes -isystem ./include  -Dinhibit_libc -fno-inline -g1 -DHAVE_GTHR_DEFAULT -DIN_
LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-3.0-20010527
/gcc -I../../gcc-3.0-20010527/gcc/. -I../../gcc-3.0-20010527/gcc/config -I../../
gcc-3.0-20010527/gcc/../include  -mthumb -DL_muldi3 -c ../../gcc-3.0-20010527/gc
c/libgcc2.c -o libgcc/thumb/_muldi3.o
/tmp/ccNuRMlh.s: Assembler messages:
/tmp/ccNuRMlh.s:23: Error: Garbage following instruction
/tmp/ccNuRMlh.s:24: Error: Garbage following instruction
/tmp/ccNuRMlh.s:25: Error: dest and source1 one must be the same register
/tmp/ccNuRMlh.s:26: Error: Bad arguments to instruction
/tmp/ccNuRMlh.s:27: Error: Bad arguments to instruction
/tmp/ccNuRMlh.s:28: Error: Bad arguments to instruction
/tmp/ccNuRMlh.s:29: Error: dest and source1 one must be the same register
/tmp/ccNuRMlh.s:30: Error: dest and source1 one must be the same register
/tmp/ccNuRMlh.s:31: Error: bad instruction `adds r4,lr,r4'
/tmp/ccNuRMlh.s:32: Error: bad instruction `addcs r7,r7,#65536'  
>How-To-Repeat:
Try to build cross toolset for m68k-elf with this gcc
configure command

../gcc-3.0-20010527/configure --target=arm-elf --prefix=/usr1/tmp-tools
 --with-gnu-as --with-gnu-ld --with-newlib
>Fix:
Unknown.  I suspect that using binutils 2.11 rather than 2.10 
might get around this.  But generally binutils 2.11 is broken
on other platforms that have RTEMS targets so it is not in use
yet.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2001-07-06 11:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-13 11:56 bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch Joel Sherrill
  -- strict thread matches above, loose matches on Subject: below --
2001-07-06 11:09 neil
2001-06-13 12:06 Philip Blundell
2001-06-13 11:46 Philip Blundell
2001-06-13  4:46 Richard Earnshaw
2001-06-13  0:36 Philip Blundell
2001-06-12 14:56 joel

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