msp430.c (msp430_output_labelref): Prepend user_label_prefix to name.
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Wed, 30 May 2018 23:33:49 +0000 (23:33 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 30 May 2018 23:33:49 +0000 (17:33 -0600)
* config/msp430/msp430.c (msp430_output_labelref): Prepend
user_label_prefix to name.

From-SVN: r260983

gcc/ChangeLog
gcc/config/msp430/msp430.c

index da3064ecf156bbe98344da89cac2add6f86c4ef6..33c6090efc3ded23314feb10876e0ee3d752adef 100644 (file)
@@ -1,5 +1,8 @@
 2018-05-30  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
 
+       * config/msp430/msp430.c (msp430_output_labelref): Prepend
+       user_label_prefix to name.
+
        * tree-core.h: Update comment about the format of NAME string
        passed to handler in attribute_spec.
 
index adde5979c7752d42cdecbf835770dfc7fbf049f8..8c8e676b73e1d2800542775dbb5dc01245f6aa9f 100644 (file)
@@ -3416,6 +3416,9 @@ msp430_output_labelref (FILE *file, const char *name)
        }
     }
 
+  if (user_label_prefix[0] != 0)
+    fputs (user_label_prefix, file);
+
   fputs (name, file);
 }