https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574
Jakub Jelinek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574
--- Comment #5 from GCC Commits ---
The master branch has been updated by Jakub Jelinek :
https://gcc.gnu.org/g:fb1b7e2fec951ba0bf4f68fac6a16929f4f63910
commit r14-8423-gfb1b7e2fec951ba0bf4f68fac6a16929f4f63910
Author: Jakub Jelinek
Date: T
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574
Jakub Jelinek changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574
--- Comment #3 from Andrew Pinski ---
Note I was thinking I might hit this with 1 sized bit field but that seems to
work:
```
struct f
{
unsigned ub1:1;
}t;
void
foo(unsigned short ub16)
{
t.ub1 = (ub16 << 2);
}
int
main(void)
{
unsigned s
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574
--- Comment #2 from Andrew Pinski ---
convert uses TYPE_SIZE
/* If shift count is less than the width of the truncated type,
really shift. */
if (tree_int_cst_lt (TREE_OPERAND (expr, 1),
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574
Andrew Pinski changed:
What|Removed |Added
Last reconfirmed||2024-01-24
Ever confirmed|0