public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
@ 2005-05-12 9:42 etienne_lorrain at yahoo dot fr
2005-05-12 10:39 ` [Bug c/21529] " steven at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: etienne_lorrain at yahoo dot fr @ 2005-05-12 9:42 UTC (permalink / raw)
To: gcc-bugs
Compiling this code with -Os is more than 40 % bigger in size with GCC-4.1
compared to GCC-3.4.3.
See also thread: http://gcc.gnu.org/ml/gcc/2005-05/msg00532.html
>>>>
struct disk_interface_str {
unsigned nb_IDE_found;
struct IDE_found_str {
unsigned short ideIOadr;
unsigned short ideIOctrladr;
unsigned char irq;
unsigned char bios_order;
unsigned short reserved;
} *IDE_found;
} DI;
void reorder_IDE_for_linux (void)
{
static const unsigned short idearray[] = {
0x1F0, 0x170,
0x1E8, 0x168,
0x1E0, 0x160,
};
unsigned short cpt, order;
for (order = 0; order < sizeof(idearray)/sizeof(idearray[0]); order++) {
for (cpt = order + 1; cpt < DI.nb_IDE_found; cpt++)
if (DI.IDE_found[cpt].ideIOadr == idearray[order])
break;
if (cpt < DI.nb_IDE_found) {
struct IDE_found_str save = DI.IDE_found[cpt];
unsigned short i;
for (i = order; i < cpt; i++) {
struct IDE_found_str tmp = DI.IDE_found[i];
DI.IDE_found[i] = save;
save = tmp;
}
DI.IDE_found[cpt] = save;
}
}
}
<<<<
--
Summary: code size regression (+40%) with -Os from GCC-3.4.3 to
4.1
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: etienne_lorrain at yahoo dot fr
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i486-pc-linux-gnu
GCC host triplet: i486-pc-linux-gnu
GCC target triplet: i486-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/21529] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
@ 2005-05-12 10:39 ` steven at gcc dot gnu dot org
2005-05-12 11:48 ` giovannibajo at libero dot it
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-05-12 10:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-05-12 10:39 -------
Yada yada yada, you know the drill. SRA, out-of-ssa, and register
allocation all working against each other:
<L6>:;
D.1605 = DI.IDE_found + (struct IDE_found_str *) ((long unsigned int) i *
8);
tmp$reserved = D.1605->reserved;
tmp$bios_order = D.1605->bios_order;
tmp$irq = D.1605->irq;
tmp$ideIOctrladr = D.1605->ideIOctrladr;
tmp$ideIOadr = D.1605->ideIOadr;
D.1605->reserved = save$reserved;
D.1605->bios_order = save$bios_order;
D.1605->irq = save$irq;
D.1605->ideIOctrladr = save$ideIOctrladr;
D.1605->ideIOadr = save$ideIOadr;
i = i + 1;
save$reserved = tmp$reserved;
save$bios_order = tmp$bios_order;
save$irq = tmp$irq;
save$ideIOctrladr = tmp$ideIOctrladr;
save$ideIOadr = tmp$ideIOadr;
Wouldn't a block move be more efficient here than moving things one-by-one?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ra
Last reconfirmed|0000-00-00 00:00:00 |2005-05-12 10:39:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/21529] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
2005-05-12 10:39 ` [Bug c/21529] " steven at gcc dot gnu dot org
@ 2005-05-12 11:48 ` giovannibajo at libero dot it
2005-05-12 13:41 ` [Bug middle-end/21529] [4.0/4.1 Regression] " giovannibajo at libero dot it
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-12 11:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-05-12 11:48 -------
Maybe SRA could be tuned differently for -Os. RTH, do you think it is feasable,
or is it only a register allocator problem and should not be handled at the
tree level at all?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/21529] [4.0/4.1 Regression] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
2005-05-12 10:39 ` [Bug c/21529] " steven at gcc dot gnu dot org
2005-05-12 11:48 ` giovannibajo at libero dot it
@ 2005-05-12 13:41 ` giovannibajo at libero dot it
2005-05-20 15:49 ` giovannibajo at libero dot it
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-12 13:41 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.0 4.1.0
Known to work| |3.4.3
Summary|code size regression (+40%) |[4.0/4.1 Regression] code
|with -Os from GCC-3.4.3 to |size regression (+40%) with
|4.1 |-Os from GCC-3.4.3 to 4.1
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/21529] [4.0/4.1 Regression] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
` (2 preceding siblings ...)
2005-05-12 13:41 ` [Bug middle-end/21529] [4.0/4.1 Regression] " giovannibajo at libero dot it
@ 2005-05-20 15:49 ` giovannibajo at libero dot it
2005-05-20 15:50 ` giovannibajo at libero dot it
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-20 15:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-05-20 15:49 -------
*** Bug 21680 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/21529] [4.0/4.1 Regression] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
` (3 preceding siblings ...)
2005-05-20 15:49 ` giovannibajo at libero dot it
@ 2005-05-20 15:50 ` giovannibajo at libero dot it
2005-07-08 1:38 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-20 15:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-05-20 15:50 -------
Notice that both testcases come from the same program (Gujin).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/21529] [4.0/4.1 Regression] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
` (4 preceding siblings ...)
2005-05-20 15:50 ` giovannibajo at libero dot it
@ 2005-07-08 1:38 ` mmitchel at gcc dot gnu dot org
2005-08-04 22:54 ` rth at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:38 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/21529] [4.0/4.1 Regression] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
` (5 preceding siblings ...)
2005-07-08 1:38 ` mmitchel at gcc dot gnu dot org
@ 2005-08-04 22:54 ` rth at gcc dot gnu dot org
2005-08-05 2:42 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-08-04 22:54 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-05-12 10:39:02 |2005-08-04 22:54:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/21529] [4.0/4.1 Regression] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
` (6 preceding siblings ...)
2005-08-04 22:54 ` rth at gcc dot gnu dot org
@ 2005-08-05 2:42 ` cvs-commit at gcc dot gnu dot org
2005-08-05 20:39 ` cvs-commit at gcc dot gnu dot org
2005-08-05 20:39 ` rth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-05 2:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-05 02:42 -------
Subject: Bug 21529
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rth@gcc.gnu.org 2005-08-05 02:42:07
Modified files:
gcc : ChangeLog params.def params.h tree-sra.c
Log message:
PR 21529
* params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
* params.h (SRA_MAX_STRUCTURE_COUNT): New.
* tree-sra.c (decide_block_copy): Use it. Disable element copy
if we'd have to instantiate too many members.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9660&r2=2.9661
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/params.def.diff?cvsroot=gcc&r1=1.65&r2=1.66
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/params.h.diff?cvsroot=gcc&r1=1.31&r2=1.32
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-sra.c.diff?cvsroot=gcc&r1=2.69&r2=2.70
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/21529] [4.0/4.1 Regression] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
` (8 preceding siblings ...)
2005-08-05 20:39 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-05 20:39 ` rth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-08-05 20:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2005-08-05 20:39 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/21529] [4.0/4.1 Regression] code size regression (+40%) with -Os from GCC-3.4.3 to 4.1
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
` (7 preceding siblings ...)
2005-08-05 2:42 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-05 20:39 ` cvs-commit at gcc dot gnu dot org
2005-08-05 20:39 ` rth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-05 20:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-05 20:39 -------
Subject: Bug 21529
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: rth@gcc.gnu.org 2005-08-05 20:39:05
Modified files:
gcc : ChangeLog params.def params.h tree-sra.c
Log message:
PR 21529
* params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
* params.h (SRA_MAX_STRUCTURE_COUNT): New.
* tree-sra.c (decide_block_copy): Use it. Disable element copy
if we'd have to instantiate too many members.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.353&r2=2.7592.2.354
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/params.def.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.54.6.2&r2=1.54.6.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/params.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.28&r2=1.28.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-sra.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.53.2.2&r2=2.53.2.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21529
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-08-05 20:39 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-12 9:42 [Bug c/21529] New: code size regression (+40%) with -Os from GCC-3.4.3 to 4.1 etienne_lorrain at yahoo dot fr
2005-05-12 10:39 ` [Bug c/21529] " steven at gcc dot gnu dot org
2005-05-12 11:48 ` giovannibajo at libero dot it
2005-05-12 13:41 ` [Bug middle-end/21529] [4.0/4.1 Regression] " giovannibajo at libero dot it
2005-05-20 15:49 ` giovannibajo at libero dot it
2005-05-20 15:50 ` giovannibajo at libero dot it
2005-07-08 1:38 ` mmitchel at gcc dot gnu dot org
2005-08-04 22:54 ` rth at gcc dot gnu dot org
2005-08-05 2:42 ` cvs-commit at gcc dot gnu dot org
2005-08-05 20:39 ` cvs-commit at gcc dot gnu dot org
2005-08-05 20:39 ` rth at gcc dot gnu dot 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).