[Bug c++/86900] [8/9 Regression] -gdwarf-5 -O2 -ffunction-sections = assembler error

2018-11-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86900

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Mon Nov 26 21:24:00 2018
New Revision: 266485

URL: https://gcc.gnu.org/viewcvs?rev=266485=gcc=rev
Log:
PR c++/86900
* dwarf2out.c (secname_for_decl): For functions with
DECL_SECTION_NAME if in_cold_section_p, try to return
current_function_section's name if it is a named section.

* g++.dg/debug/dwarf2/pr86900.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/pr86900.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog

[Bug c++/86900] [8/9 Regression] -gdwarf-5 -O2 -ffunction-sections = assembler error

2018-11-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86900

--- Comment #4 from Jakub Jelinek  ---
Created attachment 45097
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45097=edit
gcc9-pr86900.patch

Untested fix.

[Bug c++/86900] [8/9 Regression] -gdwarf-5 -O2 -ffunction-sections = assembler error

2018-11-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86900

Jakub Jelinek  changed:

   What|Removed |Added

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

[Bug c++/86900] [8/9 Regression] -gdwarf-5 -O2 -ffunction-sections = assembler error

2018-08-21 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86900

Richard Biener  changed:

   What|Removed |Added

   Keywords||wrong-code
   Priority|P3  |P2

[Bug c++/86900] [8/9 Regression] -gdwarf-5 -O2 -ffunction-sections = assembler error

2018-08-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86900

Martin Liška  changed:

   What|Removed |Added

 Status|WAITING |NEW
 CC||hubicka at gcc dot gnu.org
   Target Milestone|--- |8.3
Summary|-gdwarf-5 -O2   |[8/9 Regression] -gdwarf-5
   |-ffunction-sections =   |-O2 -ffunction-sections =
   |assembler error |assembler error

--- Comment #3 from Martin Liška  ---
Minimal test-case:

$ cat pr86900.cpp
class a;
class b {
public:
  b(a);
};
class a {
public:
  a(int);
  ~a();
};
void c(int f) {
  a d(0);
  b e(d);
}

Started with r249885.