Module Name: src
Committed By: matt
Date: Tue Jul 17 20:29:45 UTC 2012
Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-vax.c
Log Message:
Warn about using a symbol as a displacement in PIC mode.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/binutils/dist/gas/config/tc-vax.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.5 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.6
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.5 Sun Sep 25 04:32:37 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c Tue Jul 17 20:29:44 2012
@@ -3301,7 +3301,7 @@ md_assemble (char *instruction_string)
if (flag_want_pic && operandP->vop_mode == 8
&& this_add_symbol != NULL)
{
- as_warn (_("Symbol %s used as immediate operand in PIC mode."),
+ as_warn (_("Symbol '%s' used as immediate operand in PIC mode."),
S_GET_NAME (this_add_symbol));
}
#endif
@@ -3377,7 +3377,15 @@ md_assemble (char *instruction_string)
length = 4;
}
}
+#ifdef OBJ_ELF
+ if (flag_want_pic && this_add_symbol != NULL)
+ {
+ as_warn (_("Symbol '%s' used as displacement in PIC mode."),
+ S_GET_NAME (this_add_symbol));
+ }
+#endif
p = frag_more (1 + length);
+ know (operandP->vop_reg != 0xf);
know (operandP->vop_reg >= 0);
p[0] = operandP->vop_reg
| ((at | "?\12\14?\16"[length]) << 4);