OSDN Git Service

2011-09-21 Tom de Vries <tom@codesourcery.com>
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Sep 2011 07:41:22 +0000 (07:41 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Sep 2011 07:41:22 +0000 (07:41 +0000)
* final.c (final): Handle if JUMP_LABEL is not LABEL_P.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179034 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/final.c

index 738d318..afec0a4 100644 (file)
@@ -1,3 +1,7 @@
+2011-09-21  Tom de Vries  <tom@codesourcery.com>
+
+       * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
+
 2011-09-20  David S. Miller  <davem@davemloft.net>
 
        * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
index 328599c..e6d2886 100644 (file)
@@ -1739,7 +1739,7 @@ final (rtx first, FILE *file, int optimize_p)
       if (optimize_p && JUMP_P (insn))
        {
          rtx lab = JUMP_LABEL (insn);
-         if (lab && LABEL_NUSES (lab) == 1)
+         if (lab && LABEL_P (lab) && LABEL_NUSES (lab) == 1)
            {
              LABEL_REFS (lab) = insn;
            }