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

            Bug ID: 93095
           Summary: Build Latest GCC fail
                    ../../gcc/gcc/gimple-fold.c:4146:8: error: expected
                    unqualified-id before ‘throws’
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: euloanty at live dot com
  Target Milestone: ---

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  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
-I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I/home/cqwrteur/gcc-build/./gmp -I/home/cqwrteur/gcc/gmp
-I/home/cqwrteur/gcc-build/./mpfr/src -I/home/cqwrteur/gcc/mpfr/src
-I/home/cqwrteur/gcc/mpc/src  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc/gcc/../libbacktrace -I/home/cqwrteur/gcc-build/./isl/include
-I/home/cqwrteur/gcc/isl/include  -o gimple-loop-versioning.o -MT
gimple-loop-versioning.o -MMD -MP -MF ./.deps/gimple-loop-versioning.TPo
../../gcc/gcc/gimple-loop-versioning.cc
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  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
-I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I/home/cqwrteur/gcc-build/./gmp -I/home/cqwrteur/gcc/gmp
-I/home/cqwrteur/gcc-build/./mpfr/src -I/home/cqwrteur/gcc/mpfr/src
-I/home/cqwrteur/gcc/mpc/src  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc/gcc/../libbacktrace -I/home/cqwrteur/gcc-build/./isl/include
-I/home/cqwrteur/gcc/isl/include  -o gimple-low.o -MT gimple-low.o -MMD -MP -MF
./.deps/gimple-low.TPo ../../gcc/gcc/gimple-low.c
../../gcc/gcc/gimple-fold.c: In function ‘void
fold_builtin_atomic_compare_exchange(gimple_stmt_iterator*)’:
../../gcc/gcc/gimple-fold.c:4146:8: error: expected unqualified-id before
‘throws’
 4146 |   bool throws = false;
      |        ^~~~~~
../../gcc/gcc/gimple-fold.c:4174:7: error: expected primary-expression before
‘throws’
 4174 |       throws = true;
      |       ^~~~~~
../../gcc/gcc/gimple-fold.c:4185:11: error: expected primary-expression before
‘throws’
 4185 |       if (throws)
      |           ^~~~~~
../../gcc/gcc/gimple-fold.c:4185:11: error: expected ‘)’ before ‘throws’
 4185 |       if (throws)
      |          ~^~~~~~
      |           )
../../gcc/gcc/gimple-fold.c:4197:7: error: expected primary-expression before
‘throws’
 4197 |   if (throws && oldlhs == NULL_TREE)
      |       ^~~~~~
../../gcc/gcc/gimple-fold.c:4197:7: error: expected ‘)’ before ‘throws’
 4197 |   if (throws && oldlhs == NULL_TREE)
      |      ~^~~~~~
      |       )
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  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
-I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I/home/cqwrteur/gcc-build/./gmp -I/home/cqwrteur/gcc/gmp
-I/home/cqwrteur/gcc-build/./mpfr/src -I/home/cqwrteur/gcc/mpfr/src
-I/home/cqwrteur/gcc/mpc/src  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc/gcc/../libbacktrace -I/home/cqwrteur/gcc-build/./isl/include
-I/home/cqwrteur/gcc/isl/include  -o gimple-pretty-print.o -MT
gimple-pretty-print.o -MMD -MP -MF ./.deps/gimple-pretty-print.TPo
../../gcc/gcc/gimple-pretty-print.c
Makefile:1117: recipe for target 'gimple-fold.o' failed
make[2]: *** [gimple-fold.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../../gcc/gcc/coretypes.h:444,
                 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:546:42: warning: ‘int_mode’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
  546 |    ? mode_size_inline (mode) : mode_size[mode]);
      |                                          ^~~~
../../gcc/gcc/expmed.c:5623:19: note: ‘int_mode’ was declared here
 5623 |   scalar_int_mode int_mode;
      |                   ^~~~~~~~
1make[2]: Leaving directory '/home/cqwrteur/gcc-build/gcc'
Makefile:4373: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/home/cqwrteur/gcc-build'
Makefile:966: recipe for target 'all' failed
make: *** [all] Error 2

Reply via email to