]> git.eshelyaron.com Git - emacs.git/commit
Implement proper type conversion in native compiler
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 30 Aug 2021 16:26:46 +0000 (18:26 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 30 Aug 2021 17:00:46 +0000 (19:00 +0200)
commit6767e556590b10a168300a8746589cf401bc93eb
tree24d9920e44d9b97fbe96ae9a8acbeaa6f9019f09
parentebd7c52f1169fb61a5f9a4a02959e5eedba79d86
Implement proper type conversion in native compiler

* src/comp.c (enum cast_kind_of_type): Remove.
(comp_t): Add cast_ptr_to_int, cast_int_to_ptr, remove
cast_type_sizes, cast_type_kind, cast_type_names, cast_union_fields,
cast_union_field_biggest_type.
(emit_coerce): Remove check for type size.
(struct cast_type): Remove bytes_size.
(define_type_punning): New function.
(define_cast_from_to): Implement proper type conversion.
(define_cast_functions): Adjust.  (bug#50230)
src/comp.c