This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: fix libgfortran export prefixes


Richard Henderson wrote:
 > gcc/fortran/
>         * iresolve.c (gfc_resolve_all, gfc_resolve_any, gfc_resolve_count,
>         gfc_resolve_cshift, gfc_resolve_dot_product, gfc_resolve_eoshift,
>         gfc_resolve_matmul, gfc_resolve_maxloc, gfc_resolve_maxval,
>         gfc_resolve_minloc, gfc_resolve_minval, gfc_resolve_pack,
>         gfc_resolve_product, gfc_resolve_reshape, gfc_resolve_shape,
>         gfc_resolve_spread, gfc_resolve_sum, gfc_resolve_transpose,
>         gfc_resolve_unpack: Use PREFIX.


This introduces a warning in the cases where gfc_get_string is not used,
because PREFIX("name") is assigned to a char *:

stage2/xgcc -Bstage2/ -B/home/tobi/usr/i686-pc-linux-gnu/bin/ -c   -O2 -g
-fomit-frame-pointer -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H    -I. -Ifortran
-I../../gcc-clean/gcc -I../../gcc-clean/gcc/fortran
-I../../gcc-clean/gcc/../include -I../../gcc-clean/gcc/../libcpp/include
../../gcc-clean/gcc/fortran/iresolve.c -o fortran/iresolve.o
../../gcc-clean/gcc/fortran/iresolve.c: In function ‘gfc_resolve_pack’:
../../gcc-clean/gcc/fortran/iresolve.c:1027: warning: assignment discards
qualifiers from pointer target type
../../gcc-clean/gcc/fortran/iresolve.c:1042: warning: assignment discards
qualifiers from pointer target type
../../gcc-clean/gcc/fortran/iresolve.c: In function ‘gfc_resolve_reshape’:
../../gcc-clean/gcc/fortran/iresolve.c:1133: warning: assignment discards
qualifiers from pointer target type
../../gcc-clean/gcc/fortran/iresolve.c: In function ‘gfc_resolve_spread’:
../../gcc-clean/gcc/fortran/iresolve.c:1281: warning: assignment discards
qualifiers from pointer target type
../../gcc-clean/gcc/fortran/iresolve.c: In function ‘gfc_resolve_transpose’:
../../gcc-clean/gcc/fortran/iresolve.c:1432: warning: assignment discards
qualifiers from pointer target type

- Tobi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]