* cross compiler
@ 1998-02-12 20:07 Tudor Hulubei
1998-02-13 2:04 ` Jeffrey A Law
0 siblings, 1 reply; 8+ messages in thread
From: Tudor Hulubei @ 1998-02-12 20:07 UTC (permalink / raw)
To: egcs
Hi,
Is it possible to compile egcs on Linux/x86 as a cross compiler for
the OSF4.0/Alpha? I remember reading in the gcc docs a while ago that
it wasn't possible (or very hard to do!?) due to 32bit/64bit issues.
Thanks,
Tudor
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: cross compiler
1998-02-12 20:07 cross compiler Tudor Hulubei
@ 1998-02-13 2:04 ` Jeffrey A Law
1998-02-13 10:31 ` Adding New Registers Hasdi R Hashim
1998-02-13 10:31 ` cross compiler H.J. Lu
0 siblings, 2 replies; 8+ messages in thread
From: Jeffrey A Law @ 1998-02-13 2:04 UTC (permalink / raw)
To: Tudor Hulubei; +Cc: egcs
In message < 199802121721.MAA17816@hal2.dyn.ml.org >you write:
> Is it possible to compile egcs on Linux/x86 as a cross compiler for
> the OSF4.0/Alpha? I remember reading in the gcc docs a while ago that
> it wasn't possible (or very hard to do!?) due to 32bit/64bit issues.
It ought to work. For the most part the code should handle the 32/64
bit issues fine. I regularly build cross compilers for 64bit mips targets
for example.
jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Adding New Registers
1998-02-13 2:04 ` Jeffrey A Law
@ 1998-02-13 10:31 ` Hasdi R Hashim
1998-02-13 17:41 ` Richard Henderson
1998-02-13 10:31 ` cross compiler H.J. Lu
1 sibling, 1 reply; 8+ messages in thread
From: Hasdi R Hashim @ 1998-02-13 10:31 UTC (permalink / raw)
To: egcs
Hello guys,
I am in the middle of adding new special purpose registers to an
existing target architecture. It should be able to accept 8-byte
structure. I added a new register class and a new constraint characters,
'x'. I only accepts BLKmode but at this point it can accept any mode. I
modified the config/arch/arch.[ch] files but when assembling....
struct { int x,y } blk1,blk2;
asm("%0,%1" : "=x" (blk1) : "x" (blk1), "x" blk2);
...xgcc spits the following:
../x.c: In function `xmain':
../x.c:7: `asm' operand requires impossible reload
I can replace blk1/blk2 with "0" or "0.0" and get the same stuff.
Any ideas what I missed? TQ.
Hasdi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Adding New Registers
1998-02-13 10:31 ` Adding New Registers Hasdi R Hashim
@ 1998-02-13 17:41 ` Richard Henderson
1998-02-13 23:13 ` Jeffrey A Law
0 siblings, 1 reply; 8+ messages in thread
From: Richard Henderson @ 1998-02-13 17:41 UTC (permalink / raw)
To: Hasdi R Hashim; +Cc: egcs
On Fri, Feb 13, 1998 at 11:54:26AM +0000, Hasdi R Hashim wrote:
> I am in the middle of adding new special purpose registers to an
> existing target architecture. It should be able to accept 8-byte
> structure. I added a new register class and a new constraint characters,
> 'x'. I only accepts BLKmode but at this point it can accept any mode
[...]
> ../x.c: In function `xmain':
> ../x.c:7: `asm' operand requires impossible reload
I didn't think that BLKmode was a reasonable thing to put on a
register... You might try accepting DImode or CSImode or whatnot
instead.
r~
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Adding New Registers
1998-02-13 17:41 ` Richard Henderson
@ 1998-02-13 23:13 ` Jeffrey A Law
0 siblings, 0 replies; 8+ messages in thread
From: Jeffrey A Law @ 1998-02-13 23:13 UTC (permalink / raw)
To: Richard Henderson; +Cc: Hasdi R Hashim, egcs
In message < 19980213152758.41081@dot.cygnus.com >you write:
> On Fri, Feb 13, 1998 at 11:54:26AM +0000, Hasdi R Hashim wrote:
> > I am in the middle of adding new special purpose registers to an
> > existing target architecture. It should be able to accept 8-byte
> > structure. I added a new register class and a new constraint characters,
> > 'x'. I only accepts BLKmode but at this point it can accept any mode
> [...]
> > ../x.c: In function `xmain':
> > ../x.c:7: `asm' operand requires impossible reload
>
> I didn't think that BLKmode was a reasonable thing to put on a
> register... You might try accepting DImode or CSImode or whatnot
> instead.
Correct. BLKmode registers are a no-no.
jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: cross compiler
1998-02-13 2:04 ` Jeffrey A Law
1998-02-13 10:31 ` Adding New Registers Hasdi R Hashim
@ 1998-02-13 10:31 ` H.J. Lu
1998-02-13 10:31 ` Jeffrey A Law
1998-02-13 17:41 ` Richard Henderson
1 sibling, 2 replies; 8+ messages in thread
From: H.J. Lu @ 1998-02-13 10:31 UTC (permalink / raw)
To: law; +Cc: tudor, egcs
>
>
> In message < 199802121721.MAA17816@hal2.dyn.ml.org >you write:
> > Is it possible to compile egcs on Linux/x86 as a cross compiler for
> > the OSF4.0/Alpha? I remember reading in the gcc docs a while ago that
> > it wasn't possible (or very hard to do!?) due to 32bit/64bit issues.
> It ought to work. For the most part the code should handle the 32/64
> bit issues fine. I regularly build cross compilers for 64bit mips targets
> for example.
>
I tried a few months ago. It didn't work since the alpha backend
assumed too much about 64 bit host. I am not sure it has changed.
--
H.J. Lu (hjl@gnu.org)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: cross compiler
1998-02-13 10:31 ` cross compiler H.J. Lu
@ 1998-02-13 10:31 ` Jeffrey A Law
1998-02-13 17:41 ` Richard Henderson
1 sibling, 0 replies; 8+ messages in thread
From: Jeffrey A Law @ 1998-02-13 10:31 UTC (permalink / raw)
To: H.J. Lu; +Cc: tudor, egcs
In message < m0y3NUb-0004eeC@ocean.lucon.org >you write:
> > bit issues fine. I regularly build cross compilers for 64bit mips target
> > for example.
> >
>
> I tried a few months ago. It didn't work since the alpha backend
> assumed too much about 64 bit host. I am not sure it has changed.
Ah, yes, if the backend has such assumptions, then it's not going
to work.
Maybe I should have said the machine independent code is capable of
32x64 cross compiles.
Thanks for clarifying things.
jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: cross compiler
1998-02-13 10:31 ` cross compiler H.J. Lu
1998-02-13 10:31 ` Jeffrey A Law
@ 1998-02-13 17:41 ` Richard Henderson
1 sibling, 0 replies; 8+ messages in thread
From: Richard Henderson @ 1998-02-13 17:41 UTC (permalink / raw)
To: H.J. Lu; +Cc: law, tudor, egcs
On Fri, Feb 13, 1998 at 07:57:33AM -0800, H.J. Lu wrote:
> I tried a few months ago. It didn't work since the alpha backend
> assumed too much about 64 bit host. I am not sure it has changed.
Several of these problems have been fixed, since NT is 32-bit
on Alpha, and I've had an actual user providing feedback. :-)
r~
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1998-02-13 23:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-12 20:07 cross compiler Tudor Hulubei
1998-02-13 2:04 ` Jeffrey A Law
1998-02-13 10:31 ` Adding New Registers Hasdi R Hashim
1998-02-13 17:41 ` Richard Henderson
1998-02-13 23:13 ` Jeffrey A Law
1998-02-13 10:31 ` cross compiler H.J. Lu
1998-02-13 10:31 ` Jeffrey A Law
1998-02-13 17:41 ` Richard Henderson
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).