re PR c/63307 (Cilk+ breaks -fcompare-debug bootstrap)
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Jan 2015 21:23:04 +0000 (22:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Jan 2015 21:23:04 +0000 (22:23 +0100)
commit31be63ab8c4def775c9ece0b6fa8d0fedc11bae4
tree651a51d4177f4f06007a6abcc4aa6459dfa11eb1
parent8b08ef255bd6e37c4f29e99d45a156bd5c007aa6
re PR c/63307 (Cilk+ breaks -fcompare-debug bootstrap)

PR c/63307
* cilk.c (fill_decls_vec): Only put decls into vector v.
(compare_decls): Fix up formatting.

* c-c++-common/cilk-plus/CK/pr63307.c: New test.

2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>

PR c/63307
* cilk.c: Include vec.h.
(struct cilk_decls): New structure.
(wrapper_parm_cb): Split this function to...
(fill_decls_vec): ...this...
(create_parm_list): ...and this.
(compare_decls): New function.
(for_local_cb): Remove.
(wrapper_local_cb): Ditto.
(build_wrapper_type): For now first traverse and fill vector of
declarations then sort it and then deal with sorted vector.
(cilk_outline): Ditto.
(declare_one_free_variable): Ditto.

From-SVN: r219969
gcc/c-family/ChangeLog
gcc/c-family/cilk.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cilk-plus/CK/pr63307.c [new file with mode: 0644]