This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Produce Stabs-in-ELF on IRIX 5 with -no-mdebug
On Mon, Nov 15, 2010 at 8:03 AM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> Tristan Gingold <gingold@adacore.com> writes:
>
>> On Nov 15, 2010, at 10:21 AM, Alan Modra wrote:
>>
>>> On Thu, Nov 11, 2010 at 12:06:47PM +0100, Rainer Orth wrote:
>>>> ? ? * config/obj-elf.c (elf_generate_asm_lineno): New function.
>>>> ? ? (elf_process_stab): New function.
>>>> ? ? (elf_format_ops): Always use them as generate_asm_lineno,
>>>> ? ? process_stab members.
>>>
>>> OK mainline. ?I think it could safely go on the branch too, but please
>>> wait for Tristan's approval there.
>>
>> Ok too.
>> (And thanks)
>
> Installed on both.
>
This break Linux/x86:
cc1: warnings being treated as errors
/export/gnu/import/git/binutils/gas/config/obj-elf.c: In function
‘elf_process_stab’:
/export/gnu/import/git/binutils/gas/config/obj-elf.c:2401:24: error:
unused parameter ‘sec’
/export/gnu/import/git/binutils/gas/config/obj-elf.c:2402:9: error:
unused parameter ‘what’
/export/gnu/import/git/binutils/gas/config/obj-elf.c:2403:17: error:
unused parameter ‘string’
/export/gnu/import/git/binutils/gas/config/obj-elf.c:2404:9: error:
unused parameter ‘type’
/export/gnu/import/git/binutils/gas/config/obj-elf.c:2405:9: error:
unused parameter ‘other’
/export/gnu/import/git/binutils/gas/config/obj-elf.c:2406:9: error:
unused parameter ‘desc’
I checked this into mainline.
--
H.J.
---
Index: gas/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.4327
diff -u -p -r1.4327 ChangeLog
--- gas/ChangeLog 15 Nov 2010 12:31:05 -0000 1.4327
+++ gas/ChangeLog 15 Nov 2010 18:12:14 -0000
@@ -1,3 +1,8 @@
+2010-11-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/obj-elf.c (elf_process_stab): Mark parameters as
+ ATTRIBUTE_UNUSED.
+
2010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/obj-elf.c (elf_generate_asm_lineno): New function.
Index: gas/config/obj-elf.c
===================================================================
RCS file: /cvs/src/src/gas/config/obj-elf.c,v
retrieving revision 1.134
diff -u -p -r1.134 obj-elf.c
--- gas/config/obj-elf.c 15 Nov 2010 12:31:05 -0000 1.134
+++ gas/config/obj-elf.c 15 Nov 2010 18:12:15 -0000
@@ -2398,12 +2398,12 @@ elf_generate_asm_lineno (void)
}
static void
-elf_process_stab (segT sec,
- int what,
- const char *string,
- int type,
- int other,
- int desc)
+elf_process_stab (segT sec ATTRIBUTE_UNUSED,
+ int what ATTRIBUTE_UNUSED,
+ const char *string ATTRIBUTE_UNUSED,
+ int type ATTRIBUTE_UNUSED,
+ int other ATTRIBUTE_UNUSED,
+ int desc ATTRIBUTE_UNUSED)
{
#ifdef NEED_ECOFF_DEBUG
if (ECOFF_DEBUGGING)