public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4]: gas: cleanup  for MD_PCREL_FROM_SECTION
@ 2020-04-07 10:01 Gunther Nikl
  2020-04-07 11:04 ` [PATCH 1/4]: microblaze: remove duplicate prototypes Gunther Nikl
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Gunther Nikl @ 2020-04-07 10:01 UTC (permalink / raw)
  To: binutils

Hello,

MD_PCREL_FROM_SECTION has two versions: one with a "fixS *" parameter only and
a second one with an additional "segT" parameter. Only for the single parameter
version a prototype is provided in tc.h. This patch series provides cleanups and
adds a generic prototype for the second variant to tc.h.

Regards,
Gunther Nikl

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 3/4]: m32c: remove duplicate define and prototype
@ 2020-04-07 10:02 Gunther Nikl
  2020-04-08 10:16 ` Nick Clifton
  0 siblings, 1 reply; 8+ messages in thread
From: Gunther Nikl @ 2020-04-07 10:02 UTC (permalink / raw)
  To: binutils

The m32c target header has a duplicate entry for MD_PCREL_FROM_SECTION.
The duplication was present since the initial commit of the port.


2020-XX-XX  Gunther Nikl  <gnikl@justmail.de>

	* config/tc-m32c.h (MD_PCREL_FROM_SECTION): Delete duplicate define.
	(md_pcrel_from_section): Remove duplicate prototype.

diff --git a/gas/config/tc-m32c.h b/gas/config/tc-m32c.h
index aa38116246..5be71977d6 100644
--- a/gas/config/tc-m32c.h
+++ b/gas/config/tc-m32c.h
@@ -32,10 +32,6 @@
 #define md_start_line_hook m32c_start_line_hook
 extern void m32c_start_line_hook (void);
 
-/* call md_pcrel_from_section, not md_pcrel_from */
-long md_pcrel_from_section (struct fix *, segT);
-#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section (FIXP, SEC)
-
 /* Permit temporary numeric labels.  */
 #define LOCAL_LABELS_FB 1
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-08 11:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 10:01 [PATCH 0/4]: gas: cleanup for MD_PCREL_FROM_SECTION Gunther Nikl
2020-04-07 11:04 ` [PATCH 1/4]: microblaze: remove duplicate prototypes Gunther Nikl
2020-04-08 11:34   ` Nick Clifton
2020-04-07 11:10 ` [PATCH 2/4]: moxie: use generic pcrel support Gunther Nikl
2020-04-07 11:13 ` [PATCH 3/4]: m32c: remove duplicate define and prototype Gunther Nikl
2020-04-07 11:15 ` [PATCH 4/4]: Add generic prototype for md_pcrel_from_section Gunther Nikl
2020-04-07 10:02 [PATCH 3/4]: m32c: remove duplicate define and prototype Gunther Nikl
2020-04-08 10:16 ` 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).