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 da3064e..33c6090 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 adde597..8c8e676 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);
 }