* GCC policy question
@ 2000-04-14 16:31 Stan Shebs
2000-05-02 15:00 ` Jeffrey A Law
0 siblings, 1 reply; 2+ messages in thread
From: Stan Shebs @ 2000-04-14 16:31 UTC (permalink / raw)
To: gcc
One of the big required chunks that will be in Apple's patches
for GCC is support for "Mach-O PIC" code generation. I'm
still working on grokking it, but one of its properties is that
it's mostly machine-independent, and the same code is used for
both PowerPC and x86 (and other processors that NeXT used to
support). So there's a moderately hefty file machopic.c that
implements all the functions, which are connected to various
macros in tm.h.
Right now this file and others live in a subdirectory config/apple.
My question is: should it? At the moment, the only OS-dedicated
subdirs are config/msdos and config/winnt. config/ itself is a
possibility; there is a very old nextstep.c already there. I also
note a halfpic.c in the main dir for OSF's version, presumably
machopic could live there. Finally, if necessary to conform to
policy, I could clone the code, one for each target; but that
seems undesirable.
Which way should I go?
Stan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GCC policy question
2000-04-14 16:31 GCC policy question Stan Shebs
@ 2000-05-02 15:00 ` Jeffrey A Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 2000-05-02 15:00 UTC (permalink / raw)
To: shebs; +Cc: gcc
In message <38F7AA46.3646F7D6@apple.com>you write:
> One of the big required chunks that will be in Apple's patches
> for GCC is support for "Mach-O PIC" code generation. I'm
> still working on grokking it, but one of its properties is that
> it's mostly machine-independent, and the same code is used for
> both PowerPC and x86 (and other processors that NeXT used to
> support). So there's a moderately hefty file machopic.c that
> implements all the functions, which are connected to various
> macros in tm.h.
>
> Right now this file and others live in a subdirectory config/apple.
> My question is: should it? At the moment, the only OS-dedicated
> subdirs are config/msdos and config/winnt. config/ itself is a
> possibility; there is a very old nextstep.c already there. I also
> note a halfpic.c in the main dir for OSF's version, presumably
> machopic could live there. Finally, if necessary to conform to
> policy, I could clone the code, one for each target; but that
> seems undesirable.
>
> Which way should I go?
I'd suggest in gcc/config/ or gcc/, similar to how we have files
that are shared across Linux on various chips, or *bsd*.
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-02 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-14 16:31 GCC policy question Stan Shebs
2000-05-02 15:00 ` Jeffrey A Law
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).