[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of f
From: |
dc at genunix dot com |
Subject: |
[Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type |
Date: |
Fri, 27 May 2022 18:53:42 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29194
--- Comment #1 from Dennis Clarke <dc at genunix dot com> ---
As a further comment where I did also try C90 but that gets me
only a little further :
.
.
.
/opt/gcc/imed/gcc12/bin/gcc -c -DHAVE_CONFIG_H -std=iso9899:1990 -pedantic
-pedantic-errors -fno-builtin -g -O0 -m64 -march=k8 -mtune=k8 -malign-double
-mpc80 -mno-mmx -Wl,-rpath=/opt/bw/lib,--enable-new-dtags -I/opt/bw/include
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -I.
-I../../binutils-2.38/libiberty/../include -W -Wall -Wwrite-strings
-Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE
-fcf-protection ../../binutils-2.38/libiberty/cp-demangle.c -o cp-demangle.o
../../binutils-2.38/libiberty/cp-demangle.c: In function 'is_designated_init':
../../binutils-2.38/libiberty/cp-demangle.c:4763:3: error: ISO C90 forbids
mixed declarations and code [-Wdeclaration-after-statement]
4763 | struct demangle_component *op = d_left (dc);
| ^~~~~~
../../binutils-2.38/libiberty/cp-demangle.c: In function
'd_maybe_print_designated_init':
../../binutils-2.38/libiberty/cp-demangle.c:4779:3: error: ISO C90 forbids
mixed declarations and code [-Wdeclaration-after-statement]
4779 | const char *code = d_left (dc)->u.s_operator.op->code;
| ^~~~~
make[2]: *** [cp-demangle.o] Error 1
make[2]: Leaving directory
`/opt/bw/build/binutils-2.38_rhel6_amd64.003/libiberty'
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory `/opt/bw/build/binutils-2.38_rhel6_amd64.003'
make: *** [all] Error 2
So I am not sure what C standard the binutils comply with. If at all.
Dennis
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/29194] New: bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type, dc at genunix dot com, 2022/05/27
- [Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type,
dc at genunix dot com <=
- [Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type, amodra at gmail dot com, 2022/05/28
- [Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type, amodra at gmail dot com, 2022/05/30
- [Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type, amodra at gmail dot com, 2022/05/30
- [Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type, cvs-commit at gcc dot gnu.org, 2022/05/30
- [Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type, amodra at gmail dot com, 2022/05/30
- [Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type, amodra at gmail dot com, 2022/05/30