]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
LVU: don't compare equal to a NULL force_reset_view
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 18 May 2017 21:44:25 +0000 (18:44 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 18 May 2017 21:44:25 +0000 (18:44 -0300)
gas/dwarf2dbg.c

index a408ac9751270f2a5f018daa3b4b0aea49ff33e1..ecd859c3066d8376df91ed801e0a3f51f6c4b057 100644 (file)
@@ -324,7 +324,7 @@ set_or_check_view (struct line_entry *e, struct line_entry *p,
   /* First, compute !(E->label > P->label), to tell whether or not
      we're to reset the view number.  If we can't resolve it to a
      constant, keep it symbolic.  */
-  if (!p || e->loc.view == force_reset_view)
+  if (!p || (e->loc.view == force_reset_view && force_reset_view))
     {
       viewx.X_op = O_constant;
       viewx.X_add_number = 0;
@@ -1561,7 +1561,7 @@ process_entries (segT seg, struct line_entry *e)
       frag_ofs = S_GET_VALUE (lab);
 
       if (last_frag == NULL
-         || (e->loc.view == force_reset_view
+         || (e->loc.view == force_reset_view && force_reset_view
              /* If we're to reset the view, but we know we're
                 advancing PC, we don't have to force with
                 set_address.  We know we do when we're at the same