public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/44689] -fenable-icf-debug -fprofile-generate causes segfault in cp_function_decl_explicit_p
Date: Fri, 22 Oct 2010 14:33:00 -0000	[thread overview]
Message-ID: <20101022143300.Cvh49tViEH386uRJj-GTsgFcxaP_qoaEmeri0zHn0hs@z> (raw)
In-Reply-To: <bug-44689-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44689

--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2010-10-22 14:33:22 UTC ---
Created attachment 22120
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22120
different testcase

This one doesn't need -fprofile-generate

$ gcc -fenable-icf-debug -g pr44689-2.C
==20573== Invalid read of size 2
==20573==    at 0x5FFFF7: cp_function_decl_explicit_p (cp-objcp-common.c:164)
==20573==    by 0x74F14E: gen_subprogram_die (dwarf2out.c:18861)
==20573==    by 0x744B68: force_decl_die (dwarf2out.c:20493)
==20573==    by 0x744C3F: dwarf2out_direct_call (dwarf2out.c:21355)
==20573==    by 0x7AC4AC: final_scan_insn (final.c:2685)
==20573==    by 0x7AC67D: final (final.c:1719)
==20573==    by 0x7ACAB8: rest_of_handle_final (final.c:4231)
==20573==    by 0x8D33DE: execute_one_pass (passes.c:1560)
==20573==    by 0x8D3674: execute_pass_list (passes.c:1615)
==20573==    by 0x8D3686: execute_pass_list (passes.c:1616)
==20573==    by 0x8D3686: execute_pass_list (passes.c:1616)
==20573==    by 0xA204E5: tree_rest_of_compilation (tree-optimize.c:422)
==20573==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20573== 
pr44689-2.C:5:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


       reply	other threads:[~2010-10-22 14:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-44689-4@http.gcc.gnu.org/bugzilla/>
2010-10-22 14:33 ` zsojka at seznam dot cz [this message]
2015-03-16  8:37 ` [Bug debug/44689] -fenable-icf-debug " burnus at gcc dot gnu.org
2010-06-27 11:36 [Bug debug/44689] New: -fenable-icf-debug -fprofile-generate " zsojka at seznam dot cz
2010-07-11  7:55 ` [Bug debug/44689] " janus at gcc dot gnu dot org
2010-07-11  7:58 ` janus at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101022143300.Cvh49tViEH386uRJj-GTsgFcxaP_qoaEmeri0zHn0hs@z \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).