public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug other/103121] New: Warnings Date: Sun, 07 Nov 2021 22:33:53 +0000 [thread overview] Message-ID: <bug-103121-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103121 Bug ID: 103121 Summary: Warnings Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa*-*-linux* Target: hppa*-*-linux* Build: hppa*-*-linux* /home/dave/gnu/gcc/objdir/./prev-gcc/xg++ -B/home/dave/gnu/gcc/objdir/./prev-gcc/ -B/home/dave/opt/gnu/gcc/gcc-12/hppa-linux-gnu/bin/ -nostdinc++ -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs -L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -O2 -fno-checking -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 -DHAVE_CONFIG_H -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o cp/optimize.o -MT cp/optimize.o -MMD -MP -MF cp/.deps/optimize.TPo ../../gcc/gcc/cp/optimize.c /home/dave/gnu/gcc/objdir/./prev-gcc/xg++ -B/home/dave/gnu/gcc/objdir/./prev-gcc/ -B/home/dave/opt/gnu/gcc/gcc-12/hppa-linux-gnu/bin/ -nostdinc++ -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs -L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -O2 -fno-checking -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 -DHAVE_CONFIG_H -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace -o cp/parser.o -MT cp/parser.o -MMD -MP -MF cp/.deps/parser.TPo ../../gcc/gcc/cp/parser.c ../../gcc/gcc/cp/optimize.c: In function 'tree_node* cdtor_comdat_group(tree, tree)': ../../gcc/gcc/cp/optimize.c:208:17: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 208 | grp_name[idx] = '\0'; | ~~~~~~~~~~~~~~^~~~~~ In file included from ../../gcc/gcc/system.h:706, from ../../gcc/gcc/cp/optimize.c:22: ../../gcc/gcc/../include/libiberty.h:733:36: note: at offset 1 into destination object of size 1 allocated by '__builtin_alloca' 733 | # define alloca(x) __builtin_alloca(x) | ~~~~~~~~~~~~~~~~^~~ ../../gcc/gcc/../include/libiberty.h:365:40: note: in expansion of macro 'alloca' 365 | #define XALLOCAVEC(T, N) ((T *) alloca (sizeof (T) * (N))) | ^~~~~~ ../../gcc/gcc/cp/optimize.c:191:14: note: in expansion of macro 'XALLOCAVEC' 191 | grp_name = XALLOCAVEC (char, IDENTIFIER_LENGTH (complete_name) + 1); | ^~~~~~~~~~ ../../gcc/gcc/cp/parser.c: In function 'void cp_parser_decl_specifier_seq(cp_parser*, cp_parser_flags, cp_decl_specifier_seq*, int*)': ../../gcc/gcc/cp/parser.c:15847:55: warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] 15847 | "standard attributes in middle of decl-specifiers"); | ^~~~ ../../gcc/gcc/cp/parser.c:15849:57: warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] 15849 | "standard attributes must precede the decl-specifiers to " | ^~~~ cc1plus: all warnings being treated as errors make[3]: *** [Makefile:1138: cp/optimize.o] Error 1
next reply other threads:[~2021-11-07 22:33 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-07 22:33 danglin at gcc dot gnu.org [this message] 2021-11-08 8:19 ` [Bug other/103121] [12 Regression] Warnings in cp/optimize.c causing build failure pinskia at gcc dot gnu.org 2021-11-08 9:24 ` [Bug tree-optimization/103121] " rguenth at gcc dot gnu.org 2021-11-08 13:19 ` dave.anglin at bell dot net 2021-11-08 16:08 ` msebor at gcc dot gnu.org 2021-11-08 16:19 ` danglin at gcc dot gnu.org 2021-11-08 19:00 ` msebor at gcc dot gnu.org 2021-11-08 19:04 ` msebor at gcc dot gnu.org 2021-11-08 19:36 ` amacleod at redhat dot com 2021-11-08 19:50 ` msebor at gcc dot gnu.org 2021-11-08 20:07 ` amacleod at redhat dot com 2021-11-08 20:48 ` msebor at gcc dot gnu.org 2021-11-08 21:11 ` amacleod at redhat dot com 2021-11-08 21:48 ` msebor at gcc dot gnu.org 2021-11-08 22:35 ` msebor at gcc dot gnu.org 2021-11-09 0:01 ` amacleod at redhat dot com 2021-11-09 1:11 ` msebor at gcc dot gnu.org 2021-11-09 7:20 ` aldyh at gcc dot gnu.org 2021-11-09 7:24 ` aldyh at gcc dot gnu.org 2021-11-09 8:22 ` rguenth at gcc dot gnu.org 2022-01-18 14:34 ` rguenth at gcc dot gnu.org 2022-01-18 20:18 ` amacleod at redhat dot com 2022-01-19 7:36 ` rguenther at suse dot de 2022-01-19 17:50 ` amacleod at redhat dot com 2022-01-20 7:22 ` rguenther at suse dot de 2022-01-20 7:25 ` rguenth at gcc dot gnu.org 2022-01-20 15:49 ` amacleod at redhat dot com 2022-01-20 16:14 ` msebor at gcc dot gnu.org 2022-01-20 17:14 ` danglin at gcc dot gnu.org 2022-01-21 7:27 ` rguenther at suse dot de 2022-01-21 16:16 ` msebor at gcc dot gnu.org 2022-01-21 17:53 ` amacleod at redhat dot com 2022-01-21 18:59 ` msebor at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-103121-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).