public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: bootstrap/3147: arm-elf and arm-rtems unbuildable on 3.0 branch
Date: Wed, 13 Jun 2001 04:46:00 -0000	[thread overview]
Message-ID: <20010613114604.6417.qmail@sourceware.cygnus.com> (raw)

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


             reply	other threads:[~2001-06-13  4:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-13  4:46 Richard Earnshaw [this message]
  -- 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:56 Joel Sherrill
2001-06-13 11:46 Philip Blundell
2001-06-13  0:36 Philip Blundell
2001-06-12 14:56 joel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010613114604.6417.qmail@sourceware.cygnus.com \
    --to=rearnsha@arm.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).