[Bug c/84310] -falign-{labels,loops,jumps} with value >= 32768+1 cause a segfault
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 7 09:50:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84310
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Wed Mar 7 09:49:47 2018
New Revision: 258332
URL: https://gcc.gnu.org/viewcvs?rev=258332&root=gcc&view=rev
Log:
Backport r257842
2018-03-07 Martin Liska <mliska@suse.cz>
Backport from mainline
2018-02-20 Martin Liska <mliska@suse.cz>
PR c/84310
PR target/79747
* final.c (shorten_branches): Build align_tab array with one
more element.
* opts.c (finish_options): Add alignment option limit check.
(MAX_CODE_ALIGN): Likewise.
(MAX_CODE_ALIGN_VALUE): Likewise.
* doc/invoke.texi: Document maximum allowed option value for
all -falign-* options.
2018-03-07 Martin Liska <mliska@suse.cz>
Backport from mainline
2018-02-20 Martin Liska <mliska@suse.cz>
PR c/84310
PR target/79747
* gcc.target/i386/pr84310.c: New test.
* gcc.target/i386/pr84310-2.c: Likewise.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr84310-2.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr84310.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/doc/invoke.texi
branches/gcc-6-branch/gcc/final.c
branches/gcc-6-branch/gcc/opts.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list