https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109807

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
I see the same for this C code on znver1:

typedef struct MonitorInfo MonitorInfo;
char *decode_edid_edid;
struct MonitorInfo {
  int width_mm;
  int height_mm
} decode_edid() {
  MonitorInfo info;
  MonitorInfo *__trans_tmp_3 = &info;
  {
    MonitorInfo *info = __trans_tmp_3;
    info->width_mm = 10 * decode_edid_edid[5];
    info->height_mm = 10 * decode_edid_edid[6];
  }
  decode_headerdecode_vendor_and_product_identificationdecode_edid_version(
      info);
}

$ ~/gcc/results.20230511.asan.ubsan/bin/gcc -c -O2 -march=znver1 -w bug919.c
during GIMPLE pass: slp
bug919.c: In function ‘decode_edid’:
bug919.c:6:3: internal compiler error: in ix86_widen_mult_cost, at
config/i386/i386.cc:20442
    6 | } decode_edid() {
      |   ^~~~~~~~~~~

It was ok yesterday:

$ ~/gcc/results.20230510.asan.ubsan/bin/gcc -c -O2 -march=znver1 -w bug919.c
$

Reply via email to