public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/103899] New: make profiledbootstrap fails due to uninitialized warning in expr.c
@ 2022-01-04  5:50 pinskia at gcc dot gnu.org
  2022-01-04  6:01 ` [Bug bootstrap/103899] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-04  5:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103899
           Summary: make profiledbootstrap fails due to uninitialized
                    warning in expr.c
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: build, diagnostic
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

I am filing this and will attach the preprocessed source in a few minutes:
/home/apinski/src/upstream-gcc/gcc/objdir1/./prev-gcc/xg++
-B/home/apinski/src/upstream-gcc/gcc/objdir1/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu

-I/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
 -I/home/apinski/src/upstream-gcc/gcc/libstdc++-v3/libsupc++
-L/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -g -O2 -fno-checking -gtoggle -fprofile-generate -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 -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include
-I../../gcc/../libcody -I/home/apinski/src/upstream-gcc/gcc/objdir1/./gmp
-I/home/apinski/src/upstream-gcc/gcc/gmp
-I/home/apinski/src/upstream-gcc/gcc/objdir1/./mpfr/src
-I/home/apinski/src/upstream-gcc/gcc/mpfr/src
-I/home/apinski/src/upstream-gcc/gcc/mpc/src  -I../../gcc/../libdecnumber
-I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace
-I/home/apinski/src/upstream-gcc/gcc/objdir1/./isl/include
-I/home/apinski/src/upstream-gcc/gcc/isl/include  -o expr.o -MT expr.o -MMD -MP
-MF ./.deps/expr.TPo ../../gcc/expr.c
In file included from ../../gcc/expr.c:26:
../../gcc/tree.h: In function ‘rtx_def* expand_expr_real_1(tree, rtx,
machine_mode, expand_modifier, rtx_def**, bool)’:
../../gcc/tree.h:244:56: error: ‘context’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]
  244 | #define TREE_CODE(NODE) ((enum tree_code) (NODE)->base.code)
      |                                                        ^~~~
../../gcc/expr.c:10343:8: note: ‘context’ was declared here
10343 |   tree context;
      |        ^~~~~~~
cc1plus: all warnings being treated as errors
Makefile:1143: recipe for target 'expr.o' failed
make[3]: *** [expr.o] Error 1

I just did:
mkdir objdir1
cd objdir1
../configure
make profiledbootstrap

I tried to get a reduced testcase but I think there is a missing jump threading
so it just happen to work for the reduced testcase I tried.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-01-18 13:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04  5:50 [Bug bootstrap/103899] New: make profiledbootstrap fails due to uninitialized warning in expr.c pinskia at gcc dot gnu.org
2022-01-04  6:01 ` [Bug bootstrap/103899] " pinskia at gcc dot gnu.org
2022-01-04  6:05 ` pinskia at gcc dot gnu.org
2022-01-04  6:44 ` pinskia at gcc dot gnu.org
2022-01-05  8:17 ` [Bug tree-optimization/103899] [12 Regression] " pinskia at gcc dot gnu.org
2022-01-05  8:25 ` marxin at gcc dot gnu.org
2022-01-05 13:55 ` jakub at gcc dot gnu.org
2022-01-05 14:06 ` jakub at gcc dot gnu.org
2022-01-05 21:28 ` pinskia at gcc dot gnu.org
2022-01-06 14:33 ` cvs-commit at gcc dot gnu.org
2022-01-06 14:46 ` jakub at gcc dot gnu.org
2022-01-18 13:56 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).