[PATCH] C6X unwinding table generation

Alan Modra amodra@gmail.com
Tue May 10 02:37:00 GMT 2011


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



More information about the Binutils mailing list