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; 32+ 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] 32+ messages in thread
[parent not found: <bug-11180-6291@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-11180-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2023-06-21  3:54 UTC | newest]

Thread overview: 32+ 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
     [not found] <bug-11180-6291@http.gcc.gnu.org/bugzilla/>
2007-07-24 23:50 ` eweddington at cso dot atmel dot com
2007-07-27  1:24 ` dmixm at marine dot febras dot ru
2007-07-27 14:23 ` eweddington at cso dot atmel dot com
2007-09-09 21:59 ` dmixm at marine dot febras dot ru
2007-09-11 16:11 ` eweddington at cso dot atmel dot com
2007-09-16  3:22 ` dmixm at marine dot febras dot ru
2007-09-16 12:57 ` rask at gcc dot gnu dot org
2007-09-16 13:38 ` rask at gcc dot gnu dot org
2007-09-16 13:54 ` rask at gcc dot gnu dot org
2007-09-16 15:44 ` eweddington at cso dot atmel dot com
2007-09-16 17:30 ` rask at gcc dot gnu dot org
2007-09-17  2:32 ` eweddington at cso dot atmel dot com
2007-09-17 11:13 ` rask at gcc dot gnu dot org
2007-09-17 22:53 ` eweddington at cso dot atmel dot com
2007-09-18  7:14 ` rask at gcc dot gnu dot org
2007-09-18 19:06 ` eweddington at cso dot atmel dot com
2007-09-18 19:49 ` rask at gcc dot gnu dot org
2007-09-19  5:28 ` eweddington at cso dot atmel dot com
2007-09-19 17:58 ` eweddington at cso dot atmel dot com
2008-02-02 15:45 ` hutchinsonandy at aim dot com
2008-02-19  2:47 ` eric dot weddington at atmel dot com
     [not found] <bug-11180-4@http.gcc.gnu.org/bugzilla/>
2013-02-22 18:43 ` gjl at gcc dot gnu.org
2023-06-21  3:54 ` pinskia at gcc dot gnu.org

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).