diff options
author | Alan Modra <amodra@gmail.com> | 2003-05-20 07:58:07 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-05-20 07:58:07 +0000 |
commit | 54cfded08ec4835361d381d602fe3f845a45c118 (patch) | |
tree | 74ca96db0684fe552779ec353d72fe7b4e37c9e2 /gas/as.c | |
parent | 58da2eb2121a5931361d4f1df6888799ff6affc3 (diff) | |
download | gdb-54cfded08ec4835361d381d602fe3f845a45c118.zip gdb-54cfded08ec4835361d381d602fe3f845a45c118.tar.gz gdb-54cfded08ec4835361d381d602fe3f845a45c118.tar.bz2 |
* dw2gencfi.c, dw2gencfi.h: New files.
* config/tc-i386.c (tc_x86_cfi_init): New function.
* config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
* as.c (parse_args): Set verbose flag on --verbose.
(main): Call tc_cfi_init()/cfi_finish().
* as.h (verbose): New external variable.
* read.c (pobegin): Insert CFI pops to the list.
* symbols.c (local_symbol_make): Make symbol external.
* symbols.h (local_symbol_make): New prototype.
* Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
* Makefile.in: Regenerate.
* doc/as.texinfo: Added node "CFI directives" with description of
all implemented .cfi_* directives.
* doc/Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.
Diffstat (limited to 'gas/as.c')
-rw-r--r-- | gas/as.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -42,6 +42,7 @@ #include "sb.h" #include "macro.h" #include "dwarf2dbg.h" +#include "dw2gencfi.h" #ifdef BFD_ASSEMBLER #include "bfdver.h" @@ -98,6 +99,9 @@ int chunksize = 0; Then the chunk sizes for gas and bfd will be reduced. */ int debug_memory = 0; +/* Enable verbose mode. */ +int verbose = 0; + /* We build a list of defsyms as we read the options, and then define them after we have initialized everything. */ @@ -497,6 +501,7 @@ parse_args (pargc, pargv) #endif case OPTION_VERBOSE: print_version_id (); + verbose = 1; break; } /* Fall through. */ @@ -832,6 +837,10 @@ main (argc, argv) bfd_set_error_program_name (myname); #endif +#ifdef TARGET_USE_CFIPOP + tc_cfi_init (); +#endif + #ifdef USE_EMULATIONS select_emulation_mode (argc, argv); #endif @@ -906,6 +915,10 @@ main (argc, argv) assembly debugging or on behalf of the compiler, emit it now. */ dwarf2_finish (); +#ifdef TARGET_USE_CFIPOP + cfi_finish (); +#endif + if (seen_at_least_1_file () && (flag_always_generate_output || had_errors () == 0)) keep_it = 1; |