Re: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-09 Thread Rolf Ebert
-gcc-list] regression in size from 4.2.2 to 4.5.0 1) -no-inline-small-function- 69034 2) --param inline-call-cost=2 - 68964 3) -fno-inline - 68816 4) -finline-limit=10- 68810 5) #2 #4 - 68754 6) -finline-limit=3 - 68754 (same

Re: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-09 Thread Bob Paddock
Is there any way to apply the switches on a per source file basis? Yes, it's called using a Makefile. ;-) Eric, my Makefile builds four concurrent models, in to separate object trees from a single source set, applies configuration parameters to each model, serializes each build, CRC's the

RE: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-08 Thread Weddington, Eric
-Original Message- From: avr-gcc-list-bounces+eric.weddington=atmel@nongnu.org [mailto:avr-gcc-list-bounces+eric.weddington=atmel@nongnu. org] On Behalf Of Bob Paddock Sent: Friday, May 08, 2009 6:55 PM To: avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] regression

Re: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-07 Thread Sean D'Epagnier
Thanks for all the input. I will do some more investigating myself and hopefully produce a small test case as well as try to track down the actual commits to gcc which caused it. Unfortunately I suspect there are multiple causes to blame. I will post back when I have more information. I

RE: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-07 Thread Schwichtenberg, Knut
: avr-gcc-list-bounces+knut.schwichtenberg=siemens@nongnu.or g [mailto:avr-gcc-list-bounces+knut.schwichtenberg=siemens@n ongnu.org] On Behalf Of Sean D'Epagnier Sent: Thursday, May 07, 2009 8:21 AM To: Weddington, Eric Cc: avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] regression

Re: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-07 Thread Kang Tin LAI
Schwichtenberg, Knut wrote: The increase in size was also subject for other gcc versions. Often the following gcc comand-line swichtes were proposed: -fno-inline-small-function -fno-split-wide-types -fno-move-loop-invariants - Additionally Larry Barello

Re: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-06 Thread Steven Michalske
for any of us to help You must provide the options you used to compile. provided compilable code snippets with the exact command line options you used. it would be great if you made a makefile that ran the tests too. -Os between the GCC versions most likely don't have the same options,

Re: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-06 Thread David Kelly
On Wed, May 06, 2009 at 12:44:42PM -0600, Sean D'Epagnier wrote: I was trying to reduce the size of my binary so it would fit on some 128kb parts. I normally used gcc 4.2.2 for this project, but decided to try gcc 4.5.0. To my surprise, the resulting binary was 3.5kb _larger_ with the

RE: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

2009-05-06 Thread Weddington, Eric
-Original Message- From: avr-gcc-list-bounces+eric.weddington=atmel@nongnu.org [mailto:avr-gcc-list-bounces+eric.weddington=atmel@nongnu. org] On Behalf Of Sean D'Epagnier Sent: Wednesday, May 06, 2009 12:45 PM To: avr-gcc-list@nongnu.org Subject: [avr-gcc-list]