* config/tic80/tm-tic80.h (NAMES_HAVE_UNDERSCORE): Define.
[deliverable/binutils-gdb.git] / gas / as.h
CommitLineData
fecd2382 1/* as.h - global header file
590c50d8 2 Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 1997
011d16ac 3 Free Software Foundation, Inc.
6efd877d 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 17 You should have received a copy of the GNU General Public License
590c50d8
ILT
18 along with GAS; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
fecd2382 21
7f955c18 22#ifndef GAS
fecd2382 23#define GAS 1
fecd2382
RP
24/*
25 * I think this stuff is largely out of date. xoxorich.
26 *
27 * CAPITALISED names are #defined.
28 * "lowercaseH" is #defined if "lowercase.h" has been #include-d.
29 * "lowercaseT" is a typedef of "lowercase" objects.
30 * "lowercaseP" is type "pointer to object of type 'lowercase'".
31 * "lowercaseS" is typedef struct ... lowercaseS.
32 *
33 * #define DEBUG to enable all the "know" assertion tests.
68878ef1 34 * #define SUSPECT when debugging hash code.
fecd2382
RP
35 * #define COMMON as "extern" for all modules except one, where you #define
36 * COMMON as "".
37 * If TEST is #defined, then we are testing a module: #define COMMON as "".
38 */
39
460531da 40#include "config.h"
fecd2382 41
87e48495 42/* This is the code recommended in the autoconf documentation, almost
460531da
KR
43 verbatim. If it doesn't work for you, let me know, and notify
44 djm@gnu.ai.mit.edu as well. */
87e48495
KR
45/* Added #undef for DJ Delorie. The right fix is to ensure that as.h
46 is included first, before even any system header files, in all files
47 that use it. KR 1994.11.03 */
3b85367c
KR
48/* Added void* version for STDC case. This is to be compatible with
49 the declaration in bison.simple, used for m68k operand parsing.
50 --KR 1995.08.08 */
58bd5f50 51/* Force void* decl for hpux. This is what Bison uses. --KR 1995.08.16 */
87e48495 52
460531da
KR
53/* AIX requires this to be the first thing in the file. */
54#ifdef __GNUC__
87e48495 55# undef alloca
460531da
KR
56# define alloca __builtin_alloca
57#else
58# if HAVE_ALLOCA_H
59# include <alloca.h>
60# else
61# ifdef _AIX
62 #pragma alloca
63# else
64# ifndef alloca /* predefined by HP cc +Olibcalls */
58bd5f50 65# if !defined (__STDC__) && !defined (__hpux)
460531da 66char *alloca ();
3b85367c
KR
67# else
68void *alloca ();
58bd5f50
KR
69# endif /* __STDC__, __hpux */
70# endif /* alloca */
71# endif /* _AIX */
72# endif /* HAVE_ALLOCA_H */
460531da 73#endif
fecd2382 74
b11fb939 75/* Now, tend to the rest of the configuration. */
7f955c18 76
b11fb939 77/* System include files first... */
fecd2382 78#include <stdio.h>
b11fb939
KR
79#include <ctype.h>
80#ifdef HAVE_STRING_H
81#include <string.h>
82#else
5cece526 83#ifdef HAVE_STRINGS_H
b11fb939
KR
84#include <strings.h>
85#endif
5cece526 86#endif
b11fb939
KR
87#ifdef HAVE_STDLIB_H
88#include <stdlib.h>
89#endif
90#ifdef HAVE_UNISTD_H
91#include <unistd.h>
92#endif
93#ifdef HAVE_SYS_TYPES_H
94/* for size_t, pid_t */
95#include <sys/types.h>
96#endif
97
f3d817d8
DM
98#include <getopt.h>
99/* The first getopt value for machine-independent long options.
100 150 isn't special; it's just an arbitrary non-ASCII char value. */
101#define OPTION_STD_BASE 150
102/* The first getopt value for machine-dependent long options.
103 170 gives the standard options room to grow. */
104#define OPTION_MD_BASE 170
105
68878ef1
KR
106#ifdef DEBUG
107#undef NDEBUG
108#endif
d5f41403
KR
109#if !defined (__GNUC__) || __GNUC_MINOR__ <= 5
110#define __PRETTY_FUNCTION__ ((char*)0)
111#endif
112#if 0
9777b772 113
b11fb939
KR
114/* Handle lossage with assert.h. */
115#ifndef BROKEN_ASSERT
fecd2382 116#include <assert.h>
b11fb939
KR
117#else /* BROKEN_ASSERT */
118#ifndef NDEBUG
d5f41403 119#define assert(p) ((p) ? 0 : (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0))
b11fb939
KR
120#else
121#define assert(p) ((p), 0)
122#endif
123#endif /* BROKEN_ASSERT */
9777b772 124
d5f41403 125#else
9777b772 126
d5f41403 127#define assert(P) ((P) ? 0 : (as_assert (__FILE__, __LINE__, __PRETTY_FUNCTION__), 0))
9777b772
KR
128#undef abort
129#define abort() as_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__)
130
d5f41403 131#endif
c593cf41 132
b11fb939
KR
133
134/* Now GNU header files... */
68878ef1
KR
135#include <ansidecl.h>
136#ifdef BFD_ASSEMBLER
137#include <bfd.h>
138#endif
590c50d8 139#include <libiberty.h>
b11fb939 140
87e48495
KR
141/* Define the standard progress macros. */
142#include <progress.h>
b11fb939 143
b11fb939 144/* This doesn't get taken care of anywhere. */
011d16ac 145#ifndef __MWERKS__ /* Metrowerks C chokes on the "defined (inline)" */
b11fb939
KR
146#if !defined (__GNUC__) && !defined (inline)
147#define inline
148#endif
011d16ac 149#endif /* !__MWERKS__ */
b11fb939
KR
150
151/* Other stuff from config.h. */
5cece526
ILT
152#ifdef NEED_DECLARATION_STRSTR
153extern char *strstr ();
154#endif
87e48495 155#ifdef NEED_DECLARATION_MALLOC
b11fb939
KR
156extern PTR malloc ();
157extern PTR realloc ();
158#endif
87e48495 159#ifdef NEED_DECLARATION_FREE
b11fb939
KR
160extern void free ();
161#endif
87e48495
KR
162#ifdef NEED_DECLARATION_ERRNO
163extern int errno;
164#endif
b11fb939 165
590c50d8
ILT
166/* This is needed for VMS with DEC C. */
167#if ! defined (__GNUC__) && ! defined (HAVE_UNLINK) && defined (HAVE_REMOVE)
87e48495 168#define unlink remove
460531da
KR
169#endif
170
9777b772
KR
171/* Hack to make "gcc -Wall" not complain about obstack macros. */
172#if !defined (memcpy) && !defined (bcopy)
173#define bcopy(src,dest,size) memcpy(dest,src,size)
174#endif
175
b17c891e
KR
176/* Make Saber happier on obstack.h. */
177#ifdef SABER
178#undef __PTR_TO_INT
179#define __PTR_TO_INT(P) ((int)(P))
180#undef __INT_TO_PTR
181#define __INT_TO_PTR(P) ((char *)(P))
182#endif
183
68878ef1
KR
184#ifndef __LINE__
185#define __LINE__ "unknown"
186#endif /* __LINE__ */
187
188#ifndef __FILE__
189#define __FILE__ "unknown"
190#endif /* __FILE__ */
191
7f955c18 192#ifndef FOPEN_WB
b11fb939
KR
193#ifdef GO32
194#include "fopen-bin.h"
195#else
7f955c18
KR
196#include "fopen-same.h"
197#endif
b11fb939 198#endif
7f955c18 199
460531da
KR
200#ifndef EXIT_SUCCESS
201#define EXIT_SUCCESS 0
202#define EXIT_FAILURE 1
203#endif
204
3340f7e5
RP
205#define obstack_chunk_alloc xmalloc
206#define obstack_chunk_free xfree
fecd2382 207
a39116f1
RP
208#define xfree free
209
b17c891e 210#define BAD_CASE(val) \
a39116f1 211{ \
58d4951d
ILT
212 as_fatal("Case value %ld unexpected at line %d of file \"%s\"\n", \
213 (long) val, __LINE__, __FILE__); \
a39116f1 214 }
fecd2382 215\f
b11fb939 216#include "flonum.h"
6efd877d 217
fecd2382
RP
218/* These are assembler-wide concepts */
219
68878ef1
KR
220#ifdef BFD_ASSEMBLER
221extern bfd *stdoutput;
b17c891e
KR
222typedef bfd_vma addressT;
223typedef bfd_signed_vma offsetT;
224#else
225typedef unsigned long addressT;
226typedef long offsetT;
68878ef1 227#endif
fecd2382 228
b17c891e
KR
229/* Type of symbol value, etc. For use in prototypes. */
230typedef addressT valueT;
231
fecd2382
RP
232#ifndef COMMON
233#ifdef TEST
234#define COMMON /* declare our COMMONs storage here. */
235#else
236#define COMMON extern /* our commons live elswhere */
237#endif
238#endif
a39116f1 239/* COMMON now defined */
c8c7e0bf 240
fecd2382 241#ifdef DEBUG
ace68c4e 242#ifndef know
fecd2382 243#define know(p) assert(p) /* Verify our assumptions! */
ace68c4e 244#endif /* not yet defined */
fecd2382
RP
245#else
246#define know(p) /* know() checks are no-op.ed */
247#endif
fecd2382
RP
248\f
249/* input_scrub.c */
250
251/*
252 * Supplies sanitised buffers to read.c.
253 * Also understands printing line-number part of error messages.
254 */
fecd2382 255\f
6efd877d 256
fecd2382
RP
257/* subsegs.c Sub-segments. Also, segment(=expression type)s.*/
258
68878ef1 259#ifndef BFD_ASSEMBLER
ace68c4e 260
58721107 261#ifdef MANY_SEGMENTS
c8c7e0bf 262#include "bfd.h"
7e027ce6
ILT
263#define N_SEGMENTS 40
264#define SEG_NORMAL(x) ((x) >= SEG_E0 && (x) <= SEG_E39)
265#define SEG_LIST SEG_E0,SEG_E1,SEG_E2,SEG_E3,SEG_E4,SEG_E5,SEG_E6,SEG_E7,SEG_E8,SEG_E9,\
266 SEG_E10,SEG_E11,SEG_E12,SEG_E13,SEG_E14,SEG_E15,SEG_E16,SEG_E17,SEG_E18,SEG_E19,\
267 SEG_E20,SEG_E21,SEG_E22,SEG_E23,SEG_E24,SEG_E25,SEG_E26,SEG_E27,SEG_E28,SEG_E29,\
268 SEG_E30,SEG_E31,SEG_E32,SEG_E33,SEG_E34,SEG_E35,SEG_E36,SEG_E37,SEG_E38,SEG_E39
ada269da 269#define SEG_TEXT SEG_E0
68878ef1 270#define SEG_DATA SEG_E1
ada269da 271#define SEG_BSS SEG_E2
7e027ce6 272#define SEG_LAST SEG_E39
58721107 273#else
ace68c4e 274#define N_SEGMENTS 3
58721107 275#define SEG_NORMAL(x) ((x) == SEG_TEXT || (x) == SEG_DATA || (x) == SEG_BSS)
ace68c4e 276#define SEG_LIST SEG_TEXT,SEG_DATA,SEG_BSS
58721107
SC
277#endif
278
6efd877d
KR
279typedef enum _segT
280 {
281 SEG_ABSOLUTE = 0,
282 SEG_LIST,
283 SEG_UNKNOWN,
6efd877d
KR
284 SEG_GOOF, /* Only happens if AS has a logic error. */
285 /* Invented so we don't crash printing */
286 /* error message involving weird segment. */
58d4951d 287 SEG_EXPR, /* Intermediate expression values. */
6efd877d
KR
288 SEG_DEBUG, /* Debug segment */
289 SEG_NTV, /* Transfert vector preload segment */
290 SEG_PTV, /* Transfert vector postload segment */
b17c891e 291 SEG_REGISTER /* Mythical: a register-valued expression */
6efd877d 292 } segT;
fecd2382
RP
293
294#define SEG_MAXIMUM_ORDINAL (SEG_REGISTER)
68878ef1
KR
295#else
296typedef asection *segT;
297#define SEG_NORMAL(SEG) ((SEG) != absolute_section \
298 && (SEG) != undefined_section \
68878ef1 299 && (SEG) != reg_section \
58d4951d 300 && (SEG) != expr_section)
68878ef1 301#endif
fecd2382
RP
302typedef int subsegT;
303
a39116f1 304/* What subseg we are accreting now? */
7f2cb270 305COMMON subsegT now_subseg;
fecd2382 306
a39116f1 307/* Segment our instructions emit to. */
7f2cb270 308COMMON segT now_seg;
fecd2382 309
68878ef1
KR
310#ifdef BFD_ASSEMBLER
311#define segment_name(SEG) bfd_get_section_name (stdoutput, SEG)
312#else
9777b772 313extern char const *const seg_name[];
68878ef1
KR
314#define segment_name(SEG) seg_name[(int) (SEG)]
315#endif
316
317#ifndef BFD_ASSEMBLER
fecd2382 318extern int section_alignment[];
68878ef1 319#endif
fecd2382 320
68878ef1 321#ifdef BFD_ASSEMBLER
58d4951d 322extern segT reg_section, expr_section;
68878ef1
KR
323/* Shouldn't these be eliminated someday? */
324extern segT text_section, data_section, bss_section;
b11fb939
KR
325#define absolute_section bfd_abs_section_ptr
326#define undefined_section bfd_und_section_ptr
68878ef1 327#else
68878ef1 328#define reg_section SEG_REGISTER
58d4951d 329#define expr_section SEG_EXPR
68878ef1
KR
330#define text_section SEG_TEXT
331#define data_section SEG_DATA
332#define bss_section SEG_BSS
333#define absolute_section SEG_ABSOLUTE
334#define undefined_section SEG_UNKNOWN
335#endif
fecd2382
RP
336
337/* relax() */
338
d5f41403 339enum _relax_state
6efd877d 340 {
7f2cb270
KR
341 /* Variable chars to be repeated fr_offset times.
342 Fr_symbol unused. Used with fr_offset == 0 for a
343 constant length frag. */
344 rs_fill = 1,
6efd877d 345
590c50d8
ILT
346 /* Align. The fr_offset field holds the power of 2 to which to
347 align. The fr_var field holds the number of characters in the
348 fill pattern. The fr_subtype field holds the maximum number of
349 bytes to skip when aligning, or 0 if there is no maximum. */
7f2cb270 350 rs_align,
6efd877d 351
590c50d8
ILT
352 /* Align code. The fr_offset field holds the power of 2 to which
353 to align. This type is only generated by machine specific
354 code, which is normally responsible for handling the fill
355 pattern. The fr_subtype field holds the maximum number of
356 bytes to skip when aligning, or 0 if there is no maximum. */
d5f41403
KR
357 rs_align_code,
358
7f2cb270
KR
359 /* Org: Fr_offset, fr_symbol: address. 1 variable char: fill
360 character. */
361 rs_org,
6efd877d 362
fecd2382 363#ifndef WORKING_DOT_WORD
7f2cb270 364 /* JF: gunpoint */
d5f41403 365 rs_broken_word,
fecd2382 366#endif
fecd2382 367
d5f41403
KR
368 /* machine-specific relaxable (or similarly alterable) instruction */
369 rs_machine_dependent,
370
371 /* .space directive with expression operand that needs to be computed
372 later. Similar to rs_org, but different.
373 fr_symbol: operand
374 1 variable char: fill character */
375 rs_space
376 };
377
378typedef enum _relax_state relax_stateT;
379
380/* This type is used in prototypes, so it can't be a type that will be
381 widened for argument passing. */
382typedef unsigned int relax_substateT;
fecd2382 383
7f2cb270
KR
384/* Enough bits for address, but still an integer type.
385 Could be a problem, cross-assembling for 64-bit machines. */
b17c891e 386typedef addressT relax_addressT;
fecd2382 387\f
6efd877d 388
fecd2382
RP
389/* frags.c */
390
391/*
392 * A code fragment (frag) is some known number of chars, followed by some
393 * unknown number of chars. Typically the unknown number of chars is an
394 * instruction address whose size is yet unknown. We always know the greatest
395 * possible size the unknown number of chars may become, and reserve that
396 * much room at the end of the frag.
397 * Once created, frags do not change address during assembly.
398 * We chain the frags in (a) forward-linked list(s). The object-file address
399 * of the 1st char of a frag is generally not known until after relax().
400 * Many things at assembly time describe an address by {object-file-address
401 * of a particular frag}+offset.
6efd877d 402
fecd2382 403 BUG: it may be smarter to have a single pointer off to various different
6efd877d 404 notes for different frag kinds. See how code pans
fecd2382 405 */
68878ef1 406struct frag
fecd2382 407{
7f2cb270 408 /* Object file address. */
b17c891e 409 addressT fr_address;
68878ef1 410 /* Chain forward; ascending address order. Rooted in frch_root. */
7f2cb270 411 struct frag *fr_next;
6efd877d 412
68878ef1 413 /* (Fixed) number of chars we know we have. May be 0. */
b17c891e 414 offsetT fr_fix;
68878ef1 415 /* (Variable) number of chars after above. May be 0. */
b17c891e 416 offsetT fr_var;
7f2cb270
KR
417 /* For variable-length tail. */
418 struct symbol *fr_symbol;
419 /* For variable-length tail. */
b17c891e 420 offsetT fr_offset;
68878ef1 421 /* Points to opcode low addr byte, for relaxation. */
7f2cb270 422 char *fr_opcode;
68878ef1
KR
423
424#ifndef NO_LISTING
425 struct list_info_struct *line;
426#endif
427
7f2cb270
KR
428 /* What state is my tail in? */
429 relax_stateT fr_type;
6efd877d 430 relax_substateT fr_subtype;
7f2cb270 431
e9296bdb
KR
432 /* These are needed only on the NS32K machines. But since we don't
433 include targ-cpu.h until after this structure has been defined,
434 we can't really conditionalize it. This code should be
435 rearranged a bit to make that possible.
68878ef1 436
e9296bdb
KR
437 In the meantime, if we get stuck like this with any other target,
438 create a union here. */
439 char fr_pcrel_adjust, fr_bsr;
440
a5a78175
ILT
441 /* Where the frag was created, or where it became a variant frag. */
442 char *fr_file;
443 unsigned int fr_line;
444
e9296bdb 445 /* Data begins here. */
7f2cb270 446 char fr_literal[1];
fecd2382 447};
6efd877d 448
fecd2382 449#define SIZEOF_STRUCT_FRAG \
e9296bdb 450((char *)zero_address_frag.fr_literal-(char *)&zero_address_frag)
a39116f1 451/* We want to say fr_literal[0] above. */
fecd2382
RP
452
453typedef struct frag fragS;
454
7f2cb270
KR
455/* Current frag we are building. This frag is incomplete. It is, however,
456 included in frchain_now. The fr_fix field is bogus; instead, use:
457 obstack_next_free(&frags)-frag_now->fr_literal. */
458COMMON fragS *frag_now;
87e48495 459extern int frag_now_fix ();
fecd2382 460
7f2cb270
KR
461/* For foreign-segment symbol fixups. */
462COMMON fragS zero_address_frag;
463/* For local common (N_BSS segment) fixups. */
464COMMON fragS bss_address_frag;
fecd2382
RP
465
466/* main program "as.c" (command arguments etc) */
467
def66e24
DM
468COMMON unsigned char flag_no_comments; /* -f */
469COMMON unsigned char flag_debug; /* -D */
470COMMON unsigned char flag_signed_overflow_ok; /* -J */
a7aa7a2b 471#ifndef WORKING_DOT_WORD
def66e24 472COMMON unsigned char flag_warn_displacement; /* -K */
a7aa7a2b 473#endif
e9296bdb
KR
474
475/* True if local symbols should be retained. */
58bd5f50 476COMMON int flag_keep_locals; /* -L */
e9296bdb 477
011d16ac 478/* True if we are assembling in MRI mode. */
3b85367c
KR
479COMMON int flag_mri;
480
011d16ac
ILT
481/* True if we are assembling in m68k MRI mode. */
482COMMON int flag_m68k_mri;
483
e9296bdb
KR
484/* Should the data section be made read-only and appended to the text
485 section? */
def66e24 486COMMON unsigned char flag_readonly_data_in_text; /* -R */
e9296bdb
KR
487
488/* True if warnings should be inhibited. */
58bd5f50 489COMMON int flag_no_warnings; /* -W */
e9296bdb
KR
490
491/* True if we should attempt to generate output even if non-fatal errors
492 are detected. */
def66e24 493COMMON unsigned char flag_always_generate_output; /* -Z */
fecd2382 494
e9296bdb
KR
495/* This is true if the assembler should output time and space usage. */
496
497COMMON unsigned char flag_print_statistics;
498
7f2cb270
KR
499/* name of emitted object file */
500COMMON char *out_file_name;
fecd2382 501
590c50d8
ILT
502/* name of file defining extensions to the basic instruction set */
503COMMON char *insttbl_file_name;
504
7f2cb270
KR
505/* TRUE if we need a second pass. */
506COMMON int need_pass_2;
09952cd9 507
7f2cb270
KR
508/* TRUE if we should do no relaxing, and
509 leave lots of padding. */
510COMMON int linkrelax;
fecd2382 511
7f955c18
KR
512/* TRUE if we should produce a listing. */
513extern int listing;
514
7e047ac2
ILT
515/* Maximum level of macro nesting. */
516extern int max_macro_nest;
517
011d16ac
ILT
518/* Obstack chunk size. Keep large for efficient space use, make small to
519 increase malloc calls for monitoring memory allocation. */
520extern int chunksize;
521
7f2cb270 522struct _pseudo_type
6efd877d 523 {
7f2cb270 524 /* assembler mnemonic, lower case, no '.' */
9777b772 525 const char *poc_name;
7f2cb270 526 /* Do the work */
604633ae 527 void (*poc_handler) PARAMS ((int));
7f2cb270
KR
528 /* Value to pass to handler */
529 int poc_val;
530 };
6efd877d 531
7f2cb270 532typedef struct _pseudo_type pseudo_typeS;
fecd2382 533
87e48495
KR
534/* Prefer varargs for non-ANSI compiler, since some will barf if the
535 ellipsis definition is used with a no-arguments declaration. */
536#if defined (HAVE_VARARGS_H) && !defined (__STDC__)
537#undef HAVE_STDARG_H
538#endif
539
540#if defined (HAVE_STDARG_H)
541#define USE_STDARG
542#endif
543#if !defined (USE_STDARG) && defined (HAVE_VARARGS_H)
544#define USE_VARARGS
545#endif
fecd2382 546
87e48495 547#ifdef USE_STDARG
590c50d8 548#if (__GNUC__ >= 2) && !defined(VMS)
68878ef1 549/* for use with -Wformat */
7f955c18 550#define PRINTF_LIKE(FCN) void FCN (const char *format, ...) \
68878ef1 551 __attribute__ ((format (printf, 1, 2)))
a57180ad
ILT
552#define PRINTF_WHERE_LIKE(FCN) void FCN (char *file, unsigned int line, \
553 const char *format, ...) \
554 __attribute__ ((format (printf, 3, 4)))
68878ef1 555#else /* ANSI C with stdarg, but not GNU C */
87e48495
KR
556#define PRINTF_LIKE(FCN) void FCN PARAMS ((const char *format, ...))
557#define PRINTF_WHERE_LIKE(FCN) void FCN PARAMS ((char *file, \
558 unsigned int line, \
559 const char *format, ...))
68878ef1 560#endif
87e48495 561#else /* not using stdarg */
68878ef1 562#define PRINTF_LIKE(FCN) void FCN ()
a57180ad 563#define PRINTF_WHERE_LIKE(FCN) void FCN ()
68878ef1 564#endif
fecd2382 565
68878ef1
KR
566PRINTF_LIKE (as_bad);
567PRINTF_LIKE (as_fatal);
568PRINTF_LIKE (as_tsktsk);
569PRINTF_LIKE (as_warn);
a57180ad
ILT
570PRINTF_WHERE_LIKE (as_bad_where);
571PRINTF_WHERE_LIKE (as_warn_where);
d5f41403 572void as_assert PARAMS ((const char *, int, const char *));
9777b772 573void as_abort PARAMS ((const char *, int, const char *));
7f955c18 574
b17c891e
KR
575void fprint_value PARAMS ((FILE *file, addressT value));
576void sprint_value PARAMS ((char *buf, addressT value));
fecd2382 577
68878ef1
KR
578int had_errors PARAMS ((void));
579int had_warnings PARAMS ((void));
fecd2382 580
604633ae 581void print_version_id PARAMS ((void));
7f2cb270
KR
582char *app_push PARAMS ((void));
583char *atof_ieee PARAMS ((char *str, int what_kind, LITTLENUM_TYPE * words));
584char *input_scrub_include_file PARAMS ((char *filename, char *position));
585char *input_scrub_new_file PARAMS ((char *filename));
586char *input_scrub_next_buffer PARAMS ((char **bufp));
011d16ac 587int do_scrub_chars PARAMS ((int (*get) (char **), char *to, int tolen));
7f2cb270
KR
588int gen_to_words PARAMS ((LITTLENUM_TYPE * words, int precision,
589 long exponent_bits));
590int had_err PARAMS ((void));
7f2cb270 591int ignore_input PARAMS ((void));
7f2cb270
KR
592int seen_at_least_1_file PARAMS ((void));
593void app_pop PARAMS ((char *arg));
594void as_howmuch PARAMS ((FILE * stream));
a193acc0 595void as_perror PARAMS ((const char *gripe, const char *filename));
7f955c18 596void as_where PARAMS ((char **namep, unsigned int *linep));
7f2cb270 597void bump_line_counters PARAMS ((void));
7e027ce6 598void do_scrub_begin PARAMS ((int));
7f2cb270
KR
599void input_scrub_begin PARAMS ((void));
600void input_scrub_close PARAMS ((void));
601void input_scrub_end PARAMS ((void));
7f2cb270 602void new_logical_line PARAMS ((char *fname, int line_number));
68878ef1 603void subsegs_begin PARAMS ((void));
7f2cb270 604void subseg_change PARAMS ((segT seg, int subseg));
b17c891e 605segT subseg_new PARAMS ((const char *name, subsegT subseg));
e7501ac7 606segT subseg_force_new PARAMS ((const char *name, subsegT subseg));
68878ef1 607void subseg_set PARAMS ((segT seg, subsegT subseg));
a193acc0
ILT
608#ifdef BFD_ASSEMBLER
609segT subseg_get PARAMS ((const char *, int));
610#endif
fecd2382 611
7f955c18
KR
612struct expressionS;
613struct fix;
614struct symbol;
9777b772 615struct relax_type;
7f955c18
KR
616
617#ifdef BFD_ASSEMBLER
618/* literal.c */
619valueT add_to_literal_pool PARAMS ((struct symbol *, valueT, segT, int));
620#endif
621
b11fb939
KR
622#include "expr.h" /* Before targ-*.h */
623
a39116f1 624/* this one starts the chain of target dependant headers */
fecd2382
RP
625#include "targ-env.h"
626
fecd2382 627#include "struc-symbol.h"
fecd2382 628#include "write.h"
fecd2382
RP
629#include "frags.h"
630#include "hash.h"
631#include "read.h"
632#include "symbols.h"
633
634#include "tc.h"
635#include "obj.h"
636
a7aa7a2b
ILT
637#ifdef USE_EMULATIONS
638#include "emul.h"
639#endif
c593cf41
SC
640#include "listing.h"
641
9777b772
KR
642#ifndef LOCAL_LABELS_DOLLAR
643#define LOCAL_LABELS_DOLLAR 0
b17c891e 644#endif
9777b772
KR
645
646#ifndef LOCAL_LABELS_FB
647#define LOCAL_LABELS_FB 0
b17c891e 648#endif
b17c891e 649
7f955c18
KR
650#endif /* GAS */
651
a39116f1 652/* end of as.h */
This page took 0.228743 seconds and 4 git commands to generate.