* Remove gas/obj-elf.c cruft
@ 2011-03-10 10:19 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2011-03-10 10:19 UTC (permalink / raw)
To: binutils
* gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
TARGET_SYMBOL_FIELDS): Don't define.
* gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
Index: gas/config/obj-elf.h
===================================================================
RCS file: /cvs/src/src/gas/config/obj-elf.h,v
retrieving revision 1.38
diff -u -p -r1.38 obj-elf.h
--- gas/config/obj-elf.h 23 Oct 2010 18:05:08 -0000 1.38
+++ gas/config/obj-elf.h 10 Mar 2011 09:35:16 -0000
@@ -80,14 +80,6 @@ struct elf_obj_sy
#define OBJ_SYMFIELD_TYPE struct elf_obj_sy
-/* Symbol fields used by the ELF back end. */
-#define ELF_TARGET_SYMBOL_FIELDS unsigned int local:1;
-
-/* Don't change this; change ELF_TARGET_SYMBOL_FIELDS instead. */
-#ifndef TARGET_SYMBOL_FIELDS
-#define TARGET_SYMBOL_FIELDS ELF_TARGET_SYMBOL_FIELDS
-#endif
-
#ifndef FALSE
#define FALSE 0
#define TRUE !FALSE
Index: gas/config/tc-arc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arc.c,v
retrieving revision 1.47
diff -u -p -r1.47 tc-arc.c
--- gas/config/tc-arc.c 25 Sep 2009 19:13:26 -0000 1.47
+++ gas/config/tc-arc.c 10 Mar 2011 09:35:17 -0000
@@ -934,7 +934,7 @@ arc_common (int localScope)
S_SET_SIZE (symbolP, size);
S_SET_SEGMENT (symbolP, bss_section);
S_CLEAR_EXTERNAL (symbolP);
- symbolP->local = 1;
+ symbol_get_obj (symbolP)->local = 1;
subseg_set (old_sec, old_subsec);
}
else
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-10 10:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 10:19 Remove gas/obj-elf.c cruft Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).