Patchwork Committed, CRIS: remove unused variables from cris_asm_output_ident

login
register
mail settings
Submitter Hans-Peter Nilsson
Date July 20, 2012, 9:33 p.m.
Message ID <201207202133.q6KLX2Ng021361@ignucius.se.axis.com>
Download mbox | patch
Permalink /patch/172372/
State New
Headers show

Comments

Hans-Peter Nilsson - July 20, 2012, 9:33 p.m.
Looks like these were left from Steven's ident-cleanup.
Steven, for future reference, you might want to use
contrib/warn_summary on the build-logs. ;)

Incidentally, the magic option to increase diff context for svn
is -x -U<N> as in "-x -U5" below, just to show there's not much
else in that function.

Committed after a cris-elf test-run.

gcc:
	* config/cris/cris.c (cris_asm_output_ident): Remove unused
	local variables section_asm_op, size, buf.



brgds, H-P

Patch

Index: gcc/config/cris/cris.c
===================================================================
--- gcc/config/cris/cris.c	(revision 189727)
+++ gcc/config/cris/cris.c	(working copy)
@@ -2518,14 +2518,10 @@  cris_legitimate_pic_operand (rtx x)
    If the front-end is done, we must be being called from toplev.c.
    In that case, do nothing.  */
 void 
 cris_asm_output_ident (const char *string)
 {
-  const char *section_asm_op;
-  int size;
-  char *buf;
-
   if (cgraph_state != CGRAPH_STATE_PARSING)
     return;
 
   default_asm_output_ident_directive (string);
 }