aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-03-18 10:46:52 +0000
committerAlan Modra <amodra@gmail.com>2011-03-18 10:46:52 +0000
commit04648e6590b87d680db3ccd1b5cc5d38e57c1862 (patch)
tree13c62a4d6601c5dfe14ab09b48c7b5a5c5351cb4
parentdb3a4e404273a3d5a07fd9228dfe2bb92fceea75 (diff)
downloadgdb-04648e6590b87d680db3ccd1b5cc5d38e57c1862.zip
gdb-04648e6590b87d680db3ccd1b5cc5d38e57c1862.tar.gz
gdb-04648e6590b87d680db3ccd1b5cc5d38e57c1862.tar.bz2
* read.c (read_a_source_file): Remove md_after_pass_hook.
Move "quit" label before set of dot_symbol. * config/tc-d10v.h (md_after_pass_hook): Don't define. * config/tc-d30v.h (md_after_pass_hook): Likewise. * config/tc-m32r.h (md_after_pass_hook): Likewise. (md_cleanup): Define to call m32r_fill_insn.
-rw-r--r--gas/ChangeLog9
-rw-r--r--gas/config/tc-d10v.h3
-rw-r--r--gas/config/tc-d30v.h3
-rw-r--r--gas/config/tc-m32r.h5
-rw-r--r--gas/read.c6
5 files changed, 14 insertions, 12 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 33e0305..db6499d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,12 @@
+2011-03-18 Alan Modra <amodra@gmail.com>
+
+ * read.c (read_a_source_file): Remove md_after_pass_hook.
+ Move "quit" label before set of dot_symbol.
+ * config/tc-d10v.h (md_after_pass_hook): Don't define.
+ * config/tc-d30v.h (md_after_pass_hook): Likewise.
+ * config/tc-m32r.h (md_after_pass_hook): Likewise.
+ (md_cleanup): Define to call m32r_fill_insn.
+
2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.c (md_parse_option): Add -march=all option which
diff --git a/gas/config/tc-d10v.h b/gas/config/tc-d10v.h
index 930f3a1..3c32624 100644
--- a/gas/config/tc-d10v.h
+++ b/gas/config/tc-d10v.h
@@ -1,6 +1,6 @@
/* tc-d10v.h -- Header file for tc-d10v.c.
Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2009,
- 2010 Free Software Foundation, Inc.
+ 2010, 2011 Free Software Foundation, Inc.
Written by Martin Hunt, Cygnus Support.
This file is part of GAS, the GNU Assembler.
@@ -47,7 +47,6 @@ long md_pcrel_from_section (struct fix *, segT);
int d10v_cleanup (void);
void d10v_frob_label (symbolS *);
-#define md_after_pass_hook() d10v_cleanup ()
#define md_cleanup() d10v_cleanup ()
#define md_do_align(a,b,c,d,e) d10v_cleanup ()
#define tc_frob_label(sym) d10v_frob_label (sym)
diff --git a/gas/config/tc-d30v.h b/gas/config/tc-d30v.h
index 5193550..e75f3d8 100644
--- a/gas/config/tc-d30v.h
+++ b/gas/config/tc-d30v.h
@@ -1,5 +1,5 @@
/* tc-310v.h -- Header file for tc-d30v.c.
- Copyright 1997, 1998, 2000, 2001, 2002, 2005, 2007, 2009
+ Copyright 1997, 1998, 2000, 2001, 2002, 2005, 2007, 2009, 2011
Free Software Foundation, Inc.
Written by Martin Hunt, Cygnus Support.
@@ -46,7 +46,6 @@ extern long md_pcrel_from_section (struct fix *, segT);
#define md_number_to_chars number_to_chars_bigendian
int d30v_cleanup (int);
-#define md_after_pass_hook() d30v_cleanup (FALSE)
#define md_cleanup() d30v_cleanup (FALSE)
#define TC_START_LABEL(ch, s, ptr) (ch == ':' && d30v_cleanup (FALSE))
void d30v_start_line (void);
diff --git a/gas/config/tc-m32r.h b/gas/config/tc-m32r.h
index 9def7ba..3265712 100644
--- a/gas/config/tc-m32r.h
+++ b/gas/config/tc-m32r.h
@@ -1,6 +1,6 @@
/* tc-m32r.h -- Header file for tc-m32r.c.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2007, 2009 Free Software Foundation, Inc.
+ 2007, 2009, 2011 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -101,10 +101,9 @@ extern int m32r_force_relocation (struct fix *);
/* Ensure insns at labels are aligned to 32 bit boundaries. */
int m32r_fill_insn (int);
-#define md_after_pass_hook() m32r_fill_insn (1)
#define TC_START_LABEL(ch, s, ptr) (ch == ':' && m32r_fill_insn (0))
-#define md_cleanup m32r_elf_section_change_hook
+#define md_cleanup() m32r_fill_insn (1)
#define md_elf_section_change_hook m32r_elf_section_change_hook
extern void m32r_elf_section_change_hook (void);
diff --git a/gas/read.c b/gas/read.c
index 68b66bc..5cca366 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1123,14 +1123,10 @@ read_a_source_file (char *name)
/* Report unknown char as error. */
demand_empty_rest_of_line ();
}
-
-#ifdef md_after_pass_hook
- md_after_pass_hook ();
-#endif
}
- symbol_set_value_now (&dot_symbol);
quit:
+ symbol_set_value_now (&dot_symbol);
#ifdef md_cleanup
md_cleanup ();