public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/95051] New: error: invalid RHS for gimple memory store:
@ 2020-05-11 10:12 dcb314 at hotmail dot com
  2020-05-11 10:20 ` [Bug c/95051] " dcb314 at hotmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2020-05-11 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95051
           Summary: error: invalid RHS for gimple memory store:
           Product: gcc
           Version: unknown
            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 48505
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48505&action=edit
gzipped C source code

>From a compile of recent linux linux-5.7-rc5 with recent gcc trunk,
I get 

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_dbgdev.c: In function
‘dbgdev_diq_submit_ib.constprop’:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_dbgdev.c:47:12: error: invalid RHS for
gimple memory store: ‘parm_decl’
vmid0_address

vmid0_address

# .MEM_120 = VDEF <.MEM_37(D)>
vmid0_address = vmid0_address;
during GIMPLE pass: sanopt
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_dbgdev.c:47:12: internal compiler
error: verify_gimple failed
0xf62dd1 verify_gimple_in_cfg(function*, bool)
        ../../trunk.git/gcc/tree-cfg.c:5461
0xdfe00f execute_function_todo
        ../../trunk.git/gcc/passes.c:1985
0xdff371 do_per_function
        ../../trunk.git/gcc/passes.c:1640
0xdff371 execute_todo
        ../../trunk.git/gcc/passes.c:2039

This problem seems to have first occurred sometime between 20200507 and
20200508.

Source code attached. I'll have my usual go at reducing the code.

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

* [Bug c/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
@ 2020-05-11 10:20 ` dcb314 at hotmail dot com
  2020-05-11 10:37 ` dcb314 at hotmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2020-05-11 10:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Flags required:

-w -O2  -std=gnu90   -fsanitize=kernel-address --param=asan-stack=1

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

* [Bug c/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
  2020-05-11 10:20 ` [Bug c/95051] " dcb314 at hotmail dot com
@ 2020-05-11 10:37 ` dcb314 at hotmail dot com
  2020-05-11 11:36 ` [Bug tree-optimization/95051] " rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dcb314 at hotmail dot com @ 2020-05-11 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Reduced code:

struct a {
  struct {
    struct {
      int b
    } c
  }
};
struct d {
  struct {
    int e
  } f
} g(h) {
  struct a *i;
  struct d *j = &h;
  i->c.b = j->f.e;
}

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

* [Bug tree-optimization/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
  2020-05-11 10:20 ` [Bug c/95051] " dcb314 at hotmail dot com
  2020-05-11 10:37 ` dcb314 at hotmail dot com
@ 2020-05-11 11:36 ` rguenth at gcc dot gnu.org
  2020-05-11 18:50 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-11 11:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |tree-optimization
            Version|unknown                     |11.0
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
         Depends on|                            |95033
   Last reconfirmed|                            |2020-05-11

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, looks related to PR95033

The ICE occurs in sanopt


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95033
[Bug 95033] [11 Regression] ICE in set_parm_rtl, at cfgexpand.c:1310 since
r11-165-geb72dc663e9070b2

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

* [Bug tree-optimization/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2020-05-11 11:36 ` [Bug tree-optimization/95051] " rguenth at gcc dot gnu.org
@ 2020-05-11 18:50 ` marxin at gcc dot gnu.org
  2020-05-12  8:23 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-11 18:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Yes, that's very similar.

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

* [Bug tree-optimization/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2020-05-11 18:50 ` marxin at gcc dot gnu.org
@ 2020-05-12  8:23 ` cvs-commit at gcc dot gnu.org
  2020-05-12  8:24 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-12  8:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:6b41920bd5c68998a53de749b4fe5c0b8875db6c

commit r11-315-g6b41920bd5c68998a53de749b4fe5c0b8875db6c
Author: Martin Liska <mliska@suse.cz>
Date:   Tue May 12 10:23:09 2020 +0200

    ASAN: clear DECL_NOT_GIMPLE_REG_P.

            PR sanitizer/95033
            PR sanitizer/95051
            * sanopt.c (sanitize_rewrite_addressable_params):
            Clear DECL_NOT_GIMPLE_REG_P for argument.
            PR sanitizer/95033
            PR sanitizer/95051
            * g++.dg/asan/function-argument-4.C: New test.
            * gcc.dg/asan/pr95033.c: New test.
            * gcc.dg/asan/pr95051.c: New test.

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

* [Bug tree-optimization/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2020-05-12  8:23 ` cvs-commit at gcc dot gnu.org
@ 2020-05-12  8:24 ` marxin at gcc dot gnu.org
  2020-05-12  8:24 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-12  8:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95051
Bug 95051 depends on bug 95033, which changed state.

Bug 95033 Summary: [11 Regression] ICE in set_parm_rtl, at cfgexpand.c:1310 since r11-165-geb72dc663e9070b2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95033

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

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

* [Bug tree-optimization/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2020-05-12  8:24 ` marxin at gcc dot gnu.org
@ 2020-05-12  8:24 ` marxin at gcc dot gnu.org
  2020-05-12 19:22 ` cvs-commit at gcc dot gnu.org
  2020-05-13  7:52 ` cvs-commit at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-12  8:24 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed now.

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

* [Bug tree-optimization/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2020-05-12  8:24 ` marxin at gcc dot gnu.org
@ 2020-05-12 19:22 ` cvs-commit at gcc dot gnu.org
  2020-05-13  7:52 ` cvs-commit at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-12 19:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:ac627eb4162d31aa4d009c3c9a8da7dfd6cc34e0

commit r11-335-gac627eb4162d31aa4d009c3c9a8da7dfd6cc34e0
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue May 12 21:21:30 2020 +0200

    testsuite: Fix up gcc.dg/asan/pr95051.c testcase [PR95051]

    asan.exp adds -fsanitize=address which is incompatible with
-fsanitize=kernel-address,
    so we need to disable it first.

    2020-05-12  Jakub Jelinek  <jakub@redhat.com>

            PR sanitizer/95051
            * gcc.dg/asan/pr95051.c: Add -fno-sanitize=all to dg-options.

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

* [Bug tree-optimization/95051] error: invalid RHS for gimple memory store:
  2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
                   ` (7 preceding siblings ...)
  2020-05-12 19:22 ` cvs-commit at gcc dot gnu.org
@ 2020-05-13  7:52 ` cvs-commit at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-13  7:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:3d96f7b92415b7a277a87e7825efc958030e20b6

commit r11-348-g3d96f7b92415b7a277a87e7825efc958030e20b6
Author: Martin Liska <mliska@suse.cz>
Date:   Wed May 13 09:52:21 2020 +0200

    Simplify test-case options.

            PR sanitizer/95051
            * gcc.dg/asan/pr95051.c: Simplify options as -fsanitize=address
            and -O2 were enough to trigger the original ICE.

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

end of thread, other threads:[~2020-05-13  7:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 10:12 [Bug c/95051] New: error: invalid RHS for gimple memory store: dcb314 at hotmail dot com
2020-05-11 10:20 ` [Bug c/95051] " dcb314 at hotmail dot com
2020-05-11 10:37 ` dcb314 at hotmail dot com
2020-05-11 11:36 ` [Bug tree-optimization/95051] " rguenth at gcc dot gnu.org
2020-05-11 18:50 ` marxin at gcc dot gnu.org
2020-05-12  8:23 ` cvs-commit at gcc dot gnu.org
2020-05-12  8:24 ` marxin at gcc dot gnu.org
2020-05-12  8:24 ` marxin at gcc dot gnu.org
2020-05-12 19:22 ` cvs-commit at gcc dot gnu.org
2020-05-13  7:52 ` cvs-commit 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).