public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/11180] New: [avr-gcc] Optimization decrease performance of struct assignment.
@ 2003-07-06  1:24 pinskia at physics dot uc dot edu
  2003-07-06  1:59 ` [Bug optimization/11180] " pinskia at physics dot uc dot edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-06  1:24 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11180

           Summary: [avr-gcc] Optimization decrease performance of struct
                    assignment.
           Product: gcc
           Version: 3.3.1
            Status: NEW
          Severity: minor
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dmixm at marine dot febras dot ru
                CC: gcc-bugs at gcc dot gnu dot org

Any optimization level increase size and decrease speed 
for next program: 
 
	typedef struct { long lo; int in; } lo_in; 
	lo_in foo (void) 
	{ 
	    lo_in x; 
	    x.lo = 1; 
	    x.in = 2; 
	    return x; 
	} 
 
"avr-gcc -W -Wall -S -O0" produced: 
	/* File "lo_in.c": code   75 = 0x004b (  40), prologues  18, epilogues  17 */ 
"avr-gcc -W -Wall -S -Os" produced: 
	/* File "lo_in.c": code   80 = 0x0050 (  29), prologues  26, epilogues  25 */ 
"avr-gcc -W -Wall -S -O3" produced: 
	/* File "lo_in.c": code   79 = 0x004f (  28), prologues  26, epilogues  25 */ 
 
Compiler: 
	avr-gcc (GCC) 3.3.1 20030519 (prerelease)
------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-06 01:24 -------
I can confirm this on the mainline (20030706).


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-06-26 15:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-06  1:24 [Bug optimization/11180] New: [avr-gcc] Optimization decrease performance of struct assignment pinskia at physics dot uc dot edu
2003-07-06  1:59 ` [Bug optimization/11180] " pinskia at physics dot uc dot edu
2003-07-10 13:38 ` steven at gcc dot gnu dot org
2003-07-10 21:03 ` pinskia at physics dot uc dot edu
2004-01-03 19:00 ` [Bug target/11180] " pinskia at gcc dot gnu dot org
2005-01-09  1:30 ` pinskia at gcc dot gnu dot org
2005-03-27 14:33 ` andrewhutchinson at cox dot net
2005-06-26  2:26 ` pinskia at gcc dot gnu dot org
2005-06-26 15:06 ` schlie at comcast dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).