This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[BUILDROBOT][PATCH] Fix mmix (unused variable)


As a leftover of r210931, an unused variable resulted in:

 g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpc/include  -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../../gcc/gcc/../libbacktrace    -o mmix.o -MT mmix.o -MMD -MP -MF ./.deps/mmix.TPo ../../../gcc/gcc/config/mmix/mmix.c
../../../gcc/gcc/config/mmix/mmix.c: In function âint64_t mmix_intval(const_rtx)â:
../../../gcc/gcc/config/mmix/mmix.c:2694:12: error: unused variable âretvalâ [-Werror=unused-variable]
   uint64_t retval;
cc1plus: all warnings being treated as errors
make[2]: *** [mmix.o] Error 1

(See eg.

Committed as obvious, fixed like this:

2014-07-18  Jan-Benedict Glaw  <>
	* config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.

diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c
index e0b8ce7..b9edc3c 100644
--- a/gcc/config/mmix/mmix.c
+++ b/gcc/config/mmix/mmix.c
@@ -2691,8 +2691,6 @@ mmix_output_condition (FILE *stream, const_rtx x, int reversed)
 mmix_intval (const_rtx x)
-  uint64_t retval;
   if (GET_CODE (x) == CONST_INT)
     return INTVAL (x);

      Jan-Benedict Glaw              +49-172-7608481
  Signature of:                          Zensur im Internet? Nein danke!
  the second  :

Attachment: signature.asc
Description: Digital signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]