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: PR gas/11806: FAIL: i386 intelbad with -O0


Hi,

This patch:

http://sourceware.org/ml/binutils/2010-04/msg00284.html

removed fall through patch for O_multiply.  I checked in this patch to
restore it.


H.J.
---
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4ae098e..c7c1e57 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR gas/11806
+	* config/tc-i386-intel.c (i386_intel_simplify): Restore fall
+	through patch for O_multiply.
+
 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
 
 	PR ld/11612
diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c
index 186acc0..f415d71 100644
--- a/gas/config/tc-i386-intel.c
+++ b/gas/config/tc-i386-intel.c
@@ -434,6 +434,7 @@ static int i386_intel_simplify (expressionS *e)
 
 	  break;
 	}
+      goto fallthrough;
 
     case O_register:
       ret = i386_intel_simplify_register (e);
@@ -452,6 +453,7 @@ static int i386_intel_simplify (expressionS *e)
 
       /* FALLTHROUGH */
     default:
+fallthrough:
       if (e->X_add_symbol && !i386_intel_simplify_symbol (e->X_add_symbol))
 	return 0;
       if (e->X_op == O_add || e->X_op == O_subtract)


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