public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [COMMITED]: rx.h: Define supported debugging types.
@ 2021-03-09 15:09 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2021-03-09 15:09 UTC (permalink / raw)
  To: gcc-patches

Hi Guys,

  I am applying the patch below to fix a problem building the rx port.
  The rx.h header file defines PREFERRED_DEBUGGING_TYPE but it was not
  defining the types of debugging it preferred.  This results in the
  definition in defaults.h being triggered and the compiler complaining
  about a redefinition.

Cheers
  Nick

gcc/ChangeLog
2021-03-09  Nick Clifton  <nickc@redhat.com>

	* config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
	(DWARF"_DEBUGGING_INFO): Define.

diff --git a/gcc/config/rx/rx.h b/gcc/config/rx/rx.h
index 8e23e311c03..59e1f7cfa96 100644
--- a/gcc/config/rx/rx.h
+++ b/gcc/config/rx/rx.h
@@ -628,6 +628,8 @@ typedef unsigned int CUMULATIVE_ARGS;
 #undef  PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE (TARGET_AS100_SYNTAX \
 				  ? DBX_DEBUG : DWARF2_DEBUG)
+#define DBX_DEBUGGING_INFO 1
+#define DWARF2_DEBUGGING_INFO 1
 
 #define INCOMING_FRAME_SP_OFFSET		4
 #define ARG_POINTER_CFA_OFFSET(FNDECL)		4


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

only message in thread, other threads:[~2021-03-09 15:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 15:09 [COMMITED]: rx.h: Define supported debugging types Nick Clifton

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).