[PATCH] Don't override CFLAGS_FOR_TARGET when optimising for size

Jeff Johnston jjohnstn@redhat.com
Fri Nov 14 17:10:00 GMT 2014

Hi Bob,

If you look at the note in the top-level MAINTAINER file, you will see that
changes to the config directory needs to be kept in sync with the GCC repo.

compile; depcomp; install-sh; missing; ylwrap;
        Any global maintainer can approve changes to these
        files and directories, but they should be aware
        that they need to be kept in sync with their
        counterparts in the GCC repository.

I would suggest you submit your patch to the gcc list and then it should get
mirrored for newlib's repo.

-- Jeff J.

----- Original Message -----
> From: "Bob Dunlop" <bob.dunlop@xyzzy.org.uk>
> To: newlib@sourceware.org
> Sent: Thursday, November 13, 2014 9:02:06 AM
> Subject: [PATCH] Don't override CFLAGS_FOR_TARGET when optimising for size
> Hi,
> This patch prevents optmizing for space overriding any other
> CFLAGS_FOR_TARGET that may already be set.  Found when trying
> to set -fno-omit-frame-pointer for compatability with some
> in house code.
> Simply append the space optimisation flags to the CFLAGS_FOR_TARGET
> set rather than replacing.
> Tested compiling newlib-2.0.0 for ARM with crosstool-NG-1.20.0 and
> GNU Make 3.82.
> Same patch for 2.1.0.
> --
>         Bob Dunlop

More information about the Newlib mailing list