public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/101143] New: [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int'
@ 2021-06-21 6:29 asolokha at gmx dot com
2021-06-21 10:22 ` [Bug analyzer/101143] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2021-06-21 6:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101143
Bug ID: 101143
Summary: [12 Regression] ICE: incompatible types: 'unsigned
int' and 'long unsigned int'
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
gcc-12.0.0-alpha20210620 snapshot (g:69d80f0f2f0bb8a88cd82d8ab6c4b92cf8013ca1)
ICEs when compiling the following testcase w/ -fanalyzer:
void *
malloc (unsigned int);
void *
foo (void)
{
return malloc (sizeof (int));
}
% aarch64-linux-gnu-gcc-12.0.0 -fanalyzer -w -c pf0wnfaz.c
during IPA pass: analyzer
pf0wnfaz.c: In function 'foo':
pf0wnfaz.c:7:10: internal compiler error: incompatible types: 'unsigned int'
and 'long unsigned int'
7 | return malloc (sizeof (int));
| ^~~~~~~~~~~~~~~~~~~~~
0x12e7ef5 assert_compat_types
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/region-model.cc:1441
0x12e7ef5 assert_compat_types
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/region-model.cc:1435
0x12f644c ana::region_model::create_region_for_heap_alloc(ana::svalue const*)
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/region-model.cc:3405
0x12fd7f0 ana::region_model::impl_call_malloc(ana::call_details const&)
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/region-model-impl-calls.cc:344
0x12efc69 ana::region_model::on_call_pre(gcall const*,
ana::region_model_context*, bool*)
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/region-model.cc:966
0x12ccb85 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::uncertainty_t*)
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/engine.cc:1228
0x12ceb72 ana::exploded_graph::process_node(ana::exploded_node*)
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/engine.cc:3073
0x12cf5e2 ana::exploded_graph::process_worklist()
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/engine.cc:2663
0x12d17ef ana::impl_run_checkers(ana::logger*)
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/engine.cc:4918
0x12d2808 ana::run_checkers()
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/engine.cc:4989
0x12c47c8 execute
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210620/work/gcc-12-20210620/gcc/analyzer/analyzer-pass.cc:87
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101143] [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int'
2021-06-21 6:29 [Bug analyzer/101143] New: [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int' asolokha at gmx dot com
@ 2021-06-21 10:22 ` rguenth at gcc dot gnu.org
2021-06-22 6:33 ` marxin at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-21 10:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101143
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101143] [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int'
2021-06-21 6:29 [Bug analyzer/101143] New: [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int' asolokha at gmx dot com
2021-06-21 10:22 ` [Bug analyzer/101143] " rguenth at gcc dot gnu.org
@ 2021-06-22 6:33 ` marxin at gcc dot gnu.org
2021-06-22 14:02 ` dmalcolm at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-22 6:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101143
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-06-22
Ever confirmed|0 |1
CC| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-1481-g9a2c9579fdbf5d24.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101143] [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int'
2021-06-21 6:29 [Bug analyzer/101143] New: [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int' asolokha at gmx dot com
2021-06-21 10:22 ` [Bug analyzer/101143] " rguenth at gcc dot gnu.org
2021-06-22 6:33 ` marxin at gcc dot gnu.org
@ 2021-06-22 14:02 ` dmalcolm at gcc dot gnu.org
2021-06-22 17:46 ` cvs-commit at gcc dot gnu.org
2021-06-22 17:49 ` dmalcolm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-06-22 14:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101143
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this; am working on a fix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101143] [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int'
2021-06-21 6:29 [Bug analyzer/101143] New: [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int' asolokha at gmx dot com
` (2 preceding siblings ...)
2021-06-22 14:02 ` dmalcolm at gcc dot gnu.org
@ 2021-06-22 17:46 ` cvs-commit at gcc dot gnu.org
2021-06-22 17:49 ` dmalcolm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-22 17:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101143
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:
https://gcc.gnu.org/g:ea4e32181d7a36055b57421abd0ced4735654cf6
commit r12-1731-gea4e32181d7a36055b57421abd0ced4735654cf6
Author: David Malcolm <dmalcolm@redhat.com>
Date: Tue Jun 22 13:44:57 2021 -0400
analyzer: fix ICE on malloc/alloca param type mismatch [PR101143]
gcc/analyzer/ChangeLog:
PR analyzer/101143
* region-model.cc (compat_types_p): New function.
(region_model::create_region_for_heap_alloc): Convert assertion to
an error check.
(region_model::create_region_for_alloca): Likewise.
gcc/testsuite/ChangeLog:
PR analyzer/101143
* gcc.dg/analyzer/pr101143.c: New test.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug analyzer/101143] [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int'
2021-06-21 6:29 [Bug analyzer/101143] New: [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int' asolokha at gmx dot com
` (3 preceding siblings ...)
2021-06-22 17:46 ` cvs-commit at gcc dot gnu.org
@ 2021-06-22 17:49 ` dmalcolm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-06-22 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101143
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should be fixed by the above commit.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-06-22 17:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-21 6:29 [Bug analyzer/101143] New: [12 Regression] ICE: incompatible types: 'unsigned int' and 'long unsigned int' asolokha at gmx dot com
2021-06-21 10:22 ` [Bug analyzer/101143] " rguenth at gcc dot gnu.org
2021-06-22 6:33 ` marxin at gcc dot gnu.org
2021-06-22 14:02 ` dmalcolm at gcc dot gnu.org
2021-06-22 17:46 ` cvs-commit at gcc dot gnu.org
2021-06-22 17:49 ` dmalcolm 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).