Severity: major
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: thadula at ciena dot com
Target Milestone: ---
g++, powerpc-e500-linux-gnuspe-g++, version 4.9.2
compiled with -O2 and -fno-delete-null-pointers-checks
Code (look for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403
--- Comment #2 from Hadula, Tomasz ---
The whole thing is huge (compiles for almost 2 hours).
The problem is that when I attempt to make it smaller in form of a simple,
standalone app, the problem doesn't happen anymore.
I've been searching for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403
--- Comment #4 from Hadula, Tomasz ---
Created attachment 38085
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38085&action=edit
output from -fdump-tree-optimized
I attached dump from -fdump-tree-optimized for the affected source
(NewLogic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403
--- Comment #5 from Hadula, Tomasz ---
Created attachment 38086
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38086&action=edit
Original and preprocessed source
generated with -E
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403
--- Comment #6 from Hadula, Tomasz ---
Created attachment 38093
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38093&action=edit
Output from gcc -v -save-temps
Generated by g++ -v -save-temps
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403
--- Comment #7 from Hadula, Tomasz ---
Created attachment 38094
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38094&action=edit
Preprocessed source generated by gcc -v -save-temps
Unfortunately I had to compress it with gzip as the file s
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403
--- Comment #8 from Hadula, Tomasz ---
When I compile with devirtualization disabled (i.e. with -fno-devirtualize) the
null pointer check is where it was supposed to be.
Any clue why?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403
--- Comment #9 from Hadula, Tomasz ---
Created attachment 38148
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38148&action=edit
Reduced testcase
I reduced the size of the testcase
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403
--- Comment #12 from Hadula, Tomasz ---
> The reduced testcase doesn't have the pattern you describe in
> the description.
Well, of course, I couldn't verify that for sure, because the reduced testcase
was so severely mutilated that I couldn't p