]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix contracts-tmpl-spec2.C on targets where plain char is unsigned by default
authorAndrew Pinski <quic_apinski@quicinc.com>
Fri, 24 Nov 2023 02:55:30 +0000 (18:55 -0800)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Wed, 7 Feb 2024 17:33:54 +0000 (18:33 +0100)
commit0cdb04629641c51498f099db04021e8de51adedb
tree450cd8004f32857a40bda3ee5536269eb97564db
parent18fd8d29b27ec9ace70098b4a451f5296276812e
Fix contracts-tmpl-spec2.C on targets where plain char is unsigned by default

Since contracts-tmpl-spec2.C is just testing contracts, I thought it would be better
to just add `-fsigned-char` to the options rather than change the testcase to support
both cases.

Committed after testing on aarch64-linux-gnu.

gcc/testsuite/ChangeLog:

PR testsuite/108321
* g++.dg/contracts/contracts-tmpl-spec2.C: Add -fsigned-char
to options.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
(cherry picked from commit 6e15e4e1abed02443a27a69455f4bfa49457c99e)
gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C