public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PTX] stabs debug
@ 2015-12-18 17:45 Nathan Sidwell
  0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2015-12-18 17:45 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

The new dg test for stabs support quite reasonably expects an error if there is 
no support.  PTX was silently ignoring debug info requests.   stabs is never 
gonna work though,  so  be noisy for that.

also noticed another place I should be calling nvptx_assemble_decl_end

nathan

[-- Attachment #2: trunk-ptx-dbg.patch --]
[-- Type: text/x-patch, Size: 1176 bytes --]

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.

Index: config/nvptx/nvptx.c
===================================================================
--- config/nvptx/nvptx.c	(revision 231818)
+++ config/nvptx/nvptx.c	(working copy)
@@ -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 *fil
   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.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-18 17:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18 17:45 [PTX] stabs debug Nathan Sidwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).