From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52C3E3858D35; Tue, 4 Jan 2022 05:50:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52C3E3858D35 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/103899] New: make profiledbootstrap fails due to uninitialized warning in expr.c Date: Tue, 04 Jan 2022 05:50:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: build, diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2022 05:50:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103899 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/libst= dc++-v3/src/.libs -B/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libst= dc++-v3/libsupc++/.libs -I/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libst= dc++-v3/include/x86_64-pc-linux-gnu -I/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libst= dc++-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/libst= dc++-v3/src/.libs -L/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libst= dc++-v3/libsupc++/.libs -fno-PIE -c -g -O2 -fno-checking -gtoggle -fprofile-generate -DIN_GCC=20= =20=20=20 -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrow= ing -Wwrite-strings -Wcast-qual -Wno-error=3Dformat-diag -Wmissing-format-attri= bute -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/incl= ude -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/../libbacktra= ce -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 =E2=80=98rtx_def* expand_expr_real_1(tree, rt= x, machine_mode, expand_modifier, rtx_def**, bool)=E2=80=99: ../../gcc/tree.h:244:56: error: =E2=80=98context=E2=80=99 may be used unini= tialized in this function [-Werror=3Dmaybe-uninitialized] 244 | #define TREE_CODE(NODE) ((enum tree_code) (NODE)->base.code) | ^~~~ ../../gcc/expr.c:10343:8: note: =E2=80=98context=E2=80=99 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 threa= ding so it just happen to work for the reduced testcase I tried.=