aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-07-06 09:20:09 +0930
committerAlan Modra <amodra@gmail.com>2022-07-07 11:52:05 +0930
commit9b5ebf652b36502ffe79fb196e312bf9ea93f72f (patch)
treeace9d6bfdb6f4cd9f5854b748a349c73e642f338 /gas
parent2025522ac7c6b483fb81b1c0fd5ed991ba953707 (diff)
downloadgdb-9b5ebf652b36502ffe79fb196e312bf9ea93f72f.zip
gdb-9b5ebf652b36502ffe79fb196e312bf9ea93f72f.tar.gz
gdb-9b5ebf652b36502ffe79fb196e312bf9ea93f72f.tar.bz2
PR29320, 'struct obstack' declared inside parameter list
PR 29320 * frags.h: Move declaration of struct obstack.. * as.h: ..to here.
Diffstat (limited to 'gas')
-rw-r--r--gas/as.h2
-rw-r--r--gas/frags.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gas/as.h b/gas/as.h
index ec0c12a..4fac7d2 100644
--- a/gas/as.h
+++ b/gas/as.h
@@ -385,6 +385,8 @@ extern int max_macro_nest;
/* Verbosity level. */
extern int verbose;
+struct obstack;
+
/* Obstack chunk size. Keep large for efficient space use, make small to
increase malloc calls for monitoring memory allocation. */
extern int chunksize;
diff --git a/gas/frags.h b/gas/frags.h
index 4306c97..a03f2d1 100644
--- a/gas/frags.h
+++ b/gas/frags.h
@@ -21,8 +21,6 @@
#ifndef FRAGS_H
#define FRAGS_H
-struct obstack;
-
/* A code fragment (frag) is some known number of chars, followed by some
unknown number of chars. Typically the unknown number of chars is an
instruction address whose size is yet unknown. We always know the greatest