On 02/17/2016 10:18 AM, Jakub Jelinek wrote:
Hi!

The following testcase works unless -save-temps or ccache is used
(or manually performing -E and compilation separately).  The problem
is that #pragma cilk grainsize is supposed to have macro expansion
(except for the grainsize keyword), but we weren't enabling that for -E.

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
trunk?

2016-02-17  Jakub Jelinek  <ja...@redhat.com>

        PR c++/69826
        * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
        (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
        flag_preprocess_only.

        * c-c++-common/cilk-plus/CK/pr69826-1.c: New test.
        * c-c++-common/cilk-plus/CK/pr69826-2.c: New test.
OK.
jeff

Reply via email to