This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r272189 - in /trunk/gcc: ChangeLog config/nvptx...


Author: vries
Date: Wed Jun 12 14:56:18 2019
New Revision: 272189

URL: https://gcc.gnu.org/viewcvs?rev=272189&root=gcc&view=rev
Log:
[nvptx] Assert fork has at most one join in nvptx_find_par

With the test-case of PR90009 we run into a SIGSEGV in nvptx_neuter_pars,
because par->join_insn and par->join_block are NULL.

Detect this problem earlier, by adding an assert in nvptx_find_par that
asserts that a fork cannot be paired with more than one join.

Build and tested on x86_64 with nvptx accelerator enabled.

2019-06-12  Tom de Vries  <tdevries@suse.de>

	PR tree-optimization/90009
	* config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/nvptx/nvptx.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]