Hi!

When building for frv-linux, I see some fallout (cf.
http://toolchain.lug-owl.de/buildbot/deliver_artifact.php?mode=view&id=91345):

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 -fno-common  -DHAVE_CONFIG_H -I. 
-I. -I/home/vaxbuild/repos/gcc/gcc -I/home/vaxbuild/repos/gcc/gcc/. 
-I/home/vaxbuild/repos/gcc/gcc/../include 
-I/home/vaxbuild/repos/gcc/gcc/../libcpp/include  
-I/home/vaxbuild/repos/gcc/gcc/../libdecnumber 
-I/home/vaxbuild/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber 
-I/home/vaxbuild/repos/gcc/gcc/../libbacktrace    -o frv.o -MT frv.o -MMD -MP 
-MF ./.deps/frv.TPo /home/vaxbuild/repos/gcc/gcc/config/frv/frv.c
/home/vaxbuild/repos/gcc/gcc/config/frv/frv.c: In function ‘void 
frv_init_cumulative_args(int*, tree, rtx, tree, int)’:
/home/vaxbuild/repos/gcc/gcc/config/frv/frv.c:3097:51: error: invalid 
conversion from ‘int’ to ‘tree_code’ [-fpermissive]
      get_tree_code_name ((int)TREE_CODE (ret_type)));
                                                   ^
make[1]: *** [frv.o] Error 1

Fixed like this:

2013-10-18  Jan-Benedict Glaw  <jbg...@lug-owl.de>

gcc/
        * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.

diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c
index 41ae2bb..bcd5511 100644
--- a/gcc/config/frv/frv.c
+++ b/gcc/config/frv/frv.c
@@ -3094,7 +3094,7 @@ frv_init_cumulative_args (CUMULATIVE_ARGS *cum,
        {
          tree ret_type = TREE_TYPE (fntype);
          fprintf (stderr, " return=%s,",
-                  get_tree_code_name ((int)TREE_CODE (ret_type)));
+                  get_tree_code_name (TREE_CODE (ret_type)));
        }
 
       if (libname && GET_CODE (libname) == SYMBOL_REF)


Ok?

MfG, JBG

-- 
      Jan-Benedict Glaw      jbg...@lug-owl.de              +49-172-7608481
Signature of:               The real problem with C++ for kernel modules is:
the second  :                                 the language just sucks.
                                                   -- Linus Torvalds

Attachment: signature.asc
Description: Digital signature

Reply via email to