bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/10766] New: Variable defined inside code in gas/config/tc-i386.


From: jerker dot back at gmail dot com
Subject: [Bug gas/10766] New: Variable defined inside code in gas/config/tc-i386.c
Date: 13 Oct 2009 11:24:39 -0000

The variable "expressionS *exp" is defined inside function code block.

===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.399
diff -w -b -B -u -p -r1.399 tc-i386.c
--- config/tc-i386.c    1 Oct 2009 14:31:43 -0000       1.399
+++ config/tc-i386.c    13 Oct 2009 02:16:43 -0000
@@ -4866,6 +4866,7 @@ build_modrm_byte (void)
   const seg_entry *default_seg = 0;
   unsigned int source, dest;
   int vex_3_sources;
+  expressionS *exp;
 
   /* The first operand of instructions with VEX prefix and 3 sources
      must be VEX_Imm4.  */
@@ -4896,7 +4897,7 @@ build_modrm_byte (void)
 
       /* Generate an 8bit immediate operand to encode the register
         operand.  */
-      expressionS *exp = &im_expressions[i.imm_operands++];
+      exp = &im_expressions[i.imm_operands++];
       i.op[i.operands].imms = exp;
       i.types[i.operands] = imm8;
       i.operands++;

-- 
           Summary: Variable defined inside code in gas/config/tc-i386.c
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: jerker dot back at gmail dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-unknown-interix6.1
  GCC host triplet: x86_64-unknown-interix6.1
GCC target triplet: x86_64-unknown-interix6.1


http://sourceware.org/bugzilla/show_bug.cgi?id=10766

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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