public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107244] New: error: invalid position or size in ‘bit_insert_expr’
@ 2022-10-13  7:13 dcb314 at hotmail dot com
  2022-10-13  7:20 ` [Bug tree-optimization/107244] " dcb314 at hotmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2022-10-13  7:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107244
           Summary: error: invalid position or size in ‘bit_insert_expr’
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 53699
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53699&action=edit
C source code

For the attached C code, recent gcc trunk does this:

$ /home/dcb/gcc/results/bin/gcc -c -w -O2 bug856.c 2>&1 | more
apply.c: In function ‘unleash_all’:
apply.c:582:1: error: invalid position or size in ‘bit_insert_expr’
_ifc__16 = BIT_INSERT_EXPR <_ifc__2, 0, 0xffffffffffffffffffffffffffffffab (1
bi
ts)>;
during GIMPLE pass: ifcvt
apply.c:582:1: internal compiler error: verify_gimple failed

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107244] error: invalid position or size in ‘bit_insert_expr’
  2022-10-13  7:13 [Bug c/107244] New: error: invalid position or size in ‘bit_insert_expr’ dcb314 at hotmail dot com
@ 2022-10-13  7:20 ` dcb314 at hotmail dot com
  2022-10-13  7:42 ` [Bug tree-optimization/107244] [13 Regression] error: invalid position or size in ‘bit_insert_expr’ since r13-3219-g25413fdb2ac24933 marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dcb314 at hotmail dot com @ 2022-10-13  7:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
The bug first seems to occur sometime between git hash 248c8aeebc49aae3
and 637e3668fdc17c4e, a day later.

Reduction running now.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107244] [13 Regression] error: invalid position or size in ‘bit_insert_expr’ since r13-3219-g25413fdb2ac24933
  2022-10-13  7:13 [Bug c/107244] New: error: invalid position or size in ‘bit_insert_expr’ dcb314 at hotmail dot com
  2022-10-13  7:20 ` [Bug tree-optimization/107244] " dcb314 at hotmail dot com
@ 2022-10-13  7:42 ` marxin at gcc dot gnu.org
  2022-10-13  7:42 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-13  7:42 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |andre.simoesdiasvieira@arm.
                   |                            |com, marxin at gcc dot gnu.org
   Last reconfirmed|                            |2022-10-13
     Ever confirmed|0                           |1
            Summary|error: invalid position or  |[13 Regression] error:
                   |size in ‘bit_insert_expr’   |invalid position or size in
                   |                            |‘bit_insert_expr’ since
                   |                            |r13-3219-g25413fdb2ac24933

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r13-3219-g25413fdb2ac24933.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107244] [13 Regression] error: invalid position or size in ‘bit_insert_expr’ since r13-3219-g25413fdb2ac24933
  2022-10-13  7:13 [Bug c/107244] New: error: invalid position or size in ‘bit_insert_expr’ dcb314 at hotmail dot com
  2022-10-13  7:20 ` [Bug tree-optimization/107244] " dcb314 at hotmail dot com
  2022-10-13  7:42 ` [Bug tree-optimization/107244] [13 Regression] error: invalid position or size in ‘bit_insert_expr’ since r13-3219-g25413fdb2ac24933 marxin at gcc dot gnu.org
@ 2022-10-13  7:42 ` marxin at gcc dot gnu.org
  2022-10-13  7:43 ` marxin at gcc dot gnu.org
  2022-10-14  7:27 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-13  7:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

$ cat pr107244.c
typedef char xchar;
struct monst {
  struct monst *nmon;
  short movement;
  char malign;
  xchar mx, my;
  unsigned : 7;
  unsigned : 7;
  unsigned : 11;
  unsigned mleashed : 1;
} *level_0, *unleash_all_mtmp;

void
unleash_all() {
  for (; unleash_all_mtmp; unleash_all_mtmp = level_0)
    unleash_all_mtmp->mleashed = 0;
}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107244] [13 Regression] error: invalid position or size in ‘bit_insert_expr’ since r13-3219-g25413fdb2ac24933
  2022-10-13  7:13 [Bug c/107244] New: error: invalid position or size in ‘bit_insert_expr’ dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2022-10-13  7:42 ` marxin at gcc dot gnu.org
@ 2022-10-13  7:43 ` marxin at gcc dot gnu.org
  2022-10-14  7:27 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-13  7:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Likely dup of PR107229.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107244] [13 Regression] error: invalid position or size in ‘bit_insert_expr’ since r13-3219-g25413fdb2ac24933
  2022-10-13  7:13 [Bug c/107244] New: error: invalid position or size in ‘bit_insert_expr’ dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2022-10-13  7:43 ` marxin at gcc dot gnu.org
@ 2022-10-14  7:27 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-14  7:27 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
dup and fixed.

*** This bug has been marked as a duplicate of bug 107229 ***

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-14  7:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13  7:13 [Bug c/107244] New: error: invalid position or size in ‘bit_insert_expr’ dcb314 at hotmail dot com
2022-10-13  7:20 ` [Bug tree-optimization/107244] " dcb314 at hotmail dot com
2022-10-13  7:42 ` [Bug tree-optimization/107244] [13 Regression] error: invalid position or size in ‘bit_insert_expr’ since r13-3219-g25413fdb2ac24933 marxin at gcc dot gnu.org
2022-10-13  7:42 ` marxin at gcc dot gnu.org
2022-10-13  7:43 ` marxin at gcc dot gnu.org
2022-10-14  7:27 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).