[Bug target/87867] [7/8 regression] ICE on virtual destructor (-mlong-calls -ffunction-sections) on arm-none-eabi

2018-11-09 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87867

--- Comment #2 from Ramana Radhakrishnan  ---
Author: ramana
Date: Fri Nov  9 12:50:51 2018
New Revision: 265965

URL: https://gcc.gnu.org/viewcvs?rev=265965=gcc=rev
Log:
[PATCH, arm] Backport -- Fix ICE during thunk generation with -mlong-calls

For Mihail Ionescu.

2018-11-09  Mihail Ionescu  

PR target/87867
Backport from mainline
2018-09-17  Eric Botcazou  

* g++.dg/other/thunk2a.C: New test.
* g++.dg/other/thunk2b.C: Likewise.

2018-11-09  Mihail Ionescu  

Backport from mainiline
2018-09-17  Eric Botcazou  

* g++.dg/other/thunk2a.C: New test.
* g++.dg/other/thunk2b.C: Likewise.
* g++.dg/other/vthunk1.C: Rename as thunk1.C


Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/other/thunk1.C
  - copied unchanged from r265964,
branches/gcc-8-branch/gcc/testsuite/g++.dg/other/vthunk1.C
branches/gcc-8-branch/gcc/testsuite/g++.dg/other/thunk2a.C
branches/gcc-8-branch/gcc/testsuite/g++.dg/other/thunk2b.C
Removed:
branches/gcc-8-branch/gcc/testsuite/g++.dg/other/vthunk1.C
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/config/arm/arm.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug target/87867] [7/8 regression] ICE on virtual destructor (-mlong-calls -ffunction-sections) on arm-none-eabi

2018-11-09 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87867

Eric Botcazou  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-11-09
 CC||ebotcazou at gcc dot gnu.org
   Target Milestone|--- |7.4
Summary|ICE on virtual destructor   |[7/8 regression] ICE on
   |(-mlong-calls   |virtual destructor
   |-ffunction-sections) on |(-mlong-calls
   |arm-none-eabi   |-ffunction-sections) on
   ||arm-none-eabi
 Ever confirmed|0   |1

--- Comment #1 from Eric Botcazou  ---
Right, as you found you it was fixed by:

2018-09-26  Eric Botcazou  

* config/arm/arm.c (arm_reorg): Skip Thumb reorg pass for thunks.
(arm32_output_mi_thunk): Deal with long calls.