OSDN Git Service

remove now-unused definition of gfc_free
authormeyering <meyering@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Apr 2011 19:21:05 +0000 (19:21 +0000)
committermeyering <meyering@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Apr 2011 19:21:05 +0000 (19:21 +0000)
* misc.c (gfc_free): Remove function.
* gfortran.h (gfc_free): Remove its prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172667 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/misc.c

index 51e2515..f6e7d47 100644 (file)
@@ -1,5 +1,11 @@
 2011-04-18  Jim Meyering  <meyering@redhat.com>
 
+       remove now-unused definition of gfc_free
+       * misc.c (gfc_free): Remove function.
+       * gfortran.h (gfc_free): Remove its prototype.
+
+2011-04-18  Jim Meyering  <meyering@redhat.com>
+
        convert each use of gfc_free (p) to free (p)
        Do that by running this command:
          perl -pi -e    's/\bgfc_free ?\(/free (/' \
index 49fbd1f..ce11c07 100644 (file)
@@ -2370,7 +2370,6 @@ void gfc_end_source_files (void);
 
 /* misc.c */
 void *gfc_getmem (size_t) ATTRIBUTE_MALLOC;
-void gfc_free (void *);
 int gfc_terminal_width (void);
 void gfc_clear_ts (gfc_typespec *);
 FILE *gfc_open_file (const char *);
index 76dd2ef..a54ffc0 100644 (file)
@@ -42,16 +42,6 @@ gfc_getmem (size_t n)
 }
 
 
-void
-gfc_free (void *p)
-{
-  /* The parentheses around free are needed in order to call not
-     the redefined free of gfortran.h.  */
-  if (p != NULL)
-    (free) (p);
-}
-
-
 /* Get terminal width.  */
 
 int