* Re: -R gcc option?
[not found] ` <20020411152809.A28097@disaster.basement.lan>
@ 2002-04-11 15:39 ` Anthony Green
2002-04-11 18:13 ` Bryce McKinlay
2002-04-15 16:14 ` Tom Tromey
0 siblings, 2 replies; 7+ messages in thread
From: Anthony Green @ 2002-04-11 15:39 UTC (permalink / raw)
To: Phil Edwards; +Cc: Carlos Pereira, gcc, java
On Thu, 2002-04-11 at 12:28, Phil Edwards wrote:
> > Does current gcc supports, plans to support
> > the -R/path/lib directives, as in Sun Operating
> > Systems?
>
> It already does, when you use gcc on a Sun system.
Hmm... this doesn't appear to be documented, while gcj does have a
documented -R option...
@item -R @var{resource-name}
This option is used to tell @command{gcj} to compile the contents of a
given file to object code so it may be accessed at runtime with the core
protocol handler as @var{core:/resource-name}.
I guess this is a problem.
AG
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: -R gcc option?
2002-04-11 15:39 ` -R gcc option? Anthony Green
@ 2002-04-11 18:13 ` Bryce McKinlay
2002-04-11 23:33 ` Anthony Green
2002-04-15 16:14 ` Tom Tromey
1 sibling, 1 reply; 7+ messages in thread
From: Bryce McKinlay @ 2002-04-11 18:13 UTC (permalink / raw)
To: Anthony Green; +Cc: Phil Edwards, Carlos Pereira, gcc, java
Anthony Green wrote:
>On Thu, 2002-04-11 at 12:28, Phil Edwards wrote:
>
>>>Does current gcc supports, plans to support
>>>the -R/path/lib directives, as in Sun Operating
>>>Systems?
>>>
>>It already does, when you use gcc on a Sun system.
>>
>
>Hmm... this doesn't appear to be documented, while gcj does have a
>documented -R option...
>
>@item -R @var{resource-name}
>This option is used to tell @command{gcj} to compile the contents of a
>given file to object code so it may be accessed at runtime with the core
>protocol handler as @var{core:/resource-name}.
>
>I guess this is a problem.
>
Yes, we should change GCJ's "-R" and also "-D" flags to something else,
to avoid conflicting with the existing gcc options.
regards
Bryce.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: -R gcc option?
2002-04-11 18:13 ` Bryce McKinlay
@ 2002-04-11 23:33 ` Anthony Green
2002-04-11 23:45 ` Per Bothner
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Anthony Green @ 2002-04-11 23:33 UTC (permalink / raw)
To: Bryce McKinlay; +Cc: Phil Edwards, Carlos Pereira, gcc, java
On Thu, 2002-04-11 at 17:33, Bryce McKinlay wrote:
> Yes, we should change GCJ's "-R" and also "-D" flags to something else,
> to avoid conflicting with the existing gcc options.
I can understand -R, but gcc's existing -R option really needs to be
documented somewhere (or am I just not seeing it?).
I don't think I agree about -D. I don't see how it can conflict with
the C/C++ version of -D. It's also compatible with javac, no?
AG
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: -R gcc option?
2002-04-11 23:33 ` Anthony Green
@ 2002-04-11 23:45 ` Per Bothner
2002-04-11 23:54 ` Bryce McKinlay
2002-04-12 20:59 ` Phil Edwards
2 siblings, 0 replies; 7+ messages in thread
From: Per Bothner @ 2002-04-11 23:45 UTC (permalink / raw)
To: Anthony Green; +Cc: Bryce McKinlay, gcc, java
Anthony Green wrote:
> I can understand -R, but gcc's existing -R option really needs to be
> documented somewhere (or am I just not seeing it?).
It's not a standard option, I think.
> I don't think I agree about -D. I don't see how it can conflict with
> the C/C++ version of -D.
Not directly, though it may cause some problems with some Makefile -
for example libtool ones. (But the solution there is probably to
fix libtool.)
> It's also compatible with javac, no?
It's compatible with java. javac does not take -D flags.
Thus gij has to take -D flags, but it was a debatable design
decision as to whether gcj should take -D the way it does. But
now it does and I don't see any strong enough reason to change it.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: -R gcc option?
2002-04-11 23:33 ` Anthony Green
2002-04-11 23:45 ` Per Bothner
@ 2002-04-11 23:54 ` Bryce McKinlay
2002-04-12 20:59 ` Phil Edwards
2 siblings, 0 replies; 7+ messages in thread
From: Bryce McKinlay @ 2002-04-11 23:54 UTC (permalink / raw)
To: Anthony Green; +Cc: Phil Edwards, Carlos Pereira, gcc, java
Anthony Green wrote:
>I don't think I agree about -D. I don't see how it can conflict with
>the C/C++ version of -D.
>
The problem is that there is no way to set a preprocessor define if you
want to compile a C++ file with gcj, eg:
gcj Foo.java natFoo.cc -DFOO
Of course, this is possible to work around by invoking c++ separately.
regards
Bryce.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: -R gcc option?
2002-04-11 23:33 ` Anthony Green
2002-04-11 23:45 ` Per Bothner
2002-04-11 23:54 ` Bryce McKinlay
@ 2002-04-12 20:59 ` Phil Edwards
2 siblings, 0 replies; 7+ messages in thread
From: Phil Edwards @ 2002-04-12 20:59 UTC (permalink / raw)
To: Anthony Green; +Cc: Bryce McKinlay, Carlos Pereira, gcc, java
On Fri, Apr 12, 2002 at 12:11:14AM -0700, Anthony Green wrote:
>
> I can understand -R, but gcc's existing -R option really needs to be
> documented somewhere (or am I just not seeing it?).
It's not documented. It only exists on those platforms whose native
compiler also understands -R. (I think this was intended as some sort of
transitional weaning measure until users on that platform stopped using
-R and switched to... whatever -R's implementor was hoping they'd switch to.)
There's lots of good flame material in the archives over gcc's -R switch.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: -R gcc option?
2002-04-11 15:39 ` -R gcc option? Anthony Green
2002-04-11 18:13 ` Bryce McKinlay
@ 2002-04-15 16:14 ` Tom Tromey
1 sibling, 0 replies; 7+ messages in thread
From: Tom Tromey @ 2002-04-15 16:14 UTC (permalink / raw)
To: Anthony Green; +Cc: Phil Edwards, Carlos Pereira, gcc, java
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> Hmm... this doesn't appear to be documented, while gcj does
Anthony> have a documented -R option...
I submitted a high priority PR for this. I can fix it unless somebody
gets there first. Any suggestions for what we should name the option?
Tom
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-04-15 20:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200204111824.TAA04590@pehoe.civil.ist.utl.pt>
[not found] ` <20020411152809.A28097@disaster.basement.lan>
2002-04-11 15:39 ` -R gcc option? Anthony Green
2002-04-11 18:13 ` Bryce McKinlay
2002-04-11 23:33 ` Anthony Green
2002-04-11 23:45 ` Per Bothner
2002-04-11 23:54 ` Bryce McKinlay
2002-04-12 20:59 ` Phil Edwards
2002-04-15 16:14 ` Tom Tromey
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).