* option enable-target-optspace overwrites CFLAGS_FOR_TARGET
@ 2011-06-01 6:35 Oliver Metz
2011-06-01 6:58 ` Ian Lance Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Metz @ 2011-06-01 6:35 UTC (permalink / raw)
To: gcc-help
Hello.
I'm building a mips cross toolchain. The target libs (libgcc, libstdc++)
should be optimized for the target. But when using
"--enable-target-optspace" configure switch my CFLAGS_FOR_TARGETS are
overwritten as config/mt-ospace gets included. A similar question was asked
here [1] years ago. There is also a ten years old bug report [2].
Is this the desired behavior of --enable-target-optspace or do you consider
this as a bug?
I tried to configure with "--with-arch=4kc --with-float=soft" but this
doesn't influence the CFLAGS for gcc build.
Regards
Oliver
p.s. At crosgcc-ml nobody was able to help me. [3]
[1] http://sourceware.org/ml/newlib/2007/msg00828.html
[2] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2222
[3]
http://old.nabble.com/Optimizing-target-libraries-for-target-arch-td31700174
.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: option enable-target-optspace overwrites CFLAGS_FOR_TARGET
2011-06-01 6:35 option enable-target-optspace overwrites CFLAGS_FOR_TARGET Oliver Metz
@ 2011-06-01 6:58 ` Ian Lance Taylor
2011-06-02 12:31 ` Oliver Metz
0 siblings, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2011-06-01 6:58 UTC (permalink / raw)
To: Oliver Metz; +Cc: gcc-help
"Oliver Metz" <oliver.metz@gmx.de> writes:
> I'm building a mips cross toolchain. The target libs (libgcc, libstdc++)
> should be optimized for the target. But when using
> "--enable-target-optspace" configure switch my CFLAGS_FOR_TARGETS are
> overwritten as config/mt-ospace gets included. A similar question was asked
> here [1] years ago. There is also a ten years old bug report [2].
>
> Is this the desired behavior of --enable-target-optspace or do you consider
> this as a bug?
I think it's a bug. At least it's easy to work around it.
Ian
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: option enable-target-optspace overwrites CFLAGS_FOR_TARGET
2011-06-01 6:58 ` Ian Lance Taylor
@ 2011-06-02 12:31 ` Oliver Metz
2011-06-02 20:24 ` Ian Lance Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Metz @ 2011-06-02 12:31 UTC (permalink / raw)
To: gcc-help
> > I'm building a mips cross toolchain. The target libs (libgcc,
> > libstdc++) should be optimized for the target. But when using
> > "--enable-target-optspace" configure switch my CFLAGS_FOR_TARGETS
> are
> > overwritten as config/mt-ospace gets included. A similar question was
> > asked here [1] years ago. There is also a ten years old bug report [2].
> >
> > Is this the desired behavior of --enable-target-optspace or do you
> > consider this as a bug?
>
> I think it's a bug. At least it's easy to work around it.
>
> Ian
Should I update the referenced ticket [1] or open a new one?
If including config/mt-ospace is the one and only task of
"--enable-target-optspace" then I will try to build without it and add "-Os"
to CFLAGS_FOR_TARGET.
Regards
Oliver
[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2222
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: option enable-target-optspace overwrites CFLAGS_FOR_TARGET
2011-06-02 12:31 ` Oliver Metz
@ 2011-06-02 20:24 ` Ian Lance Taylor
0 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2011-06-02 20:24 UTC (permalink / raw)
To: Oliver Metz; +Cc: gcc-help
"Oliver Metz" <oliver.metz@gmx.de> writes:
>> > I'm building a mips cross toolchain. The target libs (libgcc,
>> > libstdc++) should be optimized for the target. But when using
>> > "--enable-target-optspace" configure switch my CFLAGS_FOR_TARGETS
>> are
>> > overwritten as config/mt-ospace gets included. A similar question was
>> > asked here [1] years ago. There is also a ten years old bug report [2].
>> >
>> > Is this the desired behavior of --enable-target-optspace or do you
>> > consider this as a bug?
>>
>> I think it's a bug. At least it's easy to work around it.
>>
>> Ian
> Should I update the referenced ticket [1] or open a new one?
Can't hurt.
> If including config/mt-ospace is the one and only task of
> "--enable-target-optspace" then I will try to build without it and add "-Os"
> to CFLAGS_FOR_TARGET.
That is indeed the one and only task of --enable-target-optspace.
Ian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-02 20:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 6:35 option enable-target-optspace overwrites CFLAGS_FOR_TARGET Oliver Metz
2011-06-01 6:58 ` Ian Lance Taylor
2011-06-02 12:31 ` Oliver Metz
2011-06-02 20:24 ` Ian Lance Taylor
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).