]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix infinite loop on MSP430 with -mlarge flag
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 11 Sep 2024 18:15:32 +0000 (20:15 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 8 Oct 2024 08:37:15 +0000 (10:37 +0200)
commit9fd38cc5d636124f0611aa5d26ac4258431f164a
treecbd3f8c7a8130a225986ae2988b2efe211d98b80
parent409de30d89310ea6ec24b480528c75cb74f8ef85
ada: Fix infinite loop on MSP430 with -mlarge flag

This removes the loop trying to find a pointer mode among the integer modes,
which is obsolete and does not work on platforms where pointers have unusual
size like MSP430 or special semantics like Morello.

gcc/ada/ChangeLog:
PR ada/116498
* gcc-interface/decl.cc (validate_size): Use the size of the default
pointer mode as the minimum size for access types and fat pointers.
gcc/ada/gcc-interface/decl.cc