From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D983539484A5; Thu, 29 Apr 2021 10:44:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D983539484A5 From: "jbglaw@lug-owl.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100332] New: mcore-elf: error: 'prev_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized] Date: Thu, 29 Apr 2021 10:44:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jbglaw@lug-owl.de 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 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: Thu, 29 Apr 2021 10:44:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100332 Bug ID: 100332 Summary: mcore-elf: error: 'prev_addr' may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jbglaw@lug-owl.de Target Milestone: --- I'm revamping my testing efforts, building cross compilers based on targets listed in ./contrib/config-list.mk. With .../configure --target=3Dmcore-elf --enable-werror-always --enable-languages=3Dall --prefix=3D/tmp/gcc-mcore-elf (using g++ (Debian 20210320-1) 11.0.1 20210320 (experimental) [master revision 3279a9a5a9a:6526c452d22:5f256a70a05fcfc5a1caf56678ceb12b4f87f781] as the ho= st's compiler), build breaks (as of 37846c42f1f5ac4d9ba190d49c4373673c89c8b5) wi= th this (cf. http://toolchain.lug-owl.de:8080/jobs/gcc-mcore-elf/11): make all-gcc [...] all 2021-04-29 09:39:37.528923] /usr/lib/gcc-snapshot/bin/g++ -fno-PIE -c = -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=3Dformat-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=20 -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/dpd -I../libdecnumber -I../.././gcc/../libbacktrace -o dwarf2out.o -MT dwarf2out.o -MMD -MP -MF ./.deps/dwarf2out.TPo ../.././gcc/dwarf2out.c [all 2021-04-29 09:40:06.839260] ../.././gcc/dwarf2out.c: In function 'void output_one_line_info_table(dw_line_info_table*)': [all 2021-04-29 09:40:06.839476] ../.././gcc/dwarf2out.c:12831:82: error: 'prev_addr' may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] [all 2021-04-29 09:40:06.839552] 12831 |=20=20=20=20=20=20=20=20=20=20=20=20 ASM_GENERATE_INTERNAL_LABEL (prev_label, LINE_CODE_LABEL, prev_addr->val); [all 2021-04-29 09:40:06.839627] |=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 ^~~ [all 2021-04-29 09:41:39.466117] cc1plus: all warnings being treated as err= ors [all 2021-04-29 09:41:39.525930] make[1]: *** [Makefile:1141: dwarf2out.o] Error 1 [all 2021-04-29 09:41:39.578999] make[1]: Leaving directory '/var/lib/laminar/run/gcc-mcore-elf/11/gcc/host-x86_64-pc-linux-gnu/gcc' [all 2021-04-29 09:41:39.818955] make: *** [Makefile:4428: all-gcc] Error 2 Thanks, Jan-Benedict=