This is the mail archive of the binutils-cvs@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]

[binutils-gdb/binutils-2_33-branch] tc-i386.c gcc10 warning fix


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=641cbc94c4018cfed8f47de70254241aa7098466

commit 641cbc94c4018cfed8f47de70254241aa7098466
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Sep 21 10:59:50 2019 +0930

    tc-i386.c gcc10 warning fix
    
    .../gas/config/tc-i386.c: In function â??md_parse_optionâ??:
    .../gas/config/tc-i386.c:11441:9: error: implicit conversion from â??enum <anonymous>â?? to â??enum <anonymous>â?? [-Werror=enum-conversion]
    11441 |  vexwig = evexw0;
          |         ^
    .../gas/config/tc-i386.c:11443:9: error: implicit conversion from â??enum <anonymous>â?? to â??enum <anonymous>â?? [-Werror=enum-conversion]
    11443 |  vexwig = evexw1;
          |         ^
    
    	* config/tc-i386.c (md_parse_option): Fix warning on vexwig assignment.
    
    (cherry picked from commit 40c9c8deb94be6576f5729172dce117cbe155856)

Diff:
---
 gas/ChangeLog        | 6 ++++++
 gas/config/tc-i386.c | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 981ae2a..46e58d6 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2019-09-25  Alan Modra  <amodra@gmail.com>
+
+	Apply from master
+	2019-09-21  Alan Modra  <amodra@gmail.com>
+	* config/tc-i386.c (md_parse_option): Fix warning on vexwig assignment.
+
 2019-09-19  Matthew Malcomson  <matthew.malcomson@arm.com>
 
 	* NEWS: Add SVE2 and TME entries.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 2710dce..9a5043d 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -11438,9 +11438,9 @@ md_parse_option (int c, const char *arg)
 
     case OPTION_MVEXWIG:
       if (strcmp (arg, "0") == 0)
-	vexwig = evexw0;
+	vexwig = vexw0;
       else if (strcmp (arg, "1") == 0)
-	vexwig = evexw1;
+	vexwig = vexw1;
       else
 	as_fatal (_("invalid -mvexwig= option: `%s'"), arg);
       break;


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