This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/39298] Optimize away only set but not used variable
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2009 09:43:40 -0000
- Subject: [Bug middle-end/39298] Optimize away only set but not used variable
- References: <bug-39298-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-02-25 09:43 -------
Is there a reason the Fortran frontend gives function local variables static
storage duration?
a ()
{
struct __st_parameter_dt dt_parm.1;
static integer(kind=4) options.0[8] = {68, 255, 0, 0, 0, 1, 0, 1};
static complex(kind=4) foo[2147483647];
<bb 2>:
_gfortran_set_options (8, &options.0);
foo[9] = __complex__ (1.0e+0, 0.0);
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-02-25 09:43:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39298