]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix simplify_ior_optimization.c on rv32
authorKito Cheng <kito.cheng@sifive.com>
Thu, 20 Apr 2023 12:03:24 +0000 (20:03 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 20 Apr 2023 13:19:46 +0000 (21:19 +0800)
GCC will complaint if target ABI isn't have corresponding multi-lib on
glibc toolchain, use stdint-gcc.h to suppress that.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/simplify_ior_optimization.c: Use stdint-gcc.h
rather than stdint.h

gcc/testsuite/gcc.target/riscv/simplify_ior_optimization.c

index ec3bd0baf03f010c9484cfe5de46c1de147d1781..b94e1ee25ab70956360d71b4943753bfea3a6e9e 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-march=rv64gc -mabi=lp64 -O2" } */
 
-#include <stdint.h>
+#include "stdint-gcc.h"
 
 uint8_t test_simplify_ior_scalar_case_0 (uint8_t a)
 {