This is the mail archive of the gcc-patches@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]

[cilkplus] Fix precompiled header bug (PR cilkplus/70865)


The file cilk.h defines the memory managed cilk_trees variable, but
fails to include the header in the GTFILES list. When a precompiled
header is loaded, the array is then not properly restored and points
to garbage memory, causing a segfault. This patch fixes the problem by
adding the cilk files to GTFILES and gengtype.c.

Bootstrapped and regression tested on x86_64-linux.

2016-05-16  Ryan Burn  <contact@rnburn.com>

  * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
  * gengtype.c (open_base_files): Add cilk.h to ifiles.

Attachment: pr70865.patch
Description: Binary data


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