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

--- Comment #5 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
hmm I seem unable to reproduce this one..

tnfchris@x86_64 ~/gcc-peak> ./install/bin/gcc  -O3 pr113136.c -c -march=znver2
pr113136.c: In function ‘yyl_try_d’:
pr113136.c:16:14: warning: comparison of distinct pointer types lacks a cast
[-Wcompare-distinct-pointer-types]
   16 |     while (s < yyl_try_d)
      |              ^
tnfchris@x86_64 ~/gcc-peak> ./install/bin/gcc  -O3 ~/toke.i  -c -march=znver2
tnfchris@x86_64 ~/gcc-peak> cat pr113136.c
enum { XSTATE } S_incline();
char PL_in_eval, PL_parser_6;
int PL_parser_1, PL_parser_0, PL_parser_7;
short PL_parser_8;
_Bool yyl_eol_needs_semicolon() {
  if (PL_parser_6 || PL_in_eval && PL_parser_7 && PL_parser_8)
    if (PL_parser_0 && PL_parser_1)
      return 0;
}
void yyl_try_d(char *s) {
retry:
  switch (*s) {
  case '\n':
    yyl_eol_needs_semicolon(&s);
    s++;
    while (s < yyl_try_d)
      if (*s++)
        S_incline();
    goto retry;
  }
}

tnfchris@x86_64 ~/gcc-peak> ./install/bin/gcc -v
Using built-in specs.
COLLECT_GCC=./install/bin/gcc
COLLECT_LTO_WRAPPER=/home/tnfchris/gcc-peak/install/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/tnfchris/gcc-dsg/configure
--prefix=/home/tnfchris/gcc-peak/install --enable-checking=release :
(reconfigured) /home/tnfchris/gcc-dsg/configure
--prefix=/home/tnfchris/gcc-peak/install --enable-checking=release
--enable-languages=c,c++,fortran,lto,objc --no-create --no-recursion
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231227 (experimental) (GCC)

Reply via email to