Re: Compilation speed of Linaro's gcc compared to e.g. Ubuntu's version

2012-11-13 Thread Frank Müller
Hi, Michael Hope : > With our configuration, crosstool-NG sets CFLAGS to -pipe > -fno-stack-protector -U_FORTIFY. This overrides the default -O2 -g > for later stages and gives us an unoptimised GCC. > > The test build has just come in. Before: > > michaelh@crucis:$ time arm-linux-gnueabihf-gcc

Re: Getting a broken program when the -funroll-loops flag is set (gcc linaro arm)

2012-11-13 Thread Michael Hope
On 12 November 2012 22:19, Mickey Iluz wrote: > Hi, > > I've encountered a case where gcc produces a broken program: a branch that > should never be taken is taken, and wrong values are written to memory (and > printed out). > The code is fairly ordinary and small. It can be seen here: > http:/

Re: Compilation speed of Linaro's gcc compared to e.g. Ubuntu's version

2012-11-13 Thread Michael Hope
On 13 November 2012 22:58, Matthias Klose wrote: > Am 12.11.2012 03:27, schrieb Michael Hope: >> I think I've found the problem. We pass -U_FORTIFY and >> -fno-stack-protector to make the binary more universal, and the way >> that crosstool-NG passes these flags on to the tool overrides the >> de

Re: Re: unexpected reloc type 0x03 error with gcc-4.6.4 (2012.10 version)

2012-11-13 Thread Michael Hope
On 14 November 2012 00:48, 남관우 wrote: > > Hi, > > > > First, our CFLAGS is here. > > > > -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,--as-needed > -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv

Re: Re: unexpected reloc type 0x03 error with gcc-4.6.4 (2012.10 version)

2012-11-13 Thread 남관우
Title: Samsung Enterprise Portal mySingle Hi,   First, our CFLAGS is here.   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3-d16 -mfl

Re: unexpected reloc type 0x03 error with gcc-4.6.4 (2012.10 version)

2012-11-13 Thread Kyungmin Park
To Mr. Nam & Ilya, Can you share the compiler option? Thank you, Kyungmin Park On 11/13/12, Mans Rullgard wrote: > On 13 November 2012 05:12, Kyungmin Park wrote: >> Hi Michael, >> >> Recently I tested the linaro toolchain gcc-4.6 version and try to >> build our codes. >> it's okay to compile

Re: unexpected reloc type 0x03 error with gcc-4.6.4 (2012.10 version)

2012-11-13 Thread Mans Rullgard
On 13 November 2012 05:12, Kyungmin Park wrote: > Hi Michael, > > Recently I tested the linaro toolchain gcc-4.6 version and try to > build our codes. > it's okay to compile the codes, but when launching the binary it > occures following messages. > > /usr/lib/libnfc-common-lib.so.1: unexpected re

Re: Compilation speed of Linaro's gcc compared to e.g. Ubuntu's version

2012-11-13 Thread Matthias Klose
Am 12.11.2012 03:27, schrieb Michael Hope: > I think I've found the problem. We pass -U_FORTIFY and > -fno-stack-protector to make the binary more universal, and the way > that crosstool-NG passes these flags on to the tool overrides the > default package flags and turns off any optimisations. >