This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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] RISC-V: error: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type (was: [PATCH] RISC-V: Allow ISA subsets to be disabled)


Hi Palmer,

On Thu, 2017-03-30 12:45:42 -0700, Palmer Dabbelt <palmer@dabbelt.com> wrote:
> Without this patch, passing "-march=rv64ic -march=rv64i" results in
> you getting a "RV64IC" toolchain, which isn't expected.
> 
> gas/ChangeLog:
> 
> 2017-03-30  Palmer Dabbelt  <palmer@dabbelt.com>
> 
>        * config/tc-riscv.c (riscv_clear_subsets): New function.
>        (riscv_add_subset): Call riscv_clear_subsets and riscv_set_rvc to
>        clear RVC when it's been previously set.

Build robot catched a new warning in the build found at
http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=700765:

gcc -DHAVE_CONFIG_H -I. -I/home/jbglaw/repos/binutils_gdb/gas  -I. -I/home/jbglaw/repos/binutils_gdb/gas -I../bfd -I/home/jbglaw/repos/binutils_gdb/gas/config -I/home/jbglaw/repos/binutils_gdb/gas/../include -I/home/jbglaw/repos/binutils_gdb/gas/.. -I/home/jbglaw/repos/binutils_gdb/gas/../bfd -DLOCALEDIR="\"/home/jbglaw/build/riscv32-unknown-linux-gnu/_install_/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -Wwrite-strings -I/home/jbglaw/repos/binutils_gdb/gas/../zlib -g -O2 -MT tc-riscv.o -MD -MP -MF .deps/tc-riscv.Tpo -c -o tc-riscv.o `test -f 'config/tc-riscv.c' || echo '/home/jbglaw/repos/binutils_gdb/gas/'`config/tc-riscv.c
/home/jbglaw/repos/binutils_gdb/gas/config/tc-riscv.c: In function ‘riscv_clear_subsets’:
/home/jbglaw/repos/binutils_gdb/gas/config/tc-riscv.c:129:13: error: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Werror]
       free (riscv_subsets->name);
             ^
In file included from /home/jbglaw/repos/binutils_gdb/gas/as.h:58:0,
                 from /home/jbglaw/repos/binutils_gdb/gas/config/tc-riscv.c:23:
/usr/include/stdlib.h:483:13: note: expected ‘void *’ but argument is of type ‘const char *’
 extern void free (void *__ptr) __THROW;
             ^
cc1: all warnings being treated as errors
Makefile:1651: recipe for target 'tc-riscv.o' failed


MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
  Signature of:                        Lauf nicht vor Deinem Glück davon:
  the second  :                             Es könnte hinter Dir stehen!

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]