毕昇编译器打开-w选项情况下依然产生编译告警,且编译告警没有给出行号
收藏回复举报
毕昇编译器打开-w选项情况下依然产生编译告警,且编译告警没有给出行号
t('forum.solved') 已解决
新人帖
发表于2023-09-12 10:37:41
0 查看

测试命令:

~/tone/run/csmith/BiSheng-compiler-3.0.0-aarch64-linux/bin/clang -O1 -w test-2.c

结果:

warning: Undefined shift transformed to poison value!
[-foverflow-shift-alt-behavior] transform overflow shift to predetermined value.

环境信息及版本号信息:

~/tone/run/csmith/BiSheng-compiler-3.0.0-aarch64-linux/bin/clang -v
HUAWEI BiSheng Compiler 3.0.0 clang version 15.0.4 (0070a75ffcba)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/yansendao/tone/run/csmith/BiSheng-compiler-3.0.0-aarch64-linux/bin
Found candidate GCC installation: /usr/lib/gcc/aarch64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/aarch64-redhat-linux/4.8.5
Selected GCC installation: /usr/lib/gcc/aarch64-redhat-linux/4.8.5
Candidate multilib: .;@m64
Selected multilib: .;@m64


cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (AltArch)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (AltArch)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7:server"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

测试文件:

char a;
long b;
void c() {
  b = 70;
  a = 1 << b;
}
int main() {
  //c();
  return 0;
}

seed=877972719

本帖最后由 匿名用户2023/11/16 15:51:50 编辑

我要发帖子