aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-03-15 12:11:50 +0000
committerDaniel Jacobowitz <drow@false.org>2007-03-15 12:11:50 +0000
commit794ba86ab2c3af917bb30776338526a18ea74880 (patch)
tree283048e86c4b4da985dffe496b65f2b989fc4b31 /gas/config
parent4cbdee8aa5213d415babb7bc528d188066b4dfb1 (diff)
downloadgdb-794ba86ab2c3af917bb30776338526a18ea74880.zip
gdb-794ba86ab2c3af917bb30776338526a18ea74880.tar.gz
gdb-794ba86ab2c3af917bb30776338526a18ea74880.tar.bz2
gas/
* config/tc-arm.c (arm_copy_symbol_attributes): New. * config/tc-arm.h (arm_copy_symbol_attributes): Declare. (TC_COPY_SYMBOL_ATTRIBUTES): Define. * gas/symbols.c (copy_symbol_attributes): Use TC_COPY_SYMBOL_ATTRIBUTES. gas/testsuite/ * gas/arm/thumbver.d, gas/arm/thumbver.s: New test.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c6
-rw-r--r--gas/config/tc-arm.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 9822ab5..b463d96 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -20527,3 +20527,9 @@ s_arm_fpu (int ignored ATTRIBUTE_UNUSED)
ignore_rest_of_line ();
}
+/* Copy symbol information. */
+void
+arm_copy_symbol_attributes (symbolS *dest, symbolS *src)
+{
+ ARM_GET_FLAG (dest) = ARM_GET_FLAG (src);
+}
diff --git a/gas/config/tc-arm.h b/gas/config/tc-arm.h
index d7df213..d6dee9b 100644
--- a/gas/config/tc-arm.h
+++ b/gas/config/tc-arm.h
@@ -141,6 +141,12 @@ bfd_boolean arm_is_eabi (void);
#define ARM_SET_INTERWORK(s,t) ((t) ? ARM_SET_FLAG (s, ARM_FLAG_INTERWORK) : ARM_RESET_FLAG (s, ARM_FLAG_INTERWORK))
#define THUMB_SET_FUNC(s,t) ((t) ? ARM_SET_FLAG (s, THUMB_FLAG_FUNC) : ARM_RESET_FLAG (s, THUMB_FLAG_FUNC))
+void arm_copy_symbol_attributes (symbolS *, symbolS *);
+#ifndef TC_COPY_SYMBOL_ATTRIBUTES
+#define TC_COPY_SYMBOL_ATTRIBUTES(DEST, SRC) \
+ (arm_copy_symbol_attributes (DEST, SRC))
+#endif
+
#define TC_START_LABEL(C,STR) (c == ':' || (c == '/' && arm_data_in_code ()))
#define tc_canonicalize_symbol_name(str) arm_canonicalize_symbol_name (str);
#define obj_adjust_symtab() arm_adjust_symtab ()