bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pacifying the compiler by removing the comma at the end of enumerator li


From: Juan Manuel Guerrero
Subject: Pacifying the compiler by removing the comma at the end of enumerator list.
Date: Sat, 11 Mar 2017 00:29:57 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7

Certainly not the most important fix but here a small patch to pacify
the compiler by removing the comma at the end of enumerator list.

Reagrads,
Juan M. Guerrero




#  Bug fixes send to binutils maintainer list.


2017-03-09 Juan Manuel Guerrero  <address@hidden>

        * gas/ehopt.c: comma at end of enumerator list removed.

        * include/elf/mips.h: comma at end of enumerator list removed.

        * include/elf/s390.h: comma at end of enumerator list removed.

        * ld/ld.h: comma at end of enumerator list removed.

        * ld/ldexp.h: comma at end of enumerator list removed.






diff -aprNU5 binutils-2.28.orig/gas/ehopt.c binutils-2.28/gas/ehopt.c
--- binutils-2.28.orig/gas/ehopt.c      2017-03-02 08:23:48 +0000
+++ binutils-2.28/gas/ehopt.c   2017-03-09 19:47:06 +0000
@@ -234,11 +234,11 @@ enum frame_state
   state_saw_pc_begin,
   state_seeing_aug_size,
   state_skipping_aug,
   state_wait_loc4,
   state_saw_loc4,
-  state_error,
+  state_error
 };

 /* This function is called from emit_expr.  It looks for cases which
    we can optimize.

diff -aprNU5 binutils-2.28.orig/include/elf/mips.h 
binutils-2.28/include/elf/mips.h
--- binutils-2.28.orig/include/elf/mips.h       2017-03-02 08:23:50 +0000
+++ binutils-2.28/include/elf/mips.h    2017-03-09 19:47:06 +0000
@@ -1270,11 +1270,11 @@ enum

   /* Floating-point ABI used by this object file.  */
   Tag_GNU_MIPS_ABI_FP = 4,

   /* MSA ABI used by this object file.  */
-  Tag_GNU_MIPS_ABI_MSA = 8,
+  Tag_GNU_MIPS_ABI_MSA = 8
 };

 /* Object attribute values.  */
 enum
 {
@@ -1312,11 +1312,11 @@ enum

   /* Not tagged or not using any ABIs affected by the differences.  */
   Val_GNU_MIPS_ABI_MSA_ANY = 0,

   /* Using 128-bit MSA.  */
-  Val_GNU_MIPS_ABI_MSA_128 = 1,
+  Val_GNU_MIPS_ABI_MSA_128 = 1
 };

 #ifdef __cplusplus
 }
 #endif
diff -aprNU5 binutils-2.28.orig/include/elf/s390.h 
binutils-2.28/include/elf/s390.h
--- binutils-2.28.orig/include/elf/s390.h       2017-03-02 08:23:50 +0000
+++ binutils-2.28/include/elf/s390.h    2017-03-09 19:45:16 +0000
@@ -137,9 +137,9 @@ enum

   /* Vector ABI:
      0 = not affected by the vector ABI, or not tagged.
      1 = software vector ABI being used
      2 = hardware vector ABI being used.  */
-  Tag_GNU_S390_ABI_Vector = 8,
+  Tag_GNU_S390_ABI_Vector = 8
 };

 #endif /* _ELF_390_H */
diff -aprNU5 binutils-2.28.orig/ld/ld.h binutils-2.28/ld/ld.h
--- binutils-2.28.orig/ld/ld.h  2017-03-02 08:23:50 +0000
+++ binutils-2.28/ld/ld.h       2017-03-09 19:47:06 +0000
@@ -115,11 +115,11 @@ enum endian_enum { ENDIAN_UNSET = 0, END

 enum symbolic_enum
 {
   symbolic_unset = 0,
   symbolic,
-  symbolic_functions,
+  symbolic_functions
 };

 enum dynamic_list_enum
 {
   dynamic_list_unset = 0,
@@ -230,11 +230,11 @@ enum orphan_handling_enum
   /* Find somewhere to place the orphan section, as with
      ORPHAN_HANDLING_PLACE, but also issue a warning.  */
   orphan_handling_warn,

   /* Issue a fatal error if any orphan sections are found.  */
-  orphan_handling_error,
+  orphan_handling_error
 };

 typedef struct
 {
   bfd_boolean magic_demand_paged;
diff -aprNU5 binutils-2.28.orig/ld/ldexp.h binutils-2.28/ld/ldexp.h
--- binutils-2.28.orig/ld/ldexp.h       2017-03-02 08:23:50 +0000
+++ binutils-2.28/ld/ldexp.h    2017-03-09 19:47:06 +0000
@@ -127,11 +127,11 @@ enum phase_enum {
 };

 enum relro_enum {
   exp_dataseg_relro_none,
   exp_dataseg_relro_start,
-  exp_dataseg_relro_end,
+  exp_dataseg_relro_end
 };

 struct ldexp_control {
   /* Modify expression evaluation depending on this.  */
   lang_phase_type phase;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]