This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30720] runtime: check for empty array slices before allocating a negative amount of memory
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2007 20:34:23 -0000
- Subject: [Bug fortran/30720] runtime: check for empty array slices before allocating a negative amount of memory
- References: <bug-30720-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-02-06 20:34 -------
Confirming this bug (both of them, actually).
For the missed-optimization, I think there's no reason to keep a library
function _gfortran_internal_free(x) that is equivalent to "if(x) free(x);", we
should generate that code directly.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |missed-optimization, wrong-
| |code
Known to fail| |4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-02-06 20:34:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30720