From: Iain Sandoe Date: Wed, 6 Nov 2024 20:46:47 +0000 (+0000) Subject: Darwin: Fix a narrowing warning. X-Git-Tag: basepoints/gcc-16~4563 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a91d5c27cd2173a40cc170ee09330dd1e13403a5;p=thirdparty%2Fgcc.git Darwin: Fix a narrowing warning. cdtor_record needs to have an unsigned entry for the position in order to match with vec_safe_length. gcc/ChangeLog: * config/darwin.cc (cdtor_record): Make position unsigned. Signed-off-by: Iain Sandoe --- diff --git a/gcc/config/darwin.cc b/gcc/config/darwin.cc index ae821e320121..4e495fce82bb 100644 --- a/gcc/config/darwin.cc +++ b/gcc/config/darwin.cc @@ -90,7 +90,7 @@ along with GCC; see the file COPYING3. If not see typedef struct GTY(()) cdtor_record { rtx symbol; int priority; /* [con/de]structor priority */ - int position; /* original position */ + unsigned position; /* original position */ } cdtor_record; static GTY(()) vec *ctors = NULL;