https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89026
--- Comment #2 from Felipe Magno de Almeida ---
Also happens when I call cc1 directly. So, it doesn't seem to be the driver's
fault.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89026
--- Comment #1 from Felipe Magno de Almeida ---
Tested on GCC 7.4.0 and it doesn't show the same bug.
NCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: felipe at expertisesolutions dot com.br
Target Milestone: ---
If you create a response file with the following content:
-I/mingw64/include/dbus
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81147
--- Comment #8 from Felipe Magno de Almeida ---
With GCC 7.2.0 I'm still not seeing the same results as you are. The following
is the assembly result, using the same .cpp file and the same command line:
.section.text._Z3abcv,"ax"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81147
--- Comment #6 from Felipe Magno de Almeida ---
NRVO: Named Return Value Optimization
RVO: Return Value Optiomization
It is the eliminiation of copying when returning objects by value (or passed
by-value as parameters for rvalues).
The assembly
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81147
Felipe Magno de Almeida changed:
What|Removed |Added
Attachment #41594|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81147
--- Comment #3 from Felipe Magno de Almeida ---
It actually compiles for me because I have enabled libstdc++v3 for avr target.
But I'm attaching a new one without the unnecessary includes.
Line command to compile:
avr-g++ -std=c++14 -fno-excepti
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81147
--- Comment #1 from Felipe Magno de Almeida ---
Forgot to mention that removing the inheritance of A and seq from parser_base
(leaving it without inheriting anything) does make NRVO and RVO work again.
Unfortunately not a workaround I can use.
IRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: felipe at expertisesolutions dot com.br
Target Milestone: ---
Created attachment 41594
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=4159