From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Brodkin Date: Tue, 23 Sep 2014 11:10:16 +0000 Subject: [Buildroot] [PATCH v4] gcc: explicitly use C{XX}FLAGS_FOR_TARGET instead of --enable-target-optspace In-Reply-To: <1410787751.5875.30.camel@abrodkin-8560l.internal.synopsys.com> References: <1409558133-17642-1-git-send-email-abrodkin@synopsys.com> <1410155602.4784.1.camel@abrodkin-8560l.internal.synopsys.com> <1410787751.5875.30.camel@abrodkin-8560l.internal.synopsys.com> Message-ID: <1411470616.8968.3.camel@abrodkin-8560l.internal.synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, On Mon, 2014-09-15 at 17:29 +0400, Alexey Brodkin wrote: > Hi Thomas, > > On Mon, 2014-09-08 at 09:53 +0400, Alexey Brodkin wrote: > > Hi Thomas, > > > > On Mon, 2014-09-01 at 11:55 +0400, Alexey Brodkin wrote: > > > From: Alexey Brodkin > > > > > > The gcc.mk file is passing --enable-target-optspace to gcc configure > > > script, to ask for space-optimized (-Os) target libraries. However, > > > passing this option has the effect of overriding any custom > > > CFLAGS_FOR_TARGET or CXXFLAGS_FOR_TARGET values that may be passed. > > > > > > These are some situations when it is required to pass custom flags on buildong > > > of libgcc: > > > * Default flags "-g -Os" lead to build isses as with PowerPC on gcc 4.5 > > > (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810) > > > * Particular CPU requires specific instructions for HW support > > > * Deep optimizations > > > > > > Signed-off-by: Alexey Brodkin > > > > > > Cc: Anton Kolesov > > > Cc: Thomas Petazzoni > > > Cc: Peter Korsgaard > > > Cc: Gustavo Zacarias > > > --- > > > > > > Compared to v3 use "=" instead of ":=" which is not actually required here. > > > > I'm wondering if this version is fine and we may go ahead an apply it? > > Please treat this as a polite reminder about this pending patch. Any chance for this change to made its way into upstream Buildroot? -Alexey