* Makefile.in (TARGET_FLAGS_TO_PASS): Fix syntax of
[deliverable/binutils-gdb.git] / gas / frags.h
CommitLineData
fecd2382 1/* frags.h - Header file for the frag concept.
6efd877d
KR
2
3 Copyright (C) 1987, 1992 Free Software Foundation, Inc.
4
a39116f1 5 This file is part of GAS, the GNU Assembler.
6efd877d 6
a39116f1
RP
7 GAS is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
6efd877d 11
a39116f1
RP
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
6efd877d 16
a39116f1
RP
17 You should have received a copy of the GNU General Public License
18 along with GAS; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
fecd2382 20
6efd877d 21extern struct obstack frags;
a39116f1
RP
22/* Frags ONLY live in this obstack. */
23/* We use obstack_next_free() macro */
24/* so please don't put any other objects */
25/* on this stack! */
fecd2382
RP
26
27/*
28 * A macro to speed up appending exactly 1 char
29 * to current frag.
30 */
31/* JF changed < 1 to <= 1 to avoid a race conditon */
32#define FRAG_APPEND_1_CHAR(datum) \
33{ \
a39116f1
RP
34 if (obstack_room( &frags ) <= 1) {\
35 frag_wane (frag_now); \
36 frag_new (0); \
37 } \
38 obstack_1grow( &frags, datum ); \
39 }
40
fecd2382 41
6efd877d
KR
42#if __STDC__ == 1
43
44char *frag_more (int nchars);
45void frag_align (int alignment, int fill_character);
46void frag_new (int old_frags_var_max_size);
47void frag_wane (fragS * fragP);
48
49char *frag_variant (relax_stateT type,
50 int max_chars,
51 int var,
52 relax_substateT subtype,
53 symbolS * symbol,
54 long offset,
55 char *opcode,
56 int pcrel_adjust,
57 int bsr);
58
59char *frag_var (relax_stateT type,
60 int max_chars,
61 int var,
62 relax_substateT subtype,
63 symbolS * symbol,
64 long offset,
65 char *opcode);
66
67#else /* not __STDC__ */
68
69char *frag_more ();
70char *frag_var ();
71char *frag_variant ();
72void frag_align ();
73void frag_new ();
74void frag_wane ();
75
76#endif /* not __STDC__ */
fecd2382
RP
77
78/*
79 * Local Variables:
80 * comment-column: 0
81 * fill-column: 131
82 * End:
83 */
84
8b228fe9 85/* end of frags.h */
This page took 0.175188 seconds and 4 git commands to generate.