]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Since started...
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Sun, 19 Jan 2014 15:52:20 +0000 (15:52 +0000)
committerJan-Benedict Glaw <jbglaw@gcc.gnu.org>
Sun, 19 Jan 2014 15:52:20 +0000 (15:52 +0000)
Since started, the VAX backend doesn't compile with config-list.mk
because one of VAX's macros doesn't use its argument:

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 -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 loop-invariant.o -MT loop-invariant.o -MMD -MP -MF ./.deps/loop-invariant.TPo ../../../gcc/gcc/loop-invariant.c
../../../gcc/gcc/loop-invariant.c: In function ‘bool check_dependency(basic_block, df_ref, bitmap)’:../../../gcc/gcc/loop-invariant.c:789:20: error: unused variable ‘regno’ [-Werror=unused-variable]       unsigned int regno = DF_REF_REGNO (use);
                    ^
cc1plus: all warnings being treated as errors
make[2]: *** [loop-invariant.o] Error 1

This should fix it:

2014-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.

[BR]: http://gcc.gnu.org/ml/gcc-patches/2014-01/msg00882.html

From-SVN: r206775

gcc/ChangeLog
gcc/config/vax/vax.h

index abb54a8972fab8f88c4f2c7c725890cfcaad2020..9be0644027333c9ffe8bb46b02e19495bb575c5a 100644 (file)
@@ -1,3 +1,7 @@
+2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
+
+       * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
+
 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
            H.J. Lu  <hongjiu.lu@intel.com>
 
index 29e38ccb19389345c743c4508d21e0416897d8b8..6c008d87c846fc523f815d5d97c3eb6e388abeca 100644 (file)
@@ -295,7 +295,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
 /* 1 if N is a possible register number for function argument passing.
    On the VAX, no registers are used in this way.  */
 
-#define FUNCTION_ARG_REGNO_P(N) 0
+#define FUNCTION_ARG_REGNO_P(N) ((void) (N), 0)
 \f
 /* Define a data type for recording info about an argument list
    during the scan of that argument list.  This data type should