+2018-05-28 Mark Wielaard <mark@klomp.org>
+
+ * dwarf2asm.c (dw2_asm_output_delta_uleb128): Add brackets around lab2
+ if it is an expression containing a minus sign.
+
2018-05-27 John David Anglin <danglin@gcc.gnu.org>
* config/pa/pa-linux.h (NEED_INDICATE_EXEC_STACK): Define to 0.
fputs ("\t.uleb128 ", asm_out_file);
assemble_name (asm_out_file, lab1);
putc ('-', asm_out_file);
- assemble_name (asm_out_file, lab2);
+ /* dwarf2out.c might give us a label expression (e.g. .LVL548-1)
+ as second argument. If so, make it a subexpression, to make
+ sure the substraction is done in the right order. */
+ if (strchr (lab2, '-') != NULL)
+ {
+ putc ('(', asm_out_file);
+ assemble_name (asm_out_file, lab2);
+ putc (')', asm_out_file);
+ }
+ else
+ assemble_name (asm_out_file, lab2);
if (flag_debug_asm && comment)
{