This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Using newlib-1.17.0 with a gcc cross-compiler without "-Os" support
- From: Navid Toosizadeh <navid at eecg dot toronto dot edu>
- To: Jon Beniston <jon at beniston dot com>
- Cc: newlib at sourceware dot org
- Date: Fri, 16 Jan 2009 18:40:55 -0500 (EST)
- Subject: RE: Using newlib-1.17.0 with a gcc cross-compiler without "-Os" support
- References: <42851.128.100.10.145.1229582331.squirrel@webmail.eecg.toronto.edu> <Pine.LNX.4.58.0812181813580.10702@senators.eecg.toronto.edu> <Pine.LNX.4.58.0901161647120.12554@senators.eecg.toronto.edu> <DD02BCE49E024CE886B2A6EB8A95E49D@bibi>
Hi Jon,
My target is a dlx processor. I already added it to newlib. I did not use
--enable-target-optspace but when I tried --disable-target-optspace that
problem was gone, probably because I used fr30 as reference and added dlx
similarly.
Thanks you,
Navid
On Fri, 16 Jan 2009, Jon Beniston wrote:
> Hi Navid,
>
> Did you configure newlib with --enable-target-optspace? For me that is
> usually what enables -Os. Otherwise it defaults to -O2. What is your target?
>
> Cheers,
> Jon
>
> -----Original Message-----
> From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org] On
> Behalf Of Navid Toosizadeh
> Sent: 16 January 2009 22:00
> To: newlib@sourceware.org
> Subject: Using newlib-1.17.0 with a gcc cross-compiler without "-Os" support
>
> Greetings,
>
> I'm trying to port newlib-1.17.0 for my target. The target's compiler is
> based on gcc 2.7.2.3, old yet fuctional.
>
> When I try to make newlib, it tries to call the cross-compiler
> (MyMachine-gcc) with size optimization flag (-Os), and it throws an error
> with this message: "cc1: Invalid option `-Os'". My target's gcc supports
> "-O1", "-O2" and "-O3".
>
> When I configure and make newlib, how can I specify not to use "-Os" ?
>
> Best regards
> Navid
>
>
>
>