public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/100654] New: trunk bootstrap errors with -O0 and -O1
@ 2021-05-18 16:21 manfred99 at gmx dot ch
2021-05-19 7:55 ` [Bug bootstrap/100654] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: manfred99 at gmx dot ch @ 2021-05-18 16:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100654
Bug ID: 100654
Summary: trunk bootstrap errors with -O0 and -O1
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: manfred99 at gmx dot ch
Target Milestone: ---
linux x86_64 and i686 (GCC 7.5 as bootstrap compiler), with BOOT_CFLAGS="-O0
-g":
../../gcc-trunk-source/gcc/gcc/opts.c: In function 'void
print_filtered_help(unsigned int, unsigned int, unsigned int, unsigned int,
gcc_options*, unsigned int)':
../../gcc-trunk-source/gcc/gcc/opts.c:1406:26: error: ' ' directive output may
be truncated writing 2 bytes into a region of size between 1 and 256
[-Werror=format-truncation=]
1406 | "%s %s", help, _(use_diagnosed_msg));
| ^~
../../gcc-trunk-source/gcc/gcc/opts.c:1405:22: note: 'snprintf' output 3 or
more bytes (assuming 258) into a destination of size 256
1405 | snprintf (new_help, sizeof new_help,
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
1406 | "%s %s", help, _(use_diagnosed_msg));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
last successful bootstrap for my daily builds with "-O0" was
99e8df7a4cc0bb1bfa49e69ccb0f7e02c9755e3c (2021-05-05).
with BOOT_CFLAGS="-O1 -g":
../../gcc-trunk-source/gcc/gcc/gimplify.c: In function 'gimplify_status
gimplify_omp_loop(tree_node**, gimple**)':
../../gcc-trunk-source/gcc/gcc/gimplify.c:12967:17: error: 'last' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
12967 | if (pass != last)
| ^~
trunk builds fine with "-O2" however.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/100654] trunk bootstrap errors with -O0 and -O1
2021-05-18 16:21 [Bug bootstrap/100654] New: trunk bootstrap errors with -O0 and -O1 manfred99 at gmx dot ch
@ 2021-05-19 7:55 ` rguenth at gcc dot gnu.org
2021-05-19 12:02 ` manfred99 at gmx dot ch
2021-05-19 12:05 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-19 7:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100654
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |12.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
When bootstrapping with non-standard flags you should consider using
--disable-werror
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/100654] trunk bootstrap errors with -O0 and -O1
2021-05-18 16:21 [Bug bootstrap/100654] New: trunk bootstrap errors with -O0 and -O1 manfred99 at gmx dot ch
2021-05-19 7:55 ` [Bug bootstrap/100654] " rguenth at gcc dot gnu.org
@ 2021-05-19 12:02 ` manfred99 at gmx dot ch
2021-05-19 12:05 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: manfred99 at gmx dot ch @ 2021-05-19 12:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100654
--- Comment #2 from Manfred Schwarb <manfred99 at gmx dot ch> ---
OK, then I will not report such issues in the future and
use --disable-werror per default when using non-standard flags.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug bootstrap/100654] trunk bootstrap errors with -O0 and -O1
2021-05-18 16:21 [Bug bootstrap/100654] New: trunk bootstrap errors with -O0 and -O1 manfred99 at gmx dot ch
2021-05-19 7:55 ` [Bug bootstrap/100654] " rguenth at gcc dot gnu.org
2021-05-19 12:02 ` manfred99 at gmx dot ch
@ 2021-05-19 12:05 ` marxin at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-19 12:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100654
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Closing..
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-19 12:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 16:21 [Bug bootstrap/100654] New: trunk bootstrap errors with -O0 and -O1 manfred99 at gmx dot ch
2021-05-19 7:55 ` [Bug bootstrap/100654] " rguenth at gcc dot gnu.org
2021-05-19 12:02 ` manfred99 at gmx dot ch
2021-05-19 12:05 ` marxin 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).