public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/110455] New: tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer[14 Regression] ICE:
@ 2023-06-28 11:27 zsojka at seznam dot cz
  2023-06-28 18:29 ` [Bug analyzer/110455] [14 Regression] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2023-06-28 11:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110455
           Summary: tree check: expected none of vector_type, have
                    vector_type in get_gassign_result, at
                    analyzer/region-model.cc:870 with -fanalyzer[14
                    Regression] ICE:
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---

Created attachment 55411
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55411&action=edit
reduced testcase

Probably since commit fe48f2651334bc4d96b6df6b2bb6b29fcb732a83

Compiler output:
$ x86_64-pc-linux-gnu-gcc -fanalyzer testcase.c 
during IPA pass: analyzer
testcase.c: In function 'foo':
testcase.c:6:9: internal compiler error: tree check: expected none of
vector_type, have vector_type in get_gassign_result, at
analyzer/region-model.cc:870
    6 |   v | v << 1;
      |       ~~^~~~
0x85e0a3 tree_not_check_failed(tree_node const*, char const*, int, char const*,
...)
        /repo/gcc-trunk/gcc/tree.cc:8936
0x893730 tree_not_check(tree_node*, char const*, int, char const*, tree_code)
        /repo/gcc-trunk/gcc/tree.h:3581
0x893730 ana::region_model::get_gassign_result(gassign const*,
ana::region_model_context*)
        /repo/gcc-trunk/gcc/analyzer/region-model.cc:870
0x1856eac ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
        /repo/gcc-trunk/gcc/analyzer/region-model.cc:1156
0x18257d0 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::uncertainty_t*,
ana::path_context*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:1471
0x182851d ana::exploded_graph::process_node(ana::exploded_node*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:4063
0x18293ba ana::exploded_graph::process_worklist()
        /repo/gcc-trunk/gcc/analyzer/engine.cc:3466
0x182ba6f ana::impl_run_checkers(ana::logger*)
        /repo/gcc-trunk/gcc/analyzer/engine.cc:6125
0x182c916 ana::run_checkers()
        /repo/gcc-trunk/gcc/analyzer/engine.cc:6213
0x181bae8 execute
        /repo/gcc-trunk/gcc/analyzer/analyzer-pass.cc:87
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-2153-20230628163757-gf3d87219dd5-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-2153-20230628163757-gf3d87219dd5-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20230628 (experimental) (GCC)

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

* [Bug analyzer/110455] [14 Regression] tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer[14 Regression] ICE:
  2023-06-28 11:27 [Bug analyzer/110455] New: tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer[14 Regression] ICE: zsojka at seznam dot cz
@ 2023-06-28 18:29 ` pinskia at gcc dot gnu.org
  2023-07-21  0:29 ` [Bug analyzer/110455] [14 Regression] tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer cvs-commit at gcc dot gnu.org
  2023-07-21  0:37 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-28 18:29 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking
            Summary|tree check: expected none   |[14 Regression] tree check:
                   |of vector_type, have        |expected none of
                   |vector_type in              |vector_type, have
                   |get_gassign_result, at      |vector_type in
                   |analyzer/region-model.cc:87 |get_gassign_result, at
                   |0 with -fanalyzer[14        |analyzer/region-model.cc:87
                   |Regression] ICE:            |0 with -fanalyzer[14
                   |                            |Regression] ICE:
   Target Milestone|---                         |14.0

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

* [Bug analyzer/110455] [14 Regression] tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer
  2023-06-28 11:27 [Bug analyzer/110455] New: tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer[14 Regression] ICE: zsojka at seznam dot cz
  2023-06-28 18:29 ` [Bug analyzer/110455] [14 Regression] " pinskia at gcc dot gnu.org
@ 2023-07-21  0:29 ` cvs-commit at gcc dot gnu.org
  2023-07-21  0:37 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-07-21  0:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 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:a4913a19d24a794c97f38d9c65c47c1fb9f2140c

commit r14-2690-ga4913a19d24a794c97f38d9c65c47c1fb9f2140c
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Thu Jul 20 20:24:10 2023 -0400

    analyzer: avoid usage of TYPE_PRECISION on vector types [PR110455]

    gcc/analyzer/ChangeLog:
            PR analyzer/110455
            * region-model.cc (region_model::get_gassign_result): Only check
            for bad shift counts when dealing with an integral type.

    gcc/testsuite/ChangeLog:
            PR analyzer/110455
            * gcc.dg/analyzer/pr110455.c: New test.

    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

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

* [Bug analyzer/110455] [14 Regression] tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer
  2023-06-28 11:27 [Bug analyzer/110455] New: tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer[14 Regression] ICE: zsojka at seznam dot cz
  2023-06-28 18:29 ` [Bug analyzer/110455] [14 Regression] " pinskia at gcc dot gnu.org
  2023-07-21  0:29 ` [Bug analyzer/110455] [14 Regression] tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer cvs-commit at gcc dot gnu.org
@ 2023-07-21  0:37 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2023-07-21  0:37 UTC (permalink / raw)
  To: gcc-bugs

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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

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

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this bug.  Should be fixed by the above commit.

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

end of thread, other threads:[~2023-07-21  0:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-28 11:27 [Bug analyzer/110455] New: tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer[14 Regression] ICE: zsojka at seznam dot cz
2023-06-28 18:29 ` [Bug analyzer/110455] [14 Regression] " pinskia at gcc dot gnu.org
2023-07-21  0:29 ` [Bug analyzer/110455] [14 Regression] tree check: expected none of vector_type, have vector_type in get_gassign_result, at analyzer/region-model.cc:870 with -fanalyzer cvs-commit at gcc dot gnu.org
2023-07-21  0:37 ` 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).