public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/9059] unused arrays not optimized away when followed by external call
[not found] <20021226065600.9059.stefaandr@hotmail.com>
@ 2003-06-03 19:07 ` pinskia@physics.uc.edu
2003-06-14 22:13 ` [Bug optimization/9059] unused arrays not optimized away pinskia@physics.uc.edu
` (8 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-03 19:07 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=9059
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|0000-00-00 00:00:00 |2003-06-03 19:07:15
date| |
------- Additional Comments From pinskia@physics.uc.edu 2003-06-03 19:07 -------
Simpler testcase:
f()
{
int a[1024];
}
I think this is a duplicate but I cannot find the bug number.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
2003-06-03 19:07 ` [Bug optimization/9059] unused arrays not optimized away when followed by external call pinskia@physics.uc.edu
@ 2003-06-14 22:13 ` pinskia@physics.uc.edu
2003-07-21 2:54 ` pinskia at physics dot uc dot edu
` (7 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-14 22:13 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=9059
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|unused arrays not optimized |unused arrays not optimized
|away when followed by |away
|external call |
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
2003-06-03 19:07 ` [Bug optimization/9059] unused arrays not optimized away when followed by external call pinskia@physics.uc.edu
2003-06-14 22:13 ` [Bug optimization/9059] unused arrays not optimized away pinskia@physics.uc.edu
@ 2003-07-21 2:54 ` pinskia at physics dot uc dot edu
2003-08-07 17:39 ` pinskia at physics dot uc dot edu
` (6 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-21 2:54 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=9059
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|NEW |SUSPENDED
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-21 02:54 -------
This problem is already fixed on the tree-ssa branch so suspending untill it merges into
the mainline.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
` (2 preceding siblings ...)
2003-07-21 2:54 ` pinskia at physics dot uc dot edu
@ 2003-08-07 17:39 ` pinskia at physics dot uc dot edu
2003-12-17 0:39 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-07 17:39 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=9059
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |tree-ssa
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
` (3 preceding siblings ...)
2003-08-07 17:39 ` pinskia at physics dot uc dot edu
@ 2003-12-17 0:39 ` pinskia at gcc dot gnu dot org
2004-03-03 7:18 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-17 0:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-17 00:33 -------
Weird:
The testcase:
f()
{
int a[1024];
}
is not optimized but the testcase is:
f()
{
int a[1024];
a[0]=0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |NEW
Last reconfirmed|2003-12-04 09:07:42 |2003-12-17 00:33:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9059
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
` (4 preceding siblings ...)
2003-12-17 0:39 ` pinskia at gcc dot gnu dot org
@ 2004-03-03 7:18 ` pinskia at gcc dot gnu dot org
2004-05-17 21:09 ` [Bug tree-optimization/9059] " steven at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-03 7:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-03 07:18 -------
The problem here is that pass_remove_useless_vars is not being called for the last
testcase, the one without any real code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9059
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
` (5 preceding siblings ...)
2004-03-03 7:18 ` pinskia at gcc dot gnu dot org
@ 2004-05-17 21:09 ` steven at gcc dot gnu dot org
2004-05-24 8:18 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-05-17 21:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2004-05-17 10:47 -------
Ehm, pass_remove_useless_vars _is_ called, but there is no variable annotation
for unused variables, so:
/* Remove all unused, unaliased temporaries. Also remove unused, unaliased
local variables during highly optimizing compilations. */
ann = var_ann (var);
if (ann
&& ! ann->may_aliases
&& ! ann->used
&& ! ann->has_hidden_use
&& ! TREE_ADDRESSABLE (var)
we already have (!ann). Something like this should work:
+ if (!ann)
+ return false;
! else if (! ann->may_aliases
(etc.)
I'll make a patch and try if that works.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9059
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
` (6 preceding siblings ...)
2004-05-17 21:09 ` [Bug tree-optimization/9059] " steven at gcc dot gnu dot org
@ 2004-05-24 8:18 ` pinskia at gcc dot gnu dot org
2004-05-25 2:01 ` stevenb at suse dot de
2004-07-22 6:33 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 8:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-23 23:32 -------
Steven did your patch work?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |steven at gcc dot gnu dot
| |org
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9059
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
` (7 preceding siblings ...)
2004-05-24 8:18 ` pinskia at gcc dot gnu dot org
@ 2004-05-25 2:01 ` stevenb at suse dot de
2004-07-22 6:33 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 10+ messages in thread
From: stevenb at suse dot de @ 2004-05-25 2:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From stevenb at suse dot de 2004-05-24 06:46 -------
Subject: Re: unused arrays not optimized away
On Monday 24 May 2004 01:32, pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-23
> 23:32 ------- Steven did your patch work?
no, but a modified one does. it's not pretty though, so i'm
looking for something else now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9059
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/9059] unused arrays not optimized away
[not found] <20021226065600.9059.stefaandr@hotmail.com>
` (8 preceding siblings ...)
2004-05-25 2:01 ` stevenb at suse dot de
@ 2004-07-22 6:33 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-22 6:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-22 06:33 -------
Fixed for 3.5.0 by:
2004-07-21 Richard Henderson <rth@redhat.com>
* gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
TREE_THIS_VOLATILE, may_aliases, or optimization level.
(remove_useless_vars): Dump debugging info.
(expand_used_vars): Move ...
* cfgexpand.c (expand_used_vars): ... here. Make static.
* tree-flow-inline.h (set_is_used): New.
(set_default_def): Use get_var_ann.
* tree-flow.h: Update decls.
* tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
(create_ssa_var_map): Use it.
* tree-ssa.c (set_is_used): Remove.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9059
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-07-22 6:33 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20021226065600.9059.stefaandr@hotmail.com>
2003-06-03 19:07 ` [Bug optimization/9059] unused arrays not optimized away when followed by external call pinskia@physics.uc.edu
2003-06-14 22:13 ` [Bug optimization/9059] unused arrays not optimized away pinskia@physics.uc.edu
2003-07-21 2:54 ` pinskia at physics dot uc dot edu
2003-08-07 17:39 ` pinskia at physics dot uc dot edu
2003-12-17 0:39 ` pinskia at gcc dot gnu dot org
2004-03-03 7:18 ` pinskia at gcc dot gnu dot org
2004-05-17 21:09 ` [Bug tree-optimization/9059] " steven at gcc dot gnu dot org
2004-05-24 8:18 ` pinskia at gcc dot gnu dot org
2004-05-25 2:01 ` stevenb at suse dot de
2004-07-22 6:33 ` pinskia 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).