diff options
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r-- | gcc/dwarf2asm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c index 3adb7e5..94f0e96 100644 --- a/gcc/dwarf2asm.c +++ b/gcc/dwarf2asm.c @@ -873,8 +873,9 @@ dw2_asm_output_encoded_addr_rtx VPARAMS ((int encoding, return; } - /* NULL is _always_ represented as a plain zero. */ - if (addr == const0_rtx) + /* NULL is _always_ represented as a plain zero, as is 1 for Ada's + "all others". */ + if (addr == const0_rtx || addr == const1_rtx) assemble_integer (addr, size, BITS_PER_UNIT, 1); else { |