diff options
| author | Vibhav Pant | 2022-10-02 22:15:33 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2022-10-05 01:20:07 +0530 |
| commit | df5cb9b2a35f33f02a00bcba8e6e044cb7fe737d (patch) | |
| tree | 3e8ba4dd639aa0165c4246de7e9b822319516ecd /src | |
| parent | c7048b84069c2f88e94cd524a30f973e6bbde21b (diff) | |
| download | emacs-df5cb9b2a35f33f02a00bcba8e6e044cb7fe737d.tar.gz emacs-df5cb9b2a35f33f02a00bcba8e6e044cb7fe737d.zip | |
Address styling comments.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/comp.c b/src/comp.c index 36fdff890d7..794501f11b0 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -385,7 +385,7 @@ init_gccjit_functions (void) | |||
| 385 | #define gcc_jit_context_new_array_access fn_gcc_jit_context_new_array_access | 385 | #define gcc_jit_context_new_array_access fn_gcc_jit_context_new_array_access |
| 386 | #define gcc_jit_context_new_array_type fn_gcc_jit_context_new_array_type | 386 | #define gcc_jit_context_new_array_type fn_gcc_jit_context_new_array_type |
| 387 | #ifdef LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast | 387 | #ifdef LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast |
| 388 | #define gcc_jit_context_new_bitcast fn_gcc_jit_context_new_bitcast | 388 | # define gcc_jit_context_new_bitcast fn_gcc_jit_context_new_bitcast |
| 389 | #endif | 389 | #endif |
| 390 | #define gcc_jit_context_new_binary_op fn_gcc_jit_context_new_binary_op | 390 | #define gcc_jit_context_new_binary_op fn_gcc_jit_context_new_binary_op |
| 391 | #define gcc_jit_context_new_call fn_gcc_jit_context_new_call | 391 | #define gcc_jit_context_new_call fn_gcc_jit_context_new_call |
| @@ -430,7 +430,7 @@ init_gccjit_functions (void) | |||
| 430 | #define gcc_jit_struct_as_type fn_gcc_jit_struct_as_type | 430 | #define gcc_jit_struct_as_type fn_gcc_jit_struct_as_type |
| 431 | #define gcc_jit_struct_set_fields fn_gcc_jit_struct_set_fields | 431 | #define gcc_jit_struct_set_fields fn_gcc_jit_struct_set_fields |
| 432 | #ifdef LIBGCCJIT_HAVE_REFLECTION | 432 | #ifdef LIBGCCJIT_HAVE_REFLECTION |
| 433 | #define gcc_jit_type_is_pointer fn_gcc_jit_type_is_pointer | 433 | # define gcc_jit_type_is_pointer fn_gcc_jit_type_is_pointer |
| 434 | #endif | 434 | #endif |
| 435 | #define gcc_jit_type_get_const fn_gcc_jit_type_get_const | 435 | #define gcc_jit_type_get_const fn_gcc_jit_type_get_const |
| 436 | #define gcc_jit_type_get_pointer fn_gcc_jit_type_get_pointer | 436 | #define gcc_jit_type_get_pointer fn_gcc_jit_type_get_pointer |
| @@ -541,7 +541,7 @@ typedef struct { | |||
| 541 | static f_reloc_t freloc; | 541 | static f_reloc_t freloc; |
| 542 | 542 | ||
| 543 | #ifndef LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast | 543 | #ifndef LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast |
| 544 | #define NUM_CAST_TYPES 15 | 544 | # define NUM_CAST_TYPES 15 |
| 545 | #endif | 545 | #endif |
| 546 | 546 | ||
| 547 | typedef struct { | 547 | typedef struct { |
| @@ -1197,7 +1197,9 @@ emit_coerce (gcc_jit_type *new_type, gcc_jit_rvalue *obj) | |||
| 1197 | } | 1197 | } |
| 1198 | } | 1198 | } |
| 1199 | return gcc_jit_context_new_cast (comp.ctxt, NULL, tmp, new_type); | 1199 | return gcc_jit_context_new_cast (comp.ctxt, NULL, tmp, new_type); |
| 1200 | #else /* !defined(LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast) */ | 1200 | |
| 1201 | #else /* !LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast */ | ||
| 1202 | |||
| 1201 | int old_index = type_to_cast_index (old_type); | 1203 | int old_index = type_to_cast_index (old_type); |
| 1202 | int new_index = type_to_cast_index (new_type); | 1204 | int new_index = type_to_cast_index (new_type); |
| 1203 | 1205 | ||
| @@ -3392,7 +3394,6 @@ define_type_punning (const char *name, | |||
| 3392 | 3394 | ||
| 3393 | DECL_BLOCK (entry_block, result); | 3395 | DECL_BLOCK (entry_block, result); |
| 3394 | 3396 | ||
| 3395 | |||
| 3396 | gcc_jit_lvalue *tmp_union | 3397 | gcc_jit_lvalue *tmp_union |
| 3397 | = gcc_jit_function_new_local (result, | 3398 | = gcc_jit_function_new_local (result, |
| 3398 | NULL, | 3399 | NULL, |
| @@ -3479,7 +3480,6 @@ define_cast_functions (void) | |||
| 3479 | { comp.unsigned_long_type, "unsigned_long", false }, | 3480 | { comp.unsigned_long_type, "unsigned_long", false }, |
| 3480 | { comp.unsigned_type, "unsigned", false }, | 3481 | { comp.unsigned_type, "unsigned", false }, |
| 3481 | { comp.void_ptr_type, "void_ptr", true } }; | 3482 | { comp.void_ptr_type, "void_ptr", true } }; |
| 3482 | |||
| 3483 | gcc_jit_field *cast_union_fields[2]; | 3483 | gcc_jit_field *cast_union_fields[2]; |
| 3484 | 3484 | ||
| 3485 | /* Define the union used for type punning. */ | 3485 | /* Define the union used for type punning. */ |
| @@ -3519,7 +3519,7 @@ define_cast_functions (void) | |||
| 3519 | comp.cast_functions_from_to[i][j] = | 3519 | comp.cast_functions_from_to[i][j] = |
| 3520 | define_cast_from_to (cast_types[i], cast_types[j]); | 3520 | define_cast_from_to (cast_types[i], cast_types[j]); |
| 3521 | } | 3521 | } |
| 3522 | #endif /* !defined(LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast) */ | 3522 | #endif /* !LIBGCCJIT_HAVE_gcc_jit_context_new_bitcast */ |
| 3523 | 3523 | ||
| 3524 | static void | 3524 | static void |
| 3525 | define_CHECK_TYPE (void) | 3525 | define_CHECK_TYPE (void) |