[3/4] : m32c: remove duplicate define and prototype

Message ID 20200407120205.00003550@justmail.de
State Superseded
Headers show
Series
  • Untitled series #24316
Related show

Commit Message

Gunther Nikl April 7, 2020, 10:02 a.m.
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.

Comments

H.J. Lu via Binutils April 8, 2020, 10:16 a.m. | #1
Hi Gunther,

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


Approved and applied.

Cheers
  Nick

Patch

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