This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch committed: make plugin-api.h gcc usable


I committed this patch for Rafael to make the new plugin-api.h usable
by gcc, which compiles with -pedantic, etc.

Ian


2008-09-22 Rafael Espindola  <espindola@google.com>

	* plugin-api.h (ld_plugin_status): Remove comma from the last item.
	Use C style comment.
	(ld_plugin_api_version, ld_plugin_output_file_type,
	ld_plugin_symbol_kind, ld_plugin_symbol_visibility,
	ld_plugin_symbol_resolution, ld_plugin_level, ld_plugin_tag): Remove
	comma from the last item.


Index: include/plugin-api.h
===================================================================
RCS file: /cvs/src/src/include/plugin-api.h,v
retrieving revision 1.1
diff -u -r1.1 plugin-api.h
--- include/plugin-api.h	19 Sep 2008 22:54:57 -0000	1.1
+++ include/plugin-api.h	22 Sep 2008 14:08:34 -0000
@@ -39,8 +39,8 @@
 enum ld_plugin_status
 {
   LDPS_OK = 0,
-  LDPS_NO_SYMS,         // Attempt to get symbols that haven't been added.
-  LDPS_ERR,
+  LDPS_NO_SYMS,         /* Attempt to get symbols that haven't been added. */
+  LDPS_ERR
   /* Additional Error codes TBD.  */
 };
 
@@ -48,7 +48,7 @@
 
 enum ld_plugin_api_version
 {
-  LD_PLUGIN_API_VERSION = 1,
+  LD_PLUGIN_API_VERSION = 1
 };
 
 /* The type of output file being generated by the linker.  */
@@ -57,7 +57,7 @@
 {
   LDPO_REL,
   LDPO_EXEC,
-  LDPO_DYN,
+  LDPO_DYN
 };
 
 /* An input file managed by the plugin library.  */
@@ -92,7 +92,7 @@
   LDPK_WEAKDEF,
   LDPK_UNDEF,
   LDPK_WEAKUNDEF,
-  LDPK_COMMON,
+  LDPK_COMMON
 };
 
 /* The visibility of the symbol.  */
@@ -102,7 +102,7 @@
   LDPV_DEFAULT,
   LDPV_PROTECTED,
   LDPV_INTERNAL,
-  LDPV_HIDDEN,
+  LDPV_HIDDEN
 };
 
 /* How a symbol is resolved.  */
@@ -117,7 +117,7 @@
   LDPR_PREEMPTED_IR,
   LDPR_RESOLVED_IR,
   LDPR_RESOLVED_EXEC,
-  LDPR_RESOLVED_DYN,
+  LDPR_RESOLVED_DYN
 };
 
 /* The plugin library's "claim file" handler.  */
@@ -189,7 +189,7 @@
   LDPL_INFO,
   LDPL_WARNING,
   LDPL_ERROR,
-  LDPL_FATAL,
+  LDPL_FATAL
 };
 
 /* Values for the tv_tag field of the transfer vector.  */
@@ -207,7 +207,7 @@
   LDPT_ADD_SYMBOLS,
   LDPT_GET_SYMBOLS,
   LDPT_ADD_INPUT_FILE,
-  LDPT_MESSAGE,
+  LDPT_MESSAGE
 };
 
 /* The plugin transfer vector.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]