public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66301] New: internal compiler error when using -fopt-info
@ 2015-05-27  8:49 t at sharklasers dot com
  2015-05-27 10:27 ` [Bug debug/66301] " t at sharklasers dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: t at sharklasers dot com @ 2015-05-27  8:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66301

            Bug ID: 66301
           Summary: internal compiler error when using -fopt-info
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: t at sharklasers dot com
  Target Milestone: ---

Created attachment 35631
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35631&action=edit
preprocessed source

$ g++ -O3 -fopt-info-missed-optall test.cpp
test.cpp: In member function 'std::ctype<char>::char_type
std::ctype<char>::widen(char) const':
test.cpp:14:1: internal compiler error: Segmentation fault
 }
 ^
0xaf4caf crash_signal
        ../../gcc-5.1.0/gcc/toplev.c:383
0x975511 dump_possible_polymorphic_call_targets(_IO_FILE*, tree_node*, long,
ipa_polymorphic_call_context const&)
        ../../gcc-5.1.0/gcc/ipa-devirt.c:3190
0xc09e85 eliminate_dom_walker::before_dom_children(basic_block_def*)
        ../../gcc-5.1.0/gcc/tree-ssa-pre.c:4394
0xfd8741 dom_walker::walk(basic_block_def*)
        ../../gcc-5.1.0/gcc/domwalk.c:188
0xc0900b eliminate
        ../../gcc-5.1.0/gcc/tree-ssa-pre.c:4540
0xc09325 execute
        ../../gcc-5.1.0/gcc/tree-ssa-pre.c:4978
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/66301] internal compiler error when using -fopt-info
  2015-05-27  8:49 [Bug c++/66301] New: internal compiler error when using -fopt-info t at sharklasers dot com
@ 2015-05-27 10:27 ` t at sharklasers dot com
  2015-05-28 12:54 ` jamborm at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: t at sharklasers dot com @ 2015-05-27 10:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66301

--- Comment #1 from JD <t at sharklasers dot com> ---
german@prometheus ~/test $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=local/gcc5.1/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.1.0/configure --prefix=local/gcc5.1
--enable-languages=c,c++ --enable-gold=yes --enable-ld=yes --enable-lto
--enable-bootstrap --disable-multilib
Thread model: posix
gcc version 5.1.0 (GCC)

openSUSE 13.2 (Harlequin) (x86_64)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/66301] internal compiler error when using -fopt-info
  2015-05-27  8:49 [Bug c++/66301] New: internal compiler error when using -fopt-info t at sharklasers dot com
  2015-05-27 10:27 ` [Bug debug/66301] " t at sharklasers dot com
@ 2015-05-28 12:54 ` jamborm at gcc dot gnu.org
  2015-06-12 12:06 ` jamborm at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jamborm at gcc dot gnu.org @ 2015-05-28 12:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66301

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-05-28
     Ever confirmed|0                           |1

--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Well, the problem is that in eliminate_dom_walker::before_dom_children
in tree-ssa-pre.c we have:

              if (dump_enabled_p ())
                dump_possible_polymorphic_call_targets (dump_file, ...)

but dump_enabled_p can return true when dump_file is NULL if
alt_dump_file is not NULL.  I suppose that dump_enabled_p was
introduced as a part of the semi-overhaul of dumping interface we got
in 2012 but that never quite caught on, and that it simply can't be
mixed with old-style dumping which just tests dump_file.

The obvious fix would be to change the condition to "if (dump_file)".
Or we might convert the whole thing to new style dumping, but I admit
I have never quite understood it.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/66301] internal compiler error when using -fopt-info
  2015-05-27  8:49 [Bug c++/66301] New: internal compiler error when using -fopt-info t at sharklasers dot com
  2015-05-27 10:27 ` [Bug debug/66301] " t at sharklasers dot com
  2015-05-28 12:54 ` jamborm at gcc dot gnu.org
@ 2015-06-12 12:06 ` jamborm at gcc dot gnu.org
  2015-06-12 12:08 ` jamborm at gcc dot gnu.org
  2015-06-26 17:17 ` jamborm at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jamborm at gcc dot gnu.org @ 2015-06-12 12:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66301

--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I have proposed a fix on the mailing list:

https://gcc.gnu.org/ml/gcc-patches/2015-06/msg00685.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/66301] internal compiler error when using -fopt-info
  2015-05-27  8:49 [Bug c++/66301] New: internal compiler error when using -fopt-info t at sharklasers dot com
                   ` (2 preceding siblings ...)
  2015-06-12 12:06 ` jamborm at gcc dot gnu.org
@ 2015-06-12 12:08 ` jamborm at gcc dot gnu.org
  2015-06-26 17:17 ` jamborm at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jamborm at gcc dot gnu.org @ 2015-06-12 12:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66301

--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> ---
(In reply to Martin Jambor from comment #3)
> I have proposed a fix on the mailing list:
> 

Oops, this is the correct URL :-)

https://gcc.gnu.org/ml/gcc-patches/2015-06/msg00867.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug debug/66301] internal compiler error when using -fopt-info
  2015-05-27  8:49 [Bug c++/66301] New: internal compiler error when using -fopt-info t at sharklasers dot com
                   ` (3 preceding siblings ...)
  2015-06-12 12:08 ` jamborm at gcc dot gnu.org
@ 2015-06-26 17:17 ` jamborm at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jamborm at gcc dot gnu.org @ 2015-06-26 17:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66301

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-26 17:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-27  8:49 [Bug c++/66301] New: internal compiler error when using -fopt-info t at sharklasers dot com
2015-05-27 10:27 ` [Bug debug/66301] " t at sharklasers dot com
2015-05-28 12:54 ` jamborm at gcc dot gnu.org
2015-06-12 12:06 ` jamborm at gcc dot gnu.org
2015-06-12 12:08 ` jamborm at gcc dot gnu.org
2015-06-26 17:17 ` jamborm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).