[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2021-09-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |8.5

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2021-04-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

Jakub Jelinek  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #11 from Jakub Jelinek  ---
Fixed.

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2021-04-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

--- Comment #10 from CVS Commits  ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
:

https://gcc.gnu.org/g:455f165fd86f50163d2147b669edcc2e9bf5b0f8

commit r8-10867-g455f165fd86f50163d2147b669edcc2e9bf5b0f8
Author: Jakub Jelinek 
Date:   Fri Dec 4 12:18:21 2020 +0100

debug: Fix another vector DECL_MODE ICE [PR98100]

The PR88587 fix changes DECL_MODE of vars with vector type during
inlining/cloning
when the vars are copied, so that their DECL_MODE matches their TYPE_MODE
in
the new function.  Unfortunately, the following testcase still ICEs, the
var
isn't really used in the new function and so it isn't copied, but becomes
just a nonlocalized var.  So we can't adjust its DECL_MODE because it
appears in multiple functions and needs different modes in between them.
The following patch changes the DEBUG_INSN creation to use TYPE_MODE
instead
of DECL_MODE for vars with vector types.

2020-12-04  Jakub Jelinek  

PR target/98100
* cfgexpand.c (expand_gimple_basic_block): For vars with
vector type, use TYPE_MODE rather than DECL_MODE.

* gcc.target/i386/pr98100.c: New test.

(cherry picked from commit 4c18faa4dd4dffdb76bc879b774ce3f4da01)

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2021-04-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

--- Comment #9 from CVS Commits  ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
:

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

commit r9-9398-gc47d4bddf3b08f833b2a59cc0be40234fe10e6bc
Author: Jakub Jelinek 
Date:   Fri Dec 4 12:18:21 2020 +0100

debug: Fix another vector DECL_MODE ICE [PR98100]

The PR88587 fix changes DECL_MODE of vars with vector type during
inlining/cloning
when the vars are copied, so that their DECL_MODE matches their TYPE_MODE
in
the new function.  Unfortunately, the following testcase still ICEs, the
var
isn't really used in the new function and so it isn't copied, but becomes
just a nonlocalized var.  So we can't adjust its DECL_MODE because it
appears in multiple functions and needs different modes in between them.
The following patch changes the DEBUG_INSN creation to use TYPE_MODE
instead
of DECL_MODE for vars with vector types.

2020-12-04  Jakub Jelinek  

PR target/98100
* cfgexpand.c (expand_gimple_basic_block): For vars with
vector type, use TYPE_MODE rather than DECL_MODE.

* gcc.target/i386/pr98100.c: New test.

(cherry picked from commit 4c18faa4dd4dffdb76bc879b774ce3f4da01)

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2021-01-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

--- Comment #8 from CVS Commits  ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
:

https://gcc.gnu.org/g:4c18faa4dd4dffdb76bc879b774ce3f4da01

commit r10-9215-g4c18faa4dd4dffdb76bc879b774ce3f4da01
Author: Jakub Jelinek 
Date:   Fri Dec 4 12:18:21 2020 +0100

debug: Fix another vector DECL_MODE ICE [PR98100]

The PR88587 fix changes DECL_MODE of vars with vector type during
inlining/cloning
when the vars are copied, so that their DECL_MODE matches their TYPE_MODE
in
the new function.  Unfortunately, the following testcase still ICEs, the
var
isn't really used in the new function and so it isn't copied, but becomes
just a nonlocalized var.  So we can't adjust its DECL_MODE because it
appears in multiple functions and needs different modes in between them.
The following patch changes the DEBUG_INSN creation to use TYPE_MODE
instead
of DECL_MODE for vars with vector types.

2020-12-04  Jakub Jelinek  

PR target/98100
* cfgexpand.c (expand_gimple_basic_block): For vars with
vector type, use TYPE_MODE rather than DECL_MODE.

* gcc.target/i386/pr98100.c: New test.

(cherry picked from commit 704ccefb576dcf30b27a4b9bdacb6e15902f5307)

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2020-12-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

--- Comment #7 from Jakub Jelinek  ---
Fixed on the trunk (so far).

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2020-12-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

--- Comment #6 from CVS Commits  ---
The master branch has been updated by Jakub Jelinek :

https://gcc.gnu.org/g:704ccefb576dcf30b27a4b9bdacb6e15902f5307

commit r11-5743-g704ccefb576dcf30b27a4b9bdacb6e15902f5307
Author: Jakub Jelinek 
Date:   Fri Dec 4 12:18:21 2020 +0100

debug: Fix another vector DECL_MODE ICE [PR98100]

The PR88587 fix changes DECL_MODE of vars with vector type during
inlining/cloning
when the vars are copied, so that their DECL_MODE matches their TYPE_MODE
in
the new function.  Unfortunately, the following testcase still ICEs, the
var
isn't really used in the new function and so it isn't copied, but becomes
just a nonlocalized var.  So we can't adjust its DECL_MODE because it
appears in multiple functions and needs different modes in between them.
The following patch changes the DEBUG_INSN creation to use TYPE_MODE
instead
of DECL_MODE for vars with vector types.

2020-12-04  Jakub Jelinek  

PR target/98100
* cfgexpand.c (expand_gimple_basic_block): For vars with
vector type, use TYPE_MODE rather than DECL_MODE.

* gcc.target/i386/pr98100.c: New test.

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2020-12-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek  ---
Created attachment 49673
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49673&action=edit
gcc11-pr98100.patch

Untested fix.

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2020-12-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

--- Comment #4 from Jakub Jelinek  ---
Ah, that is because we don't really copy the decl during cloning, because it
isn't really used in the code.

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2020-12-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
The problem is that while we have TYPE_MODE defined such that for vector types
it adjusts the raw mode depending on whether the vector mode is or is not
available ATM, we don't adjust DECL_MODE that way.
So, seems like a copy of PR88587, just for some reason the PR88587 fix doesn't
work here.

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2020-12-03 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

Martin Liška  changed:

   What|Removed |Added

   Last reconfirmed||2020-12-03
 CC||marxin at gcc dot gnu.org
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #2 from Martin Liška  ---
Started with r7-1047-gc6e434f5b73538b7 where -mgeneral-regs-only option was
added.

[Bug target/98100] ICE in expand_debug_locations, at cfgexpand.c:5610

2020-12-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98100

Richard Biener  changed:

   What|Removed |Added

  Component|c   |target

--- Comment #1 from Richard Biener  ---
Not sure if valid - -mgeneral-regs-only forbits use of vector registers but the
code explicitely asks for them(?)