diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-21 23:03:14 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-21 23:03:14 +0000 |
commit | bfba49c61e39a87f50ab921d83feabe6e88e331d (patch) | |
tree | 3178e0892eb4fa0ecae05ab8451419ebfaab16d1 /gcc/dwarf2out.c | |
parent | 7f8c3466fcab6bf43374b8e43fb8bc7ad9789bc1 (diff) | |
download | gcc-bfba49c61e39a87f50ab921d83feabe6e88e331d.tar.gz |
* dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
(output_line_info): Use constant `1', with a long explanatory
comment.
* system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49944 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index f51df45d77b..8d7d48b39bb 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3265,16 +3265,6 @@ extern int flag_traditional; #endif #endif -/* Define the architecture-dependent minimum instruction length (in bytes). - In this implementation of DWARF, this field is used for information - purposes only. Since GCC generates assembly language, we have - no a priori knowledge of how many instruction bytes are generated - for each source line, and therefore can use only the DW_LNE_set_address - and DW_LNS_fixed_advance_pc line information commands. - Accordingly, we define this as `1', which is "correct enough" for - all architectures, and don't let the target override. */ -#define DWARF_LINE_MIN_INSTR_LENGTH 1 - /* Minimum line offset in a special line info. opcode. This value was chosen to give a reasonable range of values. */ #define DWARF_LINE_BASE -10 @@ -7031,8 +7021,17 @@ output_line_info () dw2_asm_output_delta (DWARF_OFFSET_SIZE, p2, p1, "Prolog Length"); ASM_OUTPUT_LABEL (asm_out_file, p1); - dw2_asm_output_data (1, DWARF_LINE_MIN_INSTR_LENGTH, + /* Define the architecture-dependent minimum instruction length (in + bytes). In this implementation of DWARF, this field is used for + information purposes only. Since GCC generates assembly language, + we have no a priori knowledge of how many instruction bytes are + generated for each source line, and therefore can use only the + DW_LNE_set_address and DW_LNS_fixed_advance_pc line information + commands. Accordingly, we fix this as `1', which is "correct + enough" for all architectures, and don't let the target override. */ + dw2_asm_output_data (1, 1, "Minimum Instruction Length"); + dw2_asm_output_data (1, DWARF_LINE_DEFAULT_IS_STMT_START, "Default is_stmt_start flag"); dw2_asm_output_data (1, DWARF_LINE_BASE, |