This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] C6X unwinding table generation
- From: Alan Modra <amodra at gmail dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 10 May 2011 12:07:00 +0930
- Subject: Re: [PATCH] C6X unwinding table generation
- References: <201104071355.13054.paul@codesourcery.com>
On Thu, Apr 07, 2011 at 01:55:12PM +0100, Paul Brook wrote:
> (dot_cfi_endproc): Use tc_cfi_endproc.
.../gas/dw2gencfi.c: In function 'dot_cfi_endproc':
.../gas/dw2gencfi.c:1119:21: error: variable 'fde' set but not used [-Werror=unused-but-set-variable]
* dw2gencfi.c (tc_cfi_endproc): Avoid "set but not used" error.
Index: gas/dw2gencfi.c
===================================================================
RCS file: /cvs/src/src/gas/dw2gencfi.c,v
retrieving revision 1.55
diff -u -p -r1.55 dw2gencfi.c
--- gas/dw2gencfi.c 9 May 2011 13:17:56 -0000 1.55
+++ gas/dw2gencfi.c 10 May 2011 02:34:34 -0000
@@ -73,7 +73,7 @@
#endif
#ifndef tc_cfi_endproc
-# define tc_cfi_endproc(fde) ((void)0)
+# define tc_cfi_endproc(fde) ((void) (fde))
#endif
#ifndef DWARF2_FORMAT
--
Alan Modra
Australia Development Lab, IBM