public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault Date: Sat, 30 May 2015 18:03:00 -0000 [thread overview] Message-ID: <bug-66345-4-pZ4C96rvSb@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66345-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66345 Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW Component|c |middle-end Known to work| |4.8.4, 4.9.2 Summary|internal compiler error: |[5/6 Regression] internal |Segmentation fault -- |compiler error: |raidctl.c 'do_meter' |Segmentation fault Known to fail| |5.0, 6.0 --- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 tmp % cat raidctl.i extern int snprintf(char *, unsigned long, const char *, ...); const char a[] = ""; int b; void get_bar () { snprintf (0, 0, "%s", &a[b]); } markus@x4 tmp % gcc -c -O2 raidctl.i raidctl.i: In function ‘get_bar’: raidctl.i:5:1: internal compiler error: tree check: expected integer_cst, have negate_expr in decompose, at tree.h:4929 get_bar () { snprintf (0, 0, "%s", &a[b]); } ^ 0xd3447c tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9352 0x58db55 tree_check(tree_node const*, char const*, int, char const*, tree_code) ../../gcc/gcc/tree.h:3113 0x58db55 wi::int_traits<tree_node const*>::decompose(long*, unsigned int, tree_node const*) ../../gcc/gcc/tree.h:4929 0xd39d2a wi::int_traits<tree_node const*>::decompose(long*, unsigned int, tree_node const*) ../../gcc/gcc/tree.h:3060 0xd39d2a wide_int_ref_storage<false>::wide_int_ref_storage<tree_node const*>(tree_node const* const&, unsigned int) ../../gcc/gcc/wide-int.h:957 0xd39d2a generic_wide_int<wide_int_ref_storage<false> >::generic_wide_int<tree_node const*>(tree_node const* const&, unsigned int) ../../gcc/gcc/wide-int.h:733 0xd39d2a bool wi::eq_p<tree_node const*, int>(tree_node const* const&, int const&) ../../gcc/gcc/wide-int.h:1715 0xd39d2a tree_int_cst_sgn(tree_node const*) ../../gcc/gcc/tree.c:7239 0xd3a95e compare_tree_int(tree_node const*, unsigned long) ../../gcc/gcc/tree.c:7448 0x85e27c gimple_fold_builtin_snprintf ../../gcc/gcc/gimple-fold.c:2543 0x85e27c gimple_fold_builtin ../../gcc/gcc/gimple-fold.c:2954 0x8604b0 gimple_fold_call ../../gcc/gcc/gimple-fold.c:3182 0x8604b0 fold_stmt_1 ../../gcc/gcc/gimple-fold.c:3677 0xbf86b7 execute ../../gcc/gcc/tree-ssa-forwprop.c:2350 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. >From gcc-bugs-return-487632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat May 30 18:56:19 2015 Return-Path: <gcc-bugs-return-487632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39511 invoked by alias); 30 May 2015 18:56:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39445 invoked by uid 48); 30 May 2015 18:56:16 -0000 From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/66319] [6 Regression] gcov-tool.c:84:65: error: invalid conversion from 'int (*)(const c har*, const stat*, int, FTW*)' to 'int (*)(const char*, const stat*, int, FTW)' Date: Sat, 30 May 2015 18:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-66319-4-dEPrTaPla9@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-66319-4@http.gcc.gnu.org/bugzilla/> References: <bug-66319-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg02472.txt.bz2 Content-length: 758 https://gcc.gnu.org/bugzilla/show_bug.cgi?idf319 --- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> --- _HPUX_SOURCE is predefined for c++. This results in _INCLUDE_XOPEN_SOURCE_EXTENDED being defined but _XOPEN_SOURCE_EXTENDED is not predefined (see hunk in comment #1). This behavior dates back to this patch: https://gcc.gnu.org/ml/gcc-patches/2005-05/msg00589.html The HP-UX "ftw.h" header appears to be inconsistent in its use of the two defines, but I don't know the history. It seems _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED need to be predefined when _HPUX_SOURCE is predefined for consistency with current standards. This will happen with current hpux compilers as long as flag_iso is not set, so I think gnu++98 will work.
next prev parent reply other threads:[~2015-05-30 18:03 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-30 17:30 [Bug c/66345] New: internal compiler error: Segmentation fault -- raidctl.c 'do_meter' drakain at gmail dot com 2015-05-30 17:33 ` [Bug c/66345] " drakain at gmail dot com 2015-05-30 17:42 ` trippels at gcc dot gnu.org 2015-05-30 17:49 ` drakain at gmail dot com 2015-05-30 18:03 ` trippels at gcc dot gnu.org [this message] 2015-05-31 0:56 ` [Bug middle-end/66345] [5/6 Regression] internal compiler error: Segmentation fault hjl.tools at gmail dot com 2015-05-31 6:50 ` mpolacek at gcc dot gnu.org 2015-06-02 9:14 ` mpolacek at gcc dot gnu.org 2015-06-02 9:18 ` mpolacek at gcc dot gnu.org 2015-06-02 9:19 ` mpolacek at gcc dot gnu.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=bug-66345-4-pZ4C96rvSb@http.gcc.gnu.org/bugzilla/ \ --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: linkBe 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).