]> gcc.gnu.org Git - gcc.git/commitdiff
nvptx.c (nvptx_option_override): Emit sorry for stabs debug.
authorNathan Sidwell <nathan@acm.org>
Fri, 18 Dec 2015 17:43:11 +0000 (17:43 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 18 Dec 2015 17:43:11 +0000 (17:43 +0000)
* config/nvptx/nvptx.c (nvptx_option_override): Emit sorry for
stabs debug.
(nvptx_assemble_undefined_decl): Use nvptx_assemble_decl_end.

From-SVN: r231822

gcc/ChangeLog
gcc/config/nvptx/nvptx.c

index 1caa0760db730ca7377c95e2ac907058bb90734d..fec799200b118a54de26f090efb66664221fb483 100644 (file)
@@ -1,3 +1,9 @@
+2015-12-18  Nathan Sidwell  <nathan@acm.org>
+
+       * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry for
+       stabs debug.
+       (nvptx_assemble_undefined_decl): Use nvptx_assemble_decl_end.
+
 2015-12-18  Jeff Law  <law@redhat.com>
 
        PR rtl-optimization/49847
index 07d7cffe5d7a3090b062ae6ede6d9361e3d790c3..5dbedd6dda3337dff60009a53d061826e4a7c034 100644 (file)
@@ -159,6 +159,13 @@ nvptx_option_override (void)
   flag_toplevel_reorder = 1;
   /* Assumes that it will see only hard registers.  */
   flag_var_tracking = 0;
+
+  if (write_symbols == DBX_DEBUG)
+    /* The stabs testcases want to know stabs isn't supported.  */
+    sorry ("stabs debug format not supported");
+
+  /* Actually we don't have any debug format, but don't be
+     unneccesarily noisy.  */
   write_symbols = NO_DEBUG;
   debug_info_level = DINFO_LEVEL_NONE;
 
@@ -1751,7 +1758,7 @@ nvptx_assemble_undefined_decl (FILE *file, const char *name, const_tree decl)
   nvptx_assemble_decl_begin (file, name, section_for_decl (decl),
                             TREE_TYPE (decl), size ? tree_to_shwi (size) : 0,
                             DECL_ALIGN (decl));
-  fprintf (file, ";\n");
+  nvptx_assemble_decl_end ();
 }
 
 /* Output a pattern for a move instruction.  */
This page took 0.104897 seconds and 5 git commands to generate.