public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [Xtensa] add default value for new macro
@ 2006-04-25 16:51 Bob Wilson
  0 siblings, 0 replies; only message in thread
From: Bob Wilson @ 2006-04-25 16:51 UTC (permalink / raw)
  To: binutils

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

My change on 2006-01-09 added a new XCHAL_HAVE_WIDE_BRANCHES macro to 
include/xtensa-config.h.  That file is intended to be replaced with values to 
match particular Xtensa processor configurations, and if someone replaces it 
with an older copy of the file, the new macro may be missing.  This patch adds a 
default value in the assembler so that it will still build with an older version 
of the xtensa-config.h header.  Committed on mainline and the 2.17 branch.

2006-04-25  Bob Wilson  <bob.wilson@acm.org>

	* config/xtensa-relax.c (XCHAL_HAVE_WIDE_BRANCHES): Provide default.

[-- Attachment #2: gas-widebr-default.diff --]
[-- Type: text/x-patch, Size: 537 bytes --]

Index: config/xtensa-relax.c
===================================================================
RCS file: /cvs/src/src/gas/config/xtensa-relax.c,v
retrieving revision 1.10
diff -u -p -r1.10 xtensa-relax.c
--- config/xtensa-relax.c	30 Dec 2005 23:34:00 -0000	1.10
+++ config/xtensa-relax.c	25 Apr 2006 15:38:37 -0000
@@ -101,6 +101,10 @@
 #include <stddef.h>
 #include "xtensa-config.h"
 
+#ifndef XCHAL_HAVE_WIDE_BRANCHES
+#define XCHAL_HAVE_WIDE_BRANCHES 0
+#endif
+
 /* Imported from bfd.  */
 extern xtensa_isa xtensa_default_isa;
 

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

only message in thread, other threads:[~2006-04-25 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25 16:51 [Xtensa] add default value for new macro Bob Wilson

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