https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98359

--- Comment #1 from cqwrteur <unlvsur at live dot com> ---
This patch breaks all platforms it looks like. Even linux has this bug now.

Please fix it asap or it will break everything.


-things like cost calculations or profiling frequencies.  The default\n\
+things like cost calculations or profiling frequencies.  @var{kind} is used\n\
+to ask for the minimum, maximum, and likely estimates of the value through\n\
+the @code{POLY_VALUE_MIN}, @code{POLY_VALUE_MAX} and\n\
+@code{POLY_VALUE_LIKELY} values.  The default\n\
 implementation returns the lowest possible value of @var{val}.",
- HOST_WIDE_INT, (poly_int64 val),
+ HOST_WIDE_INT, (poly_int64 val, poly_value_estimate_kind kind),



Same issue on Linux


gs -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I../../gcc/gcc/../libcody  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc/gcc/../libbacktrace   -o insn-recog.o -MT insn-recog.o -MMD -MP -MF
./.deps/insn-recog.TPo insn-recog.c
../../gcc/gcc/../libgcc/libgcov-util.c: In function 'int
gcov_profile_merge(gcov_info*, gcov_info*, int, int)':
../../gcc/gcc/../libgcc/libgcov-util.c:703:12: warning: '*<unknown>' may be
used uninitialized [-Wmaybe-uninitialized]
  703 |   tgt_tail = tgt_infos[tgt_cnt - 1];
      |   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../gcc/gcc/target-def.h:121,
                 from ../../gcc/gcc/config/i386/i386.c:100:
./target-hooks-def.h:2523:3: error: invalid conversion from 'long int
(*)(poly_int64)' {aka 'long int (*)(poly_int<1, long int>)'} to 'long int
(*)(poly_int64, poly_value_estimate_kind)' {aka 'long int (*)(poly_int<1, long
int>, poly_value_estimate_kind)'} [-fpermissive]
 2523 |   }
      |   ^
      |   |
      |   long int (*)(poly_int64) {aka long int (*)(poly_int<1, long int>)}
../../gcc/gcc/config/i386/i386.c:23857:29: note: in expansion of macro
'TARGET_INITIALIZER'
23857 | struct gcc_target targetm = TARGET_INITIALIZER;
      |                             ^~~~~~~~~~~~~~~~~~
g++   -g -O2 -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE -fno-PIE
-static-libstdc++ -static-libgcc  -no-pie -o build/genmatch \
    build/genmatch.o ../build-x86_64-pc-linux-gnu/libcpp/libcpp.a
build/errors.o build/vec.o build/hash-table.o build/sort.o
../build-x86_64-pc-linux-gnu/libiberty/libiberty.a
build/genmatch --gimple ../../gcc/gcc/match.pd \
    > tmp-gimple-match.c
GIMPLE decision tree has 3710 leafs, maximum depth 28 and a total number of
15729 nodes
removed 2449 duplicate tails
build/genmatch --generic ../../gcc/gcc/match.pd \
    > tmp-generic-match.c
GENERIC decision tree has 3468 leafs, maximum depth 13 and a total number of
14427 nodes
removed 2379 duplicate tails
/bin/bash ../../gcc/gcc/../move-if-change tmp-gimple-match.c \
                                        gimple-match.c
/bin/bash ../../gcc/gcc/../move-if-change tmp-generic-match.c \
                                        generic-match.c
echo timestamp > s-match
g++  -fno-PIE -c   -g -O2 -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -fno-common -Wno-unused -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o gimple-match.o -MT
gimple-match.o -MMD -MP -MF ./.deps/gimple-match.TPo gimple-match.c
g++  -fno-PIE -c   -g -O2 -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -fno-common -Wno-unused -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o generic-match.o -MT
generic-match.o -MMD -MP -MF ./.deps/generic-match.TPo generic-match.c
make[2]: *** [Makefile:2383: i386.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/bash ../../gcc/gcc/../move-if-change tmp-automata.c insn-automata.c
echo timestamp > s-automata
/bin/bash ../../gcc/gcc/../move-if-change tmp-attrtab.c    insn-attrtab.c
/bin/bash ../../gcc/gcc/../move-if-change tmp-dfatab.c     insn-dfatab.c
/bin/bash ../../gcc/gcc/../move-if-change tmp-latencytab.c insn-latencytab.c
echo timestamp > s-attrtab
In file included from ../../gcc/gcc/coretypes.h:472,
                 from ../../gcc/gcc/expmed.c:26:
../../gcc/gcc/machmode.h: In function 'rtx_def* emit_store_flag_1(rtx,
rtx_code, rtx, rtx, machine_mode, int, int, machine_mode)':
../../gcc/gcc/machmode.h:550:49: warning: 'int_mode' may be used uninitialized
in this function [-Wmaybe-uninitialized]
  550 |           ? mode_size_inline (mode) : mode_size[mode]);
      |                                                 ^~~~
../../gcc/gcc/expmed.c:5639:19: note: 'int_mode' was declared here
 5639 |   scalar_int_mode int_mode;
      |                   ^~~~~~~~

Reply via email to