flrc-lib icon indicating copy to clipboard operation
flrc-lib copied to clipboard

parsing error with vectorized code

Open ninegua opened this issue 8 years ago • 0 comments

When compiling benchmarks in flrc-benchmarks, if we enable vectorization (by doing VEC=y make), then there are two problems with pillar2c (assuming we still use gcc for the macro expansion):

  1. It is removing ___atrribute__(...) from incoming source file. For example:
extern void longjmp (struct __jmp_buf_tag __env[1], int __val)
     __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));

became

extern void  longjmp ( struct __jmp_buf_tag __env [ 1 ]  , int __val ) ;
  1. It is removing some #pragma, for example, #pragma GCC push_options and #pragma GCC target("aes") would no longer exist in the result C/C++ file.

ninegua avatar Apr 16 '17 21:04 ninegua