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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-04-11
                 CC|                            |ktkachov at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |5.3.1, 6.0

--- Comment #4 from ktkachov at gcc dot gnu.org ---
Confirmed on 5.3 and trunk.
The reduced testcase for me is:
struct mntent
{
  char mnt_fsname;
  char mnt_opts;
} * a;

void gp_port_info_set_type ();

char *strstr ();

int *setmntent ();

struct mntent *getmntent ();

void
gp_port_library_list_mntent_1 (int p1)
{
  int *b = setmntent ();
  while (a = getmntent (b))
    if (strstr ("") || strstr () || strstr ("fuse") || strstr ("nfs")
        || strstr ("autofs") || strstr ("devtmpfs") || strstr ("devpts")
        || strstr ("sysfs") || strstr ("gphotofs")
        || strstr (gp_port_library_list_mntent_1, "autofs")
        || strstr (gp_port_library_list_mntent_1, "nfs") || a->mnt_opts)
      if (strstr (&a->mnt_fsname))
        gp_port_info_set_type (p1);
  getmntent (b);
  if (strstr ("") || strstr ("fuse") || strstr ("nfs") || strstr ("autofs")
      || strstr () || strstr ("devtmpfs") || strstr ("devpts")
      || strstr ("sysfs") || strstr ("gphotofs") || strstr (a, "autofs", ""))
    gp_port_info_set_type ();
}

ICEs with -O2 -g -S -mabi=ilp32.

Funnily enough this reduced testcase ICEs on 4.9 as well but in a completely
different way in tree_ssa_dse.

Reply via email to