From 186b17cf869fa906761987e2d34ecbc4c8adb514 Mon Sep 17 00:00:00 2001
From: Maximilian Downey Twiss <creatorsmithmdt@gmail.com>
Date: Fri, 18 Nov 2022 14:30:19 +1100
Subject: [PATCH 26/56] java: Remove 'FREE' macro.

gcc/java/ChangeLog:

	* jcf-parse.cc (parse_zip_file_entries): Use free instead of FREE.
	* jcf.h (FREE): Remove.
---
 gcc/java/jcf-parse.cc | 2 +-
 gcc/java/jcf.h        | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/gcc/java/jcf-parse.cc b/gcc/java/jcf-parse.cc
index 7fb734215c2..b5e39fd5a5c 100644
--- a/gcc/java/jcf-parse.cc
+++ b/gcc/java/jcf-parse.cc
@@ -2060,7 +2060,7 @@ parse_zip_file_entries (void)
 	    char *class_name = compute_class_name (zdir);
 	    int previous_alias_set = -1;
 	    klass = lookup_class (get_identifier (class_name));
-	    FREE (class_name);
+	    free (class_name);
 	    current_jcf = TYPE_JCF (klass);
 	    output_class = current_class = klass;
 
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h
index 87531edc13c..5ad906d9e81 100644
--- a/gcc/java/jcf.h
+++ b/gcc/java/jcf.h
@@ -36,9 +36,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 #define ALLOC xmalloc
 #define REALLOC xrealloc
-#ifndef FREE
-#define FREE(PTR) free(PTR)
-#endif
 
 #ifdef JCF_word
 #define JCF_word JCF_u4
-- 
2.38.1

Reply via email to