public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c after r12-5242
Date: Mon, 15 Nov 2021 18:36:34 +0000	[thread overview]
Message-ID: <bug-103262-4-wz3dDz4UtQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103262-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
May also need -mtune=generic -march=pentium4 with bootstrap.  Valgrind reports:

==2421026== Memcheck, a memory error detector
==2421026== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2421026== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==2421026== Command:
/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/cc1
-quiet -v -iprefix
/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/../lib/gcc/i686-linux/12.0.0/
-isystem
/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/include
-isystem
/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/include-fixed
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.c-torture/execute/20061220-1.c
-quiet -dumpbase 20061220-1.c -dumpbase-ext .c -mtune=generic -march=pentium4
-O1 -version -o 20061220-1.s
==2421026==
GNU C17 (GCC) version 12.0.0 20211115 (experimental) (i686-linux)
        compiled by GNU C version 12.0.0 20211115 (experimental), GMP version
6.2.0, MPFR version 4.1.0-p13, MPC version 1.2.1, isl version isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
"/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/../lib/gcc/i686-linux/12.0.0/include"
ignoring nonexistent directory
"/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/../lib/gcc/i686-linux/12.0.0/include-fixed"
ignoring nonexistent directory
"/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/../lib/gcc/i686-linux/12.0.0/../../../../i686-linux/include"
ignoring nonexistent directory
"/usr/gcc-12.0.0-32bit/lib/gcc/i686-linux/12.0.0/include"
ignoring nonexistent directory "/usr/gcc-12.0.0-32bit/include"
ignoring nonexistent directory
"/usr/gcc-12.0.0-32bit/lib/gcc/i686-linux/12.0.0/include-fixed"
ignoring nonexistent directory "/usr/gcc-12.0.0-32bit/i686-linux/include"
#include "..." search starts here:
#include <...> search starts here:

/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/include

/export/users/hjl/build/gnu/tools-build/gcc-32bit-gitlab/build-i686-linux/gcc/include-fixed
 /usr/local/include
 /usr/include
End of search list.
GNU C17 (GCC) version 12.0.0 20211115 (experimental) (i686-linux)
        compiled by GNU C version 12.0.0 20211115 (experimental), GMP version
6.2.0, MPFR version 4.1.0-p13, MPC version 1.2.1, isl version isl-0.16.1-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: b2e0b138055bd7ca0343d4cea39ca3ee
==2421026== Conditional jump or move depends on uninitialised value(s)
==2421026==    at 0x88605D0: (anonymous
namespace)::merge_call_side_effects(modref_summary*, gimple*, modref_summary*,
bool, cgraph_node*, bool, bool) (ipa-modref.c:1037)
==2421026==    by 0x8866A54: analyze_call (ipa-modref.c:1414)
==2421026==    by 0x8866A54: (anonymous
namespace)::analyze_stmt(modref_summary*, modref_summary_lto*, gimple*, bool,
vec<gimple*, va_heap, vl_ptr>*, bool) (ipa-modref.c:1585)
==2421026==    by 0x8868EB1: (anonymous namespace)::analyze_function(function*,
bool) (ipa-modref.c:2935)
==2421026==    by 0x886AC6D: (anonymous
namespace)::pass_modref::execute(function*) (ipa-modref.c:3965)
==2421026==    by 0x89BAAA0: execute_one_pass(opt_pass*) (passes.c:2567)
==2421026==    by 0x89BB341: execute_pass_list_1(opt_pass*) (passes.c:2656)
==2421026==    by 0x89BB354: execute_pass_list_1(opt_pass*) (passes.c:2657)
==2421026==    by 0x89BB38C: execute_pass_list(function*, opt_pass*)
(passes.c:2667)
==2421026==    by 0x89BBC52: do_per_function_toporder(void (*)(function*,
void*), void*) [clone .part.0] (passes.c:1773)
==2421026==    by 0x89BBE74: do_per_function_toporder (passes.c:1740)
==2421026==    by 0x89BBE74: execute_ipa_pass_list(opt_pass*) (passes.c:3001)
==2421026==    by 0x86105E7: ipa_passes (cgraphunit.c:2154)
==2421026==    by 0x86105E7: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2289)
==2421026==    by 0x8612DF2: compile (cgraphunit.c:2269)
==2421026==    by 0x8612DF2: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2537)
==2421026==
==2421026== Conditional jump or move depends on uninitialised value(s)
==2421026==    at 0x88605D5: (anonymous
namespace)::merge_call_side_effects(modref_summary*, gimple*, modref_summary*,
bool, cgraph_node*, bool, bool) (ipa-modref.c:1037)
==2421026==    by 0x8866A54: analyze_call (ipa-modref.c:1414)
==2421026==    by 0x8866A54: (anonymous
namespace)::analyze_stmt(modref_summary*, modref_summary_lto*, gimple*, bool,
vec<gimple*, va_heap, vl_ptr>*, bool) (ipa-modref.c:1585)
==2421026==    by 0x8868EB1: (anonymous namespace)::analyze_function(function*,
bool) (ipa-modref.c:2935)
==2421026==    by 0x886AC6D: (anonymous
namespace)::pass_modref::execute(function*) (ipa-modref.c:3965)
==2421026==    by 0x89BAAA0: execute_one_pass(opt_pass*) (passes.c:2567)
==2421026==    by 0x89BB341: execute_pass_list_1(opt_pass*) (passes.c:2656)
==2421026==    by 0x89BB354: execute_pass_list_1(opt_pass*) (passes.c:2657)
==2421026==    by 0x89BB38C: execute_pass_list(function*, opt_pass*)
(passes.c:2667)
==2421026==    by 0x89BBC52: do_per_function_toporder(void (*)(function*,
void*), void*) [clone .part.0] (passes.c:1773)
==2421026==    by 0x89BBE74: do_per_function_toporder (passes.c:1740)
==2421026==    by 0x89BBE74: execute_ipa_pass_list(opt_pass*) (passes.c:3001)
==2421026==    by 0x86105E7: ipa_passes (cgraphunit.c:2154)
==2421026==    by 0x86105E7: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2289)
==2421026==    by 0x8612DF2: compile (cgraphunit.c:2269)
==2421026==    by 0x8612DF2: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2537)
==2421026==
==2421026== Conditional jump or move depends on uninitialised value(s)
==2421026==    at 0x88605DB: (anonymous
namespace)::merge_call_side_effects(modref_summary*, gimple*, modref_summary*,
bool, cgraph_node*, bool, bool) (ipa-modref.c:1038)
==2421026==    by 0x8866A54: analyze_call (ipa-modref.c:1414)
==2421026==    by 0x8866A54: (anonymous
namespace)::analyze_stmt(modref_summary*, modref_summary_lto*, gimple*, bool,
vec<gimple*, va_heap, vl_ptr>*, bool) (ipa-modref.c:1585)
==2421026==    by 0x8868EB1: (anonymous namespace)::analyze_function(function*,
bool) (ipa-modref.c:2935)
==2421026==    by 0x886AC6D: (anonymous
namespace)::pass_modref::execute(function*) (ipa-modref.c:3965)
==2421026==    by 0x89BAAA0: execute_one_pass(opt_pass*) (passes.c:2567)
==2421026==    by 0x89BB341: execute_pass_list_1(opt_pass*) (passes.c:2656)
==2421026==    by 0x89BB354: execute_pass_list_1(opt_pass*) (passes.c:2657)
==2421026==    by 0x89BB38C: execute_pass_list(function*, opt_pass*)
(passes.c:2667)
==2421026==    by 0x89BBC52: do_per_function_toporder(void (*)(function*,
void*), void*) [clone .part.0] (passes.c:1773)
==2421026==    by 0x89BBE74: do_per_function_toporder (passes.c:1740)
==2421026==    by 0x89BBE74: execute_ipa_pass_list(opt_pass*) (passes.c:3001)
==2421026==    by 0x86105E7: ipa_passes (cgraphunit.c:2154)
==2421026==    by 0x86105E7: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2289)
==2421026==    by 0x8612DF2: compile (cgraphunit.c:2269)
==2421026==    by 0x8612DF2: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2537)
==2421026==
==2421026== Conditional jump or move depends on uninitialised value(s)
==2421026==    at 0x88729A9: useful_for_kill_p (ipa-modref-tree.h:89)
==2421026==    by 0x88729A9:
modref_access_node::insert_kill(vec<modref_access_node, va_heap, vl_ptr>&,
modref_access_node&, bool) (ipa-modref-tree.c:749)
==2421026==    by 0x886062E: (anonymous
namespace)::merge_call_side_effects(modref_summary*, gimple*, modref_summary*,
bool, cgraph_node*, bool, bool) (ipa-modref.c:1043)
==2421026==    by 0x8866A54: analyze_call (ipa-modref.c:1414)
==2421026==    by 0x8866A54: (anonymous
namespace)::analyze_stmt(modref_summary*, modref_summary_lto*, gimple*, bool,
vec<gimple*, va_heap, vl_ptr>*, bool) (ipa-modref.c:1585)
==2421026==    by 0x8868EB1: (anonymous namespace)::analyze_function(function*,
bool) (ipa-modref.c:2935)
==2421026==    by 0x886AC6D: (anonymous
namespace)::pass_modref::execute(function*) (ipa-modref.c:3965)
==2421026==    by 0x89BAAA0: execute_one_pass(opt_pass*) (passes.c:2567)
==2421026==    by 0x89BB341: execute_pass_list_1(opt_pass*) (passes.c:2656)
==2421026==    by 0x89BB354: execute_pass_list_1(opt_pass*) (passes.c:2657)
==2421026==    by 0x89BB38C: execute_pass_list(function*, opt_pass*)
(passes.c:2667)
==2421026==    by 0x89BBC52: do_per_function_toporder(void (*)(function*,
void*), void*) [clone .part.0] (passes.c:1773)
==2421026==    by 0x89BBE74: do_per_function_toporder (passes.c:1740)
==2421026==    by 0x89BBE74: execute_ipa_pass_list(opt_pass*) (passes.c:3001)
==2421026==    by 0x86105E7: ipa_passes (cgraphunit.c:2154)
==2421026==    by 0x86105E7: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2289)
==2421026==
==2421026== Conditional jump or move depends on uninitialised value(s)
==2421026==    at 0x8860665: (anonymous
namespace)::merge_call_side_effects(modref_summary*, gimple*, modref_summary*,
bool, cgraph_node*, bool, bool) (ipa-modref.c:1029)
==2421026==    by 0x8866A54: analyze_call (ipa-modref.c:1414)
==2421026==    by 0x8866A54: (anonymous
namespace)::analyze_stmt(modref_summary*, modref_summary_lto*, gimple*, bool,
vec<gimple*, va_heap, vl_ptr>*, bool) (ipa-modref.c:1585)
==2421026==    by 0x8868EB1: (anonymous namespace)::analyze_function(function*,
bool) (ipa-modref.c:2935)
==2421026==    by 0x886AC6D: (anonymous
namespace)::pass_modref::execute(function*) (ipa-modref.c:3965)
==2421026==    by 0x89BAAA0: execute_one_pass(opt_pass*) (passes.c:2567)
==2421026==    by 0x89BB341: execute_pass_list_1(opt_pass*) (passes.c:2656)
==2421026==    by 0x89BB354: execute_pass_list_1(opt_pass*) (passes.c:2657)
==2421026==    by 0x89BB38C: execute_pass_list(function*, opt_pass*)
(passes.c:2667)
==2421026==    by 0x89BBC52: do_per_function_toporder(void (*)(function*,
void*), void*) [clone .part.0] (passes.c:1773)
==2421026==    by 0x89BBE74: do_per_function_toporder (passes.c:1740)
==2421026==    by 0x89BBE74: execute_ipa_pass_list(opt_pass*) (passes.c:3001)
==2421026==    by 0x86105E7: ipa_passes (cgraphunit.c:2154)
==2421026==    by 0x86105E7: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2289)
==2421026==    by 0x8612DF2: compile (cgraphunit.c:2269)
==2421026==    by 0x8612DF2: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2537)
==2421026==
==2421026== Conditional jump or move depends on uninitialised value(s)
==2421026==    at 0x8860677: (anonymous
namespace)::merge_call_side_effects(modref_summary*, gimple*, modref_summary*,
bool, cgraph_node*, bool, bool) (ipa-modref.c:1033)
==2421026==    by 0x8866A54: analyze_call (ipa-modref.c:1414)
==2421026==    by 0x8866A54: (anonymous
namespace)::analyze_stmt(modref_summary*, modref_summary_lto*, gimple*, bool,
vec<gimple*, va_heap, vl_ptr>*, bool) (ipa-modref.c:1585)
==2421026==    by 0x8868EB1: (anonymous namespace)::analyze_function(function*,
bool) (ipa-modref.c:2935)
==2421026==    by 0x886AC6D: (anonymous
namespace)::pass_modref::execute(function*) (ipa-modref.c:3965)
==2421026==    by 0x89BAAA0: execute_one_pass(opt_pass*) (passes.c:2567)
==2421026==    by 0x89BB341: execute_pass_list_1(opt_pass*) (passes.c:2656)
==2421026==    by 0x89BB354: execute_pass_list_1(opt_pass*) (passes.c:2657)
==2421026==    by 0x89BB38C: execute_pass_list(function*, opt_pass*)
(passes.c:2667)
==2421026==    by 0x89BBC52: do_per_function_toporder(void (*)(function*,
void*), void*) [clone .part.0] (passes.c:1773)
==2421026==    by 0x89BBE74: do_per_function_toporder (passes.c:1740)
==2421026==    by 0x89BBE74: execute_ipa_pass_list(opt_pass*) (passes.c:3001)
==2421026==    by 0x86105E7: ipa_passes (cgraphunit.c:2154)
==2421026==    by 0x86105E7: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2289)
==2421026==    by 0x8612DF2: compile (cgraphunit.c:2269)
==2421026==    by 0x8612DF2: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2537)
==2421026==
==2421026== Conditional jump or move depends on uninitialised value(s)
==2421026==    at 0x88605BB: operator[] (vec.h:889)
==2421026==    by 0x88605BB: operator[] (vec.h:1495)
==2421026==    by 0x88605BB: (anonymous
namespace)::merge_call_side_effects(modref_summary*, gimple*, modref_summary*,
bool, cgraph_node*, bool, bool) (ipa-modref.c:1034)
==2421026==    by 0x8866A54: analyze_call (ipa-modref.c:1414)
==2421026==    by 0x8866A54: (anonymous
namespace)::analyze_stmt(modref_summary*, modref_summary_lto*, gimple*, bool,
vec<gimple*, va_heap, vl_ptr>*, bool) (ipa-modref.c:1585)
==2421026==    by 0x8868EB1: (anonymous namespace)::analyze_function(function*,
bool) (ipa-modref.c:2935)
==2421026==    by 0x886AC6D: (anonymous
namespace)::pass_modref::execute(function*) (ipa-modref.c:3965)
==2421026==    by 0x89BAAA0: execute_one_pass(opt_pass*) (passes.c:2567)
==2421026==    by 0x89BB341: execute_pass_list_1(opt_pass*) (passes.c:2656)
==2421026==    by 0x89BB354: execute_pass_list_1(opt_pass*) (passes.c:2657)
==2421026==    by 0x89BB38C: execute_pass_list(function*, opt_pass*)
(passes.c:2667)
==2421026==    by 0x89BBC52: do_per_function_toporder(void (*)(function*,
void*), void*) [clone .part.0] (passes.c:1773)
==2421026==    by 0x89BBE74: do_per_function_toporder (passes.c:1740)
==2421026==    by 0x89BBE74: execute_ipa_pass_list(opt_pass*) (passes.c:3001)
==2421026==    by 0x86105E7: ipa_passes (cgraphunit.c:2154)
==2421026==    by 0x86105E7: symbol_table::compile() [clone .part.0]
(cgraphunit.c:2289)
==2421026==    by 0x8612DF2: compile (cgraphunit.c:2269)
==2421026==    by 0x8612DF2: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2537)
==2421026==
during GIMPLE pass: modref
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.c-torture/execute/20061220-1.c:
In function ‘main’:
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.c-torture/execute/20061220-1.c:73:1:
internal compiler error: in operator[], at vec.h:889
   73 | }
      | ^
0x8306118 vec<ipa_jump_func, va_gc, vl_embed>::operator[](unsigned int)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/vec.h:889
0x8306dbe vec<modref_parm_map, va_heap, vl_embed>::operator[](unsigned int)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/vec.h:1903
0x8306dbe vec<modref_parm_map, va_heap, vl_ptr>::operator[](unsigned int)
        /export/gnu/import/git/gitlab/x86-gcc/gcc/vec.h:1495
0x8306dbe merge_call_side_effects
        /export/gnu/import/git/gitlab/x86-gcc/gcc/ipa-modref.c:1034
0x8866a54 analyze_call
        /export/gnu/import/git/gitlab/x86-gcc/gcc/ipa-modref.c:1414
0x8866a54 analyze_stmt
        /export/gnu/import/git/gitlab/x86-gcc/gcc/ipa-modref.c:1585
0x8868eb1 analyze_function
        /export/gnu/import/git/gitlab/x86-gcc/gcc/ipa-modref.c:2935
0x886ac6d execute
        /export/gnu/import/git/gitlab/x86-gcc/gcc/ipa-modref.c:3965
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
==2421026==
==2421026== HEAP SUMMARY:
==2421026==     in use at exit: 1,526,948 bytes in 2,422 blocks
==2421026==   total heap usage: 20,762 allocs, 18,340 frees, 3,428,979 bytes
allocated
==2421026==
==2421026== LEAK SUMMARY:
==2421026==    definitely lost: 0 bytes in 0 blocks
==2421026==    indirectly lost: 0 bytes in 0 blocks
==2421026==      possibly lost: 8,016 bytes in 1 blocks
==2421026==    still reachable: 1,518,932 bytes in 2,421 blocks
==2421026==                       of which reachable via heuristic:
==2421026==                         newarray           : 772 bytes in 1 blocks
==2421026==         suppressed: 0 bytes in 0 blocks
==2421026== Rerun with --leak-check=full to see details of leaked memory
==2421026==
==2421026== Use --track-origins=yes to see where uninitialised values come from
==2421026== For lists of detected and suppressed errors, rerun with: -s
==2421026== ERROR SUMMARY: 11 errors from 7 contexts (suppressed: 0 from 0)

  parent reply	other threads:[~2021-11-15 18:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-15 18:28 [Bug middle-end/103262] New: " hjl.tools at gmail dot com
2021-11-15 18:29 ` [Bug middle-end/103262] " hjl.tools at gmail dot com
2021-11-15 18:36 ` hjl.tools at gmail dot com [this message]
2021-11-15 18:46 ` hjl.tools at gmail dot com
2021-11-15 19:44 ` [Bug middle-end/103262] [12 Regression] Random FAIL: gcc.c-torture/execute/20061220-1.c by r12-5244 seurer at gcc dot gnu.org
2021-11-15 21:05 ` seurer at gcc dot gnu.org
2021-11-16  8:16 ` cvs-commit at gcc dot gnu.org
2021-11-16  8:21 ` marxin at gcc dot gnu.org
2022-11-28 22:56 ` pinskia 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-103262-4-wz3dDz4UtQ@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: 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).