]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Simplify binop_promote
authorTom Tromey <tromey@adacore.com>
Tue, 28 Feb 2023 14:03:55 +0000 (07:03 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 27 Mar 2023 14:20:29 +0000 (08:20 -0600)
commiteb52a49702abe3d279cf9eba9291e08bc6b2d9dc
treefa64f2b15ceb651b28c0a0b888bdbf71414cfaae
parent4db6e7aa6ae167bc8e45829fa711f565c69a46bf
Simplify binop_promote

binop_promote currently only handles integer sizes up to
builtin_long_long.  However, this may not handle 128-bit types.
Simplify this code, unify the C and non-C (but not OpenCL, as I don't
know how to test this) cases, and handle 128-bit integers as well.

This still doesn't exactly follow C or C++ rules.  This could be
implemented, but if so, I think it makes more sense as a C-specific
expression node.
gdb/eval.c