[Bug ipa/114643] [11/12/13/14 Regression] Call to a template function emitted but without the code for the template function itself

2024-04-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114643

--- Comment #6 from Andrew Pinski  ---
(In reply to Jakub Jelinek from comment #5)
> Started with r8-6709-gb9aba9fde536dc3e0293653509f530322ee2753e

That is almost definitely just exposed the bug I have not looked to see if
changing the params on the command line allows to expose it further back
though.

[Bug ipa/114643] [11/12/13/14 Regression] Call to a template function emitted but without the code for the template function itself

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

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org
   Last reconfirmed||2024-04-22
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
   Priority|P3  |P2

--- Comment #5 from Jakub Jelinek  ---
Started with r8-6709-gb9aba9fde536dc3e0293653509f530322ee2753e

[Bug ipa/114643] [11/12/13/14 Regression] Call to a template function emitted but without the code for the template function itself

2024-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114643

Andrew Pinski  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=67650,
   ||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=80916
  Known to fail||8.1.0
Summary|Call to a template function |[11/12/13/14 Regression]
   |emitted but without the |Call to a template function
   |code for the template   |emitted but without the
   |function itself |code for the template
   ||function itself
   Target Milestone|--- |11.5
  Known to work||7.5.0
 Depends on|62051, 93115|

--- Comment #4 from Andrew Pinski  ---
Actually it more closely related to PR 67650 (and PR 80916) but both of those
were fixed. Looks like even though the function is not static, we are thinking
we can still refer to it.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62051
[Bug 62051] [11/12/13/14 Regression] Undefined reference to vtable with -O2 and
-fdevirtualize-speculatively
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93115
[Bug 93115] gcc fails to emit inline function on llvm-roc project: -O1 -fPIC
-fdevirtualize -fdevirtualize-speculatively -fipa-cp -fipa-cp-clone
-fvisibility-inlines-hidden