Fix inline errors with fPIC (#4078)
In case of `-fPIC` and single file build one of the Regexp's method raises an error during linking: ``` ecma-regexp-object.c: In function ‘ecma_regexp_run’: re-bytecode.c:258:1: error: inlining failed in call to ‘always_inline’ ‘re_get_value’: function body can be overwritten at link time ``` By adding the `inline` keyword for the method the build error can be resolved. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
This commit is contained in:
@@ -254,7 +254,7 @@ re_insert_value (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */
|
||||
*
|
||||
* @return decoded value
|
||||
*/
|
||||
uint32_t JERRY_ATTR_ALWAYS_INLINE
|
||||
inline uint32_t JERRY_ATTR_ALWAYS_INLINE
|
||||
re_get_value (const uint8_t **bc_p) /** refence to bytecode pointer */
|
||||
{
|
||||
uint32_t value = *(*bc_p)++;
|
||||
|
||||
Reference in New Issue
Block a user