public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [BUILDROBOT][PATCH] Fix mmix (unused variable)
@ 2014-07-18  5:04 Jan-Benedict Glaw
  2014-07-18  8:08 ` Hans-Peter Nilsson
  0 siblings, 1 reply; 18+ messages in thread
From: Jan-Benedict Glaw @ 2014-07-18  5:04 UTC (permalink / raw)
  To: gcc-patches; +Cc: Richard Biener, Hans-Peter Nilsson

[-- Attachment #1: Type: text/plain, Size: 1867 bytes --]

Hi!

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.  http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=305352)



Committed as obvious, fixed like this:


2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
    
	* 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)
 int64_t
 mmix_intval (const_rtx x)
 {
-  uint64_t retval;
-
   if (GET_CODE (x) == CONST_INT)
     return INTVAL (x);
 


-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
  Signature of:                          Zensur im Internet? Nein danke!
  the second  :

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-08-22 11:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-18  5:04 [BUILDROBOT][PATCH] Fix mmix (unused variable) Jan-Benedict Glaw
2014-07-18  8:08 ` Hans-Peter Nilsson
2014-07-18 13:11   ` Jan-Benedict Glaw
2014-07-19  6:42     ` Hans-Peter Nilsson
2014-07-19 17:27       ` Jan-Benedict Glaw
2014-07-22 13:01       ` Richard Biener
2014-07-22 20:49         ` werror fallout for cross-builds (was: Re: [BUILDROBOT][PATCH] Fix mmix (unused variable)) Hans-Peter Nilsson
2014-07-22 22:12           ` werror fallout for cross-builds Andreas Schwab
2014-07-23  0:09           ` werror fallout for cross-builds (was: Re: [BUILDROBOT][PATCH] Fix mmix (unused variable)) Mike Stump
2014-07-23  2:54             ` Hans-Peter Nilsson
2014-07-23  8:06               ` Mike Stump
2014-07-24 11:13                 ` Maciej W. Rozycki
2014-07-24  0:42           ` Jan-Benedict Glaw
2014-07-24 20:56             ` Hans-Peter Nilsson
2014-07-25  9:58               ` Jan-Benedict Glaw
2014-07-25 16:51                 ` Hans-Peter Nilsson
2014-07-26 17:33                   ` Hans-Peter Nilsson
2014-08-22 11:55                     ` Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).