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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org
             Status|WAITING                     |NEW

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
struct rtx_def {
  short mode;
  short code;
  int t[1024];
};

void f(rtx_def *a, short m, short c)
{
  __builtin_memset(a, 0, sizeof (struct rtx_def));
  a->mode = m;
  a->code = c;
}
```

Oh we don't handle non DECL memset triming.

Wait we don't handle the following trimming either:
```
struct rtx_def {
  int mode;
  int code;
  int t[1024];
};
void g(rtx_def*);
void f(int m, int c)
{
  rtx_def a;
  __builtin_memset(&a, 0, sizeof (struct rtx_def));
  a.mode = m;
  g(&a);
}

```

Reply via email to