gas/
[deliverable/binutils-gdb.git] / gas / cgen.c
index d3976d13b9c6198c26ecaf91f4de16314fedf3cb..f7706c1f4edbcef4985cac2daad67d7545282003 100644 (file)
@@ -1,6 +1,6 @@
 /* GAS interface for targets using CGEN: Cpu tools GENerator.
    Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-   2006, 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
+   2006, 2007, 2009, 2010, 2011, 2012  Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -18,8 +18,8 @@
    along with GAS; see the file COPYING.  If not, write to the Free Software
    Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
 
-#include <setjmp.h>
 #include "as.h"
+#include <setjmp.h>
 #include "symcat.h"
 #include "cgen-desc.h"
 #include "subsegs.h"
@@ -483,7 +483,8 @@ gas_cgen_parse_operand (cd, want, strP, opindex, opinfo, resultP, valueP)
          if (operand && (operand->hw_type == HW_H_SINT))
            signed_p = 1;
 
-         if (stmp->bsym && (stmp->bsym->section == expr_section))
+         if (stmp->bsym && (stmp->bsym->section == expr_section)
+             && ! S_IS_LOCAL (stmp))
            {
              if (signed_p)
                stmp->bsym->flags |= BSF_SRELC;
This page took 0.040473 seconds and 4 git commands to generate.