This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help adding new architecture
- To: "Jerry Quinn" <Jerry dot Quinn dot jquinn at nt dot com>
- Subject: Re: Help adding new architecture
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 24 Nov 1998 18:40:33 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <3659E06D.B0CFCCC@americasm01.nt.com>you write:
> I'm working off a copy of the 19981122 snapshot.
>
> I'm trying to add hppa 2.0 hooks to egcs and am running into a little
> difficulty. I'm starting off by trying to add an extra flag to the pa
> target_flags. I did 2 things. First, I've tried to convert all the
> target_flags bits with MASK_ defines in pa.h, as was done under
> sparc.h. Then, I tried to add a pa2.0 flag in addition to the 1.1 flag
> that is already there. I made it bit 2 and shifted all the others down
> one. I also changed the TARGET_DEFAULT definitions in pa-gas.h,
> pa-pro.h, and pa1.h to use the MASK defines instead of hard-coded
> constants.
>
> Now, I try to configure and built egcs. I'm using the HP development cc
> compiler for building the stage 1 gcc. Everything builds up to the
> point when the stage1 xgcc is used to compile __muldi3, where I get the
> following:
First, I would recommend using an unused bit. Don't try to move things around
and fix all the various TARGET_DEFAULTs. It's not worth the effort and is
prone to making mistakes.
Look at what we do for TARGET_CPU_DEFAULT in configure.in. That's probably
the dependency you missed.
I also do not see the real benefit from converting the port to using
MASK_FOO. But if you think it makes things easier to read I'll consider it.
jeff