OSDN Git Service

gcc/
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 May 2010 13:51:50 +0000 (13:51 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:11:27 +0000 (14:11 +0900)
PR lto/44184
* lto-streamer-out.c (output_gimple_stmt): Output number of labels
in a GIMPLE_ASM.
* lto-streamer-in.c (input_gimple_stmt): Read number of labels
in a GIMPLE_ASM.

testsuite/
PR lto/44184
* gcc.dg/lto/20100518_0.c: New test.

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

gcc/ChangeLog
gcc/lto-streamer-out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/20100518_0.c

index 064e8f1..cc7419b 100644 (file)
@@ -1,3 +1,11 @@
+2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
+
+       PR lto/44184
+       * lto-streamer-out.c (output_gimple_stmt): Output number of labels
+       in a GIMPLE_ASM.
+       * lto-streamer-in.c (input_gimple_stmt): Read number of labels
+       in a GIMPLE_ASM.
+
 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/41371
index b90c9da..4d59832 100644 (file)
@@ -1702,6 +1702,7 @@ output_gimple_stmt (struct output_block *ob, gimple stmt)
       lto_output_uleb128_stream (ob->main_stream, gimple_asm_ninputs (stmt));
       lto_output_uleb128_stream (ob->main_stream, gimple_asm_noutputs (stmt));
       lto_output_uleb128_stream (ob->main_stream, gimple_asm_nclobbers (stmt));
+      lto_output_uleb128_stream (ob->main_stream, gimple_asm_nlabels (stmt));
       output_string (ob, ob->main_stream, gimple_asm_string (stmt));
       /* Fallthru  */
 
index 1711a49..609f84b 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
+
+       PR lto/44184
+       * gcc.dg/lto/20100518_0.c: New test.
+
 2010-05-18  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/specs/lto3.ads: Add missing dg-options.
index 02290b5..5aea2d6 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-lto-do link } */
+/* { dg-lto-do assemble } */
 /* Forgot to steam in/out the number of labels for asm goto.  PR44184.  */
 
 extern int printf (__const char *__restrict __format, ...);