gcc-14.1.1-7.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/resolver.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def3]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:489: error[nullPointer]: Null pointer dereference: (int*)NULL
# 487| signal (sig, term_signal);
# 488| term = term + 1;
# 489|-> if (term_pipe && term_pipe[1] >= 0)
# 490| write (term_pipe[1], &term_pipe[1], 1);
# 491| }
Error: CPPCHECK_WARNING (CWE-476): [#def4]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:490: error[nullPointer]: Null pointer dereference: (int*)NULL
# 488| term = term + 1;
# 489| if (term_pipe && term_pipe[1] >= 0)
# 490|-> write (term_pipe[1], &term_pipe[1], 1);
# 491| }
# 492|
Error: CPPCHECK_WARNING (CWE-476): [#def5]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:651: error[nullPointer]: Null pointer dereference: (int*)NULL
# 649| }
# 650|
# 651|-> if (term_pipe && term_pipe[0] >= 0)
# 652| {
# 653| FD_SET (term_pipe[0], &readers);
Error: CPPCHECK_WARNING (CWE-476): [#def6]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:653: error[nullPointer]: Null pointer dereference: (int*)NULL
# 651| if (term_pipe && term_pipe[0] >= 0)
# 652| {
# 653|-> FD_SET (term_pipe[0], &readers);
# 654| if (unsigned (term_pipe[0]) >= limit)
# 655| limit = term_pipe[0] + 1;
Error: CPPCHECK_WARNING (CWE-476): [#def7]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:654: error[nullPointer]: Null pointer dereference: (int*)NULL
# 652| {
# 653| FD_SET (term_pipe[0], &readers);
# 654|-> if (unsigned (term_pipe[0]) >= limit)
# 655| limit = term_pipe[0] + 1;
# 656| }
Error: CPPCHECK_WARNING (CWE-476): [#def8]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:655: error[nullPointer]: Null pointer dereference: (int*)NULL
# 653| FD_SET (term_pipe[0], &readers);
# 654| if (unsigned (term_pipe[0]) >= limit)
# 655|-> limit = term_pipe[0] + 1;
# 656| }
# 657|
Error: CPPCHECK_WARNING (CWE-476): [#def9]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:686: error[nullPointer]: Null pointer dereference: (int*)NULL
# 684| event_count = select (limit, &readers, &writers, NULL, NULL);
# 685| #endif
# 686|-> if (term_pipe && FD_ISSET (term_pipe[0], &readers))
# 687| {
# 688| /* Fake up an interrupted system call. */
Error: CPPCHECK_WARNING (CWE-476): [#def10]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:826: error[nullPointer]: Null pointer dereference: (int*)NULL
# 824| close (epoll_fd);
# 825|
# 826|-> if (term_pipe && term_pipe[0] >= 0)
# 827| {
# 828| close (term_pipe[0]);
Error: CPPCHECK_WARNING (CWE-476): [#def11]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:828: error[nullPointer]: Null pointer dereference: (int*)NULL
# 826| if (term_pipe && term_pipe[0] >= 0)
# 827| {
# 828|-> close (term_pipe[0]);
# 829| close (term_pipe[1]);
# 830| }
Error: CPPCHECK_WARNING (CWE-476): [#def12]
gcc-14.1.1-build/gcc-14.1.1-20240701/c++tools/server.cc:829: error[nullPointer]: Null pointer dereference: (int*)NULL
# 827| {
# 828| close (term_pipe[0]);
# 829|-> close (term_pipe[1]);
# 830| }
# 831| }
Error: CPPCHECK_WARNING: [#def13]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/fixfixes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def14]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/fixfixes.c:166:10: warning[deadcode.DeadStores]: Although the value stored to 'text' is used in the enclosing expression, the value is never actually read from 'text'
# 164| }
# 165|
# 166|-> return text += rm[0].rm_eo;
# 167| }
# 168|
Error: CPPCHECK_WARNING: [#def15]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/fixincl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING: [#def16]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/fixincl.c: scope_hint: In function ‘internal_fix’
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/fixincl.c:859:3: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
# 857| * the new pipe become the stdout.
# 858| */
# 859|-> dup2 (fd[1], STDOUT_FILENO);
# 860| dup2 (read_fd, STDIN_FILENO);
# 861|
Error: GCC_ANALYZER_WARNING: [#def17]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/fixincl.c:860:3: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
# 858| */
# 859| dup2 (fd[1], STDOUT_FILENO);
# 860|-> dup2 (read_fd, STDIN_FILENO);
# 861|
# 862| apply_fix (p_fixd, pz_curr_file);
Error: CPPCHECK_WARNING: [#def18]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/fixopts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING: [#def19]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/procopen.c: scope_hint: In function ‘chain_open’
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/procopen.c:158:3: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
# 156| * the new pipe become the stdout.
# 157| */
# 158|-> dup2 (stdout_pair.write_fd, STDOUT_FILENO);
# 159| dup2 (stdin_fd, STDIN_FILENO);
# 160|
Error: GCC_ANALYZER_WARNING: [#def20]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/procopen.c:159:3: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘0’
# 157| */
# 158| dup2 (stdout_pair.write_fd, STDOUT_FILENO);
# 159|-> dup2 (stdin_fd, STDIN_FILENO);
# 160|
# 161| if (*pp_args == (char *) NULL)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/procopen.c: scope_hint: In function ‘proc2_open’
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/procopen.c:192:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*p_pair.read_fd’
# 190| return NOPROCESS;
# 191|
# 192|-> p_pair->read_fd = chain_open (p_pair->read_fd, pp_args, &ch_id);
# 193| if (ch_id == NOPROCESS)
# 194| close (p_pair->write_fd);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/procopen.c:192:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_pair.read_fd’
# 190| return NOPROCESS;
# 191|
# 192|-> p_pair->read_fd = chain_open (p_pair->read_fd, pp_args, &ch_id);
# 193| if (ch_id == NOPROCESS)
# 194| close (p_pair->write_fd);
Error: CPPCHECK_WARNING: [#def23]
gcc-14.1.1-build/gcc-14.1.1-20240701/fixincludes/server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ada/adadecode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ada/gcc-interface/cuintp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def26]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ada/gcc-interface/utils2.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/adjust-alignment.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def28]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/final.cc:48: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coretypes.h:492: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/align.h:33:16: warning[core.BitwiseShift]: Right operand is negative in left shift
# 31| void normalize ()
# 32| {
# 33|-> int n = (1 << log);
# 34| if (maxskip > n)
# 35| maxskip = n - 1;
Error: CPPCHECK_WARNING: [#def29]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/alloc-pool.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def30]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/access-diagram.cc:818:20: warning[cplusplus.Move]: Method called on moved-from object 't'
# 816| m_theme (theme),
# 817| m_col_widths (col_widths),
# 818|-> m_row_heights (t.get_size ().h),
# 819| m_cell_sizes (m_col_widths, m_row_heights),
# 820| m_tg (m_table, m_cell_sizes)
Error: CPPCHECK_WARNING: [#def31]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/analyzer-language.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/analyzer-logging.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/analyzer-pass.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/analyzer-selftests.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/analyzer.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/bar-chart.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def37]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/diagnostic-manager.cc:2256:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2254| const region_model *dst_model = dst_state.m_region_model;
# 2255| if (src_model->get_dynamic_extents ()
# 2256|-> != dst_model->get_dynamic_extents ())
# 2257| {
# 2258| unsigned i;
Error: CPPCHECK_WARNING: [#def38]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/function-set.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/kf-analyzer.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/kf-lang-cp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/kf.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/known-function-manager.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def43]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/program-state.cc:926:24: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 924| {
# 925| delete m_region_model;
# 926|-> m_region_model = new region_model (*other.m_region_model);
# 927|
# 928| int i;
Error: COMPILER_WARNING (CWE-134): [#def44]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/program-state.cc: scope_hint: In function ‘void ana::log_set_of_svalues(logger*, const char*, const svalue_set&)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/program-state.cc:1498:15: warning[-Wformat-security]: format not a string literal and no format arguments
# 1498 | logger->log (name);
# | ~~~~~~~~~~~~^~~~~~
# 1496| const svalue_set &set)
# 1497| {
# 1498|-> logger->log (name);
# 1499| logger->inc_indent ();
# 1500| auto_vec<const svalue *> sval_vecs (set.elements ());
Error: CPPCHECK_WARNING: [#def45]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/record-layout.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/sm-pattern-test.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def47]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/sm-sensitive.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def48]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/sm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def49]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/store.h:310:5: warning[-Wmaybe-uninitialized]: ‘size_in_bytes.generic_wide_int<fixed_wide_int_storage<128> >::fixed_wide_int_storage<128>.fixed_wide_int_storage<128>::val[1]’ may be used uninitialized
# 310 | m_size_in_bytes (size_in_bytes)
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/access-diagram.cc: scope_hint: In member function ‘virtual text_art::table ana::string_literal_spatial_item::make_table(const ana::bit_to_table_map&, text_art::style_manager&) const’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/access-diagram.cc:1811:28: note: ‘size_in_bytes.generic_wide_int<fixed_wide_int_storage<128> >::fixed_wide_int_storage<128>.fixed_wide_int_storage<128>::val[1]’ was declared here
# 1811 | byte_size_t size_in_bytes
# | ^~~~~~~~~~~~~
# 308| byte_range (byte_offset_t start_byte_offset, byte_size_t size_in_bytes)
# 309| : m_start_byte_offset (start_byte_offset),
# 310|-> m_size_in_bytes (size_in_bytes)
# 311| {}
# 312|
Error: CLANG_WARNING: [#def50]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/supergraph.cc:1389:10: warning[core.NullDereference]: Dereference of null pointer
# 1387| if (TREE_CODE (callee_expr) == SSA_NAME
# 1388| && SSA_NAME_IS_DEFAULT_DEF (callee_expr)
# 1389|-> && TREE_CODE (SSA_NAME_VAR (callee_expr)) == PARM_DECL)
# 1390| return get_arg_for_parm (SSA_NAME_VAR (callee_expr), out);
# 1391|
Error: CPPCHECK_WARNING: [#def51]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/symbol.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def52]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/attribs.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def53]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/auto-inc-dec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def54]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/auto-profile.cc:26: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/backend.h:32: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/basic-block.h:375:10: warning[core.NullDereference]: Dereference of null pointer (loaded from field 'container')
# 373| {
# 374| gcc_checking_assert (i.container);
# 375|-> return *i.container;
# 376| }
# 377|
Error: CPPCHECK_WARNING: [#def55]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/bb-reorder.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def56]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/bb-reorder.cc:2025:16: warning[deadcode.DeadStores]: Value stored to 'j' during its initialization is never read
# 2023| fallthrough edge, we need to restore it again.
# 2024| See PR108596. */
# 2025|-> rtx_insn *j = BB_END (cur_bb);
# 2026| gcc_checking_assert (JUMP_P (j)
# 2027| && (asm_noperands (PATTERN (j))
Error: CLANG_WARNING: [#def57]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/bb-reorder.cc:2190:17: warning[core.NullDereference]: Access to field 'code' results in a dereference of a null pointer (loaded from variable 'old_label')
# 2188| emit_label (new_label);
# 2189|
# 2190|-> gcc_assert (GET_CODE (old_label) == LABEL_REF);
# 2191| old_jump_target = old_jump_insn->jump_target ();
# 2192| new_jump = as_a <rtx_jump_insn *>
Error: CLANG_WARNING: [#def58]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/bb-reorder.cc:2311:31: warning[core.NullDereference]: Dereference of null pointer
# 2309| delete_insn (last_insn);
# 2310|
# 2311|-> JUMP_LABEL (jump_insn) = label;
# 2312| LABEL_NUSES (label)++;
# 2313|
Error: CPPCHECK_WARNING: [#def59]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/bitmap.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def60]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/bitmap.cc:542:19: warning[deadcode.DeadStores]: Value stored to 't' during its initialization is never read
# 540| bitmap_tree_unlink_element (bitmap head, bitmap_element *e)
# 541| {
# 542|-> bitmap_element *t = bitmap_tree_splay (head, head->first, e->indx);
# 543|
# 544| gcc_checking_assert (t == e);
Error: CLANG_WARNING: [#def61]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/bitmap.cc:605:3: warning[deadcode.DeadStores]: Value stored to 't' is never read
# 603| erb = e->next;
# 604| e->next = NULL;
# 605|-> t = bitmap_tree_splay (head, head->first, e->indx);
# 606| gcc_checking_assert (t == e);
# 607|
Error: CPPCHECK_WARNING: [#def62]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ada-spec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def63]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ada-spec.cc:1139:4: warning[deadcode.DeadStores]: Value stored to 'found' is never read
# 1137| s[len2++] = 'c';
# 1138| s[len2++] = '_';
# 1139|-> found = true;
# 1140| break;
# 1141| }
Error: CLANG_WARNING: [#def64]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ada-spec.cc:3259:28: warning[core.NullDereference]: Dereference of null pointer
# 3257| if (TREE_CODE (t) == TYPE_DECL)
# 3258| {
# 3259|-> const bool is_subtype = TYPE_NAME (orig);
# 3260|
# 3261| if (!is_subtype && TREE_CODE (TREE_TYPE (t)) == UNION_TYPE)
Error: COMPILER_WARNING (CWE-134): [#def65]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-common.cc: scope_hint: In function ‘void c_parse_error(const char*, cpp_ttype, tree, unsigned char, rich_location*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-common.cc:6764:14: warning[-Wformat-security]: format not a string literal and no format arguments
# 6764 | error_at (richloc, gmsgid);
# | ~~~~~~~~~^~~~~~~~~~~~~~~~~
# 6762| }
# 6763| else
# 6764|-> error_at (richloc, gmsgid);
# 6765|
# 6766| if (message)
Error: COMPILER_WARNING (CWE-134): [#def66]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-common.cc:6768:16: warning[-Wformat-security]: format not a string literal and no format arguments
# 6768 | error_at (richloc, message);
# | ~~~~~~~~~^~~~~~~~~~~~~~~~~~
# 6766| if (message)
# 6767| {
# 6768|-> error_at (richloc, message);
# 6769| free (message);
# 6770| }
Error: CPPCHECK_WARNING: [#def67]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-cppbuiltin.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def68]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-dump.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-format.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-indentation.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-lex.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def72]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-omp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-opts.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def74]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-pch.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ppoutput.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def76]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ppoutput.cc:284:4: warning[deadcode.DeadStores]: Value stored to 'line_marker_emitted' is never read
# 282| const char *name;
# 283|
# 284|-> line_marker_emitted = maybe_print_line (token->src_loc);
# 285| fputs ("#pragma ", print.outf);
# 286| c_pp_lookup_pragma (token->val.pragma, &space, &name);
Error: CLANG_WARNING: [#def77]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ppoutput.cc:316:4: warning[deadcode.DeadStores]: Value stored to 'line_marker_emitted' is never read
# 314| new system-ness before we emit the token. */
# 315| {
# 316|-> line_marker_emitted = do_line_change (pfile, token, loc, false);
# 317| }
# 318| if (!in_pragma || should_output_pragmas ())
Error: CPPCHECK_WARNING: [#def78]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-pretty-print.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-semantics.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def80]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-spellcheck.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def81]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ubsan.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def82]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ubsan.cc:49:8: warning[deadcode.DeadStores]: Value stored to 'top0' during its initialization is never read
# 47| because they are already converted to RESULT_TYPE.
# 48| Use TYPE_MAIN_VARIANT since typedefs can confuse us. */
# 49|-> tree top0 = TYPE_MAIN_VARIANT (type);
# 50| tree top1 = TYPE_MAIN_VARIANT (TREE_TYPE (op1));
# 51| gcc_checking_assert (lang_hooks.types_compatible_p (top0, top1));
Error: CLANG_WARNING: [#def83]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-ubsan.cc:50:8: warning[deadcode.DeadStores]: Value stored to 'top1' during its initialization is never read
# 48| Use TYPE_MAIN_VARIANT since typedefs can confuse us. */
# 49| tree top0 = TYPE_MAIN_VARIANT (type);
# 50|-> tree top1 = TYPE_MAIN_VARIANT (TREE_TYPE (op1));
# 51| gcc_checking_assert (lang_hooks.types_compatible_p (top0, top1));
# 52|
Error: CPPCHECK_WARNING: [#def84]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-warn.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def85]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/cppspec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def86]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/known-headers.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def87]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/stub-objc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def88]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-aux-info.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-convert.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def90]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-convert.cc: scope_hint: In function ‘tree_node* c_convert(tree, tree, bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-convert.cc:84:13: warning[-Wformat-security]: format not a string literal and no format arguments
# 84 | error (invalid_conv_diag);
# | ~~~~~~^~~~~~~~~~~~~~~~~~~
# 82| = targetm.invalid_conversion (TREE_TYPE (expr), type)))
# 83| {
# 84|-> error (invalid_conv_diag);
# 85| return error_mark_node;
# 86| }
Error: CPPCHECK_WARNING: [#def91]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-errors.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def92]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-fold.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-lang.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-objc-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def96]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: scope_hint: In function ‘int convert_arguments(location_t, vec<unsigned int>, tree, vec<tree_node*, va_gc>*, vec<tree_node*, va_gc>*, tree, tree)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc:3880:17: warning[-Wformat-security]: format not a string literal and no format arguments
# 3880 | error (invalid_func_diag);
# | ~~~~~~^~~~~~~~~~~~~~~~~~~
# 3878| targetm.calls.invalid_arg_for_unprototyped_fn (typelist, fundecl, val)))
# 3879| {
# 3880|-> error (invalid_func_diag);
# 3881| return -1;
# 3882| }
Error: COMPILER_WARNING (CWE-134): [#def97]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: scope_hint: In function ‘tree_node* build_unary_op(location_t, tree_code, tree, bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc:4650:16: warning[-Wformat-security]: format not a string literal and no format arguments
# 4650 | error_at (location, invalid_op_diag);
# | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 4648| = targetm.invalid_unary_op (code, TREE_TYPE (xarg))))
# 4649| {
# 4650|-> error_at (location, invalid_op_diag);
# 4651| return error_mark_node;
# 4652| }
Error: COMPILER_WARNING (CWE-134): [#def98]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: scope_hint: In function ‘void warning_init(location_t, int, const char*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc:6915:23: warning[-Wformat-security]: format not a string literal and no format arguments
# 6915 | warned = warning_at (exploc, opt, gmsgid);
# | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
# 6913|
# 6914| /* The gmsgid may be a format string with %< and %>. */
# 6915|-> warned = warning_at (exploc, opt, gmsgid);
# 6916| ofwhat = print_spelling ((char *) alloca (spelling_length () + 1));
# 6917| if (*ofwhat && warned)
Error: COMPILER_WARNING (CWE-134): [#def99]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc: scope_hint: In function ‘tree_node* build_binary_op(location_t, tree_code, tree, tree, bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/c-typeck.cc:12455:16: warning[-Wformat-security]: format not a string literal and no format arguments
#12455 | error_at (location, invalid_op_diag);
# | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
#12453| = targetm.invalid_binary_op (code, type0, type1)))
#12454| {
#12455|-> error_at (location, invalid_op_diag);
#12456| return error_mark_node;
#12457| }
Error: CPPCHECK_WARNING: [#def100]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/gccspec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def101]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/gimple-parser.cc:617:12: warning[core.NullDereference]: Access to field 'index' results in a dereference of a null pointer (loaded from field 'current_bb')
# 615| last_basic_block_for_fn (cfun) = index + 1;
# 616| n_basic_blocks_for_fn (cfun)++;
# 617|-> if (parser.current_bb->index == ENTRY_BLOCK)
# 618| parser.push_edge (ENTRY_BLOCK, bb->index, EDGE_FALLTHRU,
# 619| profile_probability::always ());
Error: CLANG_WARNING: [#def102]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/gimple-parser.cc:735:10: warning[core.NullDereference]: Dereference of null pointer
# 733| /* GIMPLE call statement without LHS. */
# 734| if (c_parser_next_token_is (parser, CPP_SEMICOLON)
# 735|-> && TREE_CODE (lhs.value) == CALL_EXPR)
# 736| {
# 737| gimple *call;
Error: CLANG_WARNING: [#def103]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/gimple-parser.cc:884:12: warning[core.NullDereference]: Dereference of null pointer
# 882| /* If we parsed a comparison or an identifier and the next token
# 883| is a '?' then parse a conditional expression. */
# 884|-> if ((COMPARISON_CLASS_P (rhs.value)
# 885| || SSA_VAR_P (rhs.value))
# 886| && c_parser_next_token_is (parser, CPP_QUERY))
Error: CLANG_WARNING: [#def104]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c/gimple-parser.cc:2254:12: warning[core.NullDereference]: Dereference of null pointer
# 2252| = c_parser_gimple_binary_expression (parser, boolean_type_node).value;
# 2253| if (cond != error_mark_node
# 2254|-> && ! COMPARISON_CLASS_P (cond)
# 2255| && ! CONSTANT_CLASS_P (cond)
# 2256| && ! SSA_VAR_P (cond))
Error: CPPCHECK_WARNING: [#def105]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/caller-save.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def106]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/caller-save.cc:1205:25: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 1203|
# 1204| mem = regno_save_mem [regno][numregs];
# 1205|-> if (save_mode [regno] != VOIDmode
# 1206| && save_mode [regno] != GET_MODE (mem)
# 1207| && numregs == hard_regno_nregs (regno, save_mode [regno])
Error: CLANG_WARNING: [#def107]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/calls.cc:529:7: warning[deadcode.DeadStores]: Value stored to 'rounded_stack_size_rtx' is never read
# 527| CALL_INSN_FUNCTION_USAGE (call_insn));
# 528| rounded_stack_size -= n_popped;
# 529|-> rounded_stack_size_rtx = gen_int_mode (rounded_stack_size, Pmode);
# 530| stack_pointer_delta -= n_popped;
# 531|
Error: CLANG_WARNING: [#def108]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/calls.cc:2451:15: warning[core.NullDereference]: Access to field 'code' results in a dereference of a null pointer (loaded from variable 'value')
# 2449| shift_return_value (machine_mode mode, bool left_p, rtx value)
# 2450| {
# 2451|-> gcc_assert (REG_P (value) && HARD_REGISTER_P (value));
# 2452| machine_mode value_mode = GET_MODE (value);
# 2453| poly_int64 shift = GET_MODE_BITSIZE (value_mode) - GET_MODE_BITSIZE (mode);
Error: CLANG_WARNING: [#def109]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ccmp.cc:252:18: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 250| if (cost2 < cost1)
# 251| {
# 252|-> *prep_seq = prep_seq_2;
# 253| *gen_seq = gen_seq_2;
# 254| return ret2;
Error: CPPCHECK_WARNING: [#def110]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def111]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfganal.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def112]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgbuild.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def113]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgcleanup.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def114]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfghooks.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def115]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfghooks.cc:955:11: warning[core.NullDereference]: Access to field 'header' results in a dereference of a null pointer (loaded from variable 'loop')
# 953| loop analysis). */
# 954| loop = dummy->loop_father;
# 955|-> if (loop->header == dummy
# 956| && loop->latch != NULL
# 957| && find_edge (loop->latch, dummy) == NULL)
Error: CLANG_WARNING: [#def116]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfghooks.cc:1419:7: warning[deadcode.DeadStores]: Value stored to 'bb' is never read
# 1417| edge_iterator ei;
# 1418| new_bb = new_bbs[i];
# 1419|-> bb = bbs[i];
# 1420|
# 1421| FOR_EACH_EDGE (e, ei, new_bb->succs)
Error: CPPCHECK_WARNING (CWE-476): [#def117]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgloop.h:540: error[ctunullpointer]: Null pointer dereference: loop
# 538| loop_depth (const class loop *loop)
# 539| {
# 540|-> return vec_safe_length (loop->superloops);
# 541| }
# 542|
Error: CPPCHECK_WARNING (CWE-476): [#def118]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgloop.h:540: warning[nullPointer]: Possible null pointer dereference: loop
# 538| loop_depth (const class loop *loop)
# 539| {
# 540|-> return vec_safe_length (loop->superloops);
# 541| }
# 542|
Error: CPPCHECK_WARNING: [#def119]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgloopanal.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def120]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgloopanal.cc:252:2: warning[deadcode.DeadStores]: Value stored to 'found_latch' is never read
# 250| count_in += e->count ();
# 251| else
# 252|-> found_latch = true;
# 253| else
# 254| FOR_EACH_EDGE (e, ei, loop->header->preds)
Error: CLANG_WARNING: [#def121]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgloopanal.cc:258:2: warning[deadcode.DeadStores]: Value stored to 'found_latch' is never read
# 256| count_in += e->count ();
# 257| else
# 258|-> found_latch = true;
# 259| gcc_checking_assert (found_latch);
# 260| return count_in;
Error: CPPCHECK_WARNING: [#def122]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgloopmanip.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def123]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfgrtl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def124]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect-utils.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def125]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect-utils.cc: scope_hint: In function ‘pex_obj* collect_execute(const char*, char**, const char*, const char*, int, bool, const char*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect-utils.cc:237:21: warning[-Wformat-security]: format not a string literal and no format arguments
# 237 | fatal_error (input_location, errmsg);
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
# 235| }
# 236| else
# 237|-> fatal_error (input_location, errmsg);
# 238| }
# 239|
Error: CPPCHECK_WARNING: [#def126]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect2-aix.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def127]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect2.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def128]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect2.cc:2053:3: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 2051| /* q points to null at end of the string (or . of the .so version) */
# 2052| prefix = XNEWVEC (char, q - p + 1);
# 2053|-> strncpy (prefix, p, q - p);
# 2054| prefix[q - p] = 0;
# 2055| for (r = prefix; *r; r++)
Error: COMPILER_WARNING (CWE-134): [#def129]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect2.cc: scope_hint: In function ‘void scan_prog_file(const char*, scanpass, scanfilter)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/collect2.cc:2401:21: warning[-Wformat-security]: format not a string literal and no format arguments
# 2401 | fatal_error (input_location, errmsg);
# | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
# 2399| }
# 2400| else
# 2401|-> fatal_error (input_location, errmsg);
# 2402| }
# 2403|
Error: CPPCHECK_WARNING: [#def130]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/combine-stack-adj.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def131]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/common/common-targhooks.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def132]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/common/config/i386/i386-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def133]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/common/config/nvptx/nvptx-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def134]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/compare-elim.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def135]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/compare-elim.cc:509:13: warning[deadcode.DeadStores]: Value stored to 'n' during its initialization is never read
# 507| {
# 508| machine_mode sel_mode;
# 509|-> const int n = cmp->n_uses;
# 510| rtx flags = NULL;
# 511|
Error: CPPCHECK_WARNING: [#def136]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/default-c.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def137]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-run.cc: scope_hint: In function ‘main’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-run.cc:684:13: warning[-Wpedantic]: a member of a structure or union cannot have a variably modified type
# 684 | int64_t argv_data[kernel_argc];
# | ^~~~~~~~~
# 682| struct argdata
# 683| {
# 684|-> int64_t argv_data[kernel_argc];
# 685| char strings[args_size];
# 686| } *args = device_malloc (sizeof (struct argdata), kernargs_region);
Error: COMPILER_WARNING: [#def138]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-run.cc:685:10: warning[-Wpedantic]: a member of a structure or union cannot have a variably modified type
# 685 | char strings[args_size];
# | ^~~~~~~
# 683| {
# 684| int64_t argv_data[kernel_argc];
# 685|-> char strings[args_size];
# 686| } *args = device_malloc (sizeof (struct argdata), kernargs_region);
# 687|
Error: COMPILER_WARNING (CWE-674): [#def139]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-valu.md: scope_hint: In function ‘rtx_def* gen_vec_cmpuv2hidi_exec(rtx, rtx, rtx, rtx, rtx)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-valu.md:3801:1: warning[-Winfinite-recursion]: infinite recursion detected
# 3801 | [(match_operand:DI 0 "register_operand")
# | ^ ~~~~~~~~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-valu.md:3811:15: note: recursive call
# 3811 | emit_insn (gen_vec_cmpu<mode>di_exec (operands[0], operands[1],
# | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3812 | operands[2], operands[3],
# | ~~~~~~~~~~~~~~~~~~~~~~~~~
# 3813 | operands[4]));
# | ~~~~~~~~~~~~~
# 3799|
# 3800| (define_expand "vec_cmpu<mode>di_exec"
# 3801|-> [(match_operand:DI 0 "register_operand")
# 3802| (match_operator 1 "gcn_compare_operator"
# 3803| [(match_operand:V_INT_noQI 2 "gcn_alu_operand")
Error: COMPILER_WARNING (CWE-674): [#def140]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-valu.md: scope_hint: In function ‘rtx_def* gen_vec_cmpuv2sidi_exec(rtx, rtx, rtx, rtx, rtx)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-valu.md:3841:8: warning[-Winfinite-recursion]: infinite recursion detected
# 3841 | (match_operand:<SCALAR_MODE> 2 "gcn_alu_operand"
# | ^ ~~~~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-valu.md:3811:15: note: recursive call
# 3811 | emit_insn (gen_vec_cmpu<mode>di_exec (operands[0], operands[1],
# | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3812 | operands[2], operands[3],
# | ~~~~~~~~~~~~~~~~~~~~~~~~~
# 3813 | operands[4]));
# | ~~~~~~~~~~~~~
# 3839| (match_operator:DI 1 "gcn_fp_compare_operator"
# 3840| [(vec_duplicate:V_noQI
# 3841|-> (match_operand:<SCALAR_MODE> 2 "gcn_alu_operand"
# 3842| " Sv, B,Sv,B, A,Sv,B"))
# 3843| (match_operand:V_noQI 3 "gcn_vop3_operand" " v, v, v,v, v, v,v")]))
Error: COMPILER_WARNING (CWE-134): [#def141]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn.cc:7801:19: warning[-Wformat-security]: format not a string literal and no format arguments
# 7801 | fprintf (file, str);
# | ~~~~~~~~^~~~~~~~~~~
# 7799| break;
# 7800| }
# 7801|-> fprintf (file, str);
# 7802| return;
# 7803| }
Error: COMPILER_WARNING (CWE-569): [#def142]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/tm.h:23: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/backend.h:28: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn.cc:25: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn.cc: scope_hint: In function ‘bool gcn_hard_regno_mode_ok(unsigned int, machine_mode)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn.h:204:38: warning[-Wtype-limits]: comparison of unsigned expression in ‘>= 0’ is always true
# 204 | #define SGPR_REGNO_P(N) ((N) >= FIRST_SGPR_REG && (N) <= LAST_SGPR_REG)
# | ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn.cc:623:7: note: in expansion of macro ‘SGPR_REGNO_P’
# 623 | if (SGPR_REGNO_P (regno))
# | ^~~~~~~~~~~~
# 202| #define HARD_FRAME_POINTER_IS_FRAME_POINTER 0
# 203|
# 204|-> #define SGPR_REGNO_P(N) ((N) >= FIRST_SGPR_REG && (N) <= LAST_SGPR_REG)
# 205| #define VGPR_REGNO_P(N) ((N) >= FIRST_VGPR_REG && (N) <= LAST_VGPR_REG)
# 206| #define AVGPR_REGNO_P(N) ((N) >= FIRST_AVGPR_REG && (N) <= LAST_AVGPR_REG)
Error: CPPCHECK_WARNING: [#def143]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def144]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:233:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 231| unsigned num = 1, i;
# 232|
# 233|-> curval = strchr (str, ':');
# 234| while (curval)
# 235| {
Error: COMPILER_WARNING: [#def145]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc: scope_hint: In function ‘void process_asm(FILE*, FILE*, FILE*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:527:30: warning[-Wformat=]: ISO C++11 does not support the 'm' scanf flag
# 527 | if (sscanf (buf, " ;; OPENACC-DIMS: %d, %d, %d : %ms\n",
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 525| case IN_CODE:
# 526| {
# 527|-> if (sscanf (buf, " ;; OPENACC-DIMS: %d, %d, %d : %ms\n",
# 528| &dim.d[0], &dim.d[1], &dim.d[2], &dim.name) == 4)
# 529| {
Error: COMPILER_WARNING: [#def146]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:538:30: warning[-Wformat=]: ISO C++11 does not support the 'm' scanf flag
# 538 | if (sscanf (buf, " - .name: %ms\n", ®count.kernel_name) == 1)
# | ^~~~~~~~~~~~~~~~~
# 536| case IN_METADATA:
# 537| {
# 538|-> if (sscanf (buf, " - .name: %ms\n", ®count.kernel_name) == 1)
# 539| break;
# 540| else if (sscanf (buf, " .sgpr_count: %d\n",
Error: COMPILER_WARNING: [#def147]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:559:30: warning[-Wformat=]: ISO C++11 does not support the 'm' scanf flag
# 559 | if (sscanf (buf, " .8byte %ms\n", &varname))
# | ^~~~~~~~~~~~~~~
# 557| char *varname;
# 558| unsigned varsize;
# 559|-> if (sscanf (buf, " .8byte %ms\n", &varname))
# 560| {
# 561| fputs (buf, out);
Error: COMPILER_WARNING: [#def148]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:572:30: warning[-Wformat=]: ISO C++11 does not support the 'm' scanf flag
# 572 | if (sscanf (buf, "\t.8byte\t%ms\n", &funcname))
# | ^~~~~~~~~~~~~~~~~
# 570| {
# 571| char *funcname;
# 572|-> if (sscanf (buf, "\t.8byte\t%ms\n", &funcname))
# 573| {
# 574| fputs (buf, out);
Error: COMPILER_WARNING: [#def149]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:584:30: warning[-Wformat=]: ISO C++11 does not support the 'm' scanf flag
# 584 | if (sscanf (buf, "\t.8byte\t%ms\n", &funcname))
# | ^~~~~~~~~~~~~~~~~
# 582| {
# 583| char *funcname;
# 584|-> if (sscanf (buf, "\t.8byte\t%ms\n", &funcname))
# 585| {
# 586| fputs (buf, out);
Error: CLANG_WARNING: [#def150]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:914:9: warning[deadcode.DeadStores]: Value stored to 'in' during its initialization is never read
# 912| main (int argc, char **argv)
# 913| {
# 914|-> FILE *in = stdin;
# 915| FILE *out = stdout;
# 916| FILE *cfile = stdout;
Error: CLANG_WARNING: [#def151]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:915:9: warning[deadcode.DeadStores]: Value stored to 'out' during its initialization is never read
# 913| {
# 914| FILE *in = stdin;
# 915|-> FILE *out = stdout;
# 916| FILE *cfile = stdout;
# 917| const char *outname = 0;
Error: CLANG_WARNING: [#def152]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:916:9: warning[deadcode.DeadStores]: Value stored to 'cfile' during its initialization is never read
# 914| FILE *in = stdin;
# 915| FILE *out = stdout;
# 916|-> FILE *cfile = stdout;
# 917| const char *outname = 0;
# 918| const char *with_arch_str = NULL;
Error: COMPILER_WARNING: [#def153]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc: scope_hint: In function ‘int main(int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:1211:40: warning[-Wformat-overflow=]: ‘sprintf’ may write a terminating nul past the end of the destination
# 1211 | sprintf (buf, "%d", dbgcount++);
# | ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:1211:31: note: ‘sprintf’ output between 2 and 11 bytes into a destination of size 10
# 1211 | sprintf (buf, "%d", dbgcount++);
# | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
# 1209| {
# 1210| char buf[10];
# 1211|-> sprintf (buf, "%d", dbgcount++);
# 1212| dbgobj = concat (dumppfx, ".mkoffload.dbg", buf, ".o", NULL);
# 1213| }
Error: COMPILER_WARNING: [#def154]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc: scope_hint: In function ‘int main(int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:1290:51: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
# 1290 | fatal_error (input_location, "cannot open omp_requires file %qs",
# | ^~~~~~~~~~~~
# 1288| in = fopen (omp_requires_file, "rb");
# 1289| if (!in)
# 1290|-> fatal_error (input_location, "cannot open omp_requires file %qs",
# 1291| omp_requires_file);
# 1292| uint32_t omp_requires;
Error: COMPILER_WARNING: [#def155]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:1294:51: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
# 1294 | fatal_error (input_location, "cannot read omp_requires file %qs",
# | ^~~~~~~~~~~~
# 1292| uint32_t omp_requires;
# 1293| if (fread (&omp_requires, sizeof (omp_requires), 1, in) != 1)
# 1294|-> fatal_error (input_location, "cannot read omp_requires file %qs",
# 1295| omp_requires_file);
# 1296| fclose (in);
Error: COMPILER_WARNING: [#def156]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:1300:68: warning[-Wformat-diag]: unquoted keyword ‘asm’ in format
# 1300 | fatal_error (input_location, "cannot open intermediate gcn asm file");
# | ^~~
# 1298| in = fopen (gcn_s1_name, "r");
# 1299| if (!in)
# 1300|-> fatal_error (input_location, "cannot open intermediate gcn asm file");
# 1301|
# 1302| out = fopen (gcn_s2_name, "w");
Error: CPPCHECK_WARNING: [#def157]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/glibc-c.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def158]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/host-linux.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def159]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/driver-i386.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def160]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/gnu-property.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def161]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-d.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def162]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:84: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 82| DEF_PTA(AVX512VPOPCNTDQ)
# 83| DEF_PTA(SGX)
# 84|-> DEF_PTA(AVX512VNNI)
# 85| DEF_PTA(GFNI)
# 86| DEF_PTA(VAES)
Error: CPPCHECK_WARNING (CWE-758): [#def163]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:85: error[shiftTooManyBits]: Shifting 64-bit value by 65 bits is undefined behaviour
# 83| DEF_PTA(SGX)
# 84| DEF_PTA(AVX512VNNI)
# 85|-> DEF_PTA(GFNI)
# 86| DEF_PTA(VAES)
# 87| DEF_PTA(AVX512VBMI2)
Error: CPPCHECK_WARNING (CWE-758): [#def164]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:86: error[shiftTooManyBits]: Shifting 64-bit value by 66 bits is undefined behaviour
# 84| DEF_PTA(AVX512VNNI)
# 85| DEF_PTA(GFNI)
# 86|-> DEF_PTA(VAES)
# 87| DEF_PTA(AVX512VBMI2)
# 88| DEF_PTA(VPCLMULQDQ)
Error: CPPCHECK_WARNING (CWE-758): [#def165]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:87: error[shiftTooManyBits]: Shifting 64-bit value by 67 bits is undefined behaviour
# 85| DEF_PTA(GFNI)
# 86| DEF_PTA(VAES)
# 87|-> DEF_PTA(AVX512VBMI2)
# 88| DEF_PTA(VPCLMULQDQ)
# 89| DEF_PTA(AVX512BITALG)
Error: CPPCHECK_WARNING (CWE-758): [#def166]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:88: error[shiftTooManyBits]: Shifting 64-bit value by 68 bits is undefined behaviour
# 86| DEF_PTA(VAES)
# 87| DEF_PTA(AVX512VBMI2)
# 88|-> DEF_PTA(VPCLMULQDQ)
# 89| DEF_PTA(AVX512BITALG)
# 90| DEF_PTA(RDPID)
Error: CPPCHECK_WARNING (CWE-758): [#def167]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:89: error[shiftTooManyBits]: Shifting 64-bit value by 69 bits is undefined behaviour
# 87| DEF_PTA(AVX512VBMI2)
# 88| DEF_PTA(VPCLMULQDQ)
# 89|-> DEF_PTA(AVX512BITALG)
# 90| DEF_PTA(RDPID)
# 91| DEF_PTA(PCONFIG)
Error: CPPCHECK_WARNING (CWE-758): [#def168]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:90: error[shiftTooManyBits]: Shifting 64-bit value by 70 bits is undefined behaviour
# 88| DEF_PTA(VPCLMULQDQ)
# 89| DEF_PTA(AVX512BITALG)
# 90|-> DEF_PTA(RDPID)
# 91| DEF_PTA(PCONFIG)
# 92| DEF_PTA(WBNOINVD)
Error: CPPCHECK_WARNING (CWE-758): [#def169]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:91: error[shiftTooManyBits]: Shifting 64-bit value by 71 bits is undefined behaviour
# 89| DEF_PTA(AVX512BITALG)
# 90| DEF_PTA(RDPID)
# 91|-> DEF_PTA(PCONFIG)
# 92| DEF_PTA(WBNOINVD)
# 93| DEF_PTA(AVX512VP2INTERSECT)
Error: CPPCHECK_WARNING (CWE-758): [#def170]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:92: error[shiftTooManyBits]: Shifting 64-bit value by 72 bits is undefined behaviour
# 90| DEF_PTA(RDPID)
# 91| DEF_PTA(PCONFIG)
# 92|-> DEF_PTA(WBNOINVD)
# 93| DEF_PTA(AVX512VP2INTERSECT)
# 94| DEF_PTA(PTWRITE)
Error: CPPCHECK_WARNING (CWE-758): [#def171]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:93: error[shiftTooManyBits]: Shifting 64-bit value by 73 bits is undefined behaviour
# 91| DEF_PTA(PCONFIG)
# 92| DEF_PTA(WBNOINVD)
# 93|-> DEF_PTA(AVX512VP2INTERSECT)
# 94| DEF_PTA(PTWRITE)
# 95| DEF_PTA(AVX512BF16)
Error: CPPCHECK_WARNING (CWE-758): [#def172]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:94: error[shiftTooManyBits]: Shifting 64-bit value by 74 bits is undefined behaviour
# 92| DEF_PTA(WBNOINVD)
# 93| DEF_PTA(AVX512VP2INTERSECT)
# 94|-> DEF_PTA(PTWRITE)
# 95| DEF_PTA(AVX512BF16)
# 96| DEF_PTA(WAITPKG)
Error: CPPCHECK_WARNING (CWE-758): [#def173]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:95: error[shiftTooManyBits]: Shifting 64-bit value by 75 bits is undefined behaviour
# 93| DEF_PTA(AVX512VP2INTERSECT)
# 94| DEF_PTA(PTWRITE)
# 95|-> DEF_PTA(AVX512BF16)
# 96| DEF_PTA(WAITPKG)
# 97| DEF_PTA(MOVDIRI)
Error: CPPCHECK_WARNING (CWE-758): [#def174]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:96: error[shiftTooManyBits]: Shifting 64-bit value by 76 bits is undefined behaviour
# 94| DEF_PTA(PTWRITE)
# 95| DEF_PTA(AVX512BF16)
# 96|-> DEF_PTA(WAITPKG)
# 97| DEF_PTA(MOVDIRI)
# 98| DEF_PTA(MOVDIR64B)
Error: CPPCHECK_WARNING (CWE-758): [#def175]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:97: error[shiftTooManyBits]: Shifting 64-bit value by 77 bits is undefined behaviour
# 95| DEF_PTA(AVX512BF16)
# 96| DEF_PTA(WAITPKG)
# 97|-> DEF_PTA(MOVDIRI)
# 98| DEF_PTA(MOVDIR64B)
# 99| DEF_PTA(ENQCMD)
Error: CPPCHECK_WARNING (CWE-758): [#def176]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:98: error[shiftTooManyBits]: Shifting 64-bit value by 78 bits is undefined behaviour
# 96| DEF_PTA(WAITPKG)
# 97| DEF_PTA(MOVDIRI)
# 98|-> DEF_PTA(MOVDIR64B)
# 99| DEF_PTA(ENQCMD)
# 100| DEF_PTA(CLDEMOTE)
Error: CPPCHECK_WARNING (CWE-758): [#def177]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:99: error[shiftTooManyBits]: Shifting 64-bit value by 79 bits is undefined behaviour
# 97| DEF_PTA(MOVDIRI)
# 98| DEF_PTA(MOVDIR64B)
# 99|-> DEF_PTA(ENQCMD)
# 100| DEF_PTA(CLDEMOTE)
# 101| DEF_PTA(SERIALIZE)
Error: CPPCHECK_WARNING (CWE-758): [#def178]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:100: error[shiftTooManyBits]: Shifting 64-bit value by 80 bits is undefined behaviour
# 98| DEF_PTA(MOVDIR64B)
# 99| DEF_PTA(ENQCMD)
# 100|-> DEF_PTA(CLDEMOTE)
# 101| DEF_PTA(SERIALIZE)
# 102| DEF_PTA(TSXLDTRK)
Error: CPPCHECK_WARNING (CWE-758): [#def179]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:101: error[shiftTooManyBits]: Shifting 64-bit value by 81 bits is undefined behaviour
# 99| DEF_PTA(ENQCMD)
# 100| DEF_PTA(CLDEMOTE)
# 101|-> DEF_PTA(SERIALIZE)
# 102| DEF_PTA(TSXLDTRK)
# 103| DEF_PTA(AMX_TILE)
Error: CPPCHECK_WARNING (CWE-758): [#def180]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:102: error[shiftTooManyBits]: Shifting 64-bit value by 82 bits is undefined behaviour
# 100| DEF_PTA(CLDEMOTE)
# 101| DEF_PTA(SERIALIZE)
# 102|-> DEF_PTA(TSXLDTRK)
# 103| DEF_PTA(AMX_TILE)
# 104| DEF_PTA(AMX_INT8)
Error: CPPCHECK_WARNING (CWE-758): [#def181]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:103: error[shiftTooManyBits]: Shifting 64-bit value by 83 bits is undefined behaviour
# 101| DEF_PTA(SERIALIZE)
# 102| DEF_PTA(TSXLDTRK)
# 103|-> DEF_PTA(AMX_TILE)
# 104| DEF_PTA(AMX_INT8)
# 105| DEF_PTA(AMX_BF16)
Error: CPPCHECK_WARNING (CWE-758): [#def182]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:104: error[shiftTooManyBits]: Shifting 64-bit value by 84 bits is undefined behaviour
# 102| DEF_PTA(TSXLDTRK)
# 103| DEF_PTA(AMX_TILE)
# 104|-> DEF_PTA(AMX_INT8)
# 105| DEF_PTA(AMX_BF16)
# 106| DEF_PTA(UINTR)
Error: CPPCHECK_WARNING (CWE-758): [#def183]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:105: error[shiftTooManyBits]: Shifting 64-bit value by 85 bits is undefined behaviour
# 103| DEF_PTA(AMX_TILE)
# 104| DEF_PTA(AMX_INT8)
# 105|-> DEF_PTA(AMX_BF16)
# 106| DEF_PTA(UINTR)
# 107| DEF_PTA(HRESET)
Error: CPPCHECK_WARNING (CWE-758): [#def184]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:106: error[shiftTooManyBits]: Shifting 64-bit value by 86 bits is undefined behaviour
# 104| DEF_PTA(AMX_INT8)
# 105| DEF_PTA(AMX_BF16)
# 106|-> DEF_PTA(UINTR)
# 107| DEF_PTA(HRESET)
# 108| DEF_PTA(KL)
Error: CPPCHECK_WARNING (CWE-758): [#def185]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:107: error[shiftTooManyBits]: Shifting 64-bit value by 87 bits is undefined behaviour
# 105| DEF_PTA(AMX_BF16)
# 106| DEF_PTA(UINTR)
# 107|-> DEF_PTA(HRESET)
# 108| DEF_PTA(KL)
# 109| DEF_PTA(WIDEKL)
Error: CPPCHECK_WARNING (CWE-758): [#def186]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:108: error[shiftTooManyBits]: Shifting 64-bit value by 88 bits is undefined behaviour
# 106| DEF_PTA(UINTR)
# 107| DEF_PTA(HRESET)
# 108|-> DEF_PTA(KL)
# 109| DEF_PTA(WIDEKL)
# 110| DEF_PTA(AVXVNNI)
Error: CPPCHECK_WARNING (CWE-758): [#def187]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:109: error[shiftTooManyBits]: Shifting 64-bit value by 89 bits is undefined behaviour
# 107| DEF_PTA(HRESET)
# 108| DEF_PTA(KL)
# 109|-> DEF_PTA(WIDEKL)
# 110| DEF_PTA(AVXVNNI)
# 111| DEF_PTA(AVX512FP16)
Error: CPPCHECK_WARNING (CWE-758): [#def188]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:110: error[shiftTooManyBits]: Shifting 64-bit value by 90 bits is undefined behaviour
# 108| DEF_PTA(KL)
# 109| DEF_PTA(WIDEKL)
# 110|-> DEF_PTA(AVXVNNI)
# 111| DEF_PTA(AVX512FP16)
# 112| DEF_PTA(AVXIFMA)
Error: CPPCHECK_WARNING (CWE-758): [#def189]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:111: error[shiftTooManyBits]: Shifting 64-bit value by 91 bits is undefined behaviour
# 109| DEF_PTA(WIDEKL)
# 110| DEF_PTA(AVXVNNI)
# 111|-> DEF_PTA(AVX512FP16)
# 112| DEF_PTA(AVXIFMA)
# 113| DEF_PTA(AVXVNNIINT8)
Error: CPPCHECK_WARNING (CWE-758): [#def190]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:112: error[shiftTooManyBits]: Shifting 64-bit value by 92 bits is undefined behaviour
# 110| DEF_PTA(AVXVNNI)
# 111| DEF_PTA(AVX512FP16)
# 112|-> DEF_PTA(AVXIFMA)
# 113| DEF_PTA(AVXVNNIINT8)
# 114| DEF_PTA(AVXNECONVERT)
Error: CPPCHECK_WARNING (CWE-758): [#def191]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:113: error[shiftTooManyBits]: Shifting 64-bit value by 93 bits is undefined behaviour
# 111| DEF_PTA(AVX512FP16)
# 112| DEF_PTA(AVXIFMA)
# 113|-> DEF_PTA(AVXVNNIINT8)
# 114| DEF_PTA(AVXNECONVERT)
# 115| DEF_PTA(CMPCCXADD)
Error: CPPCHECK_WARNING (CWE-758): [#def192]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:114: error[shiftTooManyBits]: Shifting 64-bit value by 94 bits is undefined behaviour
# 112| DEF_PTA(AVXIFMA)
# 113| DEF_PTA(AVXVNNIINT8)
# 114|-> DEF_PTA(AVXNECONVERT)
# 115| DEF_PTA(CMPCCXADD)
# 116| DEF_PTA(AMX_FP16)
Error: CPPCHECK_WARNING (CWE-758): [#def193]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:115: error[shiftTooManyBits]: Shifting 64-bit value by 95 bits is undefined behaviour
# 113| DEF_PTA(AVXVNNIINT8)
# 114| DEF_PTA(AVXNECONVERT)
# 115|-> DEF_PTA(CMPCCXADD)
# 116| DEF_PTA(AMX_FP16)
# 117| DEF_PTA(PREFETCHI)
Error: CPPCHECK_WARNING (CWE-758): [#def194]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:116: error[shiftTooManyBits]: Shifting 64-bit value by 96 bits is undefined behaviour
# 114| DEF_PTA(AVXNECONVERT)
# 115| DEF_PTA(CMPCCXADD)
# 116|-> DEF_PTA(AMX_FP16)
# 117| DEF_PTA(PREFETCHI)
# 118| DEF_PTA(RAOINT)
Error: CPPCHECK_WARNING (CWE-758): [#def195]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:117: error[shiftTooManyBits]: Shifting 64-bit value by 97 bits is undefined behaviour
# 115| DEF_PTA(CMPCCXADD)
# 116| DEF_PTA(AMX_FP16)
# 117|-> DEF_PTA(PREFETCHI)
# 118| DEF_PTA(RAOINT)
# 119| DEF_PTA(AMX_COMPLEX)
Error: CPPCHECK_WARNING (CWE-758): [#def196]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:118: error[shiftTooManyBits]: Shifting 64-bit value by 98 bits is undefined behaviour
# 116| DEF_PTA(AMX_FP16)
# 117| DEF_PTA(PREFETCHI)
# 118|-> DEF_PTA(RAOINT)
# 119| DEF_PTA(AMX_COMPLEX)
# 120| DEF_PTA(AVXVNNIINT16)
Error: CPPCHECK_WARNING (CWE-758): [#def197]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:119: error[shiftTooManyBits]: Shifting 64-bit value by 99 bits is undefined behaviour
# 117| DEF_PTA(PREFETCHI)
# 118| DEF_PTA(RAOINT)
# 119|-> DEF_PTA(AMX_COMPLEX)
# 120| DEF_PTA(AVXVNNIINT16)
# 121| DEF_PTA(SM3)
Error: CPPCHECK_WARNING (CWE-758): [#def198]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:120: error[shiftTooManyBits]: Shifting 64-bit value by 100 bits is undefined behaviour
# 118| DEF_PTA(RAOINT)
# 119| DEF_PTA(AMX_COMPLEX)
# 120|-> DEF_PTA(AVXVNNIINT16)
# 121| DEF_PTA(SM3)
# 122| DEF_PTA(SHA512)
Error: CPPCHECK_WARNING (CWE-758): [#def199]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:121: error[shiftTooManyBits]: Shifting 64-bit value by 101 bits is undefined behaviour
# 119| DEF_PTA(AMX_COMPLEX)
# 120| DEF_PTA(AVXVNNIINT16)
# 121|-> DEF_PTA(SM3)
# 122| DEF_PTA(SHA512)
# 123| DEF_PTA(SM4)
Error: CPPCHECK_WARNING (CWE-758): [#def200]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:122: error[shiftTooManyBits]: Shifting 64-bit value by 102 bits is undefined behaviour
# 120| DEF_PTA(AVXVNNIINT16)
# 121| DEF_PTA(SM3)
# 122|-> DEF_PTA(SHA512)
# 123| DEF_PTA(SM4)
# 124| DEF_PTA(APX_F)
Error: CPPCHECK_WARNING (CWE-758): [#def201]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:123: error[shiftTooManyBits]: Shifting 64-bit value by 103 bits is undefined behaviour
# 121| DEF_PTA(SM3)
# 122| DEF_PTA(SHA512)
# 123|-> DEF_PTA(SM4)
# 124| DEF_PTA(APX_F)
# 125| DEF_PTA(USER_MSR)
Error: CPPCHECK_WARNING (CWE-758): [#def202]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:124: error[shiftTooManyBits]: Shifting 64-bit value by 104 bits is undefined behaviour
# 122| DEF_PTA(SHA512)
# 123| DEF_PTA(SM4)
# 124|-> DEF_PTA(APX_F)
# 125| DEF_PTA(USER_MSR)
# 126| DEF_PTA(EVEX512)
Error: CPPCHECK_WARNING (CWE-758): [#def203]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:125: error[shiftTooManyBits]: Shifting 64-bit value by 105 bits is undefined behaviour
# 123| DEF_PTA(SM4)
# 124| DEF_PTA(APX_F)
# 125|-> DEF_PTA(USER_MSR)
# 126| DEF_PTA(EVEX512)
# 127| DEF_PTA(AVX10_1_256)
Error: CPPCHECK_WARNING (CWE-758): [#def204]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:126: error[shiftTooManyBits]: Shifting 64-bit value by 106 bits is undefined behaviour
# 124| DEF_PTA(APX_F)
# 125| DEF_PTA(USER_MSR)
# 126|-> DEF_PTA(EVEX512)
# 127| DEF_PTA(AVX10_1_256)
# 128| DEF_PTA(AVX10_1_512)
Error: CPPCHECK_WARNING (CWE-758): [#def205]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:127: error[shiftTooManyBits]: Shifting 64-bit value by 107 bits is undefined behaviour
# 125| DEF_PTA(USER_MSR)
# 126| DEF_PTA(EVEX512)
# 127|-> DEF_PTA(AVX10_1_256)
# 128| DEF_PTA(AVX10_1_512)
Error: CPPCHECK_WARNING (CWE-758): [#def206]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/i386-isa.def:128: error[shiftTooManyBits]: Shifting 64-bit value by 108 bits is undefined behaviour
# 126| DEF_PTA(EVEX512)
# 127| DEF_PTA(AVX10_1_256)
# 128|-> DEF_PTA(AVX10_1_512)
Error: CLANG_WARNING: [#def207]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/predicates.md:1889:24: warning[core.BitwiseShift]: Right operand is negative in left shift
# 1887| { 0 2 4 6 8 10 12 14 * * * * * * * * }. */
# 1888| for (int i = 0; i != nelt / 2; i++)
# 1889|-> if ((perm[i] & ((1 << id) - 1)) != i * 2)
# 1890| return false;
# 1891|
Error: CLANG_WARNING: [#def208]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:4920:3: warning[deadcode.DeadStores]: Value stored to 'suffix' is never read
# 4918| const char *suffix;
# 4919|
# 4920|-> suffix = "<ssemodesuffix>";
# 4921| ops = "";
# 4922|
Error: CLANG_WARNING: [#def209]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:4921:3: warning[deadcode.DeadStores]: Value stored to 'ops' is never read
# 4919|
# 4920| suffix = "<ssemodesuffix>";
# 4921|-> ops = "";
# 4922|
# 4923| /* Since there are no vandnp[sd] without AVX512DQ nor vandnph,
Error: CLANG_WARNING: [#def210]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:5041:3: warning[deadcode.DeadStores]: Value stored to 'suffix' is never read
# 5039| const char *suffix;
# 5040|
# 5041|-> suffix = "<ssemodesuffix>";
# 5042| ops = "";
# 5043|
Error: CLANG_WARNING: [#def211]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:5042:3: warning[deadcode.DeadStores]: Value stored to 'ops' is never read
# 5040|
# 5041| suffix = "<ssemodesuffix>";
# 5042|-> ops = "";
# 5043|
# 5044| /* Since there are no v<logic>p[sd] without AVX512DQ nor v<logic>ph,
Error: CLANG_WARNING: [#def212]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:7160:7: warning[deadcode.DeadStores]: Value stored to 'tem' during its initialization is never read
# 7158| "TARGET_AVX512FP16"
# 7159| {
# 7160|-> rtx tem = operands[1];
# 7161| rtx (*gen) (rtx, rtx);
# 7162| if (<MODE>mode != V8HFmode)
Error: CLANG_WARNING: [#def213]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:7181:7: warning[deadcode.DeadStores]: Value stored to 'tem' during its initialization is never read
# 7179| "TARGET_AVX512FP16"
# 7180| {
# 7181|-> rtx tem = operands[1];
# 7182| rtx (*gen) (rtx, rtx);
# 7183| if (<MODE>mode != V8HFmode)
Error: CLANG_WARNING: [#def214]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:19139:15: warning[deadcode.DeadStores]: Value stored to 'align_templ' during its initialization is never read
#19137| bool egpr_used = (TARGET_APX_EGPR
#19138| && x86_extended_rex2reg_mentioned_p (operands[2]));
#19139|-> const char *align_templ = egpr_used ? "vmovaps\t{%2, %x0|%x0, %2}"
#19140| : "vmovdqa\t{%2, %x0|%x0, %2}";
#19141| const char *unalign_templ = egpr_used ? "vmovups\t{%2, %x0|%x0, %2}"
Error: CLANG_WARNING: [#def215]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:19141:15: warning[deadcode.DeadStores]: Value stored to 'unalign_templ' during its initialization is never read
#19139| const char *align_templ = egpr_used ? "vmovaps\t{%2, %x0|%x0, %2}"
#19140| : "vmovdqa\t{%2, %x0|%x0, %2}";
#19141|-> const char *unalign_templ = egpr_used ? "vmovups\t{%2, %x0|%x0, %2}"
#19142| : "vmovdqu\t{%2, %x0|%x0, %2}";
#19143| switch (<MODE>mode)
Error: CLANG_WARNING: [#def216]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/i386/sse.md:23645:11: warning[deadcode.DeadStores]: Value stored to 'op1' during its initialization is never read
#23643| if (!MEM_P (operands[1]))
#23644| {
#23645|-> rtx op1 = force_reg (V4QImode, operands[1]);
#23646| op1 = lowpart_subreg (V16QImode, operands[1], V4QImode);
#23647| emit_insn (gen_avx2_<code>v4qiv4di2 (operands[0], op1));
Error: CPPCHECK_WARNING: [#def217]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/linux-d.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def218]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/linux.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def219]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def220]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:188:12: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 186| unsigned num = 1, i;
# 187|
# 188|-> curval = strchr (str, ':');
# 189| while (curval)
# 190| {
Error: CLANG_WARNING: [#def221]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:359:26: warning[core.NullDereference]: Array access (from variable 'version2') results in a null pointer dereference
# 357| fprintf (out, "static const char ptx_code_%u[] =\n", obj_count++);
# 358| fprintf (out, "\t\".version ");
# 359|-> for (size_t i = 0; version2[i] != '\0' && version2[i] != '\n'; i++)
# 360| fputc (version2[i], out);
# 361| fprintf (out, "\"\n\t\".target sm_");
Error: CLANG_WARNING: [#def222]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:437:26: warning[core.NullDereference]: Array access (from variable 'version') results in a null pointer dereference
# 435| fprintf (out, "static const char ptx_code_%u[] =\n", obj_count++);
# 436| fprintf (out, "\t\".version ");
# 437|-> for (size_t i = 0; version[i] != '\0' && version[i] != '\n'; i++)
# 438| fputc (version[i], out);
# 439| fprintf (out, "\"\n\t\".target sm_");
Error: CLANG_WARNING: [#def223]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:440:26: warning[core.NullDereference]: Array access (from variable 'sm_ver') results in a null pointer dereference
# 438| fputc (version[i], out);
# 439| fprintf (out, "\"\n\t\".target sm_");
# 440|-> for (size_t i = 0; sm_ver[i] != '\0' && sm_ver[i] != '\n'; i++)
# 441| fputc (sm_ver[i], out);
# 442| fprintf (out, "\"\n\t\".file 2 \\\"<dummy>\\\"\"\n");
Error: COMPILER_WARNING: [#def224]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc: scope_hint: In function ‘void compile_native(const char*, const char*, const char*, bool, bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:591:40: warning[-Wformat-diag]: unquoted identifier or keyword ‘COLLECT_GCC_OPTIONS’ in format
# 591 | "environment variable COLLECT_GCC_OPTIONS must be set");
# | ^~~~~~~~~~~~~~~~~~~
# 589| if (!collect_gcc_options)
# 590| fatal_error (input_location,
# 591|-> "environment variable COLLECT_GCC_OPTIONS must be set");
# 592|
# 593| struct obstack argv_obstack;
Error: CLANG_WARNING: [#def225]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:636:9: warning[deadcode.DeadStores]: Value stored to 'in' during its initialization is never read
# 634| main (int argc, char **argv)
# 635| {
# 636|-> FILE *in = stdin;
# 637| FILE *out = stdout;
# 638| const char *outname = 0;
Error: CLANG_WARNING: [#def226]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:637:9: warning[deadcode.DeadStores]: Value stored to 'out' during its initialization is never read
# 635| {
# 636| FILE *in = stdin;
# 637|-> FILE *out = stdout;
# 638| const char *outname = 0;
# 639|
Error: COMPILER_WARNING: [#def227]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc: scope_hint: In function ‘int main(int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:650:35: warning[-Wformat-diag]: unquoted identifier or keyword ‘COLLECT_GCC’ in format
# 650 | fatal_error (input_location, "COLLECT_GCC must be set.");
# | ^~~~~~~~~~~
# 648| char *collect_gcc = getenv ("COLLECT_GCC");
# 649| if (collect_gcc == NULL)
# 650|-> fatal_error (input_location, "COLLECT_GCC must be set.");
# 651| const char *gcc_path = dirname (ASTRDUP (collect_gcc));
# 652| const char *gcc_exec = basename (ASTRDUP (collect_gcc));
Error: COMPILER_WARNING: [#def228]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:721:26: warning[-Wformat-diag]: spurious trailing punctuation sequence ‘=’ in format
# 721 | "unrecognizable argument of option " STR);
# | ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:712:27: note: format string is defined here
# 712 | #define STR "-foffload-abi="
# | ^
# 719| else
# 720| fatal_error (input_location,
# 721|-> "unrecognizable argument of option " STR);
# 722| }
# 723| #undef STR
Error: COMPILER_WARNING: [#def229]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:721:26: warning[-Wformat-diag]: unquoted option name ‘-foffload-abi’ in format
# 721 | "unrecognizable argument of option " STR);
# | ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:712:14: note: format string is defined here
# 712 | #define STR "-foffload-abi="
# | ^~~~~~~~~~~~~
# 719| else
# 720| fatal_error (input_location,
# 721|-> "unrecognizable argument of option " STR);
# 722| }
# 723| #undef STR
Error: COMPILER_WARNING: [#def230]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:843:51: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
# 843 | fatal_error (input_location, "cannot open omp_requires file %qs",
# | ^~~~~~~~~~~~
# 841| in = fopen (omp_requires_file, "rb");
# 842| if (!in)
# 843|-> fatal_error (input_location, "cannot open omp_requires file %qs",
# 844| omp_requires_file);
# 845| uint32_t omp_requires;
Error: COMPILER_WARNING: [#def231]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/mkoffload.cc:847:51: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
# 847 | fatal_error (input_location, "cannot read omp_requires file %qs",
# | ^~~~~~~~~~~~
# 845| uint32_t omp_requires;
# 846| if (fread (&omp_requires, sizeof (omp_requires), 1, in) != 1)
# 847|-> fatal_error (input_location, "cannot read omp_requires file %qs",
# 848| omp_requires_file);
# 849| fclose (in);
Error: CPPCHECK_WARNING: [#def232]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/nvptx-c.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def233]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/nvptx.cc: scope_hint: In function ‘void handle_ptx_version_option()’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/nvptx/nvptx.cc:325:12: warning[-Wformat-diag]: unquoted identifier or keyword ‘sm_’ in format
# 325 | error ("PTX version (%<-mptx%>) needs to be at least %s to support selected"
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 326 | " %<-misa%> (sm_%s)", ptx_version_to_string (first),
# | ~~~~~~~~~~~~~~~~~~~~
# 323|
# 324| if (ptx_version_option < first)
# 325|-> error ("PTX version (%<-mptx%>) needs to be at least %s to support selected"
# 326| " %<-misa%> (sm_%s)", ptx_version_to_string (first),
# 327| sm_version_to_string ((enum ptx_isa)ptx_isa_option));
Error: CPPCHECK_WARNING: [#def234]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/context.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def235]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/convert.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def236]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coroutine-passes.cc:431:7: warning[deadcode.DeadStores]: Value stored to 'changed' is never read
# 429| HOST_WIDE_INT idx = TREE_INT_CST_LOW (gimple_call_arg (stmt, 0));
# 430| tree *seen = destinations.get (idx);
# 431|-> changed = true;
# 432|
# 433| if (dump_file)
Error: COMPILER_WARNING (CWE-134): [#def237]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/constexpr.cc: scope_hint: In function ‘bool cxx_eval_assert(const constexpr_ctx*, tree, const char*, location_t, bool, bool*, bool*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/constexpr.cc:2136:20: warning[-Wformat-security]: format not a string literal and no format arguments
# 2136 | error_at (cloc, msg);
# | ~~~~~~~~~^~~~~~~~~~~
# 2134| /* Report the error. */
# 2135| auto_diagnostic_group d;
# 2136|-> error_at (cloc, msg);
# 2137| diagnose_failing_condition (bad, cloc, true, ctx);
# 2138| return bad;
Error: CPPCHECK_WARNING: [#def238]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/constraint.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def239]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/contracts.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def240]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/contracts.cc:565: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 563| return role->audit_semantic;
# 564| else if (level == CONTRACT_AXIOM)
# 565|-> return role->axiom_semantic;
# 566| }
# 567| gcc_assert (false);
Error: CPPCHECK_WARNING: [#def241]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/coroutines.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def242]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/coroutines.cc: scope_hint: In function ‘bool coro_promise_type_found_p(tree, location_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/coroutines.cc:523:18: warning[-Wformat-security]: format not a string literal and no format arguments
# 523 | inform (DECL_SOURCE_LOCATION (has_ret_val), message);
# | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 521| message = "%<return_value%> first declared here";
# 522| }
# 523|-> inform (DECL_SOURCE_LOCATION (has_ret_val), message);
# 524| coro_info->coro_co_return_error_emitted = true;
# 525| return false;
Error: CLANG_WARNING: [#def243]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cp-gimplify.cc:1098:13: warning[core.NullDereference]: Array access (via field 'operands') results in a null pointer dereference
# 1096| {
# 1097| iloc_sentinel ils = EXPR_LOCATION (*stmt_p);
# 1098|-> tree to = TREE_OPERAND (*stmt_p, 0);
# 1099| tree from = TREE_OPERAND (*stmt_p, 1);
# 1100| if (SIMPLE_TARGET_EXPR_P (from)
Error: CLANG_WARNING: [#def244]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cp-gimplify.cc:3683:15: warning[core.NullDereference]: Dereference of null pointer
# 3681| else
# 3682| {
# 3683|-> tree arg = TREE_VALUE (args);
# 3684| if (!type_dependent_expression_p (arg))
# 3685| arg = contextual_conv_bool (arg, tf_warning_or_error);
Error: CPPCHECK_WARNING: [#def245]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cp-lang.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def246]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cp-objcp-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def247]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cp-ubsan.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def248]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cvt.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def249]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cvt.cc: scope_hint: In function ‘tree_node* ocp_convert(tree, tree, int, int, tsubst_flags_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cvt.cc:727:15: warning[-Wformat-security]: format not a string literal and no format arguments
# 727 | error (invalid_conv_diag);
# | ~~~~~~^~~~~~~~~~~~~~~~~~~
# 725| {
# 726| if (complain & tf_error)
# 727|-> error (invalid_conv_diag);
# 728| return error_mark_node;
# 729| }
Error: CPPCHECK_WARNING: [#def250]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cxx-pretty-print.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def251]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cxx-pretty-print.cc:129:25: warning[core.NullDereference]: Dereference of null pointer
# 127| pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t)
# 128| {
# 129|-> enum tree_code code = TREE_CODE (t);
# 130| switch (code)
# 131| {
Error: CLANG_WARNING: [#def252]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cxx-pretty-print.cc:212:42: warning[core.NullDereference]: Access to field 'args' results in a dereference of a null pointer
# 210| pp_cxx_unqualified_id (pp, TYPE_IDENTIFIER (t));
# 211| pp_cxx_begin_template_argument_list (pp);
# 212|-> pp_cxx_template_argument_list (pp, TYPE_TI_ARGS (t));
# 213| pp_cxx_end_template_argument_list (pp);
# 214| break;
Error: COMPILER_WARNING (CWE-134): [#def253]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/decl.cc: scope_hint: In function ‘bool check_previous_goto_1(tree, cp_binding_level*, tree, bool, const location_t*, vec<tree_node*, va_gc>*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/decl.cc:3814:20: warning[-Wformat-security]: format not a string literal and no format arguments
# 3814 | inform (loc, inf);
# | ~~~~~~~^~~~~~~~~~
# 3812| identified = 2;
# 3813| if (complained)
# 3814|-> inform (loc, inf);
# 3815| }
# 3816| }
Error: CPPCHECK_WARNING: [#def254]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/dump.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def255]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def256]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc:515:28: warning[core.NullDereference]: Dereference of null pointer
# 513| dump_scope (pp, CP_DECL_CONTEXT (decl), flags);
# 514| pp_cxx_tree_identifier (pp, DECL_NAME (decl));
# 515|-> dump_template_parms (pp, DECL_TEMPLATE_INFO (decl),
# 516| /*primary=*/false,
# 517| flags & ~TFF_TEMPLATE_HEADER);
Error: CLANG_WARNING: [#def257]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc:554:4: warning[core.NullDereference]: Dereference of null pointer
# 552| if (! (flags & TFF_UNQUALIFIED_NAME))
# 553| dump_scope (pp, CP_DECL_CONTEXT (decl), flags);
# 554|-> pp_cxx_tree_identifier (pp, TYPE_IDENTIFIER (t));
# 555| return;
# 556| }
Error: CLANG_WARNING: [#def258]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc:633:2: warning[core.NullDereference]: Dereference of null pointer
# 631| tree args = TYPE_TI_ARGS (t);
# 632| pp_cxx_cv_qualifier_seq (pp, t);
# 633|-> pp_cxx_tree_identifier (pp, TYPE_IDENTIFIER (t));
# 634| pp_cxx_begin_template_argument_list (pp);
# 635| dump_template_argument_list (pp, args, flags);
Error: CLANG_WARNING: [#def259]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc:645:4: warning[core.NullDereference]: Dereference of null pointer
# 643| {
# 644| tree tmpl = TREE_TYPE (CLASS_PLACEHOLDER_TEMPLATE (t));
# 645|-> pp_cxx_tree_identifier (pp, TYPE_IDENTIFIER (tmpl));
# 646| pp_string (pp, "<...auto...>");
# 647| }
Error: CLANG_WARNING: [#def260]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc:831:15: warning[core.NullDereference]: Access to field 'tmpl' results in a dereference of a null pointer
# 829| /* Because the template names are mangled, we have to locate
# 830| the most general template, and use that name. */
# 831|-> tree tpl = TYPE_TI_TEMPLATE (t);
# 832|
# 833| while (DECL_TEMPLATE_INFO (tpl))
Error: CLANG_WARNING: [#def261]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc:1171:10: warning[core.NullDereference]: Dereference of null pointer
# 1169| if ((flags & TFF_DECL_SPECIFIERS)
# 1170| && DECL_TEMPLATE_PARM_P (t)
# 1171|-> && TEMPLATE_PARM_PARAMETER_PACK (DECL_INITIAL (t)))
# 1172| pp_string (pp, "...");
# 1173| if (DECL_NAME (t))
Error: CLANG_WARNING: [#def262]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc:1346:4: warning[deadcode.DeadStores]: Value stored to 'flags' is never read
# 1344| if (! (flags & TFF_UNQUALIFIED_NAME))
# 1345| dump_scope (pp, CP_DECL_CONTEXT (t), flags);
# 1346|-> flags &= ~TFF_UNQUALIFIED_NAME;
# 1347| if (DECL_NAME (t) == NULL_TREE)
# 1348| {
Error: CLANG_WARNING: [#def263]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/error.cc:1498:3: warning[deadcode.DeadStores]: Value stored to 'name' is never read
# 1496| && PACK_EXPANSION_P (TREE_TYPE (name)))
# 1497| {
# 1498|-> name = make_conv_op_name (PACK_EXPANSION_PATTERN
# 1499| (TREE_TYPE (name)));
# 1500| variadic = true;
Error: CPPCHECK_WARNING: [#def264]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/except.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def265]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/except.cc:154: warning[nullPointer]: Possible null pointer dereference: args
# 152| tree arg_list = void_list_node;
# 153| for (unsigned ix = nargs; ix--;)
# 154|-> arg_list = tree_cons (NULL_TREE, args[ix], arg_list);
# 155| tree fntype = build_function_type (rtype, arg_list);
# 156| tree res = push_library_fn (ident, fntype, except, ecf);
Error: CPPCHECK_WARNING (CWE-571): [#def266]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/except.cc:619: error[pointerArithBool]: Converting pointer arithmetic result to bool. The bool is always true unless there is undefined behaviour.
# 617| if (processing_template_decl)
# 618| {
# 619|-> if (cfun)
# 620| current_function_returns_abnormally = 1;
# 621| exp = build_min (THROW_EXPR, void_type_node, exp);
Error: CPPCHECK_WARNING: [#def267]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/expr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def268]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/friend.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def269]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/friend.cc:664:32: warning[core.NullDereference]: Dereference of null pointer
# 662| return error_mark_node;
# 663|
# 664|-> if (!class_template_depth && DECL_IMPLICIT_INSTANTIATION (decl)
# 665| && TREE_CODE (DECL_TI_TEMPLATE (decl)) != TEMPLATE_DECL)
# 666| /* "[if no non-template match is found,] each remaining function template
Error: CPPCHECK_WARNING: [#def270]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/g++spec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def271]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/g++spec.cc:232:4: warning[deadcode.DeadStores]: Value stored to 'shared_libgcc' is never read
# 230|
# 231| case OPT_static_libgcc:
# 232|-> shared_libgcc = 0;
# 233| break;
# 234|
Error: CPPCHECK_WARNING: [#def272]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/init.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def273]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/lex.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def274]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/logic.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def275]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/logic.cc:450: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 448| /* Neither LHS nor RHS is a disjunction. */
# 449| return std::make_pair (0, false);
# 450|-> }
# 451| }
# 452| gcc_unreachable ();
Error: CPPCHECK_WARNING (CWE-758): [#def276]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/logic.cc:556: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 554| /* Neither LHS nor RHS is a disjunction. */
# 555| return std::make_pair (2, false);
# 556|-> }
# 557| }
# 558| gcc_unreachable ();
Error: CLANG_WARNING: [#def277]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/mangle.cc:1669:3: warning[core.NullDereference]: Dereference of null pointer
# 1667| MANGLE_TRACE_TREE ("source-name", identifier);
# 1668|
# 1669|-> write_unsigned_number (IDENTIFIER_LENGTH (identifier));
# 1670| write_identifier (IDENTIFIER_POINTER (identifier));
# 1671| }
Error: CLANG_WARNING: [#def278]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/mangle.cc:2083:7: warning[deadcode.DeadStores]: Value stored to 'chunk_digits' is never read
# 2081| representable. */
# 2082| chunk = 1000000000;
# 2083|-> chunk_digits = 9;
# 2084|
# 2085| if (sizeof (HOST_WIDE_INT) >= 8)
Error: CLANG_WARNING: [#def279]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/mangle.cc:3202:7: warning[core.NullDereference]: Dereference of null pointer
# 3200| length = TREE_VEC_LENGTH (args);
# 3201| }
# 3202|-> if (TEMPLATE_ARGS_TYPE_CONSTRAINT_P (args))
# 3203| /* Skip the constrained type. */
# 3204| i = 1;
Error: CPPCHECK_WARNING: [#def280]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/mapper-client.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def281]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/mapper-resolver.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def282]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/name-lookup.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def283]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/optimize.cc:719:7: warning[deadcode.DeadStores]: Value stored to 'first' is never read
# 717| else
# 718| expand_or_defer_fn (clone);
# 719|-> first = false;
# 720| }
# 721| pop_from_top_level ();
Error: CLANG_WARNING: [#def284]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/optimize.cc:776:5: warning[core.CallAndMessage]: Called C++ object pointer is null
# 774| n1->add_to_same_comdat_group (n0);
# 775| if (fns[2])
# 776|-> n2->add_to_same_comdat_group (n0);
# 777| import_export_decl (fns[1]);
# 778| /* Remove the body now that it is an alias. */
Error: COMPILER_WARNING (CWE-134): [#def285]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/pt.cc: scope_hint: In function ‘tree_node* tsubst_expr(tree, tree, tsubst_flags_t, tree)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/pt.cc:20082:17: warning[-Wformat-security]: format not a string literal and no format arguments
#20082 | error (error_msg);
# | ~~~~~~^~~~~~~~~~~
#20080| input_location);
#20081| if (error_msg)
#20082|-> error (error_msg);
#20083| if (identifier_p (decl))
#20084| {
Error: CPPCHECK_WARNING: [#def286]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/ptree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def287]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/ptree.cc:124:7: warning[deadcode.DeadStores]: Value stored to 'need_indent' is never read
# 122| fprintf (file, " pending-inline-info %p",
# 123| (void *) DECL_PENDING_INLINE_INFO (node));
# 124|-> need_indent = false;
# 125| }
# 126|
Error: CLANG_WARNING: [#def288]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/ptree.cc:323:5: warning[deadcode.DeadStores]: Value stored to 'len' is never read
# 321| len += sprintf (&pfx[len], "(+%u)",
# 322| cluster->indices[jx].span);
# 323|-> len += sprintf (&pfx[len], " cluster:%u/%u", ix, jx);
# 324| binding_slot &slot = cluster->slots[jx];
# 325| if (slot.is_lazy ())
Error: CPPCHECK_WARNING: [#def289]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/rtti.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def290]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/search.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def291]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/search.cc:1946: error[returnDanglingLifetime]: Returning pointer to local variable 'lfd' that will be invalid when returning.
# 1944| access to the field. */
# 1945| locate_field_data lfd (field_decl, const_p);
# 1946|-> return dfs_walk_once_accessible (basetype_path, /*friends=*/true,
# 1947| dfs_locate_field_accessor_pre,
# 1948| NULL, &lfd);
Error: CPPCHECK_WARNING: [#def292]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def293]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc: scope_hint: In function ‘tree_node* cp_build_binary_op(const op_location_t&, tree_code, tree, tree, tsubst_flags_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc:5314:19: warning[-Wformat-security]: format not a string literal and no format arguments
# 5314 | error (invalid_op_diag);
# | ~~~~~~^~~~~~~~~~~~~~~~~
# 5312| }
# 5313| else
# 5314|-> error (invalid_op_diag);
# 5315| }
# 5316| return error_mark_node;
Error: COMPILER_WARNING (CWE-134): [#def294]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc: scope_hint: In function ‘tree_node* cp_build_unary_op(tree_code, tree, bool, tsubst_flags_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck.cc:7417:15: warning[-Wformat-security]: format not a string literal and no format arguments
# 7417 | error (invalid_op_diag);
# | ~~~~~~^~~~~~~~~~~~~~~~~
# 7415| {
# 7416| if (complain & tf_error)
# 7417|-> error (invalid_op_diag);
# 7418| return error_mark_node;
# 7419| }
Error: CPPCHECK_WARNING: [#def295]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck2.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def296]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck2.cc:352:16: warning[core.NullDereference]: Array access (via field 'operands') results in a null pointer dereference
# 350| bad_member:
# 351| {
# 352|-> tree member = TREE_OPERAND (value, 1);
# 353| if (is_overloaded_fn (member) && !flag_ms_extensions)
# 354| {
Error: CLANG_WARNING: [#def297]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/typeck2.cc:1515:13: warning[core.NullDereference]: Dereference of null pointer
# 1513| if (init == error_mark_node)
# 1514| return PICFLAG_ERRONEOUS;
# 1515|-> else if (!TREE_CONSTANT (init))
# 1516| {
# 1517| if (TREE_SIDE_EFFECTS (init))
Error: CLANG_WARNING: [#def298]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/vtable-class-hierarchy.cc:453:10: warning[core.NullDereference]: Dereference of null pointer
# 451|
# 452| if (TREE_CODE (vptr_address) == ADDR_EXPR
# 453|-> && TREE_CODE (TREE_OPERAND (vptr_address, 0)) == MEM_REF)
# 454| vptr_address = TREE_OPERAND (vptr_address, 0);
# 455|
Error: CLANG_WARNING: [#def299]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/vtable-class-hierarchy.cc:541:23: warning[core.NullDereference]: Array access (via field 'operands') results in a null pointer dereference
# 539| argument of value.*/
# 540|
# 541|-> if (TREE_OPERAND (value, 0))
# 542| val_vtbl_decl = TREE_OPERAND (value, 0);
# 543|
Error: CLANG_WARNING: [#def300]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/vtable-class-hierarchy.cc:544:27: warning[core.NullDereference]: Dereference of null pointer
# 542| val_vtbl_decl = TREE_OPERAND (value, 0);
# 543|
# 544|-> while (!VAR_P (val_vtbl_decl)
# 545| && TREE_OPERAND (val_vtbl_decl, 0))
# 546| val_vtbl_decl = TREE_OPERAND (val_vtbl_decl, 0);
Error: CPPCHECK_WARNING: [#def301]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cppbuiltin.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def302]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cppdefault.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def303]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cprop.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def304]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cprop.cc:206:28: warning[core.NullDereference]: Access to field 'next_same_hash' results in a dereference of a null pointer (loaded from variable 'last_expr')
# 204| else
# 205| /* Add EXPR to end of this hash chain. */
# 206|-> last_expr->next_same_hash = cur_expr;
# 207|
# 208| /* Set the fields of the expr element.
Error: CLANG_WARNING: [#def305]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cprop.cc:297:24: warning[deadcode.DeadStores]: Although the value stored to 'set' is used in the enclosing expression, the value is never actually read from 'set'
# 295| && !REG_P (src)
# 296| && cprop_constant_p (XEXP (note, 0)))
# 297|-> src = XEXP (note, 0), set = gen_rtx_SET (dest, src);
# 298|
# 299| /* Record sets for constant/copy propagation. */
Error: CPPCHECK_WARNING: [#def306]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cse.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def307]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cselib.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def308]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ctfc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def309]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ctfout.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def310]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-compiler.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def311]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-ctfloat.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def312]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-diagnostic.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-664): [#def313]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-diagnostic.cc:190: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 188| {
# 189| va_list argp;
# 190|-> va_copy (argp, ap);
# 191|
# 192| if (loc.filename () || !verbatim)
Error: CPPCHECK_WARNING (CWE-664): [#def314]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-diagnostic.cc:198: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 196| char *xformat = expand_d_format (format);
# 197|
# 198|-> diagnostic_set_info_translated (&diagnostic, xformat, &argp,
# 199| &rich_loc, kind);
# 200| if (opt != 0)
Error: CPPCHECK_WARNING (CWE-664): [#def315]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-diagnostic.cc:208: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 206| {
# 207| /* Write verbatim messages with no location direct to stream. */
# 208|-> text_info text (expand_d_format (format), &argp, errno, nullptr);
# 209|
# 210| pp_format_verbatim (global_dc->printer, &text);
Error: CPPCHECK_WARNING (CWE-664): [#def316]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-diagnostic.cc:214: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 212| }
# 213|
# 214|-> va_end (argp);
# 215| }
# 216|
Error: CPPCHECK_WARNING: [#def317]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-frontend.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def318]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-gimplify.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def319]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-incpath.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def320]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-longdouble.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def321]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-longdouble.cc:117: error[uninitvar]: Uninitialized variable: x
# 115| {
# 116| longdouble x;
# 117|-> real_arithmetic (&x.rv (), PLUS_EXPR, &this->rv (), &r.rv ());
# 118| return x.normalize ();
# 119| }
Error: CPPCHECK_WARNING (CWE-457): [#def322]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-longdouble.cc:125: error[uninitvar]: Uninitialized variable: x
# 123| {
# 124| longdouble x;
# 125|-> real_arithmetic (&x.rv (), MINUS_EXPR, &this->rv (), &r.rv ());
# 126| return x.normalize ();
# 127| }
Error: CPPCHECK_WARNING (CWE-457): [#def323]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-longdouble.cc:133: error[uninitvar]: Uninitialized variable: x
# 131| {
# 132| longdouble x;
# 133|-> real_arithmetic (&x.rv (), MULT_EXPR, &this->rv (), &r.rv ());
# 134| return x.normalize ();
# 135| }
Error: CPPCHECK_WARNING (CWE-457): [#def324]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-longdouble.cc:141: error[uninitvar]: Uninitialized variable: x
# 139| {
# 140| longdouble x;
# 141|-> real_arithmetic (&x.rv (), RDIV_EXPR, &this->rv (), &r.rv ());
# 142| return x.normalize ();
# 143| }
Error: CPPCHECK_WARNING (CWE-457): [#def325]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-longdouble.cc:176: error[uninitvar]: Uninitialized variable: x
# 174| {
# 175| longdouble x;
# 176|-> real_arithmetic (&x.rv (), NEGATE_EXPR, &this->rv (), NULL);
# 177| return x.normalize ();
# 178| }
Error: CPPCHECK_WARNING: [#def326]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-port.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def327]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/d-spec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def328]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/decl.cc:866:3: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 864| {
# 865| /* Rewrite: `decl = exp' => TARGET_EXPR(decl, exp, dtor). */
# 866|-> vec_safe_push (d_function_chain->vars_in_scope, decl);
# 867|
# 868| /* Force a TARGET_EXPR to add the corresponding cleanup. */
Error: CLANG_WARNING: [#def329]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/decl.cc:1004:38: warning[core.NullDereference]: Access to field 'static_chain' results in a dereference of a null pointer
# 1002| by going through parent link of nested classes. */
# 1003| if (d->vthis)
# 1004|-> d_function_chain->static_chain = get_symbol_decl (d->vthis);
# 1005|
# 1006| if (d->isThis ())
Error: CLANG_WARNING: [#def330]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/decl.cc:1020:34: warning[core.NullDereference]: Access to field 'static_chain' results in a dereference of a null pointer
# 1018| if (ad == NULL)
# 1019| {
# 1020|-> d_function_chain->static_chain = this_tree;
# 1021| break;
# 1022| }
Error: CLANG_WARNING: [#def331]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/decl.cc:1421:11: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1419| tracking which context to follow when encountering a non-local symbol,
# 1420| and so are a not planned to be supported. */
# 1421|-> if (fd->needThis () && !fd->isMember2 ())
# 1422| {
# 1423| fatal_error (make_location_t (fd->loc),
Error: CLANG_WARNING: [#def332]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/decl.cc:2139:34: warning[core.NullDereference]: Access to field 'stmt_list' results in a dereference of a null pointer
# 2137| BLOCK_VARS (block), body, block);
# 2138|
# 2139|-> gcc_assert (vec_safe_is_empty (d_function_chain->stmt_list));
# 2140|
# 2141| /* Back-end expects a statement list to come from somewhere, however
Error: CPPCHECK_WARNING: [#def333]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def334]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:1721:27: warning[core.NullDereference]: Access to field 'function' results in a dereference of a null pointer
# 1719| {
# 1720| /* Maybe re-evaluate symbol storage treating `fd' as public. */
# 1721|-> if (call_by_alias_p (d_function_chain->function, fd))
# 1722| TREE_PUBLIC (callee) = 1;
# 1723|
Error: CLANG_WARNING: [#def335]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:1791:47: warning[core.NullDereference]: Access to field 'module' results in a dereference of a null pointer
# 1789| while (!owner->isTemplateInstance () && owner->toParent ())
# 1790| owner = owner->toParent ();
# 1791|-> if (owner->isTemplateInstance () || owner == d_function_chain->module)
# 1792| build_decl_tree (e->func);
# 1793| }
Error: CLANG_WARNING: [#def336]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:1904:20: warning[core.NullDereference]: Access to field 'function' results in a dereference of a null pointer
# 1902| /* Generate: ((bool) e1 ? (void)0 : _d_assert (...))
# 1903| or: (e1 != null ? e1._invariant() : _d_assert (...)) */
# 1904|-> bool unittest_p = d_function_chain->function->isUnitTestDeclaration ();
# 1905| libcall_fn libcall;
# 1906|
Error: CLANG_WARNING: [#def337]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:3042:40: warning[core.NullDereference]: Access to field 'vars_in_scope' results in a dereference of a null pointer
# 3040| /* Codegen can be improved by determining if no exceptions can be thrown
# 3041| between the ctor and dtor, and eliminating the ctor and dtor. */
# 3042|-> size_t saved_vars = vec_safe_length (d_function_chain->vars_in_scope);
# 3043| tree result = build_expr (e);
# 3044|
Error: CLANG_WARNING: [#def338]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:3045:38: warning[core.NullDereference]: Access to field 'vars_in_scope' results in a dereference of a null pointer
# 3043| tree result = build_expr (e);
# 3044|
# 3045|-> if (saved_vars != vec_safe_length (d_function_chain->vars_in_scope))
# 3046| {
# 3047| result = fold_build_cleanup_point_expr (TREE_TYPE (result), result);
Error: CLANG_WARNING: [#def339]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:3048:26: warning[core.NullDereference]: Access to field 'vars_in_scope' results in a dereference of a null pointer
# 3046| {
# 3047| result = fold_build_cleanup_point_expr (TREE_TYPE (result), result);
# 3048|-> vec_safe_truncate (d_function_chain->vars_in_scope, saved_vars);
# 3049| }
# 3050|
Error: CLANG_WARNING: [#def340]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:3059:40: warning[core.NullDereference]: Access to field 'vars_in_scope' results in a dereference of a null pointer
# 3057| build_return_dtor (Expression *e, Type *type, TypeFunction *tf)
# 3058| {
# 3059|-> size_t saved_vars = vec_safe_length (d_function_chain->vars_in_scope);
# 3060| tree result = build_expr (e);
# 3061|
Error: CLANG_WARNING: [#def341]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:3081:38: warning[core.NullDereference]: Access to field 'vars_in_scope' results in a dereference of a null pointer
# 3079|
# 3080| /* May nest the return expression inside the try/finally expression. */
# 3081|-> if (saved_vars != vec_safe_length (d_function_chain->vars_in_scope))
# 3082| {
# 3083| result = fold_build_cleanup_point_expr (TREE_TYPE (result), result);
Error: CLANG_WARNING: [#def342]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/expr.cc:3084:26: warning[core.NullDereference]: Access to field 'vars_in_scope' results in a dereference of a null pointer
# 3082| {
# 3083| result = fold_build_cleanup_point_expr (TREE_TYPE (result), result);
# 3084|-> vec_safe_truncate (d_function_chain->vars_in_scope, saved_vars);
# 3085| }
# 3086|
Error: CPPCHECK_WARNING: [#def343]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/imports.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def344]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/imports.cc:188:5: warning[core.CallAndMessage]: Called C++ object pointer is null
# 186|
# 187| this->result_ = build_tree_list_vec (tset);
# 188|-> tset->truncate (0);
# 189| }
# 190|
Error: CPPCHECK_WARNING: [#def345]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/intrinsics.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def346]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/intrinsics.cc:719:30: warning[core.CallAndMessage]: Called C++ object pointer is null
# 717| /* Retrieve from the encoded template instantation. */
# 718| tree callee = get_callee_fndecl (callexp);
# 719|-> TemplateInstance *ti = DECL_LANG_FRONTEND (callee)->isInstantiated ();
# 720| gcc_assert (ti && ti->tiargs && ti->tiargs->length == 2);
# 721|
Error: CLANG_WARNING: [#def347]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/intrinsics.cc:1173:40: warning[core.DivideZero]: Division by zero
# 1171| constructor_elt elt = { NULL_TREE, build_zero_cst (TREE_TYPE (vec0)) };
# 1172| vec0 = build_constructor_single (ret_type, NULL_TREE, vec0);
# 1173|-> for (unsigned i = 1; i < masklen / v0elems; ++i)
# 1174| vec_safe_push (CONSTRUCTOR_ELTS (vec0), elt);
# 1175| }
Error: CLANG_WARNING: [#def348]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/intrinsics.cc:1181:40: warning[core.DivideZero]: Division by zero
# 1179| constructor_elt elt = { NULL_TREE, build_zero_cst (TREE_TYPE (vec1)) };
# 1180| vec1 = build_constructor_single (ret_type, NULL_TREE, vec1);
# 1181|-> for (unsigned i = 1; i < masklen / v1elems; ++i)
# 1182| vec_safe_push (CONSTRUCTOR_ELTS (vec1), elt);
# 1183| }
Error: CPPCHECK_WARNING: [#def349]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/runtime.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def350]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def351]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:132:11: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 130|
# 131| /* Pop all the labels declared in the function. */
# 132|-> if (d_function_chain->labels)
# 133| {
# 134| auto_vec <tree> labels;
Error: CLANG_WARNING: [#def352]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:135:4: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 133| {
# 134| auto_vec <tree> labels;
# 135|-> d_function_chain->labels->traverse <vec <tree> &,
# 136| &pop_label> (labels);
# 137| d_function_chain->labels->empty ();
Error: CLANG_WARNING: [#def353]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:137:4: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 135| d_function_chain->labels->traverse <vec <tree> &,
# 136| &pop_label> (labels);
# 137|-> d_function_chain->labels->empty ();
# 138| labels.qsort (cmp_labels);
# 139| for (unsigned i = 0; i < labels.length (); ++i)
Error: CPPCHECK_WARNING (CWE-476): [#def354]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:153: warning[nullPointer]: Possible null pointer dereference: f
# 151| {
# 152| language_function *f = d_function_chain;
# 153|-> f->labels->traverse <binding_level *, &pop_binding_label> (level);
# 154| }
# 155|
Error: CLANG_WARNING: [#def355]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:170:3: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 168| {
# 169| tree t = alloc_stmt_list ();
# 170|-> vec_safe_push (d_function_chain->stmt_list, t);
# 171| d_keep (t);
# 172| }
Error: CLANG_WARNING: [#def356]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:179:12: warning[core.NullDereference]: Access to field 'stmt_list' results in a dereference of a null pointer
# 177| pop_stmt_list (void)
# 178| {
# 179|-> tree t = d_function_chain->stmt_list->pop ();
# 180|
# 181| /* If the statement list is completely empty, just return it. This is just
Error: CLANG_WARNING: [#def357]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:268:24: warning[core.NullDereference]: Access to field 'stmt_list' results in a dereference of a null pointer
# 266| SET_EXPR_LOCATION (t, input_location);
# 267|
# 268|-> tree stmt_list = d_function_chain->stmt_list->last ();
# 269| append_to_statement_list_force (t, &stmt_list);
# 270| }
Error: CLANG_WARNING: [#def358]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:363:26: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 361| gcc_assert (DECL_INITIAL (label) == NULL_TREE);
# 362|
# 363|-> d_label_entry *ent = d_function_chain->labels->get (s);
# 364| gcc_assert (ent != NULL);
# 365|
Error: CLANG_WARNING: [#def359]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:403:26: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 401| void check_goto (Statement *from, Statement *to)
# 402| {
# 403|-> d_label_entry *ent = d_function_chain->labels->get (to);
# 404| gcc_assert (ent != NULL);
# 405|
Error: CLANG_WARNING: [#def360]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:470:4: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 468| {
# 469| d_function_chain->labels
# 470|-> = hash_map <Statement *, d_label_entry>::create_ggc (13);
# 471| }
# 472|
Error: CLANG_WARNING: [#def361]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:489:17: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 487| ent->label = decl;
# 488|
# 489|-> bool existed = d_function_chain->labels->put (s, *ent);
# 490| gcc_assert (!existed);
# 491|
Error: CLANG_WARNING: [#def362]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:506:23: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 504| if (TREE_CODE (vec) == LABEL_DECL)
# 505| {
# 506|-> d_label_entry *ent = d_function_chain->labels->get (s);
# 507| gcc_assert (ent != NULL);
# 508|
Error: CLANG_WARNING: [#def363]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/toir.cc:576:26: warning[core.NullDereference]: Access to field 'labels' results in a dereference of a null pointer
# 574| {
# 575| Statement *stmt = s->getRelatedLabeled ();
# 576|-> d_label_entry *ent = d_function_chain->labels->get (stmt);
# 577| gcc_assert (ent != NULL && ent->bc_label == true);
# 578|
Error: CPPCHECK_WARNING: [#def364]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/d/typeinfo.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def365]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/value-prof.cc:31: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/data-streamer.h:131:19: warning[core.BitwiseShift]: Right operand is negative in left shift
# 129| else
# 130| {
# 131|-> word |= val << pos;
# 132| pos += nbits;
# 133| }
Error: CPPCHECK_WARNING: [#def366]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dbgcnt.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def367]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dce.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def368]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ddg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def369]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/debug.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def370]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/df-core.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def371]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/df-problems.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def372]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/df-scan.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def373]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dfp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def374]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dfp.cc:94:11: warning[core.NullDereference]: Access to field 'cl' results in a dereference of a null pointer (loaded from variable 'r')
# 92| set.traps = 0;
# 93|
# 94|-> switch (r->cl)
# 95| {
# 96| case rvc_zero:
Error: CLANG_WARNING: [#def375]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dfp.cc:677:11: warning[core.NullDereference]: Access to field 'cl' results in a dereference of a null pointer (loaded from variable 'op1')
# 675|
# 676| case MIN_EXPR:
# 677|-> if (op1->cl == rvc_nan)
# 678| *r = *op1;
# 679| else if (real_compare (UNLT_EXPR, op0, op1))
Error: CLANG_WARNING: [#def376]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dfp.cc:686:11: warning[core.NullDereference]: Access to field 'cl' results in a dereference of a null pointer (loaded from variable 'op1')
# 684|
# 685| case MAX_EXPR:
# 686|-> if (op1->cl == rvc_nan)
# 687| *r = *op1;
# 688| else if (real_compare (LT_EXPR, op0, op1))
Error: CPPCHECK_WARNING: [#def377]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic-color.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def378]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic-format-json.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def379]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic-format-sarif.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def380]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic-show-locus.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def381]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic-show-locus.cc:1309:16: warning[core.CallAndMessage]: 6th function call argument is an uninitialized value
# 1307| /* Everything is now known to be in the correct source file,
# 1308| but it may require further sanitization. */
# 1309|-> layout_range ri (exploc_with_display_col (m_file_cache,
# 1310| start, m_policy,
# 1311| LOCATION_ASPECT_START),
Error: CLANG_WARNING: [#def382]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic-show-locus.cc:1801:7: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 1799| /* Output the character. */
# 1800| m_policy.m_print_cb (m_pp, cp);
# 1801|-> c = dw.next_byte ();
# 1802| }
# 1803| print_newline ();
Error: CPPCHECK_WARNING: [#def383]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def384]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic.cc: scope_hint: In function ‘void fancy_abort(const char*, int, const char*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/diagnostic.cc:2333:15: warning[-Wformat-security]: format not a string literal and no format arguments
# 2333 | fnotice (stderr, diagnostic_kind_text[DK_ICE]);
# | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2331| {
# 2332| /* Print the error message. */
# 2333|-> fnotice (stderr, diagnostic_kind_text[DK_ICE]);
# 2334| fnotice (stderr, "in %s, at %s:%d", function, trim_filename (file), line);
# 2335| fputc ('\n', stderr);
Error: CPPCHECK_WARNING: [#def385]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/digraph.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def386]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dojump.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def387]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dominance.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def388]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dominance.cc:650:36: warning[core.NullDereference]: Access to field 'son' results in a dereference of a null pointer (loaded from field 'father')
# 648| else
# 649| {
# 650|-> while (!n->right || n->right == n->father->son)
# 651| {
# 652| n->dfs_num_out = (*num)++;
Error: CLANG_WARNING: [#def389]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dominance.cc:1205:16: warning[deadcode.DeadStores]: Value stored to 'dir_index' during its initialization is never read
# 1203| recompute_dominator (enum cdi_direction dir, basic_block bb)
# 1204| {
# 1205|-> unsigned int dir_index = dom_convert_dir_to_idx (dir);
# 1206| basic_block dom_bb = NULL;
# 1207| edge e;
Error: CLANG_WARNING: [#def390]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dominance.cc:1403:16: warning[deadcode.DeadStores]: Value stored to 'dir_index' during its initialization is never read
# 1401| edge_iterator ei;
# 1402| int *parent, *son, *brother;
# 1403|-> unsigned int dir_index = dom_convert_dir_to_idx (dir);
# 1404|
# 1405| /* We only support updating dominators. There are some problems with
Error: CPPCHECK_WARNING: [#def391]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/domwalk.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def392]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def393]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:95: error[ctunullpointer]: Null pointer dereference: hi
# 93| {
# 94| *low = words[0] + words[1] * BASE;
# 95|-> *hi = words[2] + words[3] * BASE;
# 96| }
# 97|
Error: CLANG_WARNING: [#def394]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:624:7: warning[deadcode.DeadStores]: Value stored to 'words' during its initialization is never read
# 622| {
# 623| double_int result = double_int_zero;
# 624|-> int words = len / UNITS_PER_WORD;
# 625|
# 626| gcc_assert (len * BITS_PER_UNIT <= HOST_BITS_PER_DOUBLE_INT);
Error: CPPCHECK_WARNING (CWE-457): [#def395]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:684: error[uninitvar]: Uninitialized variable: mask.max_value
# 682| }
# 683|
# 684|-> return mask;
# 685| }
# 686|
Error: CPPCHECK_WARNING (CWE-457): [#def396]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:735: error[uninitvar]: Uninitialized variable: r.max_value
# 733| r.high = cst.high & mask.high;
# 734|
# 735|-> return r;
# 736| }
# 737|
Error: CLANG_WARNING: [#def397]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:755:14: warning[core.BitwiseShift]: Right shift by '4294967295' overflows the capacity of 'unsigned long'
# 753| snum = (unsigned HOST_WIDE_INT) cst.high;
# 754| }
# 755|-> if (((snum >> (prec - 1)) & 1) == 1)
# 756| {
# 757| r.low = cst.low | ~mask.low;
Error: CPPCHECK_WARNING (CWE-457): [#def398]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:766: error[uninitvar]: Uninitialized variable: r.max_value
# 764| }
# 765|
# 766|-> return r;
# 767| }
# 768|
Error: CPPCHECK_WARNING (CWE-457): [#def399]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:803: error[uninitvar]: Uninitialized variable: ret.max_value
# 801| double_int ret;
# 802| mul_double (a.low, a.high, b.low, b.high, &ret.low, &ret.high);
# 803|-> return ret;
# 804| }
# 805|
Error: CPPCHECK_WARNING (CWE-457): [#def400]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:826: error[uninitvar]: Uninitialized variable: ret.max_value
# 824| &ret.low, &ret.high,
# 825| &tem.low, &tem.high, unsigned_p);
# 826|-> return ret;
# 827| }
# 828|
Error: CPPCHECK_WARNING (CWE-457): [#def401]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:839: error[uninitvar]: Uninitialized variable: lower.max_value
# 837| &higher->low, &higher->high,
# 838| unsigned_p);
# 839|-> return lower;
# 840| }
# 841|
Error: CPPCHECK_WARNING (CWE-457): [#def402]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:850: error[uninitvar]: Uninitialized variable: ret.max_value
# 848| double_int ret;
# 849| add_double (a.low, a.high, b.low, b.high, &ret.low, &ret.high);
# 850|-> return ret;
# 851| }
# 852|
Error: CPPCHECK_WARNING (CWE-457): [#def403]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:873: error[uninitvar]: Uninitialized variable: ret.max_value
# 871| *overflow = add_double_with_sign (a.low, a.high, b.low, b.high,
# 872| &ret.low, &ret.high, unsigned_p);
# 873|-> return ret;
# 874| }
# 875|
Error: CPPCHECK_WARNING (CWE-457): [#def404]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:885: error[uninitvar]: Uninitialized variable: ret.max_value
# 883| neg_double (b.low, b.high, &b.low, &b.high);
# 884| add_double (a.low, a.high, b.low, b.high, &ret.low, &ret.high);
# 885|-> return ret;
# 886| }
# 887|
Error: CPPCHECK_WARNING (CWE-457): [#def405]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:909: error[uninitvar]: Uninitialized variable: ret.max_value
# 907| add_double (low, high, ret.low, ret.high, &ret.low, &ret.high);
# 908| *overflow = OVERFLOW_SUM_SIGN (ret.high, b.high, high);
# 909|-> return ret;
# 910| }
# 911|
Error: CPPCHECK_WARNING (CWE-457): [#def406]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:920: error[uninitvar]: Uninitialized variable: ret.max_value
# 918| double_int ret;
# 919| neg_double (a.low, a.high, &ret.low, &ret.high);
# 920|-> return ret;
# 921| }
# 922|
Error: CPPCHECK_WARNING (CWE-457): [#def407]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:928: error[uninitvar]: Uninitialized variable: ret.max_value
# 926| double_int ret;
# 927| *overflow = neg_double (low, high, &ret.low, &ret.high);
# 928|-> return ret;
# 929| }
# 930|
Error: CPPCHECK_WARNING (CWE-457): [#def408]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:946: error[uninitvar]: Uninitialized variable: ret.max_value
# 944| b.low, b.high, &ret.low, &ret.high,
# 945| &mod->low, &mod->high);
# 946|-> return ret;
# 947| }
# 948|
Error: CPPCHECK_WARNING (CWE-457): [#def409]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:959: error[uninitvar]: Uninitialized variable: ret.max_value
# 957| b.low, b.high, &ret.low, &ret.high,
# 958| &mod->low, &mod->high);
# 959|-> return ret;
# 960| }
# 961|
Error: CPPCHECK_WARNING (CWE-457): [#def410]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1109: error[uninitvar]: Uninitialized variable: ret.max_value
# 1107| }
# 1108|
# 1109|-> return ret;
# 1110| }
# 1111|
Error: CPPCHECK_WARNING (CWE-457): [#def411]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1142: error[uninitvar]: Uninitialized variable: ret.max_value
# 1140| }
# 1141|
# 1142|-> return ret;
# 1143| }
# 1144|
Error: CPPCHECK_WARNING (CWE-457): [#def412]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1157: error[uninitvar]: Uninitialized variable: ret.max_value
# 1155| else
# 1156| rshift_double (low, high, absu_hwi (count), prec, &ret.low, &ret.high, arith);
# 1157|-> return ret;
# 1158| }
# 1159|
Error: CPPCHECK_WARNING (CWE-457): [#def413]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1172: error[uninitvar]: Uninitialized variable: ret.max_value
# 1170| else
# 1171| lshift_double (low, high, absu_hwi (count), prec, &ret.low, &ret.high);
# 1172|-> return ret;
# 1173| }
# 1174|
Error: CPPCHECK_WARNING (CWE-457): [#def414]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1186: error[uninitvar]: Uninitialized variable: r.max_value
# 1184| else
# 1185| rshift_double (low, high, absu_hwi (count), prec, &r.low, &r.high, true);
# 1186|-> return r;
# 1187| }
# 1188|
Error: CPPCHECK_WARNING (CWE-457): [#def415]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1200: error[uninitvar]: Uninitialized variable: r.max_value
# 1198| else
# 1199| lshift_double (low, high, absu_hwi (count), prec, &r.low, &r.high);
# 1200|-> return r;
# 1201| }
# 1202|
Error: CPPCHECK_WARNING (CWE-457): [#def416]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1214: error[uninitvar]: Uninitialized variable: r.max_value
# 1212| else
# 1213| rshift_double (low, high, absu_hwi (count), prec, &r.low, &r.high, false);
# 1214|-> return r;
# 1215| }
# 1216|
Error: CPPCHECK_WARNING (CWE-457): [#def417]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1228: error[uninitvar]: Uninitialized variable: r.max_value
# 1226| else
# 1227| lshift_double (low, high, absu_hwi (count), prec, &r.low, &r.high);
# 1228|-> return r;
# 1229| }
# 1230|
Error: CPPCHECK_WARNING (CWE-457): [#def418]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.cc:1566: error[uninitvar]: Uninitialized variable: res.max_value
# 1564| res.high = (HOST_WIDE_INT) vp[1];
# 1565|
# 1566|-> res = res.ext (TYPE_PRECISION (type), TYPE_UNSIGNED (type));
# 1567| if (mpz_sgn (val) < 0)
# 1568| res = -res;
Error: CPPCHECK_WARNING (CWE-457): [#def419]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.h:213: error[uninitvar]: Uninitialized variable: r.max_value
# 211| r.low = (unsigned HOST_WIDE_INT) cst;
# 212| r.high = cst < 0 ? -1 : 0;
# 213|-> return r;
# 214| }
# 215|
Error: CPPCHECK_WARNING (CWE-457): [#def420]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.h:236: error[uninitvar]: Uninitialized variable: r.max_value
# 234| r.low = cst;
# 235| r.high = 0;
# 236|-> return r;
# 237| }
# 238|
Error: CPPCHECK_WARNING (CWE-457): [#def421]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.h:245: error[uninitvar]: Uninitialized variable: r.max_value
# 243| r.low = low;
# 244| r.high = high;
# 245|-> return r;
# 246| }
# 247|
Error: CPPCHECK_WARNING (CWE-457): [#def422]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.h:319: error[uninitvar]: Uninitialized variable: result.max_value
# 317| result.low = ~low;
# 318| result.high = ~high;
# 319|-> return result;
# 320| }
# 321|
Error: CPPCHECK_WARNING (CWE-457): [#def423]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.h:330: error[uninitvar]: Uninitialized variable: result.max_value
# 328| result.low = low | b.low;
# 329| result.high = high | b.high;
# 330|-> return result;
# 331| }
# 332|
Error: CPPCHECK_WARNING (CWE-457): [#def424]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.h:341: error[uninitvar]: Uninitialized variable: result.max_value
# 339| result.low = low & b.low;
# 340| result.high = high & b.high;
# 341|-> return result;
# 342| }
# 343|
Error: CPPCHECK_WARNING (CWE-457): [#def425]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.h:352: error[uninitvar]: Uninitialized variable: result.max_value
# 350| result.low = low & ~b.low;
# 351| result.high = high & ~b.high;
# 352|-> return result;
# 353| }
# 354|
Error: CPPCHECK_WARNING (CWE-457): [#def426]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/double-int.h:363: error[uninitvar]: Uninitialized variable: result.max_value
# 361| result.low = low ^ b.low;
# 362| result.high = high ^ b.high;
# 363|-> return result;
# 364| }
# 365|
Error: CLANG_WARNING: [#def427]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dse.cc:307:15: warning[core.BitwiseShift]: Right shift by '65' overflows the capacity of 'unsigned long'
# 305| {
# 306| unsigned HOST_WIDE_INT mask = HOST_WIDE_INT_M1U;
# 307|-> return mask >> (HOST_BITS_PER_WIDE_INT - n);
# 308| }
# 309|
Error: CLANG_WARNING: [#def428]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dse.cc:1535:16: warning[core.NullDereference]: Access to field 'val_rtx' results in a dereference of a null pointer (loaded from variable 'base')
# 1533|
# 1534| if (group_id < 0)
# 1535|-> mem_addr = base->val_rtx;
# 1536| else
# 1537| {
Error: CLANG_WARNING: [#def429]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dse.cc:2245:16: warning[core.NullDereference]: Access to field 'val_rtx' results in a dereference of a null pointer (loaded from variable 'base')
# 2243| insn_info->read_rec = read_info;
# 2244| if (group_id < 0)
# 2245|-> mem_addr = base->val_rtx;
# 2246| else
# 2247| {
Error: CPPCHECK_WARNING: [#def430]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dwarf2asm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def431]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dwarf2cfi.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def432]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dwarf2cfi.cc:2214:8: warning[core.NullDereference]: Access to field 'rule18' results in a dereference of a null pointer (loaded from variable 'fde')
# 2212| if (!span)
# 2213| {
# 2214|-> if (fde->rule18)
# 2215| /* Just verify the hard frame pointer save when doing dynamic
# 2216| realignment uses expected offset. The actual queue_reg_save
Error: CPPCHECK_WARNING: [#def433]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dwarf2ctf.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def434]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dwarf2ctf.cc:395: warning[uninitvar]: Uninitialized variable: array_num_elements
# 393| type we register here is the type of the elements in
# 394| subsequent "dimensions", if there are any. */
# 395|-> arinfo.ctr_nelems = array_num_elements;
# 396|
# 397| array_index_type = ctf_get_AT_type (c);
Error: CLANG_WARNING: [#def435]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dwarf2ctf.cc:673:28: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 671| else if (dw_get_die_tag (c) == DW_TAG_unspecified_parameters)
# 672| {
# 673|-> func_info.ctc_flags |= CTF_FUNC_VARARG;
# 674| num_args += 1;
# 675| }
Error: CPPCHECK_WARNING: [#def436]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/early-remat.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def437]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/edit-context.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def438]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/edit-context.cc:147:14: warning[deadcode.DeadStores]: Although the value stored to 'orig_column' is used in the enclosing expression, the value is never actually read from 'orig_column'
# 145| {
# 146| if (orig_column >= m_start)
# 147|-> return orig_column += m_delta;
# 148| else
# 149| return orig_column;
Error: CPPCHECK_WARNING: [#def439]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/et-forest.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def440]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/et-forest.cc:592:7: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'p_occ')
# 590| t->parent_occ = NULL;
# 591|
# 592|-> l = p_occ->prev;
# 593| p_occ->next->parent = NULL;
# 594|
Error: CLANG_WARNING: [#def441]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/et-forest.cc:650:13: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'o2')
# 648| if (l == o2 || (l && l->parent != NULL))
# 649| {
# 650|-> ret = o2->next;
# 651|
# 652| set_prev (o1, o2);
Error: CLANG_WARNING: [#def442]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/et-forest.cc:658:13: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'o2')
# 656| else if (r == o2 || (r && r->parent != NULL))
# 657| {
# 658|-> ret = o2->prev;
# 659|
# 660| set_next (o1, o2);
Error: CPPCHECK_WARNING: [#def443]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/explow.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def444]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fibonacci_heap.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def445]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tracer.cc:53: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fibonacci_heap.h:73:17: warning[core.NullDereference]: Access to field 'm_key' results in a dereference of a null pointer (loaded from variable 'other')
# 71| int compare (fibonacci_node_t *other)
# 72| {
# 73|-> if (m_key < other->m_key)
# 74| return -1;
# 75| if (m_key > other->m_key)
Error: CPPCHECK_WARNING: [#def446]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/file-prefix-map.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def447]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/final.cc:1314:8: warning[deadcode.DeadStores]: Value stored to 'body' is never read
# 1312| int i;
# 1313|
# 1314|-> body = PATTERN (insn);
# 1315| new_length = 0;
# 1316| for (i = 0; i < seqn->len (); i++)
Error: CLANG_WARNING: [#def448]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/final.cc:1885:16: warning[core.NullDereference]: Array access (from variable 'start_to_bb') results in a null pointer dereference
# 1883|
# 1884| if (INSN_UID (insn) < bb_map_size
# 1885|-> && (bb = start_to_bb[INSN_UID (insn)]) != NULL)
# 1886| {
# 1887| edge e;
Error: CLANG_WARNING: [#def449]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/final.cc:2440:8: warning[core.BitwiseShift]: Right operand is negative in left shift
# 2438| log_align = exact_log2 (BIGGEST_ALIGNMENT / BITS_PER_UNIT);
# 2439| #endif
# 2440|-> ASM_OUTPUT_ALIGN (file, log_align);
# 2441| }
# 2442| else
Error: CLANG_WARNING: [#def450]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/final.cc:3531:6: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 3529|
# 3530| p = endptr;
# 3531|-> c = *p;
# 3532| }
# 3533| /* % followed by a digit outputs an operand the default way. */
Error: CLANG_WARNING: [#def451]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/final.cc:3550:6: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 3548|
# 3549| p = endptr;
# 3550|-> c = *p;
# 3551| }
# 3552| /* % followed by punctuation: output something for that
Error: CPPCHECK_WARNING: [#def452]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def453]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:190: error[uninitvar]: Uninitialized variable: max.max_value
# 188| max.low = -1;
# 189| max.high = -1;
# 190|-> max = max.zext (i_f_bits);
# 191| if (a.ugt (max))
# 192| {
Error: CPPCHECK_WARNING (CWE-457): [#def454]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:204: error[uninitvar]: Uninitialized variable: max.max_value
# 202| max.high = -1;
# 203| max.low = -1;
# 204|-> max = max.zext (i_f_bits);
# 205| min.high = 0;
# 206| min.low = 1;
Error: CPPCHECK_WARNING (CWE-457): [#def455]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:207: error[uninitvar]: Uninitialized variable: min.max_value
# 205| min.high = 0;
# 206| min.low = 1;
# 207|-> min = min.alshift (i_f_bits, HOST_BITS_PER_DOUBLE_INT);
# 208| min = min.sext (1 + i_f_bits);
# 209| if (a.sgt (max))
Error: CPPCHECK_WARNING (CWE-457): [#def456]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:250: error[uninitvar]: Uninitialized variable: max_s.max_value
# 248| max_s.high = -1;
# 249| max_s.low = -1;
# 250|-> max_s = max_s.zext (i_f_bits);
# 251| if (a_high.ugt (max_r)
# 252| || (a_high == max_r &&
Error: CPPCHECK_WARNING (CWE-457): [#def457]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:251: error[uninitvar]: Uninitialized variable: max_r.max_value
# 249| max_s.low = -1;
# 250| max_s = max_s.zext (i_f_bits);
# 251|-> if (a_high.ugt (max_r)
# 252| || (a_high == max_r &&
# 253| a_low.ugt (max_s)))
Error: CPPCHECK_WARNING (CWE-457): [#def458]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:268: error[uninitvar]: Uninitialized variable: max_s.max_value
# 266| max_s.high = -1;
# 267| max_s.low = -1;
# 268|-> max_s = max_s.zext (i_f_bits);
# 269| min_r.high = -1;
# 270| min_r.low = -1;
Error: CPPCHECK_WARNING (CWE-457): [#def459]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:273: error[uninitvar]: Uninitialized variable: min_s.max_value
# 271| min_s.high = 0;
# 272| min_s.low = 1;
# 273|-> min_s = min_s.alshift (i_f_bits, HOST_BITS_PER_DOUBLE_INT);
# 274| min_s = min_s.sext (1 + i_f_bits);
# 275| if (a_high.sgt (max_r)
Error: CPPCHECK_WARNING (CWE-457): [#def460]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:275: error[uninitvar]: Uninitialized variable: max_r.max_value
# 273| min_s = min_s.alshift (i_f_bits, HOST_BITS_PER_DOUBLE_INT);
# 274| min_s = min_s.sext (1 + i_f_bits);
# 275|-> if (a_high.sgt (max_r)
# 276| || (a_high == max_r &&
# 277| a_low.ugt (max_s)))
Error: CPPCHECK_WARNING (CWE-457): [#def461]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:284: error[uninitvar]: Uninitialized variable: min_r.max_value
# 282| overflow_p = true;
# 283| }
# 284|-> else if (a_high.slt (min_r)
# 285| || (a_high == min_r &&
# 286| a_low.ult (min_s)))
Error: CPPCHECK_WARNING (CWE-457): [#def462]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:432: error[uninitvar]: Uninitialized variable: a_low.max_value
# 430|
# 431| /* Perform four multiplications. */
# 432|-> low_low = a_low * b_low;
# 433| low_high = a_low * b_high;
# 434| high_low = a_high * b_low;
Error: CPPCHECK_WARNING (CWE-457): [#def463]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:433: error[uninitvar]: Uninitialized variable: b_high.max_value
# 431| /* Perform four multiplications. */
# 432| low_low = a_low * b_low;
# 433|-> low_high = a_low * b_high;
# 434| high_low = a_high * b_low;
# 435| high_high = a_high * b_high;
Error: CPPCHECK_WARNING (CWE-457): [#def464]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:434: error[uninitvar]: Uninitialized variable: a_high.max_value
# 432| low_low = a_low * b_low;
# 433| low_high = a_low * b_high;
# 434|-> high_low = a_high * b_low;
# 435| high_high = a_high * b_high;
# 436|
Error: CPPCHECK_WARNING (CWE-457): [#def465]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:440: error[uninitvar]: Uninitialized variable: temp1.max_value
# 438| temp1.high = high_low.low;
# 439| temp1.low = 0;
# 440|-> s = low_low + temp1;
# 441| if (s.ult (low_low)
# 442| || s.ult (temp1))
Error: CPPCHECK_WARNING (CWE-457): [#def466]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:448: error[uninitvar]: Uninitialized variable: temp2.max_value
# 446| temp2.high = low_high.low;
# 447| temp2.low = 0;
# 448|-> s = temp1 + temp2;
# 449| if (s.ult (temp1)
# 450| || s.ult (temp2))
Error: CPPCHECK_WARNING (CWE-457): [#def467]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:597: warning[uninitvar]: Uninitialized variable: s.max_value
# 595|
# 596| /* Shift left s by 1 bit. */
# 597|-> s = s.lshift (1);
# 598|
# 599| }
Error: CPPCHECK_WARNING (CWE-457): [#def468]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:666: warning[uninitvar]: Uninitialized variable: temp_low.max_value
# 664| if (!unsigned_p && a->data.high < 0) /* Signed-extend temp_high. */
# 665| temp_high = temp_high.ext (b->data.low, unsigned_p);
# 666|-> f->data = temp_low;
# 667| overflow_p = fixed_saturate2 (f->mode, temp_high, temp_low, &f->data,
# 668| sat_p);
Error: CPPCHECK_WARNING (CWE-457): [#def469]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fixed-value.cc:974: warning[uninitvar]: Uninitialized variable: temp_low.max_value
# 972|
# 973| f->mode = mode;
# 974|-> f->data = temp_low;
# 975|
# 976| if (unsigned_p == UNSIGNED_FIXED_POINT_MODE_P (f->mode))
Error: COMPILER_WARNING (CWE-134): [#def470]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fold-const.cc: scope_hint: In function ‘void fold_overflow_warning(const char*, warn_strict_overflow_code)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fold-const.cc:384:13: warning[-Wformat-security]: format not a string literal and no format arguments
# 384 | warning (OPT_Wstrict_overflow, gmsgid);
# | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 382| }
# 383| else if (issue_strict_overflow_warning (wc))
# 384|-> warning (OPT_Wstrict_overflow, gmsgid);
# 385| }
# 386|
Error: CPPCHECK_WARNING: [#def471]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fold-mem-offsets.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def472]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/arith.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def473]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/arith.cc:1376:7: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1374| rc = rc_tmp;
# 1375|
# 1376|-> gfc_replace_expr (c->expr, r);
# 1377| }
# 1378|
Error: CLANG_WARNING: [#def474]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/arith.cc:1437:7: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1435| rc = rc_tmp;
# 1436|
# 1437|-> gfc_replace_expr (c->expr, r);
# 1438| }
# 1439|
Error: CLANG_WARNING: [#def475]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/arith.cc:1500:7: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1498| rc = rc_tmp;
# 1499|
# 1500|-> gfc_replace_expr (c->expr, r);
# 1501| }
# 1502|
Error: CPPCHECK_WARNING: [#def476]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/array.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def477]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/bbt.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def478]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/check.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def479]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/check.cc:3678:22: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 3676| for (i = 0; i < nargs; i++)
# 3677| for (j = i + 1; j < nargs; j++)
# 3678|-> if (nlabels[i] == nlabels[j])
# 3679| goto duplicate;
# 3680|
Error: CLANG_WARNING: [#def480]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/check.cc:3678:22: warning[core.UndefinedBinaryOperatorResult]: The right operand of '==' is a garbage value
# 3676| for (i = 0; i < nargs; i++)
# 3677| for (j = i + 1; j < nargs; j++)
# 3678|-> if (nlabels[i] == nlabels[j])
# 3679| goto duplicate;
# 3680|
Error: CLANG_WARNING: [#def481]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/check.cc:3684:62: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'arg')
# 3682|
# 3683| duplicate:
# 3684|-> gfc_error ("Duplicate argument %qs at %L to intrinsic %s", arg->name,
# 3685| &arg->expr->where, gfc_current_intrinsic);
# 3686| return false;
Error: CPPCHECK_WARNING: [#def482]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/class.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def483]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/class.cc:274:7: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'ref')
# 272| if (!ref->next)
# 273| break;
# 274|-> if (ref->type != REF_ARRAY)
# 275| {
# 276| ref->next = gfc_get_ref ();
Error: CLANG_WARNING: [#def484]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/class.cc:2209:6: warning[core.NullDereference]: Access to field 'rank' results in a dereference of a null pointer (loaded from field 'as')
# 2207| block->ext.block.case_list->low
# 2208| = gfc_get_int_expr (gfc_default_integer_kind, NULL,
# 2209|-> fini->proc_tree->n.sym->formal->sym->as->rank);
# 2210| else
# 2211| block->ext.block.case_list->low
Error: CLANG_WARNING: [#def485]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/class.cc:2563:5: warning[deadcode.DeadStores]: Value stored to 'found_sym' is never read
# 2561| /* At this point an error must have occurred.
# 2562| Prevent further errors on the vtype components. */
# 2563|-> found_sym = vtab;
# 2564| goto have_vtype;
# 2565| }
Error: CPPCHECK_WARNING: [#def486]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/constructor.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def487]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/convert.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def488]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/cpp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def489]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/data.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def490]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/data.cc:227:5: warning[core.NullDereference]: Dereference of null pointer
# 225| {
# 226| gfc_error ("Substring end index at %L exceeds the string length",
# 227|-> &ref->u.ss.end->where);
# 228| return NULL;
# 229| }
Error: CPPCHECK_WARNING: [#def491]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/decl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def492]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/dependency.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def493]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/dependency.cc:2109:3: warning[deadcode.DeadStores]: Value stored to 'this_dep' is never read
# 2107| bool same_component = false;
# 2108|
# 2109|-> this_dep = GFC_DEP_ERROR;
# 2110| fin_dep = GFC_DEP_ERROR;
# 2111| /* Dependencies due to pointers should already have been identified.
Error: CPPCHECK_WARNING: [#def494]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/dump-parse-tree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def495]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/error.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def496]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/error.cc:805:3: warning[deadcode.DeadStores]: Value stored to 'have_l1' is never read
# 803| }
# 804|
# 805|-> have_l1 = 0;
# 806| format = format0;
# 807| n = 0;
Error: CPPCHECK_WARNING (CWE-664): [#def497]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/error.cc:961: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 959| {
# 960| va_list argp;
# 961|-> va_copy (argp, ap);
# 962|
# 963| diagnostic_info diagnostic;
Error: CPPCHECK_WARNING (CWE-664): [#def498]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/error.cc:979: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 977| }
# 978|
# 979|-> diagnostic_set_info (&diagnostic, gmsgid, &argp, &rich_loc,
# 980| DK_WARNING);
# 981| diagnostic.option_index = opt;
Error: CPPCHECK_WARNING (CWE-664): [#def499]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/error.cc:1001: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 999| }
# 1000|
# 1001|-> va_end (argp);
# 1002| return ret;
# 1003| }
Error: CPPCHECK_WARNING (CWE-664): [#def500]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/error.cc:1485: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 1483| {
# 1484| va_list argp;
# 1485|-> va_copy (argp, ap);
# 1486| bool saved_abort_on_error = false;
# 1487|
Error: CPPCHECK_WARNING (CWE-664): [#def501]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/error.cc:1490: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 1488| if (warnings_not_errors)
# 1489| {
# 1490|-> gfc_warning (opt, gmsgid, argp);
# 1491| va_end (argp);
# 1492| return;
Error: CPPCHECK_WARNING (CWE-664): [#def502]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/error.cc:1491: error[va_list_usedBeforeStarted]: va_list 'argp' used before va_start() was called.
# 1489| {
# 1490| gfc_warning (opt, gmsgid, argp);
# 1491|-> va_end (argp);
# 1492| return;
# 1493| }
Error: CPPCHECK_WARNING: [#def503]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/expr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def504]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/f95-lang.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def505]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/frontend-passes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def506]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/frontend-passes.cc:3302: error[uninitStructMember]: Uninitialized struct member: ts.deferred
# 3300| res->value.op.op1 = e1;
# 3301| res->value.op.op2 = e2;
# 3302|-> res->ts = ts;
# 3303|
# 3304| return res;
Error: CPPCHECK_WARNING (CWE-909): [#def507]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/frontend-passes.cc:3302: error[uninitStructMember]: Uninitialized struct member: ts.f90_type
# 3300| res->value.op.op1 = e1;
# 3301| res->value.op.op2 = e2;
# 3302|-> res->ts = ts;
# 3303|
# 3304| return res;
Error: CPPCHECK_WARNING (CWE-909): [#def508]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/frontend-passes.cc:3302: error[uninitStructMember]: Uninitialized struct member: ts.interface
# 3300| res->value.op.op1 = e1;
# 3301| res->value.op.op2 = e2;
# 3302|-> res->ts = ts;
# 3303|
# 3304| return res;
Error: CPPCHECK_WARNING (CWE-909): [#def509]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/frontend-passes.cc:3302: error[uninitStructMember]: Uninitialized struct member: ts.interop_kind
# 3300| res->value.op.op1 = e1;
# 3301| res->value.op.op2 = e2;
# 3302|-> res->ts = ts;
# 3303|
# 3304| return res;
Error: CPPCHECK_WARNING (CWE-909): [#def510]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/frontend-passes.cc:3302: error[uninitStructMember]: Uninitialized struct member: ts.is_c_interop
# 3300| res->value.op.op1 = e1;
# 3301| res->value.op.op2 = e2;
# 3302|-> res->ts = ts;
# 3303|
# 3304| return res;
Error: CPPCHECK_WARNING (CWE-909): [#def511]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/frontend-passes.cc:3302: error[uninitStructMember]: Uninitialized struct member: ts.is_iso_c
# 3300| res->value.op.op1 = e1;
# 3301| res->value.op.op2 = e2;
# 3302|-> res->ts = ts;
# 3303|
# 3304| return res;
Error: CPPCHECK_WARNING: [#def512]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/gfortranspec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def513]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/interface.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def514]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/intrinsic.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def515]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/intrinsic.cc:4446:16: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'actual')
# 4444| actual = a;
# 4445| }
# 4446|-> actual->next = NULL; /* End the sorted argument list. */
# 4447|
# 4448| return true;
Error: CLANG_WARNING: [#def516]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/intrinsic.cc:4472:11: warning[core.NullDereference]: Access to field 'expr' results in a dereference of a null pointer (loaded from variable 'actual')
# 4470| gfc_typespec ts;
# 4471|
# 4472|-> if (actual->expr == NULL)
# 4473| continue;
# 4474|
Error: CPPCHECK_WARNING: [#def517]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/io.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def518]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/io.cc:2883:7: warning[core.NullDereference]: Access to field 'expr_type' results in a dereference of a null pointer (loaded from field 'unit')
# 2881| return false;
# 2882|
# 2883|-> if (fp->unit->expr_type == EXPR_CONSTANT
# 2884| && fp->unit->ts.type == BT_INTEGER
# 2885| && mpz_sgn (fp->unit->value.integer) < 0)
Error: CPPCHECK_WARNING: [#def519]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/iresolve.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def520]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def521]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:2416:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 2414| goto syntax;
# 2415|
# 2416|-> head = tail = new_iter;
# 2417|
# 2418| for (;;)
Error: CLANG_WARNING: [#def522]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:4446:45: warning[core.NullDereference]: Dereference of null pointer
# 4444| saw_unlimited = saw_unlimited | UNLIMITED_POLY (tail->expr);
# 4445|
# 4446|-> if (gfc_peek_ascii_char () == '(' && !sym->attr.dimension)
# 4447| {
# 4448| gfc_error ("Shape specification for allocatable scalar at %C");
Error: CLANG_WARNING: [#def523]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:5316:19: warning[core.NullDereference]: Dereference of null pointer
# 5314| if (t->is_bind_c == 1)
# 5315| {
# 5316|-> if (sym->ts.type != BT_UNKNOWN && sym->ts.is_c_interop != 1)
# 5317| {
# 5318| /* If we find an error, just print it and continue,
Error: CLANG_WARNING: [#def524]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:5335:8: warning[core.NullDereference]: Dereference of null pointer
# 5333| }
# 5334|
# 5335|-> if (sym->attr.in_common)
# 5336| {
# 5337| gfc_error ("Symbol %qs at %C is already in a COMMON block",
Error: CLANG_WARNING: [#def525]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:5625:8: warning[core.NullDereference]: Dereference of null pointer
# 5623| goto error;
# 5624|
# 5625|-> if (sym->ts.type == BT_UNKNOWN)
# 5626| {
# 5627| if (gfc_current_ns->seen_implicit_none)
Error: CLANG_WARNING: [#def526]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:5948:11: warning[core.NullDereference]: Dereference of null pointer
# 5946| return true;
# 5947|
# 5948|-> if (e->symtree->n.sym->ts.type == BT_UNKNOWN)
# 5949| gfc_set_default_type (e->symtree->n.sym, 0, NULL);
# 5950| break;
Error: CLANG_WARNING: [#def527]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:6031:57: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'sym')
# 6029| gfc_push_error (&old_error);
# 6030|
# 6031|-> if (!gfc_add_procedure (&sym->attr, PROC_ST_FUNCTION, sym->name, NULL))
# 6032| goto undo_error;
# 6033|
Error: CLANG_WARNING: [#def528]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:6118:53: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'sym')
# 6116| return m;
# 6117|
# 6118|-> if (!gfc_add_procedure (&sym->attr, PROC_UNKNOWN, sym->name, NULL))
# 6119| goto undo_error;
# 6120|
Error: CLANG_WARNING: [#def529]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:6443:3: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 6441| build_associate_name (const char *name, gfc_expr **e1, gfc_expr **e2)
# 6442| {
# 6443|-> gfc_expr *expr1 = *e1;
# 6444| gfc_expr *expr2 = *e2;
# 6445| gfc_symbol *sym;
Error: CLANG_WARNING: [#def530]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:6929:10: warning[core.NullDereference]: Dereference of null pointer
# 6927| {
# 6928| sym2 = expr2->symtree->n.sym;
# 6929|-> as = (sym2->ts.type == BT_CLASS
# 6930| && CLASS_DATA (sym2)) ? CLASS_DATA (sym2)->as : sym2->as;
# 6931| }
Error: CLANG_WARNING: [#def531]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/match.cc:7483:4: warning[deadcode.DeadStores]: Value stored to 'm' is never read
# 7481| if (!gfc_current_block ())
# 7482| {
# 7483|-> m = MATCH_ERROR;
# 7484| goto cleanup;
# 7485| }
Error: CPPCHECK_WARNING: [#def532]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/matchexp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def533]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/matchexp.cc:178:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 176| expression pointing to it. By 7.1.7.2, any expression in
# 177| parentheses shall be treated as a data entity. */
# 178|-> *result = gfc_get_parentheses (e);
# 179|
# 180| if (m != MATCH_YES)
Error: CPPCHECK_WARNING: [#def534]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/misc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def535]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/module.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def536]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/module.cc:6686: warning[nullPointer]: Possible null pointer dereference: mod_sym
# 6684| "create symbol for %s", iso_c_module_name);
# 6685|
# 6686|-> mod_sym->attr.flavor = FL_MODULE;
# 6687| mod_sym->attr.intrinsic = 1;
# 6688| mod_sym->module = gfc_get_string ("%s", iso_c_module_name);
Error: CPPCHECK_WARNING (CWE-476): [#def537]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/module.cc:6687: warning[nullPointer]: Possible null pointer dereference: mod_sym
# 6685|
# 6686| mod_sym->attr.flavor = FL_MODULE;
# 6687|-> mod_sym->attr.intrinsic = 1;
# 6688| mod_sym->module = gfc_get_string ("%s", iso_c_module_name);
# 6689| mod_sym->from_intmod = INTMOD_ISO_C_BINDING;
Error: CPPCHECK_WARNING (CWE-476): [#def538]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/module.cc:6688: warning[nullPointer]: Possible null pointer dereference: mod_sym
# 6686| mod_sym->attr.flavor = FL_MODULE;
# 6687| mod_sym->attr.intrinsic = 1;
# 6688|-> mod_sym->module = gfc_get_string ("%s", iso_c_module_name);
# 6689| mod_sym->from_intmod = INTMOD_ISO_C_BINDING;
# 6690| }
Error: CPPCHECK_WARNING (CWE-476): [#def539]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/module.cc:6689: warning[nullPointer]: Possible null pointer dereference: mod_sym
# 6687| mod_sym->attr.intrinsic = 1;
# 6688| mod_sym->module = gfc_get_string ("%s", iso_c_module_name);
# 6689|-> mod_sym->from_intmod = INTMOD_ISO_C_BINDING;
# 6690| }
# 6691|
Error: CPPCHECK_WARNING: [#def540]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/openmp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def541]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/options.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def542]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/options.cc:372:5: warning[unix.Malloc]: Argument to free() is the address of a global variable, which is not memory allocated by malloc()
# 370|
# 371| if (canon_source_file != gfc_source_file)
# 372|-> free (CONST_CAST (char *, canon_source_file));
# 373|
# 374| /* Decide which form the file will be read in as. */
Error: CLANG_WARNING: [#def543]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/options.cc:380:26: warning[unix.Malloc]: Use of memory after it is freed
# 378| else
# 379| {
# 380|-> gfc_current_form = form_from_filename (filename);
# 381|
# 382| if (gfc_current_form == FORM_UNKNOWN)
Error: CPPCHECK_WARNING: [#def544]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/parse.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def545]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/primary.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def546]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/resolve.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def547]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/scanner.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def548]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/scanner.cc:748:7: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
# 746| if ((c = next_char ()) == 'c' || c == 'C')
# 747| if ((c = next_char ()) == 'c' || c == 'C')
# 748|-> if ((c = next_char ()) == '$')
# 749| r = true;
# 750|
Error: CLANG_WARNING: [#def549]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/scanner.cc:956:4: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 954| gfc_current_locus = old_loc;
# 955| next_char();
# 956|-> c = next_char();
# 957| }
# 958| }
Error: CLANG_WARNING: [#def550]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/scanner.cc:1514:36: warning[core.NullDereference]: Access to field 'truncated' results in a dereference of a null pointer (loaded from field 'lb')
# 1512|
# 1513| /* Avoid truncation warnings for comment ending lines. */
# 1514|-> gfc_current_locus.lb->truncated = 0;
# 1515| }
# 1516|
Error: CPPCHECK_WARNING: [#def551]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/simplify.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def552]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/st.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def553]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/symbol.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def554]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/target-memory.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def555]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/target-memory.cc:707:32: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value due to array index out of bounds
# 705| for (i = 0; i < (int)len; i++)
# 706| {
# 707|-> if (chk[i] && (buffer[i] != data[i]))
# 708| {
# 709| if (loc)
Error: CPPCHECK_WARNING: [#def556]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-array.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def557]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def558]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-const.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def559]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-expr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def560]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-intrinsic.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def561]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-io.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def562]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-io.cc:2320: warning[nullPointer]: Possible null pointer dereference: code
# 2318| /* gfortran reaches here for "print *, c_loc(xxx)". */
# 2319| if (ts->type == BT_VOID
# 2320|-> && code->expr1 && code->expr1->ts.type == BT_VOID
# 2321| && code->expr1->symtree
# 2322| && strcmp (code->expr1->symtree->name, "c_loc") == 0)
Error: CPPCHECK_WARNING (CWE-476): [#def563]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-io.cc:2321: warning[nullPointer]: Possible null pointer dereference: code
# 2319| if (ts->type == BT_VOID
# 2320| && code->expr1 && code->expr1->ts.type == BT_VOID
# 2321|-> && code->expr1->symtree
# 2322| && strcmp (code->expr1->symtree->name, "c_loc") == 0)
# 2323| {
Error: CPPCHECK_WARNING (CWE-476): [#def564]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-io.cc:2322: warning[nullPointer]: Possible null pointer dereference: code
# 2320| && code->expr1 && code->expr1->ts.type == BT_VOID
# 2321| && code->expr1->symtree
# 2322|-> && strcmp (code->expr1->symtree->name, "c_loc") == 0)
# 2323| {
# 2324| ts->type = BT_INTEGER;
Error: CPPCHECK_WARNING: [#def565]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-openmp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def566]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-stmt.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def567]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-types.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def568]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans-types.cc:2270:46: warning[core.NullDereference]: Access to field 'nonrestricted_type' results in a dereference of a null pointer (loaded from field 'lang_specific')
# 2268| }
# 2269|
# 2270|-> TYPE_LANG_SPECIFIC (t)->nonrestricted_type = ret;
# 2271| return ret;
# 2272| }
Error: CPPCHECK_WARNING: [#def569]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def570]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans.cc:229:3: warning[deadcode.DeadStores]: Value stored to 't1' is never read
# 227|
# 228| tree t1, t2;
# 229|-> t1 = TREE_TYPE (rhs);
# 230| t2 = TREE_TYPE (lhs);
# 231| /* Make sure that the types of the rhs and the lhs are compatible
Error: CLANG_WARNING: [#def571]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans.cc:230:3: warning[deadcode.DeadStores]: Value stored to 't2' is never read
# 228| tree t1, t2;
# 229| t1 = TREE_TYPE (rhs);
# 230|-> t2 = TREE_TYPE (lhs);
# 231| /* Make sure that the types of the rhs and the lhs are compatible
# 232| for scalar assignments. We should probably have something
Error: CPPCHECK_WARNING (CWE-457): [#def572]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fortran/trans.cc:976: warning[uninitvar]: Uninitialized variable: caf_attr.codimension
# 974|
# 975| if (flag_coarray == GFC_FCOARRAY_LIB
# 976|-> && (corank > 0 || caf_attr.codimension))
# 977| {
# 978| tree cond2, sub_caf_tree;
Error: CPPCHECK_WARNING: [#def573]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/fwprop.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def574]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcc-ar.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def575]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcc-ar.cc:203:19: warning[deadcode.DeadStores]: Value stored to 'real_exe_name' during its initialization is never read
# 201| if (!exe_name)
# 202| {
# 203|-> const char *real_exe_name = PERSONALITY;
# 204| #ifdef CROSS_DIRECTORY_STRUCTURE
# 205| real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
Error: CPPCHECK_WARNING: [#def576]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcc-main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def577]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcc-rich-location.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def578]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcc-urlifier.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def579]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def580]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcc.cc:2029: warning[nullPointer]: Possible null pointer dereference: sl
# 2027| gcc_assert (sl);
# 2028|
# 2029|-> if (sl->alloc_p)
# 2030| {
# 2031| const char *old = *spec;
Error: CPPCHECK_WARNING: [#def581]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov-dump.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def582]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov-dump.cc:390:25: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
# 388| printf ("%cfake", c), c = ',';
# 389| if (flags & GCOV_ARC_FALLTHROUGH)
# 390|-> printf ("%cfall", c), c = ',';
# 391| printf (")");
# 392| }
Error: CPPCHECK_WARNING: [#def583]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov-tool.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def584]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def585]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2353:10: warning[core.NullDereference]: Access to field 'pred' results in a dereference of a null pointer (loaded from field 'dst')
# 2351| hold. */
# 2352| if (blk->is_call_site && arc->fall_through
# 2353|-> && arc->dst->pred == arc && !arc->pred_next)
# 2354| arc->dst->is_call_return = 1;
# 2355| }
Error: CPPCHECK_WARNING (CWE-476): [#def586]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2445: warning[nullPointer]: Possible null pointer dereference: inv_arc
# 2443| inv_arc = arc;
# 2444| }
# 2445|-> dst = inv_arc->dst;
# 2446| inv_arc->count_valid = 1;
# 2447| inv_arc->count = total;
Error: CLANG_WARNING: [#def587]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2445:14: warning[core.NullDereference]: Access to field 'dst' results in a dereference of a null pointer (loaded from variable 'inv_arc')
# 2443| inv_arc = arc;
# 2444| }
# 2445|-> dst = inv_arc->dst;
# 2446| inv_arc->count_valid = 1;
# 2447| inv_arc->count = total;
Error: CPPCHECK_WARNING (CWE-476): [#def588]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2446: warning[nullPointer]: Possible null pointer dereference: inv_arc
# 2444| }
# 2445| dst = inv_arc->dst;
# 2446|-> inv_arc->count_valid = 1;
# 2447| inv_arc->count = total;
# 2448| blk->num_succ--;
Error: CPPCHECK_WARNING (CWE-476): [#def589]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2447: warning[nullPointer]: Possible null pointer dereference: inv_arc
# 2445| dst = inv_arc->dst;
# 2446| inv_arc->count_valid = 1;
# 2447|-> inv_arc->count = total;
# 2448| blk->num_succ--;
# 2449| dst->num_pred--;
Error: CLANG_WARNING: [#def590]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2449:8: warning[core.NullDereference]: Access to field 'num_pred' results in a dereference of a null pointer (loaded from variable 'dst')
# 2447| inv_arc->count = total;
# 2448| blk->num_succ--;
# 2449|-> dst->num_pred--;
# 2450| if (dst->count_valid)
# 2451| {
Error: CPPCHECK_WARNING (CWE-476): [#def591]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2481: warning[nullPointer]: Possible null pointer dereference: inv_arc
# 2479| inv_arc = arc;
# 2480| }
# 2481|-> src = inv_arc->src;
# 2482| inv_arc->count_valid = 1;
# 2483| inv_arc->count = total;
Error: CLANG_WARNING: [#def592]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2481:14: warning[core.NullDereference]: Access to field 'src' results in a dereference of a null pointer (loaded from variable 'inv_arc')
# 2479| inv_arc = arc;
# 2480| }
# 2481|-> src = inv_arc->src;
# 2482| inv_arc->count_valid = 1;
# 2483| inv_arc->count = total;
Error: CPPCHECK_WARNING (CWE-476): [#def593]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2482: warning[nullPointer]: Possible null pointer dereference: inv_arc
# 2480| }
# 2481| src = inv_arc->src;
# 2482|-> inv_arc->count_valid = 1;
# 2483| inv_arc->count = total;
# 2484| blk->num_pred--;
Error: CPPCHECK_WARNING (CWE-476): [#def594]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcov.cc:2483: warning[nullPointer]: Possible null pointer dereference: inv_arc
# 2481| src = inv_arc->src;
# 2482| inv_arc->count_valid = 1;
# 2483|-> inv_arc->count = total;
# 2484| blk->num_pred--;
# 2485| src->num_succ--;
Error: CPPCHECK_WARNING: [#def595]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcse-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def596]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcse.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def597]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcse.cc:1156:28: warning[core.NullDereference]: Access to field 'next_same_hash' results in a dereference of a null pointer (loaded from variable 'last_expr')
# 1154| else
# 1155| /* Add EXPR to end of this hash chain. */
# 1156|-> last_expr->next_same_hash = cur_expr;
# 1157|
# 1158| /* Set the fields of the expr element. */
Error: CPPCHECK_WARNING: [#def598]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genattr-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def599]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genattr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def600]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genattrtab.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def601]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genautomata.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def602]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gencfn-macros.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def603]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gencheck.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def604]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genchecksum.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def605]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gencodes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def606]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genconditions.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def607]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genconfig.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def608]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genconstants.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def609]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genemit.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def610]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genemit.cc:437:17: warning[core.NullDereference]: Access to field 'num_elem' results in a dereference of a null pointer (loaded from field 'rt_rtvec')
# 435| rtx pattern = add_implicit_parallel (XVEC (insn, 1));
# 436| /* ??? This is the traditional behavior, but seems suspect. */
# 437|-> char *used = (XVECLEN (insn, 1) == 1
# 438| ? NULL
# 439| : XCNEWVEC (char, stats.num_generator_args));
Error: CLANG_WARNING: [#def611]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genemit.cc:655:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 653| int i;
# 654|
# 655|-> fprintf (file, "\n\nvoid\nadd_clobbers (rtx pattern ATTRIBUTE_UNUSED, int insn_code_number)\n");
# 656| fprintf (file, "{\n");
# 657| fprintf (file, " switch (insn_code_number)\n");
Error: CPPCHECK_WARNING: [#def612]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genenums.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def613]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genextract.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def614]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genflags.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def615]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengenrtl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def616]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-parse.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def617]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-parse.cc:996:7: warning[deadcode.DeadStores]: Value stored to 'kind' is never read
# 994| /* Do not look inside user defined structures. */
# 995| fields = NULL;
# 996|-> kind = TYPE_USER_STRUCT;
# 997| consume_balanced ('{', '}');
# 998| return create_user_defined_type (s, &lexer_line);
Error: CPPCHECK_WARNING: [#def618]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-state.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def619]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-state.cc:359:19: warning[deadcode.DeadStores]: Although the value stored to 'curoff' is used in the enclosing expression, the value is never actually read from 'curoff'
# 357| {
# 358| state_line++;
# 359|-> state_bol = curoff = ftell (state_file);
# 360| goto again;
# 361| };
Error: CLANG_WARNING: [#def620]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-state.cc:375:16: warning[deadcode.DeadStores]: Although the value stored to 'curoff' is used in the enclosing expression, the value is never actually read from 'curoff'
# 373| {
# 374| state_line++;
# 375|-> state_bol = curoff = ftell (state_file);
# 376| }
# 377| goto again;
Error: CLANG_WARNING: [#def621]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-state.cc:2278:19: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'previous')
# 2276| else
# 2277| {
# 2278|-> previous->next = tmp;
# 2279| previous = tmp;
# 2280| }
Error: CPPCHECK_WARNING: [#def622]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def623]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype.cc:359:13: warning[deadcode.DeadStores]: Value stored to 'committed' during its initialization is never read
# 357| char *buf = XNEWVEC (char, bufsz);
# 358| char *here = buf;
# 359|-> char *committed = buf;
# 360| char *limit = buf + bufsz;
# 361| char *line;
Error: CLANG_WARNING: [#def624]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype.cc:4600:12: warning[core.NullDereference]: Access to field 'started_p' results in a dereference of a null pointer (loaded from variable 'fli')
# 4598| if (fli->f == f)
# 4599| break;
# 4600|-> if (!fli->started_p)
# 4601| {
# 4602| fli->started_p = 1;
Error: CLANG_WARNING: [#def625]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype.cc:4707:12: warning[core.NullDereference]: Access to field 'started_p' results in a dereference of a null pointer (loaded from variable 'fli')
# 4705| if (fli->f == f)
# 4706| break;
# 4707|-> if (!fli->started_p)
# 4708| {
# 4709| fli->started_p = 1;
Error: CPPCHECK_WARNING: [#def626]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genhooks.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def627]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def628]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:573:10: warning[core.NullDereference]: Access to field 'kind' results in a dereference of a null pointer (loaded from variable 'id')
# 571| is_a_helper <operator_id *>::test (id_base *id)
# 572| {
# 573|-> return id->kind == id_base::CODE;
# 574| }
# 575|
Error: CLANG_WARNING: [#def629]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:589:10: warning[core.NullDereference]: Access to field 'kind' results in a dereference of a null pointer (loaded from variable 'id')
# 587| is_a_helper <user_id *>::test (id_base *id)
# 588| {
# 589|-> return id->kind == id_base::USER;
# 590| }
# 591|
Error: CLANG_WARNING: [#def630]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:964:10: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'op')
# 962| is_a_helper <capture *>::test (operand *op)
# 963| {
# 964|-> return op->type == operand::OP_CAPTURE;
# 965| }
# 966|
Error: CLANG_WARNING: [#def631]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:1973:15: warning[core.NullDereference]: Access to field 'location' results in a dereference of a null pointer (loaded from field 'op')
# 1971| location_t p_loc = 0;
# 1972| if (p->type == dt_node::DT_OPERAND)
# 1973|-> p_loc = as_a <dt_operand *> (p)->op->location;
# 1974| location_t op_loc = 0;
# 1975| if (ops[i]->type == dt_node::DT_OPERAND)
Error: CLANG_WARNING: [#def632]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2020:3: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'n'
# 2018| dt_operand *parent_ = safe_as_a<dt_operand *> (parent);
# 2019| dt_operand *n = new dt_operand (DT_OPERAND, op, 0, parent_, pos);
# 2020|-> return append_node (n);
# 2021| }
# 2022|
Error: CLANG_WARNING: [#def633]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2030:3: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'n'
# 2028| dt_operand *parent_ = safe_as_a<dt_operand *> (parent);
# 2029| dt_operand *n = new dt_operand (DT_TRUE, op, 0, parent_, pos);
# 2030|-> return append_node (n);
# 2031| }
# 2032|
Error: CLANG_WARNING: [#def634]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2041:3: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'n'
# 2039| dt_operand *parent_ = as_a<dt_operand *> (parent);
# 2040| dt_operand *n = new dt_operand (DT_MATCH, op, match_dop, parent_, pos);
# 2041|-> return append_node (n);
# 2042| }
# 2043|
Error: CLANG_WARNING: [#def635]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2064:3: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'n'
# 2062| fprintf (stderr, "\n");
# 2063| }
# 2064|-> return append_node (n);
# 2065| }
# 2066|
Error: CLANG_WARNING: [#def636]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2411:2: warning[deadcode.DeadStores]: Value stored to 'opr' is never read
# 2409| id_base *opr = e->operation;
# 2410| if (user_id *uid = dyn_cast <user_id *> (opr))
# 2411|-> opr = uid->substitutes[0];
# 2412| for (unsigned i = 0; i < e->ops.length (); ++i)
# 2413| {
Error: CLANG_WARNING: [#def637]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2489:7: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'n')
# 2487| (t->val.node.node)->ident.str))
# 2488| && is_a <predicate_id *> (id)))
# 2489|-> && n->type == CPP_OPEN_PAREN)
# 2490| p_depth++;
# 2491| else if (t->type == CPP_CLOSE_PAREN
Error: CLANG_WARNING: [#def638]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2496:13: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'n')
# 2494| else if (p_depth == 0
# 2495| && t->type == CPP_ATSIGN
# 2496|-> && (n->type == CPP_NUMBER
# 2497| || n->type == CPP_NAME)
# 2498| && !(n->flags & PREV_WHITE))
Error: CLANG_WARNING: [#def639]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2508:14: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'where')
# 2506| if (! where)
# 2507| fatal_at (n, "unknown capture id '%s'", id1);
# 2508|-> info[info[*where].same_as].force_no_side_effects_p = true;
# 2509| if (verbose >= 1
# 2510| && !gimple)
Error: CLANG_WARNING: [#def640]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:2794:36: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'cid')
# 2792| if (!cid)
# 2793| fatal_at (token, "unknown capture id");
# 2794|-> fprintf (f, "captures[%u]", *cid);
# 2795| ++i;
# 2796| continue;
Error: CPPCHECK_WARNING (CWE-562): [#def641]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:4987: error[danglingLifetime]: Non-local variable 'oper_lists_set' will use pointer to local variable 'olist'.
# 4985| /* Reset oper_lists and set. */
# 4986| hash_set <user_id *> olist;
# 4987|-> oper_lists_set = &olist;
# 4988| oper_lists = vNULL;
# 4989|
Error: CLANG_WARNING: [#def642]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:5085:14: warning[core.NullDereference]: Access to field 'nargs' results in a dereference of a null pointer (loaded from variable 'idb')
# 5083|
# 5084| if (arity == -1)
# 5085|-> arity = idb->nargs;
# 5086| else if (idb->nargs == -1)
# 5087| ;
Error: CLANG_WARNING: [#def643]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:5086:13: warning[core.NullDereference]: Access to field 'nargs' results in a dereference of a null pointer (loaded from variable 'idb')
# 5084| if (arity == -1)
# 5085| arity = idb->nargs;
# 5086|-> else if (idb->nargs == -1)
# 5087| ;
# 5088| else if (idb->nargs != arity)
Error: CLANG_WARNING: [#def644]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:5172:11: warning[deadcode.DeadStores]: Although the value stored to 'token' is used in the enclosing expression, the value is never actually read from 'token'
# 5170| int arity = -1;
# 5171|
# 5172|-> while ((token = peek_ident ()) != 0)
# 5173| {
# 5174| token = peek ();
Error: CLANG_WARNING: [#def645]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:5182:10: warning[core.NullDereference]: Access to field 'nargs' results in a dereference of a null pointer (loaded from variable 'idb')
# 5180|
# 5181| if (arity == -1)
# 5182|-> arity = idb->nargs;
# 5183| else if (idb->nargs == -1)
# 5184| ;
Error: CLANG_WARNING: [#def646]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmatch.cc:5183:16: warning[core.NullDereference]: Access to field 'nargs' results in a dereference of a null pointer (loaded from variable 'idb')
# 5181| if (arity == -1)
# 5182| arity = idb->nargs;
# 5183|-> else if (idb->nargs == -1)
# 5184| ;
# 5185| else if (arity != idb->nargs)
Error: CPPCHECK_WARNING: [#def647]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmddeps.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def648]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmodes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def649]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmodes.cc:418:17: warning[core.NullDereference]: Access to field 'bytesize' results in a dereference of a null pointer (loaded from field 'component')
# 416| not more aligned than their contents. */
# 417| if (m->cl == MODE_COMPLEX_INT || m->cl == MODE_COMPLEX_FLOAT)
# 418|-> alignment = m->component->bytesize;
# 419| else
# 420| alignment = m->bytesize;
Error: CLANG_WARNING: [#def650]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genmodes.cc:906:7: warning[core.NullDereference]: Access to field 'bytesize' results in a dereference of a null pointer (loaded from field 'component')
# 904| }
# 905|
# 906|-> if (m->component->bytesize > n->component->bytesize)
# 907| return 1;
# 908| else if (m->component->bytesize < n->component->bytesize)
Error: CPPCHECK_WARNING: [#def651]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genopinit.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def652]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genopinit.cc:237:69: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 235| last_kind[j++] = i - 1;
# 236| }
# 237|-> fprintf (h_file, " FIRST_CONV_OPTAB = %s,\n", optabs[last_kind[0]+1].name);
# 238| fprintf (h_file, " LAST_CONVLIB_OPTAB = %s,\n", optabs[last_kind[1]].name);
# 239| fprintf (h_file, " LAST_CONV_OPTAB = %s,\n", optabs[last_kind[2]].name);
Error: CPPCHECK_WARNING (CWE-457): [#def653]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genopinit.cc:238: warning[uninitvar]: Uninitialized variable: last_kind
# 236| }
# 237| fprintf (h_file, " FIRST_CONV_OPTAB = %s,\n", optabs[last_kind[0]+1].name);
# 238|-> fprintf (h_file, " LAST_CONVLIB_OPTAB = %s,\n", optabs[last_kind[1]].name);
# 239| fprintf (h_file, " LAST_CONV_OPTAB = %s,\n", optabs[last_kind[2]].name);
# 240| fprintf (h_file, " FIRST_NORM_OPTAB = %s,\n", optabs[last_kind[2]+1].name);
Error: CLANG_WARNING: [#def654]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genopinit.cc:238:52: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
# 236| }
# 237| fprintf (h_file, " FIRST_CONV_OPTAB = %s,\n", optabs[last_kind[0]+1].name);
# 238|-> fprintf (h_file, " LAST_CONVLIB_OPTAB = %s,\n", optabs[last_kind[1]].name);
# 239| fprintf (h_file, " LAST_CONV_OPTAB = %s,\n", optabs[last_kind[2]].name);
# 240| fprintf (h_file, " FIRST_NORM_OPTAB = %s,\n", optabs[last_kind[2]+1].name);
Error: CLANG_WARNING: [#def655]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genopinit.cc:239:49: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
# 237| fprintf (h_file, " FIRST_CONV_OPTAB = %s,\n", optabs[last_kind[0]+1].name);
# 238| fprintf (h_file, " LAST_CONVLIB_OPTAB = %s,\n", optabs[last_kind[1]].name);
# 239|-> fprintf (h_file, " LAST_CONV_OPTAB = %s,\n", optabs[last_kind[2]].name);
# 240| fprintf (h_file, " FIRST_NORM_OPTAB = %s,\n", optabs[last_kind[2]+1].name);
# 241| fprintf (h_file, " LAST_NORMLIB_OPTAB = %s,\n", optabs[last_kind[3]].name);
Error: CLANG_WARNING: [#def656]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genopinit.cc:241:52: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
# 239| fprintf (h_file, " LAST_CONV_OPTAB = %s,\n", optabs[last_kind[2]].name);
# 240| fprintf (h_file, " FIRST_NORM_OPTAB = %s,\n", optabs[last_kind[2]+1].name);
# 241|-> fprintf (h_file, " LAST_NORMLIB_OPTAB = %s,\n", optabs[last_kind[3]].name);
# 242| fprintf (h_file, " LAST_NORM_OPTAB = %s\n", optabs[i-1].name);
# 243| fprintf (h_file, "};\n\n");
Error: CPPCHECK_WARNING: [#def657]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genoutput.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def658]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genoutput.cc:860:7: warning[deadcode.DeadStores]: Value stored to 'alt_mismatch' is never read
# 858| if (!alt_mismatch)
# 859| {
# 860|-> alt_mismatch = true;
# 861| error_at (d->loc,
# 862| "alternative number mismatch: "
Error: CPPCHECK_WARNING: [#def659]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genpeep.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def660]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genpreds.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def661]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genpreds.cc:866:7: warning[core.NullDereference]: Access to field 'code' results in a dereference of a null pointer (loaded from variable 'exp')
# 864| /* Consider relaxing this requirement in the future. */
# 865| if (regclass
# 866|-> || GET_CODE (exp) != AND
# 867| || GET_CODE (XEXP (exp, 0)) != MATCH_CODE
# 868| || strcmp (XSTR (XEXP (exp, 0), 0),
Error: CPPCHECK_WARNING: [#def662]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genrecog.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def663]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genrecog.cc:1899:36: warning[core.NullDereference]: Access to field 'to' results in a dereference of a null pointer (loaded from field 'first')
# 1897| /* Follow the first chain down, as one example of a path that needs
# 1898| to contain the common test. */
# 1899|-> for (decision *d = outer; d; d = d->first->to->first)
# 1900| {
# 1901| transition *trans = d->singleton ();
Error: CLANG_WARNING: [#def664]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/genrecog.cc:4578:34: warning[core.NullDereference]: Access to field 'id' results in a dereference of a null pointer (loaded from field 'pos')
# 4576| printf ("operands[%d]", test.pos_operand);
# 4577| else
# 4578|-> printf ("x%d", os->id_to_var[test.pos->id]);
# 4579| }
# 4580|
Error: CPPCHECK_WARNING: [#def665]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gensupport.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def666]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gensupport.cc:3207:3: warning[deadcode.DeadStores]: Value stored to 'truth' is never read
# 3205|
# 3206| cur = define_insn_queue;
# 3207|-> truth = 1;
# 3208| while (cur)
# 3209| {
Error: CLANG_WARNING: [#def667]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gensupport.cc:3219:3: warning[deadcode.DeadStores]: Value stored to 'truth' is never read
# 3217|
# 3218| cur = other_queue;
# 3219|-> truth = 1;
# 3220| while (cur)
# 3221| {
Error: CPPCHECK_WARNING: [#def668]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gentarget-def.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def669]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ggc-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def670]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ggc-common.cc:649:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 647| }
# 648| #endif
# 649|-> memcpy (this_object, state.ptrs[i]->obj, state.ptrs[i]->size);
# 650| if (state.ptrs[i]->reorder_fn != NULL)
# 651| state.ptrs[i]->reorder_fn (state.ptrs[i]->obj,
Error: CPPCHECK_WARNING: [#def671]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ggc-none.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def672]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ggc-page.cc:1340:11: warning[deadcode.DeadStores]: Although the value stored to 'bit' is used in the enclosing expression, the value is never actually read from 'bit'
# 1338| if ((entry->in_use_p[word] >> bit) & 1)
# 1339| {
# 1340|-> word = bit = 0;
# 1341| while (~entry->in_use_p[word] == 0)
# 1342| ++word;
Error: CLANG_WARNING: [#def673]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ggc-page.cc:1987:23: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'p')
# 1985| do
# 1986| {
# 1987|-> page_entry *next = p->next;
# 1988|
# 1989| /* Loop until all entries have been examined. */
Error: CPPCHECK_WARNING: [#def674]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ggc-tests.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def675]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-expr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def676]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-isel.cc:291:17: warning[core.NullDereference]: Dereference of null pointer
# 289| }
# 290| }
# 291|-> cmp_op_mode = TYPE_MODE (TREE_TYPE (op0a));
# 292| unsignedp = TYPE_UNSIGNED (TREE_TYPE (op0a));
# 293|
Error: CLANG_WARNING: [#def677]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-iterator.cc:956:24: warning[deadcode.DeadStores]: Value stored to 'gsi' during its initialization is never read
# 954| edge_before_returns_twice_call (basic_block bb)
# 955| {
# 956|-> gimple_stmt_iterator gsi = gsi_start_nondebug_bb (bb);
# 957| gcc_checking_assert (is_gimple_call (gsi_stmt (gsi))
# 958| && (gimple_call_flags (gsi_stmt (gsi))
Error: CLANG_WARNING: [#def678]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-iterator.cc:987:22: warning[core.NullDereference]: Access to field 'src' results in a dereference of a null pointer (loaded from variable 'ad_edge')
# 985| {
# 986| other_edge = split_block_after_labels (bb);
# 987|-> e = make_edge (ad_edge->src, other_edge->dest, EDGE_ABNORMAL);
# 988| for (gphi_iterator gsi = gsi_start_phis (other_edge->src);
# 989| !gsi_end_p (gsi); gsi_next (&gsi))
Error: CLANG_WARNING: [#def679]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-harden-conditionals.cc:33: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-iterator.h:231:12: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from field 'ptr')
# 229| gsi_next (gimple_stmt_iterator *i)
# 230| {
# 231|-> i->ptr = i->ptr->next;
# 232| }
# 233|
Error: COMPILER_WARNING (CWE-134): [#def680]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-range-gori.cc: scope_hint: In member function ‘void range_def_chain::dump(FILE*, basic_block, const char*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-range-gori.cc:318:19: warning[-Wformat-security]: format not a string literal and no format arguments
# 318 | fprintf (f, prefix);
# | ~~~~~~~~^~~~~~~~~~~
# 316| if (chain && !bitmap_empty_p (chain))
# 317| {
# 318|-> fprintf (f, prefix);
# 319| print_generic_expr (f, name, TDF_SLIM);
# 320| fprintf (f, " : ");
Error: CPPCHECK_WARNING: [#def681]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-ssa-split-paths.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def682]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-streamer-in.cc:73:67: warning[core.NullDereference]: Access to field 'dest_idx' results in a dereference of a null pointer (loaded from variable 'e')
# 71| add_phi_arg (result, def, e, UNKNOWN_LOCATION);
# 72| /* Read location and lexical block information. */
# 73|-> location_t *arg_locp = gimple_phi_arg_location_ptr (result, e->dest_idx);
# 74| data_in->location_cache.input_location_and_block (arg_locp, &bp, ib,
# 75| data_in);
Error: CPPCHECK_WARNING: [#def683]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def684]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:70:12: warning[core.NullDereference]: Access to field 'removed_stmt' results in a dereference of a null pointer (loaded from variable 'wi')
# 68| }
# 69|
# 70|-> if (!wi->removed_stmt)
# 71| gsi_next (&gsi);
# 72| else
Error: CPPCHECK_WARNING (CWE-562): [#def685]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:620: error[returnDanglingLifetime]: Returning pointer to local variable 'handled_ops' that will be invalid when returning.
# 618| tree_ret = callback_stmt (gsi, &handled_ops, wi);
# 619| if (handled_ops)
# 620|-> return tree_ret;
# 621|
# 622| /* If CALLBACK_STMT did not handle operands, it should not have
Error: CLANG_WARNING: [#def686]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:648:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 646| callback_stmt, callback_op, wi);
# 647| if (ret)
# 648|-> return wi->callback_result;
# 649| break;
# 650|
Error: CLANG_WARNING: [#def687]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:656:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 654| callback_stmt, callback_op, wi);
# 655| if (ret)
# 656|-> return wi->callback_result;
# 657| break;
# 658|
Error: CLANG_WARNING: [#def688]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:663:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 661| callback_op, wi);
# 662| if (ret)
# 663|-> return wi->callback_result;
# 664| break;
# 665|
Error: CLANG_WARNING: [#def689]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:672:11: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 670| callback_stmt, callback_op, wi);
# 671| if (ret)
# 672|-> return wi->callback_result;
# 673| ret = walk_gimple_seq_mod (gimple_eh_else_e_body_ptr (eh_else_stmt),
# 674| callback_stmt, callback_op, wi);
Error: CLANG_WARNING: [#def690]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:676:11: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 674| callback_stmt, callback_op, wi);
# 675| if (ret)
# 676|-> return wi->callback_result;
# 677| }
# 678| break;
Error: CLANG_WARNING: [#def691]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:684:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 682| wi);
# 683| if (ret)
# 684|-> return wi->callback_result;
# 685|
# 686| ret = walk_gimple_seq_mod (gimple_try_cleanup_ptr (stmt), callback_stmt,
Error: CLANG_WARNING: [#def692]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:689:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 687| callback_op, wi);
# 688| if (ret)
# 689|-> return wi->callback_result;
# 690| break;
# 691|
Error: CLANG_WARNING: [#def693]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:696:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 694| callback_op, wi);
# 695| if (ret)
# 696|-> return wi->callback_result;
# 697|
# 698| /* FALL THROUGH. */
Error: CLANG_WARNING: [#def694]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:717:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 715| callback_op, wi);
# 716| if (ret)
# 717|-> return wi->callback_result;
# 718| break;
# 719|
Error: CLANG_WARNING: [#def695]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:724:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 722| callback_op, wi);
# 723| if (ret)
# 724|-> return wi->callback_result;
# 725| break;
# 726|
Error: CLANG_WARNING: [#def696]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:731:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 729| callback_stmt, callback_op, wi);
# 730| if (ret)
# 731|-> return wi->callback_result;
# 732| break;
# 733|
Error: CLANG_WARNING: [#def697]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-walk.cc:739:9: warning[core.NullDereference]: Access to field 'callback_result' results in a dereference of a null pointer (loaded from variable 'wi')
# 737| callback_stmt, callback_op, wi);
# 738| if (ret)
# 739|-> return wi->callback_result;
# 740| break;
# 741|
Error: CLANG_WARNING: [#def698]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-iterator.cc:26: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple.h:1780:15: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer
# 1778| gimple_seq_set_last (gimple_seq *ps, gimple_seq_node last)
# 1779| {
# 1780|-> (*ps)->prev = last;
# 1781| }
# 1782|
Error: CLANG_WARNING: [#def699]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-threadupdate.cc:25: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple.h:1823:13: warning[core.NullDereference]: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'bb')
# 1821| bb_seq_addr (basic_block bb)
# 1822| {
# 1823|-> return (!(bb->flags & BB_RTL)) ? &bb->il.gimple.seq : NULL;
# 1824| }
# 1825|
Error: CPPCHECK_WARNING: [#def700]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/godump.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def701]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/godump.cc:629:19: warning[core.DivideZero]: Division by zero
# 627| unsigned int index, unsigned int *ret_offset)
# 628| {
# 629|-> if (from_offset % align_units > 0)
# 630| from_offset += align_units - (from_offset % align_units);
# 631| gcc_assert (to_offset >= from_offset);
Error: CPPCHECK_WARNING: [#def702]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/graph.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def703]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/graphds.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def704]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/graphite.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def705]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/graphviz.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def706]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/haifa-sched.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def707]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/shrink-wrap.cc:26: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/target.h:53: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hard-reg-set.h:200:5: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 198| {
# 199| set.elts[bit / UHOST_BITS_PER_WIDE_INT]
# 200|-> |= HARD_CONST (1) << (bit % UHOST_BITS_PER_WIDE_INT);
# 201| }
# 202|
Error: CPPCHECK_WARNING (CWE-758): [#def708]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hard-reg-set.h:296: warning[objectIndex]: The address of variable 'set' might be accessed at non-zero index.
# 294| if (iter->word_no < iter->length)
# 295| {
# 296|-> iter->bits = iter->pelt[iter->word_no];
# 297| iter->bits >>= min % HARD_REG_ELT_BITS;
# 298|
Error: CLANG_WARNING: [#def709]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gcse.cc:139: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/target.h:53: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hard-reg-set.h:302:10: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'set' is still referred to by the stack variable 'hrsi' upon returning to the caller. This will be a dangling reference
# 300| min += !iter->bits;
# 301| }
# 302|-> *regno = min;
# 303| }
# 304|
Error: CPPCHECK_WARNING: [#def710]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hash-map-tests.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def711]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hash-set-tests.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def712]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hash-table.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-823): [#def713]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hash-table.cc:99: error[arrayIndexOutOfBounds]: Array 'prime_tab[30]' accessed at index 30, which is out of bounds.
# 97|
# 98| /* If we've run out of primes, abort. */
# 99|-> gcc_assert (n <= prime_tab[low].prime);
# 100|
# 101| return low;
Error: CPPCHECK_WARNING: [#def714]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hooks.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def715]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hw-doloop.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def716]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hwint.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def717]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gimple-ssa-warn-alloca.cc:22: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/system.h:1250: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hwint.h:314:61: warning[core.BitwiseShift]: Left shift by '64' overflows the capacity of 'unsigned long'
# 312| gcc_checking_assert (prec < HOST_BITS_PER_WIDE_INT);
# 313| int shift = HOST_BITS_PER_WIDE_INT - prec;
# 314|-> return ((HOST_WIDE_INT) ((unsigned HOST_WIDE_INT) src << shift)) >> shift;
# 315| }
# 316| #else
Error: CPPCHECK_WARNING: [#def718]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ifcvt.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def719]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/inchash.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def720]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/incpath.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def721]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/init-regs.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def722]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/input.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def723]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/input.cc:1704: warning[objectIndex]: The address of variable 'strloc' might be accessed at non-zero index.
# 1702| /* Get range of strloc. We will use it to locate the start and finish
# 1703| of the literal token within the line. */
# 1704|-> source_range src_range = get_range_from_loc (line_table, strlocs[i]);
# 1705|
# 1706| if (src_range.m_start >= LINEMAPS_MACRO_LOWEST_LOCATION (line_table))
Error: CPPCHECK_WARNING: [#def724]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/intl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def725]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-devirt.cc: scope_hint: In function ‘void warn_odr(tree, tree, tree, tree, bool, bool*, const char*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-devirt.cc:967:10: warning[-Wformat-security]: format not a string literal and no format arguments
# 967 | inform (DECL_SOURCE_LOCATION (decl2), reason);
# | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 965| else
# 966| return;
# 967|-> inform (DECL_SOURCE_LOCATION (decl2), reason);
# 968|
# 969| if (warned)
Error: CLANG_WARNING: [#def726]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-param-manipulation.cc:337:33: warning[core.NullDereference]: Dereference of null pointer
# 335| {
# 336| if (new_reversed)
# 337|-> TREE_CHAIN (new_arg_types) = void_list_node;
# 338| else
# 339| new_reversed = void_list_node;
Error: CLANG_WARNING: [#def727]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-param-manipulation.cc:1392:43: warning[core.NullDereference]: Dereference of null pointer
# 1390| remap_with_debug_expressions (&val);
# 1391|
# 1392|-> tree vexpr = build_debug_expr_decl (TREE_TYPE (val));
# 1393| m_dead_stmt_debug_equiv.put (def, val);
# 1394| m_dead_ssa_debug_equiv.put (dead_ssa, vexpr);
Error: CLANG_WARNING: [#def728]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-polymorphic-call.cc:379:11: warning[core.NullDereference]: Dereference of null pointer
# 377| no_useful_type_info:
# 378| if (maybe_derived_type && !speculative
# 379|-> && TREE_CODE (outer_type) == RECORD_TYPE
# 380| && TREE_CODE (otr_type) == RECORD_TYPE
# 381| && TYPE_BINFO (otr_type)
Error: CLANG_WARNING: [#def729]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-polymorphic-call.cc:380:11: warning[core.NullDereference]: Dereference of null pointer
# 378| if (maybe_derived_type && !speculative
# 379| && TREE_CODE (outer_type) == RECORD_TYPE
# 380|-> && TREE_CODE (otr_type) == RECORD_TYPE
# 381| && TYPE_BINFO (otr_type)
# 382| && !offset
Error: CLANG_WARNING: [#def730]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-polymorphic-call.cc:991:10: warning[core.NullDereference]: Dereference of null pointer
# 989| if (TREE_CODE (base_pointer) == SSA_NAME
# 990| && SSA_NAME_IS_DEFAULT_DEF (base_pointer)
# 991|-> && TREE_CODE (SSA_NAME_VAR (base_pointer)) == PARM_DECL)
# 992| {
# 993| /* See if parameter is THIS pointer of a method. */
Error: CLANG_WARNING: [#def731]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-polymorphic-call.cc:1791:25: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'aa_walk_budget_p')
# 1789| if (dump_file)
# 1790| fprintf (dump_file, " AA walk budget exhausted.\n");
# 1791|-> *aa_walk_budget_p = 0;
# 1792| return false;
# 1793| }
Error: CLANG_WARNING: [#def732]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-strub.cc:2174:34: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2172| {
# 2173| gcc_checking_assert (gsi_one_before_end_p (gsi));
# 2174|-> add_call_edges_for_seq (nseq, eft->count ());
# 2175| gsi_insert_seq_on_edge_immediate (eft, nseq);
# 2176| }
Error: CLANG_WARNING: [#def733]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-strub.cc:2189:36: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2187| if (eh_lp)
# 2188| {
# 2189|-> add_call_edges_for_seq (seq, eeh->count ());
# 2190| gsi_insert_seq_on_edge_immediate (eeh, seq);
# 2191| return;
Error: CLANG_WARNING: [#def734]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-strub.cc:3145:11: warning[deadcode.DeadStores]: Although the value stored to 'then_bb' is used in the enclosing expression, the value is never actually read from 'then_bb'
# 3143| cfg_count = profile_count::from_gcov_type (BB_FREQ_MAX).guessed_local ();
# 3144|
# 3145|-> bb = then_bb = else_bb = return_bb
# 3146| = init_lowered_empty_function (thunk_fndecl, true, cfg_count);
# 3147|
Error: CLANG_WARNING: [#def735]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-strub.cc:3145:21: warning[deadcode.DeadStores]: Although the value stored to 'else_bb' is used in the enclosing expression, the value is never actually read from 'else_bb'
# 3143| cfg_count = profile_count::from_gcov_type (BB_FREQ_MAX).guessed_local ();
# 3144|
# 3145|-> bb = then_bb = else_bb = return_bb
# 3146| = init_lowered_empty_function (thunk_fndecl, true, cfg_count);
# 3147|
Error: CLANG_WARNING: [#def736]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-strub.cc:3145:31: warning[deadcode.DeadStores]: Although the value stored to 'return_bb' is used in the enclosing expression, the value is never actually read from 'return_bb'
# 3143| cfg_count = profile_count::from_gcov_type (BB_FREQ_MAX).guessed_local ();
# 3144|
# 3145|-> bb = then_bb = else_bb = return_bb
# 3146| = init_lowered_empty_function (thunk_fndecl, true, cfg_count);
# 3147|
Error: CLANG_WARNING: [#def737]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-strub.cc:3345:25: warning[core.NullDereference]: Dereference of null pointer
# 3343| vaptr = NULL_TREE;
# 3344|
# 3345|-> DECL_NAME (wmptr) = get_watermark_ptr ();
# 3346| DECL_ARTIFICIAL (wmptr) = 1;
# 3347| DECL_IGNORED_P (wmptr) = 1;
Error: CLANG_WARNING: [#def738]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-strub.cc:3422:53: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3420| if (DECL_STRUCT_FUNCTION (nnode->decl)->calls_alloca
# 3421| || is_stdarg || apply_args)
# 3422|-> for (cgraph_edge *e = nnode->callees, *enext; e; e = enext)
# 3423| {
# 3424| if (!e->call_stmt)
Error: CPPCHECK_WARNING: [#def739]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-build.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def740]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-build.cc:2605:7: warning[deadcode.DeadStores]: Value stored to 'parent' is never read
# 2603| if (a_node == ira_loop_tree_root)
# 2604| continue;
# 2605|-> parent = a_node->parent;
# 2606| regno = ALLOCNO_REGNO (a);
# 2607| if (ALLOCNO_CAP_MEMBER (a) != NULL)
Error: CLANG_WARNING: [#def741]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-build.cc:2606:7: warning[deadcode.DeadStores]: Value stored to 'regno' is never read
# 2604| continue;
# 2605| parent = a_node->parent;
# 2606|-> regno = ALLOCNO_REGNO (a);
# 2607| if (ALLOCNO_CAP_MEMBER (a) != NULL)
# 2608| ira_assert (ALLOCNO_CAP (a) != NULL);
Error: CLANG_WARNING: [#def742]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-build.cc:2920:15: warning[core.NullDereference]: Access to field 'max' results in a dereference of a null pointer
# 2918| object_range_compare_func). */
# 2919| while (first_not_finished < i
# 2920|-> && start > OBJECT_MAX (ira_object_id_map
# 2921| [first_not_finished]))
# 2922| first_not_finished++;
Error: CPPCHECK_WARNING: [#def743]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-color.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def744]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-conflicts.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def745]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-conflicts.cc:432:7: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 430| if (!REG_SUBREG_P (another_reg) || op_num == i
# 431| || recog_data.operand_type[i] != OP_OUT
# 432|-> || bound_p[i]
# 433| || (!can_use_same_reg_p (insn, i, op_num)
# 434| && (recog_data.constraints[op_num][0] != '%'
Error: CLANG_WARNING: [#def746]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-conflicts.cc:578:21: warning[deadcode.DeadStores]: Value stored to 'another_a' during its initialization is never read
# 576| {
# 577| ira_object_t another_obj = ira_object_id_map[i];
# 578|-> ira_allocno_t another_a = OBJECT_ALLOCNO (obj);
# 579|
# 580| ira_assert (ira_reg_classes_intersect_p
Error: CPPCHECK_WARNING: [#def747]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-costs.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def748]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-costs.cc:1474:16: warning[core.NullDereference]: Array access results in an undefined pointer dereference
# 1472| XEXP (op_mem, 0),
# 1473| 0, MEM, SCRATCH, frequency * 2);
# 1474|-> else if (constraints[i][0] == 'p'
# 1475| || (insn_extra_address_constraint
# 1476| (lookup_constraint (constraints[i]))))
Error: CLANG_WARNING: [#def749]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-costs.cc:1494:20: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1492| constraints. We assume the modes are the same. */
# 1493| for (j = 0; j < recog_data.n_operands; j++)
# 1494|-> xconstraints[j] = constraints[j];
# 1495|
# 1496| xconstraints[i] = constraints[i+1];
Error: CPPCHECK_WARNING: [#def750]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-emit.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def751]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-emit.cc:635:5: warning[core.NullDereference]: Access to field 'hard_regno' results in a dereference of a null pointer (loaded from variable 'parent_allocno')
# 633| fprintf (ira_dump_file, " %i vs parent %i:",
# 634| ALLOCNO_HARD_REGNO (allocno),
# 635|-> ALLOCNO_HARD_REGNO (parent_allocno));
# 636| set_allocno_reg (allocno, ira_create_new_reg (original_reg));
# 637| }
Error: CLANG_WARNING: [#def752]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-emit.cc:796:7: warning[deadcode.DeadStores]: Value stored to 'to' is never read
# 794| {
# 795| from = move->from;
# 796|-> to = move->to;
# 797| if ((hard_regno = ALLOCNO_HARD_REGNO (from)) >= 0)
# 798| {
Error: CLANG_WARNING: [#def753]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-emit.cc:900:18: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'last')
# 898| move = move_vec[i];
# 899| move->next = NULL;
# 900|-> last->next = move;
# 901| last = move;
# 902| }
Error: CPPCHECK_WARNING: [#def754]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-lives.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def755]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira-lives.cc:957:4: warning[deadcode.DeadStores]: Value stored to 'cl' is never read
# 955| mode = (GET_CODE (op) == SCRATCH
# 956| ? GET_MODE (op) : PSEUDO_REGNO_MODE (regno));
# 957|-> cl = NO_REGS;
# 958| for (; (c = *p); p += CONSTRAINT_LEN (c, p))
# 959| if (c == '#')
Error: CPPCHECK_WARNING: [#def756]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ira.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def757]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/json.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def758]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/jump.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def759]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/jump.cc:1152:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1150| case ADDR_VEC:
# 1151| case ADDR_DIFF_VEC:
# 1152|-> if (! insn->deleted ())
# 1153| {
# 1154| int eltnum = code == ADDR_DIFF_VEC ? 1 : 0;
Error: CPPCHECK_WARNING (CWE-562): [#def760]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/jump.cc:1465: error[danglingTemporaryLifetime]: Using pointer that is a temporary.
# 1463| loc = &PATTERN (jump);
# 1464|
# 1465|-> redirect_exp_1 (loc, JUMP_LABEL (jump), nlabel, jump);
# 1466| return num_validated_changes () > ochanges;
# 1467| }
Error: CPPCHECK_WARNING: [#def761]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lcm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def762]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lists.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def763]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-doloop.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def764]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-init.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def765]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-invariant.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def766]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-invariant.cc:989:20: warning[deadcode.DeadStores]: Value stored to 'regno' during its initialization is never read
# 987| if (!defs)
# 988| {
# 989|-> unsigned int regno = DF_REF_REGNO (use);
# 990|
# 991| /* If this is the use of an uninitialized argument register that is
Error: CPPCHECK_WARNING: [#def767]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-iv.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def768]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-iv.cc:517:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 515|
# 516| /* Extend the constant to extend_mode of the other operand if necessary. */
# 517|-> if (iv0->extend == IV_UNKNOWN_EXTEND
# 518| && iv0->mode == iv0->extend_mode
# 519| && iv0->step == const0_rtx
Error: CLANG_WARNING: [#def769]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-iv.cc:589:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 587| return false;
# 588|
# 589|-> if (iv->extend == IV_UNKNOWN_EXTEND)
# 590| {
# 591| iv->base = simplify_gen_binary (MULT, mode, iv->base, mby);
Error: CLANG_WARNING: [#def770]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-iv.cc:614:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 612| return false;
# 613|
# 614|-> if (iv->extend == IV_UNKNOWN_EXTEND)
# 615| {
# 616| iv->base = simplify_gen_binary (ASHIFT, mode, iv->base, mby);
Error: CLANG_WARNING: [#def771]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-iv.cc:2261:7: warning[deadcode.DeadStores]: Value stored to 'niter' is never read
# 2259| return nmax;
# 2260| inc = INTVAL (XEXP (niter, 1));
# 2261|-> niter = XEXP (niter, 0);
# 2262| }
# 2263| else
Error: CLANG_WARNING: [#def772]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-iv.cc:2425:7: warning[deadcode.DeadStores]: Value stored to 'step_val' is never read
# 2423| case. */
# 2424| step_is_pow2 = false;
# 2425|-> step_val = 0;
# 2426| }
# 2427|
Error: CPPCHECK_WARNING: [#def773]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-unroll.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def774]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lower-subreg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def775]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-assigns.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def776]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-assigns.cc:582:4: warning[deadcode.DeadStores]: Value stored to 'nregs_diff' is never read
# 580| = hard_regno_nregs (conflict_hr, biggest_conflict_mode);
# 581|
# 582|-> nregs_diff
# 583| = (biggest_conflict_nregs
# 584| - hard_regno_nregs (conflict_hr,
Error: CLANG_WARNING: [#def777]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-assigns.cc:1234:6: warning[deadcode.DeadStores]: Value stored to 'nregs_diff' is never read
# 1232| biggest_nregs = hard_regno_nregs (conflict_hard_regno,
# 1233| biggest_mode);
# 1234|-> nregs_diff
# 1235| = (biggest_nregs
# 1236| - hard_regno_nregs (conflict_hard_regno,
Error: CPPCHECK_WARNING: [#def778]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-coalesce.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def779]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-constraints.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def780]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-eliminations.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def781]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-lives.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def782]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-lives.cc:1500:8: warning[deadcode.DeadStores]: Value stored to 'res' during its initialization is never read
# 1498| happen later). */
# 1499| lra_clear_live_ranges ();
# 1500|-> bool res = lra_create_live_ranges_1 (all_p, false);
# 1501| lra_assert (! res);
# 1502| }
Error: CPPCHECK_WARNING: [#def783]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-remat.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def784]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-spills.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def785]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def786]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:405:14: warning[deadcode.DeadStores]: Value stored to 'insn' during its initialization is never read
# 403| lra_assert (x != y && x != z);
# 404| emit_move_insn (x, y);
# 405|-> rtx_insn *insn = emit_add2_insn (x, z);
# 406| lra_assert (insn != NULL_RTX);
# 407| }
Error: CLANG_WARNING: [#def787]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:417:18: warning[deadcode.DeadStores]: Value stored to 'insn' during its initialization is never read
# 415| lra_assert (index_scale != NULL_RTX && base != NULL_RTX);
# 416| emit_move_insn (x, index_scale);
# 417|-> rtx_insn *insn = emit_add2_insn (x, base);
# 418| lra_assert (insn != NULL_RTX);
# 419| }
Error: CLANG_WARNING: [#def788]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:426:36: warning[core.NullDereference]: Access to field 'mode' results in a dereference of a null pointer (loaded from variable 'base')
# 424| last = get_last_insn ();
# 425| rtx_insn *move_insn =
# 426|-> emit_move_insn (x, gen_rtx_PLUS (GET_MODE (base), base, disp));
# 427| if (recog_memoized (move_insn) < 0)
# 428| {
Error: CLANG_WARNING: [#def789]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:432:15: warning[deadcode.DeadStores]: Value stored to 'add2_insn' during its initialization is never read
# 430| /* Generate x = disp; x = x + base. */
# 431| emit_move_insn (x, disp);
# 432|-> rtx_insn *add2_insn = emit_add2_insn (x, base);
# 433| lra_assert (add2_insn != NULL_RTX);
# 434| }
Error: CLANG_WARNING: [#def790]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:438:15: warning[deadcode.DeadStores]: Value stored to 'insn' during its initialization is never read
# 436| if (index != NULL_RTX)
# 437| {
# 438|-> rtx_insn *insn = emit_add2_insn (x, index);
# 439| lra_assert (insn != NULL_RTX);
# 440| }
Error: CLANG_WARNING: [#def791]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:472:9: warning[deadcode.DeadStores]: Value stored to 'insn' is never read
# 470| if (base != NULL_RTX)
# 471| {
# 472|-> insn = emit_add2_insn (x, base);
# 473| lra_assert (insn != NULL_RTX);
# 474| }
Error: CLANG_WARNING: [#def792]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:475:5: warning[deadcode.DeadStores]: Value stored to 'insn' is never read
# 473| lra_assert (insn != NULL_RTX);
# 474| }
# 475|-> insn = emit_add2_insn (x, index_scale);
# 476| lra_assert (insn != NULL_RTX);
# 477| }
Error: CLANG_WARNING: [#def793]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:830:7: warning[deadcode.DeadStores]: Value stored to 'icode' during its initialization is never read
# 828| {
# 829| int i, j, nop, nalt;
# 830|-> int icode = data->icode;
# 831| struct lra_static_insn_data *static_data = data->insn_static_data;
# 832|
Error: CLANG_WARNING: [#def794]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra.cc:878:15: warning[deadcode.DeadStores]: Value stored to 'fmt' during its initialization is never read
# 876| rtx op = *x;
# 877| enum rtx_code code = GET_CODE (op);
# 878|-> const char *fmt = GET_RTX_FORMAT (code);
# 879|
# 880| for (i = 0; i < data->insn_static_data->n_operands; i++)
Error: COMPILER_WARNING: [#def795]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-cgraph.cc: scope_hint: In function ‘void input_offload_tables(bool)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-cgraph.cc:1976:35: warning[-Wformat-diag]: unquoted identifier or keyword ‘GCC_OFFLOAD_OMP_REQUIRES_FILE’ in format
# 1976 | fatal_error (input_location, "GCC_OFFLOAD_OMP_REQUIRES_FILE unset");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1974| char *omp_requires_file = getenv ("GCC_OFFLOAD_OMP_REQUIRES_FILE");
# 1975| if (omp_requires_file == NULL || omp_requires_file[0] == '\0')
# 1976|-> fatal_error (input_location, "GCC_OFFLOAD_OMP_REQUIRES_FILE unset");
# 1977| FILE *f = fopen (omp_requires_file, "wb");
# 1978| if (!f)
Error: COMPILER_WARNING: [#def796]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-cgraph.cc:1979:47: warning[-Wformat-diag]: unquoted identifier or keyword ‘omp_requires’ in format
# 1979 | fatal_error (input_location, "Cannot open omp_requires file %qs",
# | ^~~~~~~~~~~~
# 1977| FILE *f = fopen (omp_requires_file, "wb");
# 1978| if (!f)
# 1979|-> fatal_error (input_location, "Cannot open omp_requires file %qs",
# 1980| omp_requires_file);
# 1981| uint32_t req_mask = omp_requires_mask;
Error: CLANG_WARNING: [#def797]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-streamer-in.cc:1642:33: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
# 1640| if (TREE_CODE (node->decl) == FUNCTION_DECL)
# 1641| {
# 1642|-> lto_input_block ib_cfg (data + cfg_offset, header->cfg_size,
# 1643| file_data);
# 1644| input_function (fn_decl, data_in, &ib_main, &ib_cfg,
Error: CPPCHECK_WARNING: [#def798]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def799]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc: scope_hint: In function ‘void print_lto_docs_link()’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc:1373:10: warning[-Wformat-security]: format not a string literal and no format arguments
# 1373 | inform (UNKNOWN_LOCATION, pp_formatted_text (&pp));
# | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1371| pp_end_url (&pp);
# 1372| pp_string (&pp, " for more information");
# 1373|-> inform (UNKNOWN_LOCATION, pp_formatted_text (&pp));
# 1374| }
# 1375|
Error: COMPILER_WARNING (CWE-134): [#def800]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc: scope_hint: In function ‘void run_gcc(unsigned int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-wrapper.cc:1975:23: warning[-Wformat-security]: format not a string literal and no format arguments
# 1975 | warning (0, jinfo.error_msg.c_str ());
# | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1973| if (jobserver_requested && !jinfo.is_active)
# 1974| {
# 1975|-> warning (0, jinfo.error_msg.c_str ());
# 1976| print_lto_docs_link ();
# 1977| }
Error: CLANG_WARNING: [#def801]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto/lto-common.cc:480:9: warning[deadcode.DeadStores]: Value stored to 'existed_p' during its initialization is never read
# 478| Update canonical type hash cache accordingly. */
# 479| num_canonical_type_hash_entries++;
# 480|-> bool existed_p = canonical_type_hash_cache->put (prevail, hash);
# 481| gcc_checking_assert (!existed_p);
# 482| }
Error: CLANG_WARNING: [#def802]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto/lto-common.cc:1928:9: warning[deadcode.DeadStores]: Value stored to 'first' during its initialization is never read
# 1926| by means of identifier and string sharing for example.
# 1927| ??? Maybe we should avoid streaming those as SCCs. */
# 1928|-> tree first = streamer_tree_cache_get_tree (data_in->reader_cache,
# 1929| from);
# 1930| /* Identifier and integers are shared specially, they should never
Error: CLANG_WARNING: [#def803]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto/lto-common.cc:3047:26: warning[core.NullDereference]: Access to field 'len' results in a dereference of a null pointer (loaded from variable 'max_scc')
# 3045| }
# 3046| fprintf (stderr, "[%s] tree SCC max chain length %u (size %u)\n",
# 3047|-> pfx, max_length, max_scc->len);
# 3048| fprintf (stderr, "[%s] Compared %lu SCCs, %lu collisions (%f)\n", pfx,
# 3049| num_scc_compares, num_scc_compare_collisions,
Error: CLANG_WARNING: [#def804]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto/lto-dump.cc:158:3: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'e'
# 156|
# 157| cgraph_node *cnode;
# 158|-> FOR_EACH_FUNCTION (cnode)
# 159| {
# 160| if (cnode->definition && !cnode->alias)
Error: CLANG_WARNING: [#def805]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto/lto-dump.cc:194:3: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'e'
# 192|
# 193| varpool_node *vnode;
# 194|-> FOR_EACH_VARIABLE (vnode)
# 195| {
# 196| symbol_entry *e = new variable_entry (vnode);
Error: CPPCHECK_WARNING: [#def806]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto/lto-object.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def807]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/loop-iv.cc:53: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coretypes.h:490: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/machmode.h:437:60: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 435| scalar_int_mode (from_int m) : m_mode (machine_mode (m)) {}
# 436|
# 437|-> ALWAYS_INLINE CONSTEXPR operator machine_mode () const { return m_mode; }
# 438|
# 439| static bool includes_p (machine_mode);
Error: CPPCHECK_WARNING: [#def808]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def809]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/mcf.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def810]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/memory-block.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def811]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/mode-switching.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def812]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/modulo-sched.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def813]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/modulo-sched.cc:1571:7: warning[deadcode.DeadStores]: Value stored to 'latch_edge' is never read
# 1569| get_ebb_head_tail (loop->header, loop->header, &head, &tail);
# 1570|
# 1571|-> latch_edge = loop_latch_edge (loop);
# 1572| gcc_assert (single_exit (loop));
# 1573| trip_count = get_estimated_loop_iterations_int (loop);
Error: CLANG_WARNING: [#def814]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/modulo-sched.cc:1584:27: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1582| fprintf (dump_file, "SMS loop-count ");
# 1583| fprintf (dump_file, "%" PRId64,
# 1584|-> (int64_t) bb->count.to_gcov_type ());
# 1585| fprintf (dump_file, "\n");
# 1586| }
Error: CLANG_WARNING: [#def815]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/modulo-sched.cc:2177:14: warning[deadcode.DeadStores]: Value stored to 'insn' during its initialization is never read
# 2175| int u = nodes_order[i];
# 2176| ddg_node_ptr u_node = &ps->g->nodes[u];
# 2177|-> rtx_insn *insn = u_node->insn;
# 2178|
# 2179| gcc_checking_assert (NONDEBUG_INSN_P (insn));
Error: CLANG_WARNING: [#def816]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:713:6: warning[deadcode.DeadStores]: Value stored to 'n1last' is never read
# 711| t4 = fold_binary (MINUS_EXPR, itype, n2cur, t4);
# 712| new_last = fold_binary (MINUS_EXPR, itype, t, ostep);
# 713|-> n1last = t3;
# 714| n2last = t4;
# 715| if (flag_checking)
Error: CLANG_WARNING: [#def817]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:714:6: warning[deadcode.DeadStores]: Value stored to 'n2last' is never read
# 712| new_last = fold_binary (MINUS_EXPR, itype, t, ostep);
# 713| n1last = t3;
# 714|-> n2last = t4;
# 715| if (flag_checking)
# 716| {
Error: CLANG_WARNING: [#def818]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:725:6: warning[deadcode.DeadStores]: Value stored to 'n1last' is never read
# 723| {
# 724| new_last = t;
# 725|-> n1last = n1cur;
# 726| n2last = n2cur;
# 727| if (flag_checking)
Error: CLANG_WARNING: [#def819]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:726:6: warning[deadcode.DeadStores]: Value stored to 'n2last' is never read
# 724| new_last = t;
# 725| n1last = n1cur;
# 726|-> n2last = n2cur;
# 727| if (flag_checking)
# 728| {
Error: CLANG_WARNING: [#def820]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:1083:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 1081| }
# 1082| props = props + name_len + 1;
# 1083|-> while (*props != '\0')
# 1084| {
# 1085| if (matches && strcmp (props, prop) == 0)
Error: CLANG_WARNING: [#def821]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:2027:27: warning[core.NullDereference]: Dereference of null pointer
# 2025| of the selector matters too. */
# 2026| for (ts1 = ctx1; ts1; ts1 = TREE_CHAIN (ts1))
# 2027|-> if (OMP_TS_CODE (ts1) == OMP_TS_CODE (ts2))
# 2028| {
# 2029| int r = 0;
Error: CLANG_WARNING: [#def822]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:2452:10: warning[core.NullDereference]: Access to field 'variant' results in a dereference of a null pointer (loaded from variable 'varentry2')
# 2450| }
# 2451| }
# 2452|-> return varentry2->variant->decl;
# 2453| }
# 2454|
Error: CLANG_WARNING: [#def823]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:2579:4: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2577| varentry.ctx = ctx;
# 2578| varentry.matches = !defer[i];
# 2579|-> entry.variants->quick_push (varentry);
# 2580| }
# 2581|
Error: CLANG_WARNING: [#def824]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:3078:40: warning[core.NullDereference]: Dereference of null pointer
# 3076| tree c_diag_p;
# 3077| /* Matching level of parallelism? */
# 3078|-> if (OMP_CLAUSE_CODE (c_level) != OMP_CLAUSE_CODE (c_level_p))
# 3079| {
# 3080| c_diag = c_level;
Error: CLANG_WARNING: [#def825]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:3578:30: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 3576| omp_parse_access_methods (addr_tokens, &expr);
# 3577|
# 3578|-> addr_tokens.safe_push (new omp_addr_token (kind, am_expr));
# 3579|
# 3580| *expr0 = expr;
Error: CLANG_WARNING: [#def826]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-general.cc:3723:19: warning[deadcode.DeadStores]: Value stored to 'pfx' during its initialization is never read
# 3721| for (auto e : addr_tokens)
# 3722| {
# 3723|-> const char *pfx = "";
# 3724|
# 3725| fputs (sep, stderr);
Error: CLANG_WARNING: [#def827]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-oacc-neuter-broadcast.cc:445:20: warning[core.NullDereference]: Access to field 'mask' results in a dereference of a null pointer (loaded from variable 'par')
# 443| unsigned mask = (dim >= 0) ? GOMP_DIM_MASK (dim) : 0;
# 444|
# 445|-> gcc_assert (par->mask == mask);
# 446| par->join_block = block;
# 447| par->join_stmt = stmt;
Error: CLANG_WARNING: [#def828]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-oacc-neuter-broadcast.cc:1800:13: warning[deadcode.DeadStores]: Value stored to 'it' during its initialization is never read
# 1798|
# 1799| /* These are supposed to have been 'delete'd by 'neuter_worker_single'. */
# 1800|-> for (auto it : prop_set)
# 1801| gcc_checking_assert (!it);
# 1802| prop_set.release ();
Error: CLANG_WARNING: [#def829]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-simd-clone.cc:809:33: warning[core.NullDereference]: Dereference of null pointer
# 807| if (node->definition)
# 808| sc->args[i].simd_array
# 809|-> = create_tmp_simd_array (IDENTIFIER_POINTER (DECL_NAME (parm)),
# 810| TREE_TYPE (parm_type),
# 811| sc->simdlen);
Error: CLANG_WARNING: [#def830]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-simd-clone.cc:816:8: warning[core.NullDereference]: Dereference of null pointer
# 814| case SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP:
# 815| case SIMD_CLONE_ARG_TYPE_VECTOR:
# 816|-> if (INTEGRAL_TYPE_P (parm_type) || POINTER_TYPE_P (parm_type))
# 817| veclen = sc->vecsize_int;
# 818| else
Error: CLANG_WARNING: [#def831]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/omp-simd-clone.cc:908:33: warning[core.NullDereference]: Dereference of null pointer
# 906| {
# 907| if (new_reversed)
# 908|-> TREE_CHAIN (new_arg_types) = void_list_node;
# 909| else
# 910| new_reversed = void_list_node;
Error: CPPCHECK_WARNING: [#def832]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opt-problem.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def833]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opt-suggestions.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def834]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opt-suggestions.cc:178: error[uninitvar]: Uninitialized variable: *option
# 176| if (sanitizer_opts[j].flag == ~0U && i == OPT_fsanitize_)
# 177| {
# 178|-> optb = *option;
# 179| optb.opt_text = opt_text = "-fno-sanitize=";
# 180| optb.cl_reject_negative = true;
Error: CPPCHECK_WARNING: [#def835]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/optabs-libfuncs.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def836]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/optabs-query.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def837]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/optabs-tree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def838]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opts-common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def839]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opts-global.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def840]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opts.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-823): [#def841]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opts.cc:120: error[arrayIndexOutOfBounds]: Array 'debug_type_masks[5]' accessed at index 5, which is out of bounds.
# 118| for (int i = DINFO_TYPE_NONE; i <= DINFO_TYPE_MAX; i++)
# 119| {
# 120|-> df_mask = debug_type_masks[i];
# 121| if (w_symbols & df_mask)
# 122| {
Error: CLANG_WARNING: [#def842]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opts.cc:2240:10: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p')
# 2238| enum opt_code code = (enum opt_code) scode;
# 2239|
# 2240|-> while (*p != 0)
# 2241| {
# 2242| size_t len, i;
Error: CLANG_WARNING: [#def843]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/opts.cc:2546:10: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'a')
# 2544| word = {optimizers|target|warnings|undocumented|
# 2545| params|common|<language>} */
# 2546|-> while (*a != 0)
# 2547| {
# 2548| static const struct
Error: CPPCHECK_WARNING: [#def844]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ordered-hash-map-tests.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def845]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/plugin.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def846]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/postreload-gcse.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def847]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/postreload.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def848]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/postreload.cc:526:10: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 524| enum reg_class rclass = NO_REGS;
# 525|
# 526|-> if (! TEST_HARD_REG_BIT (equiv_regs[i], regno))
# 527| continue;
# 528|
Error: CLANG_WARNING: [#def849]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/postreload.cc:558:28: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 556| alternative yet and the operand being replaced is not
# 557| a cheap CONST_INT. */
# 558|-> if (op_alt_regno[i][j] == -1
# 559| && TEST_BIT (preferred, j)
# 560| && reg_fits_class_p (testreg, rclass, 0, mode)
Error: CLANG_WARNING: [#def850]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/postreload.cc:630:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 628| {
# 629| machine_mode mode = recog_data.operand_mode[i];
# 630|-> if (op_alt_regno[i][j] == -1)
# 631| continue;
# 632|
Error: CLANG_WARNING: [#def851]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/postreload.cc:1213:47: warning[core.NullDereference]: Access to field 'insn' results in a dereference of a null pointer (loaded from variable 'lowest_ruid')
# 1211| }
# 1212|
# 1213|-> fixup_debug_insns (reg, reg_sum, insn, lowest_ruid->insn);
# 1214|
# 1215| /* Delete the reg-reg addition. */
Error: CPPCHECK_WARNING: [#def852]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/prefix.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def853]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/pretty-print.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def854]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/print-rtl-function.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def855]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/print-rtl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def856]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-switch-conversion.cc:27: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coretypes.h:503: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dumpfile.h:24: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/profile-count.h:102:32: warning[core.DivideZero]: Division by zero
# 100| && c < ((uint64_t)1 << 31))
# 101| {
# 102|-> *res = (a * b + (c / 2)) / c;
# 103| return true;
# 104| }
Error: CLANG_WARNING: [#def857]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfg.cc:51: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coretypes.h:503: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dumpfile.h:24: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/profile-count.h:438:21: warning[core.DivideZero]: Division by zero
# 436| {
# 437| gcc_checking_assert (other.m_val);
# 438|-> ret.m_val = MIN (RDIV ((uint64_t)m_val * max_probability,
# 439| other.m_val),
# 440| max_probability);
Error: CPPCHECK_WARNING: [#def858]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/read-md.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def859]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/read-rtl-function.cc:565:48: warning[core.NullDereference]: Dereference of null pointer
# 563| require_char_ws ('(');
# 564| require_word_ws ("DECL_RTL");
# 565|-> DECL_WRTL_CHECK (t_param)->decl_with_rtl.rtl = parse_rtx ();
# 566| require_char_ws (')');
# 567|
Error: CPPCHECK_WARNING: [#def860]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/read-rtl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def861]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/read-rtl.cc:519:14: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 517| if (v->number == iterator->current_value->number)
# 518| {
# 519|-> if (res && strcmp (v->string, res->string) != 0)
# 520| {
# 521| error_at (loc, "ambiguous attribute '%s'; could be"
Error: CPPCHECK_WARNING: [#def862]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/real.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-823): [#def863]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/real.cc:1530: error[arrayIndexOutOfBounds]: Array 'r->sig[3]' accessed at index 3, which is out of bounds.
# 1528| {
# 1529| int j = SIGSZ - words + i;
# 1530|-> val[i] = (j < 0) ? 0 : r->sig[j];
# 1531| }
# 1532| #else
Error: CPPCHECK_WARNING (CWE-823): [#def864]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/real.cc:4038: error[arrayIndexOutOfBounds]: Array 'u.sig[3]' accessed at index 3, which is out of bounds.
# 4036| image1 = u.sig[1];
# 4037| image2 = u.sig[2];
# 4038|-> image3 |= u.sig[3] & 0xffff;
# 4039| }
# 4040| else
Error: CPPCHECK_WARNING (CWE-823): [#def865]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/real.cc:4080: error[arrayIndexOutOfBounds]: Array 'u.sig[3]' accessed at index 3, which is out of bounds.
# 4078| image1 = u.sig[1];
# 4079| image2 = u.sig[2];
# 4080|-> image3 |= u.sig[3] & 0xffff;
# 4081| }
# 4082| else
Error: CPPCHECK_WARNING (CWE-823): [#def866]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/real.cc:4158: error[arrayIndexOutOfBounds]: Array 'r->sig[3]' accessed at index 3, which is out of bounds.
# 4156| r->sig[1] = image1;
# 4157| r->sig[2] = image2;
# 4158|-> r->sig[3] = image3;
# 4159| }
# 4160| else
Error: CPPCHECK_WARNING (CWE-823): [#def867]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/real.cc:4184: error[arrayIndexOutOfBounds]: Array 'r->sig[3]' accessed at index 3, which is out of bounds.
# 4182| r->sig[1] = image1;
# 4183| r->sig[2] = image2;
# 4184|-> r->sig[3] = image3;
# 4185| }
# 4186| else
Error: CPPCHECK_WARNING (CWE-823): [#def868]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/real.cc:4210: error[arrayIndexOutOfBounds]: Array 'r->sig[3]' accessed at index 3, which is out of bounds.
# 4208| r->sig[1] = image1;
# 4209| r->sig[2] = image2;
# 4210|-> r->sig[3] = image3;
# 4211| }
# 4212| else
Error: CPPCHECK_WARNING: [#def869]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/realmpfr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def870]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/recog.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def871]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def872]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ree.cc:698: error[returnDanglingLifetime]: Returning pointer that will be invalid when returning.
# 696| }
# 697|
# 698|-> return sub_rtx;
# 699| }
# 700|
Error: CLANG_WARNING: [#def873]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ree.cc:877:32: warning[core.NullDereference]: Dereference of null pointer
# 875|
# 876| for (df_link *use = uses; use; use = use->next)
# 877|-> if (paradoxical_subreg_p (GET_MODE (*DF_REF_LOC (use->ref)),
# 878| GET_MODE (SET_DEST (*dest_sub_rtx)))
# 879| && !DEBUG_INSN_P (DF_REF_INSN (use->ref)))
Error: CLANG_WARNING: [#def874]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ree.cc:966:29: warning[core.NullDereference]: Dereference of null pointer
# 964| rtx dest2 = SET_DEST (*dest_sub_rtx2);
# 965| for (use = uses; use; use = use->next)
# 966|-> if (paradoxical_subreg_p (GET_MODE (*DF_REF_LOC (use->ref)),
# 967| GET_MODE (dest2))
# 968| && !DEBUG_INSN_P (DF_REF_INSN (use->ref)))
Error: CPPCHECK_WARNING: [#def875]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reg-stack.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def876]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/regcprop.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def877]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reginfo.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def878]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/regrename.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def879]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/regrename.cc:955:6: warning[deadcode.DeadStores]: Value stored to 'printed' is never read
# 953| "merging blocks for edge %d -> %d\n",
# 954| e->src->index, e->dest->index);
# 955|-> printed = true;
# 956| fprintf (dump_file,
# 957| " merging chains %d (->%d) and %d (->%d) [%s]\n",
Error: CLANG_WARNING: [#def880]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/regrename.cc:1025:21: warning[core.NullDereference]: Access to field 'loc' results in a dereference of a null pointer (loaded from field 'first')
# 1023| return false;
# 1024|
# 1025|-> mode = GET_MODE (*head->first->loc);
# 1026| head->renamed = 1;
# 1027| head->regno = reg;
Error: CLANG_WARNING: [#def881]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/regrename.cc:1590:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1588| int i;
# 1589| for (i = 0; i < recog_data.n_dups; i++)
# 1590|-> *recog_data.dup_loc[i] = old_dups[i];
# 1591| for (i = 0; i < n_ops; i++)
# 1592| *recog_data.operand_loc[i] = old_operands[i];
Error: CPPCHECK_WARNING (CWE-823): [#def882]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/regs.h:263: error[arrayIndexOutOfBounds]: Array 'default_target_regs.x_hard_regno_nregs[16][43]' accessed at index default_target_regs.x_hard_regno_nregs[4294967295][*], which is out of bounds.
# 261| hard_regno_nregs (unsigned int regno, machine_mode mode)
# 262| {
# 263|-> return this_target_regs->x_hard_regno_nregs[regno][mode];
# 264| }
# 265|
Error: CPPCHECK_WARNING (CWE-758): [#def883]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/regs.h:286: error[shiftTooManyBits]: Shifting 64-bit value by 4294967296 bits is undefined behaviour
# 284| end_regno = end_hard_regno (mode, regno);
# 285| do
# 286|-> SET_HARD_REG_BIT (*regs, regno);
# 287| while (++regno < end_regno);
# 288| }
Error: CPPCHECK_WARNING: [#def884]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/regstat.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def885]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reload.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def886]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reload1.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def887]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reload1.cc: scope_hint: In function ‘void elimination_costs_in_insn(rtx_insn*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reload1.cc:3653:28: warning[-Wmaybe-uninitialized]: ‘orig_dup[0]’ may be used uninitialized
# 3653 | *recog_data.dup_loc[i] = orig_dup[i];
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reload1.cc:3529:7: note: ‘orig_dup[0]’ was declared here
# 3529 | rtx orig_dup[MAX_RECOG_OPERANDS];
# | ^~~~~~~~
# 3651| *recog_data.operand_loc[i] = orig_operand[i];
# 3652| for (i = 0; i < n_dups; i++)
# 3653|-> *recog_data.dup_loc[i] = orig_dup[i];
# 3654|
# 3655| /* Update all elimination pairs to reflect the status after the current
Error: CPPCHECK_WARNING: [#def888]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reorg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def889]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/reorg.cc:1365:10: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1363| update_block (merged_insns[i].first, thread);
# 1364| rtx_insn *new_rtx = delete_from_delay_slot (merged_insns[i].first);
# 1365|-> if (thread->deleted ())
# 1366| thread = new_rtx;
# 1367| }
Error: CPPCHECK_WARNING: [#def890]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/resource.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def891]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl-error.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def892]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl-ssa/accesses.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def893]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl-ssa/blocks.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def894]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl-ssa/changes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def895]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl-ssa/functions.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def896]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl-ssa/insns.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def897]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl-ssa/movement.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def898]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl-tests.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def899]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def900]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/auto-inc-dec.cc:26: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl.h:1455:3: warning[core.uninitialized.UndefReturn]: Returning null reference
# 1453| inline int& INSN_UID (rtx insn)
# 1454| {
# 1455|-> return RTL_INSN_CHAIN_FLAG_CHECK ("INSN_UID",
# 1456| (insn))->u2.insn_uid;
# 1457| }
Error: CLANG_WARNING: [#def901]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/read-rtl-function.cc:27: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl.h:1474:3: warning[core.uninitialized.UndefReturn]: Returning null reference
# 1472| inline rtx& SET_PREV_INSN (rtx_insn *insn)
# 1473| {
# 1474|-> return XEXP (insn, 0);
# 1475| }
# 1476|
Error: CLANG_WARNING: [#def902]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lra-assigns.cc:82: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtl.h:1495:3: warning[core.uninitialized.UndefReturn]: Returning null reference
# 1493| inline basic_block& BLOCK_FOR_INSN (rtx insn)
# 1494| {
# 1495|-> return XBBDEF (insn, 2);
# 1496| }
# 1497|
Error: CPPCHECK_WARNING: [#def903]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtlanal.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def904]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtlhash.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def905]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtlhooks.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def906]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/rtx-vector-builder.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def907]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/run-rtl-passes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def908]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sbitmap.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def909]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sbitmap.cc:266:48: warning[core.BitwiseShift]: Left shift overflows the capacity of 'unsigned long'
# 264|
# 265| /* Now handle residuals in the last word. */
# 266|-> SBITMAP_ELT_TYPE mask = ((SBITMAP_ELT_TYPE)1 << count) - 1;
# 267| bmap->elms[start_word] &= ~mask;
# 268| }
Error: CLANG_WARNING: [#def910]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sbitmap.cc:325:48: warning[core.BitwiseShift]: Left shift overflows the capacity of 'unsigned long'
# 323|
# 324| /* Now handle residuals in the last word. */
# 325|-> SBITMAP_ELT_TYPE mask = ((SBITMAP_ELT_TYPE)1 << count) - 1;
# 326| bmap->elms[start_word] |= mask;
# 327| }
Error: CPPCHECK_WARNING: [#def911]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sched-deps.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def912]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sched-ebb.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def913]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sched-ebb.cc:170:12: warning[deadcode.DeadStores]: Value stored to 'x' during its initialization is never read
# 168|
# 169| {
# 170|-> rtx_insn *x = NEXT_INSN (insn);
# 171| if (e)
# 172| gcc_checking_assert (NOTE_P (x) || LABEL_P (x));
Error: CPPCHECK_WARNING: [#def914]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sched-rgn.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def915]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sel-sched-dump.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def916]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sel-sched-ir.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def917]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sel-sched-ir.h:1077: error[ctunullpointer]: Null pointer dereference: loop
# 1075| struct loop_exit *exit;
# 1076|
# 1077|-> gcc_assert (loop->latch != EXIT_BLOCK_PTR_FOR_FN (cfun)
# 1078| && current_loops->state & LOOPS_HAVE_RECORDED_EXITS);
# 1079|
Error: CPPCHECK_WARNING (CWE-476): [#def918]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sel-sched-ir.h:1077: warning[nullPointer]: Possible null pointer dereference: loop
# 1075| struct loop_exit *exit;
# 1076|
# 1077|-> gcc_assert (loop->latch != EXIT_BLOCK_PTR_FOR_FN (cfun)
# 1078| && current_loops->state & LOOPS_HAVE_RECORDED_EXITS);
# 1079|
Error: CPPCHECK_WARNING: [#def919]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sel-sched.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def920]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/selftest-diagnostic.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def921]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/selftest-rtl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def922]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/selftest-run-tests.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def923]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/selftest.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def924]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/shrink-wrap.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def925]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/shrink-wrap.cc:823:7: warning[core.NullDereference]: Access to field 'index' results in a dereference of a null pointer (loaded from variable 'pro')
# 821| if (dump_file)
# 822| fprintf (dump_file, "Avoiding non-duplicatable blocks, PRO is now %d\n",
# 823|-> pro->index);
# 824|
# 825| /* If we can move PRO back without having to duplicate more blocks, do so.
Error: CLANG_WARNING: [#def926]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/shrink-wrap.cc:891:7: warning[core.NullDereference]: Access to field 'index' results in a dereference of a null pointer (loaded from variable 'pro')
# 889| if (dump_file)
# 890| fprintf (dump_file, "Bumping back to anticipatable blocks, PRO is now %d\n",
# 891|-> pro->index);
# 892|
# 893| if (pro == entry)
Error: CPPCHECK_WARNING: [#def927]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/simplify-rtx.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def928]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/sort.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def929]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/spellcheck-tree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def930]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/spellcheck.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def931]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/spellcheck.cc:109:52: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 107| cost = BASE_COST;
# 108| edit_distance_t deletion = v_next[j] + BASE_COST;
# 109|-> edit_distance_t insertion = v_one_ago[j + 1] + BASE_COST;
# 110| edit_distance_t substitution = v_one_ago[j] + cost;
# 111| edit_distance_t cheapest = MIN (deletion, insertion);
Error: CPPCHECK_WARNING: [#def932]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/splay-tree-utils.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def933]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/stack-ptr-mod.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def934]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/statistics.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def935]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/stmt.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def936]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/stor-layout.cc:213:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 211| param_type_list = tree_cons (NULL_TREE, param_type, param_type_list);
# 212| param_decl_list = chainon (param_decl, param_decl_list);
# 213|-> args->quick_push (ref);
# 214| }
# 215|
Error: CLANG_WARNING: [#def937]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/stor-layout.cc:1268:19: warning[core.DivideZero]: Division by zero
# 1266| unsigned HOST_WIDE_INT offset = byte_offset * BITS_PER_UNIT + bit_offset;
# 1267|
# 1268|-> offset = offset % align;
# 1269| return ((offset + size + align - 1) / align
# 1270| > tree_to_uhwi (TYPE_SIZE (type)) / align);
Error: CPPCHECK_WARNING: [#def938]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/store-motion.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def939]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/store-motion.cc:678:12: warning[deadcode.DeadStores]: Although the value stored to 'tmp' is used in the enclosing expression, the value is never actually read from 'tmp'
# 676| LAST_AVAIL_CHECK_FAILURE (ptr) = NULL_RTX;
# 677| if (!ptr->antic_stores.is_empty ()
# 678|-> && (tmp = ptr->antic_stores.last ()) == NULL)
# 679| ptr->antic_stores.pop ();
# 680| }
Error: CPPCHECK_WARNING: [#def940]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/streamer-hooks.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def941]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/stringpool.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def942]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/substring-locations.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def943]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ipa-profile.cc:56: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/symbol-summary.h:701:35: warning[core.CallAndMessage]: Called C++ object pointer is null
# 699| {
# 700| bool existed;
# 701|-> T **v = &m_map.get_or_insert (edge->get_uid (), &existed);
# 702| if (!existed)
# 703| *v = this->allocate_new ();
Error: CLANG_WARNING: [#def944]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/symtab-thunks.cc:462:12: warning[deadcode.DeadStores]: Although the value stored to 'then_bb' is used in the enclosing expression, the value is never actually read from 'then_bb'
# 460| (BB_FREQ_MAX).guessed_local ();
# 461|
# 462|-> bb = then_bb = else_bb = return_bb
# 463| = init_lowered_empty_function (thunk_fndecl, true, cfg_count);
# 464|
Error: CPPCHECK_WARNING: [#def945]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/target-globals.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def946]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/box-drawing.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def947]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/canvas.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def948]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/ruler.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def949]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/selftests.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def950]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/style.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def951]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/style.cc: scope_hint: In member function ‘void text_art::style::color::print_sgr(pretty_printer*, bool, bool&) const’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/style.cc:151:25: warning[-Wformat-diag]: spurious leading punctuation sequence ‘;’ in format
# 151 | pp_printf (pp, ";5;%i", (int)u.m_8bit);
# | ^
# 149| else
# 150| pp_string (pp, "48");
# 151|-> pp_printf (pp, ";5;%i", (int)u.m_8bit);
# 152| }
# 153| break;
Error: COMPILER_WARNING: [#def952]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/style.cc:161:25: warning[-Wformat-diag]: spurious leading punctuation sequence ‘;’ in format
# 161 | pp_printf (pp, ";2;%i;%i;%i",
# | ^
# 159| else
# 160| pp_string (pp, "48");
# 161|-> pp_printf (pp, ";2;%i;%i;%i",
# 162| (int)u.m_24bit.r,
# 163| (int)u.m_24bit.g,
Error: CPPCHECK_WARNING: [#def953]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/styled-string.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def954]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/table.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def955]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/theme.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def956]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/text-art/widget.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def957]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/timevar.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def958]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tracer.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def959]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tracer.cc:392:25: warning[core.DivideZero]: Division by zero
# 390| if (dump_file)
# 391| fprintf (dump_file, "Duplicated %i insns (%i%%)\n", nduplicated,
# 392|-> nduplicated * 100 / ninsns);
# 393|
# 394| free_original_copy_tables ();
Error: CPPCHECK_WARNING: [#def960]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-chrec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def961]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-complex.cc:164:11: warning[core.NullDereference]: Dereference of null pointer
# 162| tree real, imag;
# 163|
# 164|-> switch (TREE_CODE (t))
# 165| {
# 166| case SSA_NAME:
Error: CLANG_WARNING: [#def962]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-complex.cc:277:7: warning[core.NullDereference]: Dereference of null pointer
# 275| case ROUND_DIV_EXPR:
# 276| case RDIV_EXPR:
# 277|-> if (TREE_CODE (TREE_TYPE (op0)) == COMPLEX_TYPE
# 278| || TREE_CODE (TREE_TYPE (op1)) == COMPLEX_TYPE)
# 279| saw_a_complex_op = true;
Error: CLANG_WARNING: [#def963]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-complex.cc:278:10: warning[core.NullDereference]: Dereference of null pointer
# 276| case RDIV_EXPR:
# 277| if (TREE_CODE (TREE_TYPE (op0)) == COMPLEX_TYPE
# 278|-> || TREE_CODE (TREE_TYPE (op1)) == COMPLEX_TYPE)
# 279| saw_a_complex_op = true;
# 280| break;
Error: CLANG_WARNING: [#def964]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-complex.cc:284:7: warning[core.NullDereference]: Dereference of null pointer
# 282| case NEGATE_EXPR:
# 283| case CONJ_EXPR:
# 284|-> if (TREE_CODE (TREE_TYPE (op0)) == COMPLEX_TYPE)
# 285| saw_a_complex_op = true;
# 286| break;
Error: CLANG_WARNING: [#def965]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-complex.cc:294:7: warning[core.NullDereference]: Dereference of null pointer
# 292| and we need to lower the statement to be able
# 293| to fix things up. */
# 294|-> if (TREE_CODE (op0) == SSA_NAME
# 295| && ssa_undefined_value_p (op0))
# 296| saw_a_complex_op = true;
Error: CLANG_WARNING: [#def966]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-complex.cc:529:7: warning[core.NullDereference]: Dereference of null pointer
# 527| = SSA_NAME_OCCURS_IN_ABNORMAL_PHI (ssa_name);
# 528| if (SSA_NAME_IS_DEFAULT_DEF (ssa_name)
# 529|-> && VAR_P (SSA_NAME_VAR (ssa_name)))
# 530| {
# 531| SSA_NAME_DEF_STMT (ret) = SSA_NAME_DEF_STMT (ssa_name);
Error: CLANG_WARNING: [#def967]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-complex.cc:618:11: warning[core.NullDereference]: Dereference of null pointer
# 616| bool gimple_p, bool phiarg_p = false)
# 617| {
# 618|-> switch (TREE_CODE (t))
# 619| {
# 620| case COMPLEX_CST:
Error: CPPCHECK_WARNING: [#def968]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-diagnostic-client-data-hooks.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def969]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-diagnostic-path.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def970]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-diagnostic.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def971]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-dump.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def972]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-iterator.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def973]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-logical-location.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def974]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-outof-ssa.cc:341:11: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
# 339| {
# 340| x = expand_expr (src, NULL, src_mode, EXPAND_NORMAL);
# 341|-> x = convert_modes (dest_mode, src_mode, x, unsignedp);
# 342| }
# 343| else if (src_mode == BLKmode)
Error: CLANG_WARNING: [#def975]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-pretty-print.cc:4215:30: warning[core.NullDereference]: Dereference of null pointer
# 4213| else if (TREE_CODE (t) == FUNCTION_DECL)
# 4214| {
# 4215|-> dump_generic_node (pp, TREE_TYPE (TREE_TYPE (t)), spc, flags, false);
# 4216| pp_space (pp);
# 4217| dump_decl_name (pp, t, flags);
Error: CLANG_WARNING: [#def976]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-profile.cc:562:29: warning[core.NullDereference]: Access to field 'index' results in a dereference of a null pointer (loaded from field 't')
# 560|
# 561| outcomes succs = conditional_succs (q);
# 562|-> if (!bitmap_bit_p (marks, succs.t->index))
# 563| continue;
# 564| if (!bitmap_bit_p (marks, succs.f->index))
Error: CLANG_WARNING: [#def977]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-scalar-evolution.cc:935:16: warning[core.NullDereference]: Dereference of null pointer
# 933| }
# 934|
# 935|-> else if (TREE_CODE (rhs1) == SSA_NAME)
# 936| {
# 937| /* Match an assignment under the form:
Error: CLANG_WARNING: [#def978]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-scalar-evolution.cc:1263:8: warning[core.NullDereference]: Dereference of null pointer
# 1261| /* This case is under the form "rhs0 +- rhs1". */
# 1262| if (TREE_CODE (rhs0) == SSA_NAME
# 1263|-> && (TREE_CODE (rhs1) != SSA_NAME || code == MINUS_EXPR))
# 1264| {
# 1265| /* Match an assignment under the form:
Error: CLANG_WARNING: [#def979]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-scalar-evolution.cc:1485:10: warning[core.NullDereference]: Dereference of null pointer
# 1483| {
# 1484| tree res = var;
# 1485|-> while (TREE_CODE (res) == SSA_NAME
# 1486| /* We face not updated SSA form in multiple places and this walk
# 1487| may end up in sibling loops so we have to guard it. */
Error: CLANG_WARNING: [#def980]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-scalar-evolution.cc:2826:9: warning[core.NullDereference]: Access to field 'nb_iterations' results in a dereference of a null pointer (loaded from variable 'loop')
# 2824| /* Determine whether the number of iterations in loop has already
# 2825| been computed. */
# 2826|-> res = loop->nb_iterations;
# 2827| if (res)
# 2828| return res;
Error: CLANG_WARNING: [#def981]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-address.cc:245:17: warning[core.NullDereference]: Dereference of null pointer (loaded from field 'step_p')
# 243|
# 244| if (st)
# 245|-> *templ->step_p = st;
# 246| if (off)
# 247| *templ->off_p = off;
Error: CLANG_WARNING: [#def982]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-coalesce.cc:625:9: warning[deadcode.DeadStores]: Value stored to 'was_there' during its initialization is never read
# 623| if (bz)
# 624| {
# 625|-> bool was_there = bitmap_clear_bit (bz, y);
# 626| gcc_checking_assert (was_there);
# 627| bitmap_set_bit (bz, x);
Error: CLANG_WARNING: [#def983]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-coalesce.cc:1233:10: warning[core.NullDereference]: Dereference of null pointer
# 1231| ssa_name_var_hash::hash (const_tree n)
# 1232| {
# 1233|-> return DECL_UID (SSA_NAME_VAR (n));
# 1234| }
# 1235|
Error: CLANG_WARNING: [#def984]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-coalesce.cc:1320:10: warning[core.NullDereference]: Dereference of null pointer
# 1318| performed at -O0, so we can't actually require it. */
# 1319| const int cost
# 1320|-> = (VAR_P (SSA_NAME_VAR (a)) || in_lto_p)
# 1321| ? MUST_COALESCE_COST - 1 : MUST_COALESCE_COST;
# 1322| add_coalesce (cl, SSA_NAME_VERSION (a),
Error: CLANG_WARNING: [#def985]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-coalesce.cc:1451:11: warning[deadcode.DeadStores]: Although the value stored to 'cost' is used in the enclosing expression, the value is never actually read from 'cost'
# 1449| /* Now process the items in the coalesce list. */
# 1450|
# 1451|-> while ((cost = pop_best_coalesce (cl, &x, &y)) != NO_BEST_COALESCE)
# 1452| {
# 1453| var1 = ssa_name (x);
Error: CLANG_WARNING: [#def986]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-copy.cc:178:7: warning[core.NullDereference]: Dereference of null pointer
# 176|
# 177| print_generic_expr (file, var, dump_flags);
# 178|-> if (TREE_CODE (var) != SSA_NAME)
# 179| return;
# 180|
Error: CLANG_WARNING: [#def987]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-forwprop.cc:1995:10: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1993| if (tree_fits_uhwi_p (def_arg2[0])
# 1994| && tree_fits_uhwi_p (def_arg2[1])
# 1995|-> && tree_to_uhwi (def_arg2[0])
# 1996| + tree_to_uhwi (def_arg2[1]) == TYPE_PRECISION (rtype))
# 1997| rotcnt = def_arg2[0];
Error: CLANG_WARNING: [#def988]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-forwprop.cc:1998:12: warning[core.NullDereference]: Dereference of null pointer
# 1996| + tree_to_uhwi (def_arg2[1]) == TYPE_PRECISION (rtype))
# 1997| rotcnt = def_arg2[0];
# 1998|-> else if (TREE_CODE (def_arg2[0]) != SSA_NAME
# 1999| || TREE_CODE (def_arg2[1]) != SSA_NAME)
# 2000| return false;
Error: CLANG_WARNING: [#def989]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-live.cc:224:9: warning[core.NullDereference]: Dereference of null pointer
# 222| || !SSA_NAME_IS_DEFAULT_DEF (ssa_name (tmp))
# 223| || (SSA_NAME_VAR (ssa_name (tmp))
# 224|-> && !VAR_P (SSA_NAME_VAR (ssa_name (tmp))))))
# 225| bitmap_set_bit (used, tmp);
# 226| }
Error: CLANG_WARNING: [#def990]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-loop-im.cc:948:24: warning[core.NullDereference]: Access to field 'max_loop' results in a dereference of a null pointer (loaded from variable 'lim_data')
# 946| return;
# 947|
# 948|-> gcc_assert (level == lim_data->max_loop
# 949| || flow_loop_nested_p (lim_data->max_loop, level));
# 950|
Error: CLANG_WARNING: [#def991]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-loop-im.cc:1696:10: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1694| tree ref_type = TREE_TYPE (*mem);
# 1695| tree tmp = build1 (ADDR_EXPR, ptr_type_node,
# 1696|-> unshare_expr (mem_base));
# 1697| if (TYPE_ALIGN (ref_type) != ref_align)
# 1698| ref_type = build_aligned_type (ref_type, ref_align);
Error: CLANG_WARNING: [#def992]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-loop-im.cc:3425:5: warning[core.NullDereference]: Access to field 'index' results in a dereference of a null pointer (loaded from variable 'last')
# 3423| if (dump_enabled_p ())
# 3424| dump_printf (MSG_NOTE, "BB %d is always executed in loop %d\n",
# 3425|-> last->index, loop->num);
# 3426| SET_ALWAYS_EXECUTED_IN (last, loop);
# 3427| if (last == loop->header)
Error: CLANG_WARNING: [#def993]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-loop-im.cc:3426:4: warning[core.NullDereference]: Access to field 'aux' results in a dereference of a null pointer (loaded from variable 'last')
# 3424| dump_printf (MSG_NOTE, "BB %d is always executed in loop %d\n",
# 3425| last->index, loop->num);
# 3426|-> SET_ALWAYS_EXECUTED_IN (last, loop);
# 3427| if (last == loop->header)
# 3428| break;
Error: CLANG_WARNING: [#def994]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-loop-ivcanon.cc:1499:7: warning[deadcode.DeadStores]: Value stored to 'changed' is never read
# 1497| do
# 1498| {
# 1499|-> changed = false;
# 1500| bitmap loop_closed_ssa_invalidated = NULL;
# 1501|
Error: CLANG_WARNING: [#def995]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-loop-unswitch.cc:1092:7: warning[deadcode.DeadStores]: Value stored to 'changed' is never read
# 1090| in the below recursion. See gcc.dg/loop-unswitch-16.c */
# 1091| add_predicate_to_path (predicate_path, predicate, true);
# 1092|-> changed |= simplify_loop_version (loop, predicate_path,
# 1093| ignored_edge_flag, handled);
# 1094| tree_unswitch_single_loop (loop, loc, predicate_path,
Error: CPPCHECK_WARNING: [#def996]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-loop.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def997]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-sccvn.cc: scope_hint: In function ‘void print_vn_reference_ops(FILE*, vec<vn_reference_op_struct>)’
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-sccvn.cc:286:21: warning[-Wformat-security]: format not a string literal and no format arguments
# 286 | fprintf (outfile, internal_fn_name ((internal_fn)vro->clique));
# | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 284| {
# 285| if (!vro->op0)
# 286|-> fprintf (outfile, internal_fn_name ((internal_fn)vro->clique));
# 287| else
# 288| print_generic_expr (outfile, vro->op0);
Error: CPPCHECK_WARNING: [#def998]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-scopedtables.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def999]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-scopedtables.cc:638:14: warning[core.NullDereference]: Dereference of null pointer
# 636| if ((CONVERT_EXPR_CODE_P (expr0->ops.unary.op)
# 637| || expr0->ops.unary.op == NON_LVALUE_EXPR)
# 638|-> && TYPE_UNSIGNED (expr0->type) != TYPE_UNSIGNED (expr1->type))
# 639| return false;
# 640|
Error: CLANG_WARNING: [#def1000]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-threadedge.cc:1385:6: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1383| i = 0;
# 1384| FOR_EACH_SSA_USE_OPERAND (use_p, stmt, iter, SSA_OP_ALL_USES)
# 1385|-> SET_USE (use_p, copy[i++]);
# 1386| }
# 1387| }
Error: CLANG_WARNING: [#def1001]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-threadupdate.cc:1480:27: warning[core.NullDereference]: Access to field 'src' results in a dereference of a null pointer (loaded from variable 'e2')
# 1478| and thread this elsewhere, so just cancel the jump threading
# 1479| request by clearing the AUX field now. */
# 1480|-> if (bb->loop_father != e2->src->loop_father
# 1481| && (!loop_exit_edge_p (e2->src->loop_father, e2)
# 1482| || flow_loop_nested_p (bb->loop_father,
Error: CLANG_WARNING: [#def1002]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssa-threadupdate.cc:1864:19: warning[core.NullDereference]: Access to field 'dest' results in a dereference of a null pointer (loaded from variable 'e')
# 1862| thread_block (header, false);
# 1863| set_loop_copy (loop, NULL);
# 1864|-> new_preheader = e->dest;
# 1865|
# 1866| /* Create the new latch block. This is always necessary, as the latch
Error: CLANG_WARNING: [#def1003]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-ssanames.cc:159:3: warning[core.CallAndMessage]: Called C++ object pointer is null
# 157| We use vec::quick_push here because we know that SSA_NAMES has at
# 158| least 50 elements reserved in it. */
# 159|-> SSANAMES (fn)->quick_push (NULL_TREE);
# 160| FREE_SSANAMES (fn) = NULL;
# 161| FREE_SSANAMES_QUEUE (fn) = NULL;
Error: CLANG_WARNING: [#def1004]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-tailcall.cc:295:40: warning[core.NullDereference]: Dereference of null pointer
# 293| if (gimple_assign_cast_p (stmt))
# 294| {
# 295|-> if (TYPE_MODE (TREE_TYPE (dest)) != TYPE_MODE (TREE_TYPE (src_var)))
# 296| return FAIL;
# 297|
Error: CLANG_WARNING: [#def1005]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-tailcall.cc:367:33: warning[core.NullDereference]: Dereference of null pointer
# 365|
# 366| case NEGATE_EXPR:
# 367|-> *m = build_minus_one_cst (TREE_TYPE (op0));
# 368| *ass_var = dest;
# 369| return OK;
Error: CLANG_WARNING: [#def1006]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-tailcall.cc:373:40: warning[core.NullDereference]: Dereference of null pointer
# 371| case MINUS_EXPR:
# 372| if (*ass_var == op0)
# 373|-> *a = fold_build1 (NEGATE_EXPR, TREE_TYPE (non_ass_var), non_ass_var);
# 374| else
# 375| {
Error: CLANG_WARNING: [#def1007]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-tailcall.cc:943:10: warning[deadcode.DeadStores]: Although the value stored to 'orig_stmt' is used in the enclosing expression, the value is never actually read from 'orig_stmt'
# 941| gimple *orig_stmt;
# 942|
# 943|-> stmt = orig_stmt = gsi_stmt (t->call_gsi);
# 944| bb = gsi_bb (t->call_gsi);
# 945|
Error: CLANG_WARNING: [#def1008]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vect-generic.cc:317:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 315| constant_p = false;
# 316| constructor_elt ce = {NULL_TREE, result};
# 317|-> v->quick_push (ce);
# 318| }
# 319|
Error: CLANG_WARNING: [#def1009]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vect-generic.cc:507:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value due to array index out of bounds
# 505| for (i = 1; i < nunits; i++)
# 506| {
# 507|-> if (shiftcnts[i] != shiftcnts[0])
# 508| scalar_shift = false;
# 509| }
Error: CLANG_WARNING: [#def1010]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vect-generic.cc:511:36: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
# 509| }
# 510|
# 511|-> if (scalar_shift && shiftcnts[0] == 0)
# 512| return op0;
# 513|
Error: CLANG_WARNING: [#def1011]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vect-generic.cc:651:12: warning[core.BitwiseShift]: Right operand is negative in right shift
# 649| if (pre_shift != 0)
# 650| {
# 651|-> if ((d >> pre_shift) <= 1)
# 652| {
# 653| mode = -2;
Error: CLANG_WARNING: [#def1012]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vect-generic.cc:1424:4: warning[deadcode.DeadStores]: Value stored to 'idx' is never read
# 1422| {
# 1423| index &= elements - 1;
# 1424|-> idx = build_int_cst (TREE_TYPE (idx), index);
# 1425| }
# 1426|
Error: CLANG_WARNING: [#def1013]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vect-generic.cc:1805:33: warning[core.NullDereference]: Dereference of null pointer
# 1803| {
# 1804| gimple *g = gimple_build_call (decl, 1, a);
# 1805|-> tree lhs = make_ssa_name (TREE_TYPE (TREE_TYPE (decl)));
# 1806| gimple_call_set_lhs (g, lhs);
# 1807| gsi_insert_before (gsi, g, GSI_SAME_STMT);
Error: CLANG_WARNING: [#def1014]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vect-generic.cc:2064:5: warning[core.CallAndMessage]: Called C++ object pointer is null
# 2062| if (!CONSTANT_CLASS_P (ce.value))
# 2063| constant_p = false;
# 2064|-> v->quick_push (ce);
# 2065| ce.value = gimplify_build1 (gsi, code2, cretd_type, a);
# 2066| if (!CONSTANT_CLASS_P (ce.value))
Error: CLANG_WARNING: [#def1015]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vect-generic.cc:2242:11: warning[core.NullDereference]: Dereference of null pointer
# 2240| could be a scalar variable or a constant. Transform
# 2241| vector <op> {x,x,x,x} ==> vector <op> scalar. */
# 2242|-> if (VECTOR_INTEGER_TYPE_P (TREE_TYPE (rhs2)))
# 2243| {
# 2244| tree first;
Error: CLANG_WARNING: [#def1016]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vectorizer.cc:117:15: warning[deadcode.DeadStores]: Value stored to 'ks' during its initialization is never read
# 115| fprintf (f, "<unknown> ");
# 116| fprintf (f, "%d times ", count);
# 117|-> const char *ks = "unknown";
# 118| switch (kind)
# 119| {
Error: CLANG_WARNING: [#def1017]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vectorizer.cc:176:15: warning[deadcode.DeadStores]: Value stored to 'ws' during its initialization is never read
# 174| fprintf (f, "(misalign %d) ", misalign);
# 175| fprintf (f, "costs %u ", cost);
# 176|-> const char *ws = "unknown";
# 177| switch (where)
# 178| {
Error: CLANG_WARNING: [#def1018]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vectorizer.cc:310:19: warning[core.NullDereference]: Dereference of null pointer
# 308| gcc_assert (TREE_CODE (arg) == SSA_NAME);
# 309| simduid_to_vf *p = NULL, data;
# 310|-> data.simduid = DECL_UID (SSA_NAME_VAR (arg));
# 311| /* Need to nullify loop safelen field since it's value is not
# 312| valid after transformation. */
Error: CLANG_WARNING: [#def1019]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vectorizer.cc:421:15: warning[core.NullDereference]: Dereference of null pointer
# 419| imm_use_iterator use_iter;
# 420| gimple *use_stmt;
# 421|-> ns.simduid = DECL_UID (SSA_NAME_VAR (gimple_call_arg (stmt, 0)));
# 422| FOR_EACH_IMM_USE_STMT (use_stmt, use_iter, lhs)
# 423| if (!is_gimple_debug (use_stmt))
Error: CLANG_WARNING: [#def1020]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/analyzer/access-diagram.cc:29: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree.h:4174:12: warning[core.NullDereference]: Array access (via field 'val') results in a null pointer dereference
# 4172| {
# 4173| if (VL_EXP_CLASS_P (node))
# 4174|-> return VL_EXP_OPERAND_LENGTH (node);
# 4175| else
# 4176| return TREE_CODE_LENGTH (TREE_CODE (node));
Error: CLANG_WARNING: [#def1021]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cp-gimplify.cc:27: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cp/cp-tree.h:42: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/c-family/c-common.h:26: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree.h:4231:19: warning[core.NullDereference]: Dereference of null pointer
# 4229| id_equal (const_tree id, const char *str)
# 4230| {
# 4231|-> return !strcmp (IDENTIFIER_POINTER (id), str);
# 4232| }
# 4233|
Error: CPPCHECK_WARNING: [#def1022]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tristate.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1023]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/typed-splay-tree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1024]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ubsan.cc:655:21: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 653| DECL_IGNORED_P (type_decl) = 1;
# 654| DECL_ARTIFICIAL (type_decl) = 1;
# 655|-> TYPE_FIELDS (ret) = fields[0];
# 656| TYPE_NAME (ret) = type_decl;
# 657| TYPE_STUB_DECL (ret) = type_decl;
Error: CPPCHECK_WARNING: [#def1025]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/valtrack.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1026]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/valtrack.cc:432:12: warning[deadcode.DeadStores]: Value stored to 'added' during its initialization is never read
# 430| debug->global->used = BITMAP_ALLOC (NULL);
# 431|
# 432|-> bool added = bitmap_set_bit (debug->global->used, REGNO (reg));
# 433| gcc_checking_assert (added);
# 434|
Error: CLANG_WARNING: [#def1027]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/valtrack.cc:733:46: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'uses')
# 731| the debug use is not part of a larger expression, then it
# 732| probably doesn't make sense to introduce a new debug temp. */
# 733|-> if (where == DEBUG_TEMP_AFTER_WITH_REG && !uses->next)
# 734| {
# 735| rtx_insn *next = DF_REF_INSN (uses->use);
Error: CLANG_WARNING: [#def1028]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/value-prof.cc:1252:8: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'val')
# 1250| n->profile_id,
# 1251| n->dump_name (),
# 1252|-> (*val)->dump_name ());
# 1253| n->profile_id = (n->profile_id + 1) & 0x7fffffff;
# 1254| }
Error: CLANG_WARNING: [#def1029]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/auto-profile.cc:32: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/ssa.h:28: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/tree-vrp.h:23: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/value-range.h:1343:7: warning[deadcode.DeadStores]: Value stored to 'res' during its initialization is never read
# 1341| get_max_float (REAL_MODE_FORMAT (TYPE_MODE (type)),
# 1342| buf, sizeof (buf), false);
# 1343|-> int res = real_from_string (&r, buf);
# 1344| gcc_checking_assert (!res);
# 1345| return r;
Error: CPPCHECK_WARNING: [#def1030]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/vec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1031]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/lto-streamer-in.cc:25: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coretypes.h:498: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hash-table.h:248: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/vec.h:761:3: warning[core.CallAndMessage]: Called C++ object pointer is null
# 759| gcc_checking_assert (len >= oldlen);
# 760| vec_safe_reserve (v, len - oldlen, exact PASS_MEM_STAT);
# 761|-> v->quick_grow (len);
# 762| }
# 763|
Error: CLANG_WARNING: [#def1032]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/dwarf2cfi.cc:22: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coretypes.h:498: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hash-table.h:248: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/vec.h:774:3: warning[core.CallAndMessage]: Called C++ object pointer is null
# 772| gcc_checking_assert (len >= oldlen);
# 773| vec_safe_reserve (v, len - oldlen, exact PASS_MEM_STAT);
# 774|-> v->quick_grow_cleared (len);
# 775| }
# 776|
Error: CLANG_WARNING: [#def1033]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/cfg.cc:51: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coretypes.h:498: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/hash-table.h:248: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/vec.h:835:10: warning[core.CallAndMessage]: Called C++ object pointer is null
# 833| {
# 834| vec_safe_reserve (v, 1, false PASS_MEM_STAT);
# 835|-> return v->quick_push (obj);
# 836| }
# 837|
Error: CLANG_WARNING: [#def1034]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/vec.h:847:3: warning[core.CallAndMessage]: Called C++ object pointer is null
# 845| {
# 846| vec_safe_reserve (v, 1, false PASS_MEM_STAT);
# 847|-> v->quick_insert (ix, obj);
# 848| }
# 849|
Error: CLANG_WARNING: [#def1035]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/vec.h:881:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 879| vec_safe_reserve_exact (dst, vec_safe_length (dst) + src_len
# 880| PASS_MEM_STAT);
# 881|-> dst->splice (*src);
# 882| }
# 883| }
Error: CPPCHECK_WARNING: [#def1036]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/vmsdbgout.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1037]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/web.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1038]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/wide-int-print.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1039]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/wide-int-print.cc:144:5: warning[deadcode.DeadStores]: Value stored to 'buf' is never read
# 142| {
# 143| if (val == 0)
# 144|-> buf += sprintf (buf, "0x0");
# 145| else
# 146| {
Error: CPPCHECK_WARNING: [#def1040]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/wide-int.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1041]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/wide-int.cc:160:16: warning[deadcode.DeadStores]: Value stored to 'words' during its initialization is never read
# 158| unsigned int precision = buffer_len * BITS_PER_UNIT;
# 159| wide_int result = wide_int::create (precision);
# 160|-> unsigned int words = buffer_len / UNITS_PER_WORD;
# 161|
# 162| /* We have to clear all the bits ourself, as we merely or in values
Error: CLANG_WARNING: [#def1042]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/data-streamer-in.cc:25: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/coretypes.h:472: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/wide-int.h:1202:7: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 1200| {
# 1201| u.valp = XNEWVEC (HOST_WIDE_INT, CEIL (precision, HOST_BITS_PER_WIDE_INT));
# 1202|-> memcpy (u.valp, x.u.valp, len * sizeof (HOST_WIDE_INT));
# 1203| }
# 1204| }
Error: CPPCHECK_WARNING: [#def1043]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/dwarf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1044]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/dwarf.c:1516:7: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 1514| memset (&key, 0, sizeof key);
# 1515| key.code = code;
# 1516|-> p = bsearch (&key, abbrevs->abbrevs, abbrevs->num_abbrevs,
# 1517| sizeof (struct abbrev), abbrev_compare);
# 1518| if (p == NULL)
Error: CPPCHECK_WARNING: [#def1045]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1046]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c:4666:16: warning[core.BitwiseShift]: Right operand is negative in left shift
# 4664| bits -= literal_decode.table_bits;
# 4665| literal_state = ((val >> bits)
# 4666|-> & ((1U << literal_decode.table_bits) - 1));
# 4667|
# 4668| if (!elf_fetch_bits_backward (&pback, pin, &val, &bits))
Error: CLANG_WARNING: [#def1047]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c:4701:21: warning[core.NullDereference]: Access to field 'basebits' results in a dereference of a null pointer (loaded from variable 'pt')
# 4699|
# 4700| pt = &offset_decode.table[offset_state];
# 4701|-> offset_basebits = pt->basebits;
# 4702| offset_baseline = pt->baseline;
# 4703| offset_bits = pt->bits;
Error: CLANG_WARNING: [#def1048]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c:4715:18: warning[core.BitwiseShift]: Right shift overflows the capacity of 'uint64_t'
# 4713| return 0;
# 4714| bits -= 16;
# 4715|-> add = (val >> bits) & ((1U << 16) - 1);
# 4716| need -= 16;
# 4717| add <<= need;
Error: CLANG_WARNING: [#def1049]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c:5934:17: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 5932| poffset, &range, &code))
# 5933| {
# 5934|-> next_dist = dist[3];
# 5935| dist[3] = dist[2];
# 5936| }
Error: CLANG_WARNING: [#def1050]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c:5939:17: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 5937| else
# 5938| {
# 5939|-> next_dist = dist[2];
# 5940| }
# 5941| dist[2] = dist[1];
Error: CLANG_WARNING: [#def1051]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c:5945:20: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 5943| else
# 5944| {
# 5945|-> next_dist = dist[1];
# 5946| }
# 5947|
Error: CLANG_WARNING: [#def1052]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c:5985:17: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 5983| else
# 5984| lstate = 10;
# 5985|-> dist[3] = dist[2];
# 5986| dist[2] = dist[1];
# 5987| dist[1] = dist[0];
Error: CLANG_WARNING: [#def1053]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/elf.c:6059:35: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 6057|
# 6058| if (unlikely (uncompressed_offset
# 6059|-> - dict_start_offset < dist[0] + 1))
# 6060| {
# 6061| elf_uncompress_failed ();
Error: CPPCHECK_WARNING: [#def1054]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/fileline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1055]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/mmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1056]
gcc-14.1.1-build/gcc-14.1.1-20240701/libbacktrace/sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1057]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcc1/connection.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1058]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcc1/libcc1.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1059]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcc1/libcp1.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1060]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcc1/libcp1plugin.cc:498:31: warning[core.NullDereference]: Dereference of null pointer
# 496| cfun = NULL;
# 497| pop_scope ();
# 498|-> if (RECORD_OR_UNION_CODE_P (TREE_CODE (DECL_CONTEXT (current_function_decl))))
# 499| current_class_type = DECL_CONTEXT (current_function_decl);
# 500| {
Error: CLANG_WARNING: [#def1061]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcc1/libcp1plugin.cc:2976:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 2974| tail = &TREE_CHAIN (*tail);
# 2975| }
# 2976|-> return args;
# 2977| }
# 2978|
Error: CPPCHECK_WARNING: [#def1062]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcody/buffer.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1063]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcody/resolver.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1064]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcody/server.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1065]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/charset.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def1066]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/charset.cc:1301: error[uninitvar]: Uninitialized variable: name_after_uax44_lm2
# 1299| and so should match U+1180. */
# 1300| if (q - name_after_uax44_lm2 == sizeof ("HANGULJUNGSEONGO-E") - 1
# 1301|-> && memcmp (name_after_uax44_lm2, "HANGULJUNGSEONGO-E",
# 1302| sizeof ("HANGULJUNGSEONGO-E") - 1) == 0)
# 1303| {
Error: CLANG_WARNING: [#def1067]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/charset.cc:2873:24: warning[core.BitwiseShift]: Left shift overflows the capacity of 'cppchar_t'
# 2871| {
# 2872| c = bigend ? str.text[off + i] : str.text[off + nbwc - i - 1];
# 2873|-> result = (result << cwidth) | (c & cmask);
# 2874| }
# 2875|
Error: CPPCHECK_WARNING: [#def1068]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/directives.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1069]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1070]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:189:15: warning[deadcode.DeadStores]: Although the value stored to 'flags' is used in the enclosing expression, the value is never actually read from 'flags'
# 187| case 'h': case 'H':
# 188| if (len == 1)
# 189|-> return flags |= CPP_N_SMALL;
# 190| break;
# 191| case 'l':
Error: CLANG_WARNING: [#def1071]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:193:15: warning[deadcode.DeadStores]: Although the value stored to 'flags' is used in the enclosing expression, the value is never actually read from 'flags'
# 191| case 'l':
# 192| if (len == 1)
# 193|-> return flags |= CPP_N_MEDIUM;
# 194| if (len == 2 && s[1] == 'l')
# 195| return flags |= CPP_N_LARGE;
Error: CLANG_WARNING: [#def1072]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:195:15: warning[deadcode.DeadStores]: Although the value stored to 'flags' is used in the enclosing expression, the value is never actually read from 'flags'
# 193| return flags |= CPP_N_MEDIUM;
# 194| if (len == 2 && s[1] == 'l')
# 195|-> return flags |= CPP_N_LARGE;
# 196| break;
# 197| case 'L':
Error: CLANG_WARNING: [#def1073]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:199:15: warning[deadcode.DeadStores]: Although the value stored to 'flags' is used in the enclosing expression, the value is never actually read from 'flags'
# 197| case 'L':
# 198| if (len == 1)
# 199|-> return flags |= CPP_N_MEDIUM;
# 200| if (len == 2 && s[1] == 'L')
# 201| return flags |= CPP_N_LARGE;
Error: CLANG_WARNING: [#def1074]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:201:15: warning[deadcode.DeadStores]: Although the value stored to 'flags' is used in the enclosing expression, the value is never actually read from 'flags'
# 199| return flags |= CPP_N_MEDIUM;
# 200| if (len == 2 && s[1] == 'L')
# 201|-> return flags |= CPP_N_LARGE;
# 202| break;
# 203| default:
Error: CLANG_WARNING: [#def1075]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:671:2: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 669| }
# 670| else
# 671|-> result = 0;
# 672| }
# 673|
Error: COMPILER_WARNING (CWE-134): [#def1076]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc: scope_hint: In function ‘unsigned int cpp_classify_number(cpp_reader*, const cpp_token*, const char**, location_t)’
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:856:33: warning[-Wformat-security]: format not a string literal and no format arguments
# 856 | cpp_warning_with_line (pfile, CPP_W_SIZE_T_LITERALS,
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 857 | virtual_location, 0, message);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 854| ? N_("use of C++23 %<size_t%> integer constant")
# 855| : N_("use of C++23 %<make_signed_t<size_t>%> integer constant");
# 856|-> cpp_warning_with_line (pfile, CPP_W_SIZE_T_LITERALS,
# 857| virtual_location, 0, message);
# 858| }
Error: COMPILER_WARNING (CWE-134): [#def1077]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:868:42: warning[-Wformat-security]: format not a string literal and no format arguments
# 868 | cpp_pedwarning_with_line (pfile, CPP_W_C11_C23_COMPAT,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 869 | virtual_location, 0, message);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 866| "%<wb%> suffixes before C23");
# 867| if (CPP_PEDANTIC (pfile) && !CPP_OPTION (pfile, true_false))
# 868|-> cpp_pedwarning_with_line (pfile, CPP_W_C11_C23_COMPAT,
# 869| virtual_location, 0, message);
# 870| else
Error: COMPILER_WARNING (CWE-134): [#def1078]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:871:39: warning[-Wformat-security]: format not a string literal and no format arguments
# 871 | cpp_warning_with_line (pfile, CPP_W_C11_C23_COMPAT,
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 872 | virtual_location, 0, message);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 869| virtual_location, 0, message);
# 870| else
# 871|-> cpp_warning_with_line (pfile, CPP_W_C11_C23_COMPAT,
# 872| virtual_location, 0, message);
# 873| }
Error: COMPILER_WARNING (CWE-134): [#def1079]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:878:35: warning[-Wformat-security]: format not a string literal and no format arguments
# 878 | cpp_error_with_line (pfile, CPP_DL_PEDWARN, virtual_location, 0,
# | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 879 | message);
# | ~~~~~~~~
# 876| const char *message = N_("ISO C does not support literal "
# 877| "%<wb%> suffixes before C23");
# 878|-> cpp_error_with_line (pfile, CPP_DL_PEDWARN, virtual_location, 0,
# 879| message);
# 880| }
Error: CLANG_WARNING: [#def1080]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:2199:31: warning[core.BitwiseShift]: Left shift by '18446744073709551615' overflows the capacity of 'cpp_num_part'
# 2197| {
# 2198| i = precision - 1;
# 2199|-> mask = (cpp_num_part) 1 << (i - PART_PRECISION);
# 2200| for (; ; i--, mask >>= 1)
# 2201| if (rhs.high & mask)
Error: CLANG_WARNING: [#def1081]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/expr.cc:2199:31: warning[core.BitwiseShift]: Left shift overflows the capacity of 'cpp_num_part'
# 2197| {
# 2198| i = precision - 1;
# 2199|-> mask = (cpp_num_part) 1 << (i - PART_PRECISION);
# 2200| for (; ; i--, mask >>= 1)
# 2201| if (rhs.high & mask)
Error: CPPCHECK_WARNING: [#def1082]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/files.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1083]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/files.cc:870:48: warning[unix.Malloc]: Use of memory after it is freed
# 868| /* We may have read the file under a different name. Look
# 869| for likely candidates and compare file contents to be sure. */
# 870|-> for (_cpp_file *f = pfile->all_files; f; f = f->next_file)
# 871| {
# 872| if (f == file)
Error: CLANG_WARNING: [#def1084]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/files.cc:896:14: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 894| /* Size might have changed in read_file(). */
# 895| && ref_file->st.st_size == file->st.st_size
# 896|-> && !memcmp (ref_file->buffer, file->buffer,
# 897| file->st.st_size));
# 898|
Error: CLANG_WARNING: [#def1085]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/line-map.cc:24: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/include/line-map.h:652:10: warning[core.NullDereference]: Access to field 'start_location' results in a dereference of a null pointer (loaded from variable 'map')
# 650| MAP_START_LOCATION (const line_map *map)
# 651| {
# 652|-> return map->start_location;
# 653| }
# 654|
Error: CPPCHECK_WARNING: [#def1086]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/init.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-590): [#def1087]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/init.cc:364: error[autovarInvalidDeallocation]: Deallocation of an auto-variable (.) results in undefined behaviour.
# 362| free (run->base);
# 363| if (run != &pfile->base_run)
# 364|-> free (run);
# 365| }
# 366|
Error: CLANG_WARNING: [#def1088]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/init.cc:821:24: warning[deadcode.DeadStores]: Value stored to 'hash' during its initialization is never read
# 819| && buf[3] == ' ')
# 820| {
# 821|-> const cpp_token *hash = _cpp_lex_direct (pfile);
# 822| gcc_checking_assert (hash->type == CPP_HASH);
# 823| pfile->state.in_directive = 1;
Error: CLANG_WARNING: [#def1089]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/init.cc:824:24: warning[deadcode.DeadStores]: Value stored to 'number' during its initialization is never read
# 822| gcc_checking_assert (hash->type == CPP_HASH);
# 823| pfile->state.in_directive = 1;
# 824|-> const cpp_token *number = _cpp_lex_direct (pfile);
# 825| gcc_checking_assert (number->type == CPP_NUMBER);
# 826| const cpp_token *string = _cpp_lex_direct (pfile);
Error: CPPCHECK_WARNING: [#def1090]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1091]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc:1812:7: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
# 1810| location_t loc;
# 1811| bidi::kind kind = get_bidi_utf8 (pfile, cur - 1, &loc);
# 1812|-> maybe_warn_bidi_on_char (pfile, kind, /*ucn_p=*/false, loc);
# 1813| }
# 1814| if (!warn_invalid_utf8_p)
Error: CLANG_WARNING: [#def1092]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc:1930:5: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
# 1928| location_t loc;
# 1929| bidi::kind kind = get_bidi_utf8 (pfile, buffer->cur, &loc);
# 1930|-> maybe_warn_bidi_on_char (pfile, kind, /*ucn_p=*/false, loc);
# 1931| }
# 1932| buffer->cur++;
Error: CLANG_WARNING: [#def1093]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc:2099:8: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
# 2097| location_t loc;
# 2098| bidi::kind kind = get_bidi_utf8 (pfile, buffer->cur, &loc);
# 2099|-> maybe_warn_bidi_on_char (pfile, kind, /*ucn_p=*/false, loc);
# 2100| }
# 2101| if (_cpp_valid_utf8 (pfile, &buffer->cur, buffer->rlimit, 1 + !first,
Error: CLANG_WARNING: [#def1094]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc:2120:8: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
# 2118| kind = get_bidi_ucn (pfile, buffer->cur,
# 2119| buffer->cur[-1] == 'U', &loc);
# 2120|-> maybe_warn_bidi_on_char (pfile, kind, /*ucn_p=*/true, loc);
# 2121| }
# 2122| if (_cpp_valid_ucn (pfile, &buffer->cur, buffer->rlimit, 1 + !first,
Error: CLANG_WARNING: [#def1095]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc:2921:8: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value
# 2919| else
# 2920| kind = get_bidi_ucn (pfile, cur + 1, cur[0] == 'U', &loc);
# 2921|-> maybe_warn_bidi_on_char (pfile, kind, /*ucn_p=*/true, loc);
# 2922| }
# 2923| cur++;
Error: CLANG_WARNING: [#def1096]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc:4629:9: warning[core.NullDereference]: Array access results in an undefined pointer dereference
# 4627| c = EOF;
# 4628| if (token2->flags & DIGRAPH)
# 4629|-> c = digraph_spellings[(int) b - (int) CPP_FIRST_DIGRAPH][0];
# 4630| else if (token_spellings[b].category == SPELL_OPERATOR)
# 4631| c = token_spellings[b].name[0];
Error: CLANG_WARNING: [#def1097]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc:5327:10: warning[deadcode.DeadStores]: Value stored to 'ok' during its initialization is never read
# 5325| buffer->next_line = pos;
# 5326| buffer->need_line = true;
# 5327|-> bool ok = _cpp_get_fresh_line (pfile);
# 5328| gcc_checking_assert (ok);
# 5329|
Error: CLANG_WARNING: [#def1098]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/lex.cc:5625:8: warning[deadcode.DeadStores]: Value stored to 'raw' is never read
# 5623| {
# 5624| pos += delim_len + 1;
# 5625|-> raw = false;
# 5626| goto done_string;
# 5627| }
Error: CPPCHECK_WARNING: [#def1099]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/line-map.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1100]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/macro.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-134): [#def1101]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/macro.cc: scope_hint: In member function ‘vaopt_state::update_type vaopt_state::update(const cpp_token*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/macro.cc:185:26: warning[-Wformat-security]: format not a string literal and no format arguments
# 185 | cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc,
# | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 186 | vaopt_paste_error);
# | ~~~~~~~~~~~~~~~~~~
# 183| if (m_state == 2 && token->type == CPP_PASTE)
# 184| {
# 185|-> cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc,
# 186| vaopt_paste_error);
# 187| return ERROR;
Error: COMPILER_WARNING (CWE-134): [#def1102]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/macro.cc:214:34: warning[-Wformat-security]: format not a string literal and no format arguments
# 214 | cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc,
# | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 215 | vaopt_paste_error);
# | ~~~~~~~~~~~~~~~~~~
# 212| if (was_paste)
# 213| {
# 214|-> cpp_error_at (m_pfile, CPP_DL_ERROR, token->src_loc,
# 215| vaopt_paste_error);
# 216| return ERROR;
Error: CLANG_WARNING: [#def1103]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/macro.cc:571:8: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 569| if (pfile->cb.remap_filename && !pfile->state.in_directive)
# 570| name = pfile->cb.remap_filename (name);
# 571|-> len = strlen (name);
# 572| buf = _cpp_unaligned_alloc (pfile, len * 2 + 3);
# 573| result = buf;
Error: CPPCHECK_WARNING: [#def1104]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/mkdeps.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1105]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/mkdeps.cc:185:12: warning[core.NullDereference]: Array access (from variable 'buf') results in a null pointer dereference
# 183| }
# 184|
# 185|-> buf[dst] = 0;
# 186| return buf;
# 187| }
Error: CLANG_WARNING: [#def1106]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/mkdeps.cc:456:7: warning[deadcode.DeadStores]: Value stored to 'column' is never read
# 454| fputs (":", fp);
# 455| column++;
# 456|-> column = make_write_vec (d->modules, fp, column, colmax, 0, ".c++m");
# 457| fputs ("\n", fp);
# 458| }
Error: CLANG_WARNING: [#def1107]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/mkdeps.cc:469:4: warning[deadcode.DeadStores]: Value stored to 'column' is never read
# 467| fputs (":", fp);
# 468| column++;
# 469|-> column = make_write_name (d->cmi_name, fp, column, colmax);
# 470| fputs ("\n", fp);
# 471|
Error: CLANG_WARNING: [#def1108]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/mkdeps.cc:473:4: warning[deadcode.DeadStores]: Value stored to 'column' is never read
# 471|
# 472| column = fprintf (fp, ".PHONY:");
# 473|-> column = make_write_name (d->module_name, fp, column, colmax,
# 474| true, ".c++m");
# 475| fputs ("\n", fp);
Error: CLANG_WARNING: [#def1109]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/mkdeps.cc:487:4: warning[deadcode.DeadStores]: Value stored to 'column' is never read
# 485| fputs (":|", fp);
# 486| column++;
# 487|-> column = make_write_name (d->targets[0], fp, column, colmax);
# 488| fputs ("\n", fp);
# 489| }
Error: CPPCHECK_WARNING: [#def1110]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/pch.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1111]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/symtab.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1112]
gcc-14.1.1-build/gcc-14.1.1-20240701/libcpp/traditional.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1113]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/bid/bid2dpd_dpd2bid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1114]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/bid/bid2dpd_dpd2bid.c:299:3: warning[deadcode.DeadStores]: Value stored to 'exp' is never read
# 297| sign.w[0] = 0;
# 298| comb = (x.w[1] /*& 0x7fffc00000000000ull */ ) >> 46;
# 299|-> exp = 0;
# 300| if ((comb & 0x1e000) == 0x1e000) {
# 301| res = x;
Error: CPPCHECK_WARNING: [#def1115]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/bid/decimal128.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1116]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/bid/decimal32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1117]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/bid/decimal64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1118]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decContext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1119]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1120]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:2150:11: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 2148| decLnOp(dac, lhs, &aset, &status); /* dac=ln(lhs) */
# 2149| /* [no error possible, as lhs 0 already handled] */
# 2150|-> if (ISZERO(dac)) { /* x==1, 1.0, etc. */
# 2151| /* need to return fully-padded 1.0000 etc., but rhsint->1 */
# 2152| *dac->lsu=1; /* was 0, make int 1 */
Error: CLANG_WARNING: [#def1121]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:3868:7: warning[deadcode.DeadStores]: Value stored to 'bits' is never read
# 3866| Int adjust; /* work */
# 3867| Int lexp=lhs->exponent; /* save in case LHS==RES */
# 3868|-> bits=lhs->bits; /* .. */
# 3869| residue=0; /* clear accumulator */
# 3870| decCopyFit(res, rhs, set, &residue, status); /* copy (as needed) */
Error: CLANG_WARNING: [#def1122]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:3904:7: warning[deadcode.DeadStores]: Value stored to 'bits' is never read
# 3902| Int adjust; /* work */
# 3903| Int rexp=rhs->exponent; /* save in case RHS==RES */
# 3904|-> bits=rhs->bits; /* be clean */
# 3905| residue=0; /* clear accumulator */
# 3906| decCopyFit(res, lhs, set, &residue, status); /* copy (as needed) */
Error: CLANG_WARNING: [#def1123]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:4581:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 4579| /* if the residue is zero, the operation is done (unless divide */
# 4580| /* or divideInteger and still not enough digits yet) */
# 4581|-> if (*var1==0 && var1units==1) { /* residue is 0 */
# 4582| if (op&(REMAINDER|REMNEAR)) break;
# 4583| if ((op&DIVIDE) && (exponent<=maxexponent)) break;
Error: CLANG_WARNING: [#def1124]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:4636:6: warning[deadcode.DeadStores]: Value stored to 'accunits' is never read
# 4634| accunits=decShiftToLeast(accnext, accunits, drop);
# 4635| accdigits=decGetDigits(accnext, accunits);
# 4636|-> accunits=D2U(accdigits);
# 4637| /* [exponent was adjusted in the loop] */
# 4638| }
Error: CLANG_WARNING: [#def1125]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:4762:6: warning[deadcode.DeadStores]: Value stored to 'accunits' is never read
# 4760| expunits, accnext, -(Int)powers[exprem]);
# 4761| accdigits=decGetDigits(accnext, accunits); /* count digits exactly */
# 4762|-> accunits=D2U(accdigits); /* and recalculate the units for copy */
# 4763| /* [exponent is as for original remainder] */
# 4764| bits^=DECNEG; /* flip the sign */
Error: CLANG_WARNING: [#def1126]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:5021:7: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 5019| lp=zacc+(rip-zrhi); /* where to add the lhs */
# 5020| for (lip=zlhi; lip<=lmsi; lip++, lp++) { /* over each item in lhs */
# 5021|-> *lp+=(uLong)(*lip)*(*rip); /* [this should in-line] */
# 5022| } /* lip loop */
# 5023| lazy--;
Error: CLANG_WARNING: [#def1127]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:5037:13: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 5035| else { /* two-place carry [fairly rare] */
# 5036| uInt carry2=(uInt)(lcarry/FASTBASE); /* top top part */
# 5037|-> *(lp+2)+=carry2; /* add to item+2 */
# 5038| *lp-=((uLong)FASTBASE*FASTBASE*carry2); /* [slow] */
# 5039| carry=(uInt)(lcarry-((uLong)FASTBASE*carry2)); /* [inline] */
Error: CLANG_WARNING: [#def1128]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:5041:11: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
# 5039| carry=(uInt)(lcarry-((uLong)FASTBASE*carry2)); /* [inline] */
# 5040| }
# 5041|-> *(lp+1)+=carry; /* add to item above [inline] */
# 5042| *lp-=((uLong)FASTBASE*carry); /* [inline] */
# 5043| } /* carry resolution */
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1129]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c: scope_hint: In function ‘decUnitCompare’
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:6276:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*u’
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:181: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:6204:36: note: in expansion of macro ‘D2U’
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:6203:36: note: in expansion of macro ‘D2U’
# 6274| else { /* non-negative result */
# 6275| /* check units of the result before freeing any storage */
# 6276|-> for (u=acc; u<acc+accunits-1 && *u==0;) u++;
# 6277| result=(*u==0 ? 0 : +1);
# 6278| }
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1130]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c: scope_hint: In function ‘decUnitAddSub’
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:6376:19: warning[-Wanalyzer-out-of-bounds]: buffer over-read
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c: scope_hint: In function ‘decUnitAddSub’
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:7213:26: note: in expansion of macro ‘D2U’
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:6376:19: note: read of 2 bytes from after the end of ‘uarrone’
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/decNumber.c:6376:19: note: valid subscripts for ‘uarrone’ are ‘[0]’ to ‘[0]’
# └──────────────────────────────────┘
# ^
# 6374| carry+=*a;
# 6375| a++;
# 6376|-> carry+=((eInt)*b)*m; /* [special-casing m=1/-1 */
# 6377| b++; /* here is not a win] */
# 6378| /* here carry is new Unit of digits; it could be +ve or -ve */
Error: CPPCHECK_WARNING: [#def1131]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/dpd/decimal128.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1132]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/dpd/decimal32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1133]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/dpd/decimal64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1134]
gcc-14.1.1-build/gcc-14.1.1-20240701/libdecnumber/dpd/decimal64.c:677:10: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 675| for(; digits>0;) { /* each output bunch */
# 676| #if DECDPUN==3 /* fast path, 3-at-a-time */
# 677|-> bin=*inu; /* 3 digits ready for convert */
# 678| digits-=3; /* [may go negative] */
# 679| inu++; /* may need another */
Error: CLANG_WARNING: [#def1135]
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-driver.c:242: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-driver-system.c:202:4: warning[unix.Malloc]: Argument to free() is offset by 1 byte from the start of memory allocated by malloc()
# 200| *buffer_ptr = '\0';
# 201|
# 202|-> free (filename);
# 203| filename = buffer;
# 204| p = buffer + start + repl_length;
Error: CLANG_WARNING: [#def1136]
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-driver.c:700:7: warning[unix.Malloc]: Argument to free() is offset by 1 byte from the start of memory allocated by malloc()
# 698| {
# 699| dump_one_gcov (gi_ptr, &gf, run_counted, run_max, mode);
# 700|-> free (gf.filename);
# 701| }
# 702|
Error: COMPILER_WARNING: [#def1137]
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-util.c: scope_hint: In function ‘void tag_counters(unsigned int, int)’
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-util.c:214:59: warning[-Wcalloc-transposed-args]: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
# 214 | k_ctrs[tag_ix].values = values = (gcov_type *) xcalloc (sizeof (gcov_type),
# | ^~~~~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-util.c:214:59: note: earlier argument should specify number of elements, later size of each element
# 212| k_ctrs[tag_ix].num = n_counts;
# 213|
# 214|-> k_ctrs[tag_ix].values = values = (gcov_type *) xcalloc (sizeof (gcov_type),
# 215| n_counts);
# 216| gcc_assert (values);
Error: COMPILER_WARNING: [#def1138]
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-util.c: scope_hint: In function ‘void topn_to_memory_representation(gcov_ctr_info*)’
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-util.c:529:43: warning[-Wcalloc-transposed-args]: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
# 529 | = (struct gcov_kvp *)xcalloc (sizeof (struct gcov_kvp), n);
# | ^~~~~~~~~~~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-util.c:529:43: note: earlier argument should specify number of elements, later size of each element
# 527| {
# 528| struct gcov_kvp *tuples
# 529|-> = (struct gcov_kvp *)xcalloc (sizeof (struct gcov_kvp), n);
# 530| for (unsigned i = 0; i < n - 1; i++)
# 531| tuples[i].next = &tuples[i + 1];
Error: CLANG_WARNING: [#def1139]
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov-merge.c:26: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov.h:522:11: warning[core.NullDereference]: Access to field 'count' results in a dereference of a null pointer (loaded from variable 'minimal_node')
# 520| if (counters[1] == GCOV_TOPN_MAXIMUM_TRACKED_VALUES)
# 521| {
# 522|-> if (--minimal_node->count < count)
# 523| {
# 524| minimal_node->value = value;
Error: CLANG_WARNING: [#def1140]
gcc-14.1.1-build/gcc-14.1.1-20240701/libgcc/libgcov.h:570:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'new_node'
# 568|
# 569| /* Increment number of nodes. */
# 570|-> if (success)
# 571| gcov_counter_add (&counters[1], 1, use_atomic);
# 572| }
Error: COMPILER_WARNING: [#def1141]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/gcn-run.cc:38: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libgomp/config/gcn/libgomp-gcn.h:45:8: warning[-Wpedantic]: ISO C forbids zero-size array ‘data’
# 45 | char data[0];
# | ^~~~
# 43| {
# 44| int64_t size;
# 45|-> char data[0];
# 46| };
# 47|
Error: CPPCHECK_WARNING: [#def1142]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/argv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1143]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/choose-temp.c:71:7: warning[security.insecureAPI.mktemp]: Call to function 'mktemp' is insecure as it always creates or uses insecure temporary file. Use 'mkstemp' instead
# 69| strcpy (temp_filename + len, TEMP_FILE);
# 70|
# 71|-> if (mktemp (temp_filename) == 0)
# 72| abort ();
# 73| return temp_filename;
Error: CPPCHECK_WARNING: [#def1144]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def1145]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c:5183: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5181|
# 5182| adpm[i].next = dpi->modifiers;
# 5183|-> dpi->modifiers = &adpm[i];
# 5184| adpm[i].mod = typed_name;
# 5185| adpm[i].printed = 0;
Error: CPPCHECK_WARNING (CWE-562): [#def1146]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c:5221: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5219| adpm[i] = adpm[i - 1];
# 5220| adpm[i].next = &adpm[i - 1];
# 5221|-> dpi->modifiers = &adpm[i];
# 5222|
# 5223| adpm[i - 1].mod = typed_name;
Error: CPPCHECK_WARNING (CWE-562): [#def1147]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c:5242: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5240| {
# 5241| dpt.next = dpi->templates;
# 5242|-> dpi->templates = &dpt;
# 5243| dpt.template_decl = typed_name;
# 5244|
Error: CLANG_WARNING: [#def1148]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c:5265:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 5263|
# 5264| if (typed_name->type == DEMANGLE_COMPONENT_TEMPLATE)
# 5265|-> dpi->templates = dpt.next;
# 5266|
# 5267| /* If the modifiers didn't get printed by the type, print them
Error: CPPCHECK_WARNING (CWE-562): [#def1149]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c:5717: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5715|
# 5716| adpm[0].next = hold_modifiers;
# 5717|-> dpi->modifiers = &adpm[0];
# 5718| adpm[0].mod = dc;
# 5719| adpm[0].printed = 0;
Error: CPPCHECK_WARNING (CWE-562): [#def1150]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c:6745: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 6743| {
# 6744| dpt.next = dpi->templates;
# 6745|-> dpi->templates = &dpt;
# 6746| dpt.template_decl = dpi->current_template;
# 6747| }
Error: CPPCHECK_WARNING (CWE-909): [#def1151]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c:6752: error[uninitStructMember]: Uninitialized struct member: dpt.next
# 6750|
# 6751| if (dpi->current_template != NULL)
# 6752|-> dpi->templates = dpt.next;
# 6753| }
# 6754|
Error: CLANG_WARNING: [#def1152]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demangle.c:6752:20: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 6750|
# 6751| if (dpi->current_template != NULL)
# 6752|-> dpi->templates = dpt.next;
# 6753| }
# 6754|
Error: CPPCHECK_WARNING: [#def1153]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cp-demint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1154]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c:196:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 194| }
# 195|
# 196|-> return (ret);
# 197| }
# 198|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1155]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c: scope_hint: In function ‘cplus_demangle’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c:196:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ret’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c:50: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c:172:7: note: in expansion of macro ‘GNU_V3_DEMANGLING’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c:179:7: note: in expansion of macro ‘JAVA_DEMANGLING’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c:186:7: note: in expansion of macro ‘GNAT_DEMANGLING’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c:189:7: note: in expansion of macro ‘DLANG_DEMANGLING’
# 194| }
# 195|
# 196|-> return (ret);
# 197| }
# 198|
Error: CLANG_WARNING: [#def1156]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/cplus-dem.c:400:27: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 398| if (strncmp (p, special[k][0], slen) == 0)
# 399| {
# 400|-> p += slen;
# 401| slen = strlen (special[k][1]);
# 402| memcpy (d, special[k][1], slen);
Error: CPPCHECK_WARNING: [#def1157]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/d-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1158]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_insert’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c:251:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
# 249| abort ();
# 250|
# 251|-> if (dyn_string_resize (dest, dest->length + src->length) == NULL)
# 252| return 0;
# 253| /* Make room for the insertion. Be sure to copy the NUL. */
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1159]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_insert_cstr’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c:274:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
# 272| int length = strlen (src);
# 273|
# 274|-> if (dyn_string_resize (dest, dest->length + length) == NULL)
# 275| return 0;
# 276| /* Make room for the insertion. Be sure to copy the NUL. */
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1160]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_insert_char’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c:295:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
# 293| int i;
# 294|
# 295|-> if (dyn_string_resize (dest, dest->length + 1) == NULL)
# 296| return 0;
# 297| /* Make room for the insertion. Be sure to copy the NUL. */
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1161]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_append’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c:314:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
# 312| dyn_string_append (dyn_string_t dest, dyn_string_t s)
# 313| {
# 314|-> if (dyn_string_resize (dest, dest->length + s->length) == 0)
# 315| return 0;
# 316| strcpy (dest->s + dest->length, s->s);
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1162]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_append_cstr’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c:332:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
# 330| /* The new length is the old length plus the size of our string, plus
# 331| one for the null at the end. */
# 332|-> if (dyn_string_resize (dest, dest->length + len) == NULL)
# 333| return 0;
# 334| strcpy (dest->s + dest->length, s);
Error: GCC_ANALYZER_WARNING (CWE-465): [#def1163]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_append_char’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/dyn-string.c:346:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
# 344| {
# 345| /* Make room for the extra character. */
# 346|-> if (dyn_string_resize (dest, dest->length + 1) == NULL)
# 347| return 0;
# 348| /* Append the character; it will overwrite the old NUL. */
Error: CPPCHECK_WARNING: [#def1164]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/fibheap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1165]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/floatformat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1166]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/fnmatch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1167]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/getopt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1168]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/hashtab.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-823): [#def1169]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/hashtab.c:187: error[arrayIndexOutOfBounds]: Array 'prime_tab[30]' accessed at index 30, which is out of bounds.
# 185|
# 186| /* If we've run out of primes, abort. */
# 187|-> if (n > prime_tab[low].prime)
# 188| {
# 189| fprintf (stderr, "Cannot find prime bigger than %lu\n", n);
Error: CPPCHECK_WARNING: [#def1170]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1171]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c: scope_hint: In function ‘save_string’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c:110:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 108| char *result = (char *) malloc (len + 1);
# 109|
# 110|-> memcpy (result, s, len);
# 111| result[len] = 0;
# 112| return result;
Error: GCC_ANALYZER_WARNING (CWE-127): [#def1172]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c: scope_hint: In function ‘split_directories’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c:192:11: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
# └──────────────────────────┘
# ^
# 190| dirs[num_dirs] = NULL;
# 191|
# 192|-> if (dirs[num_dirs - 1] == NULL)
# 193| {
# 194| free_split_directories (dirs);
Error: CLANG_WARNING: [#def1173]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c:192:26: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
# 190| dirs[num_dirs] = NULL;
# 191|
# 192|-> if (dirs[num_dirs - 1] == NULL)
# 193| {
# 194| free_split_directories (dirs);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1174]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c: scope_hint: In function ‘make_relative_prefix_1’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c:274:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nstore’
# 272| if (endp == startp)
# 273| {
# 274|-> nstore[0] = '.';
# 275| nstore[1] = DIR_SEPARATOR;
# 276| nstore[2] = '\0';
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1175]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/make-relative-prefix.c:280:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘nstore’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 278| else
# 279| {
# 280|-> memcpy (nstore, startp, endp - startp);
# 281| if (! IS_DIR_SEPARATOR (endp[-1]))
# 282| {
Error: CPPCHECK_WARNING: [#def1176]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/objalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1177]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/obstack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1178]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/obstack.c:147:33: warning[core.NullDereference]: Access to field 'limit' results in a dereference of a null pointer (loaded from variable 'chunk')
# 145| h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents,
# 146| alignment - 1);
# 147|-> h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size;
# 148| chunk->prev = 0;
# 149| /* The initial chunk now contains no empty object. */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1179]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/obstack.c: scope_hint: In function ‘_obstack_newchunk’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/obstack.c:210:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_chunk’
# 208| (*obstack_alloc_failed_handler)();
# 209| h->chunk = new_chunk;
# 210|-> new_chunk->prev = old_chunk;
# 211| new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;
# 212|
Error: CLANG_WARNING: [#def1180]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/obstack.c:210:19: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'new_chunk')
# 208| (*obstack_alloc_failed_handler)();
# 209| h->chunk = new_chunk;
# 210|-> new_chunk->prev = old_chunk;
# 211| new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;
# 212|
Error: CPPCHECK_WARNING: [#def1181]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1182]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c: scope_hint: In function ‘byte_re_match_2_internal’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:348:4: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fail_stack.stack’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:379:4: note: in expansion of macro ‘REGEX_REALLOCATE’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1532:9: note: in expansion of macro ‘REGEX_REALLOCATE_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1617:14: note: in expansion of macro ‘DOUBLE_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:6968:11: note: in expansion of macro ‘PUSH_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:198: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8014:1: note: in expansion of macro ‘regexec’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4922:1: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4925:10: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4955:1: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:643: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5013:1: note: in expansion of macro ‘PREFIX’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:184:33: note: in definition of macro ‘SWITCH_ENUM_CAST’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:6968:11: note: in expansion of macro ‘PUSH_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:379:4: note: in expansion of macro ‘REGEX_REALLOCATE’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1532:9: note: in expansion of macro ‘REGEX_REALLOCATE_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1617:14: note: in expansion of macro ‘DOUBLE_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:6968:11: note: in expansion of macro ‘PUSH_FAILURE_POINT’
# 346| # define REGEX_REALLOCATE(source, osize, nsize) \
# 347| (destination = (char *) alloca (nsize), \
# 348|-> memcpy (destination, source, osize))
# 349|
# 350| /* No need to do anything to free, after alloca. */
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1183]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1572:68: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1764:45: note: in expansion of macro ‘POP_FAILURE_POINTER’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8014:1: note: in expansion of macro ‘regexec’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4922:1: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4925:10: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4955:1: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5013:1: note: in expansion of macro ‘PREFIX’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:184:33: note: in definition of macro ‘SWITCH_ENUM_CAST’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1760:35: note: in expansion of macro ‘POP_FAILURE_ELT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1764:45: note: in expansion of macro ‘POP_FAILURE_POINTER’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1572:68: note: read of 8 bytes from after the end of the region
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1764:45: note: in expansion of macro ‘POP_FAILURE_POINTER’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
# └───────────────────────────────────┘
# ^
# 1570| /* These three POP... operations complement the three PUSH... operations.
# 1571| All assume that `fail_stack' is nonempty. */
# 1572|-> # define POP_FAILURE_POINTER() fail_stack.stack[--fail_stack.avail].pointer
# 1573| # define POP_FAILURE_INT() fail_stack.stack[--fail_stack.avail].integer
# 1574| # define POP_FAILURE_ELT() fail_stack.stack[--fail_stack.avail]
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1184]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1573:64: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1749:29: note: in expansion of macro ‘POP_FAILURE_INT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8014:1: note: in expansion of macro ‘regexec’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4922:1: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4925:10: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4955:1: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5013:1: note: in expansion of macro ‘PREFIX’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:184:33: note: in definition of macro ‘SWITCH_ENUM_CAST’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1749:29: note: in expansion of macro ‘POP_FAILURE_INT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1573:64: note: read of 4 bytes from after the end of the region
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1749:29: note: in expansion of macro ‘POP_FAILURE_INT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
# └───────────────────────┘
# ^
# 1571| All assume that `fail_stack' is nonempty. */
# 1572| # define POP_FAILURE_POINTER() fail_stack.stack[--fail_stack.avail].pointer
# 1573|-> # define POP_FAILURE_INT() fail_stack.stack[--fail_stack.avail].integer
# 1574| # define POP_FAILURE_ELT() fail_stack.stack[--fail_stack.avail]
# 1575|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1185]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1736:15: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8014:1: note: in expansion of macro ‘regexec’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4922:1: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4925:10: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4955:1: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5013:1: note: in expansion of macro ‘PREFIX’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:184:33: note: in definition of macro ‘SWITCH_ENUM_CAST’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1736:15: note: read of 8 bytes from after the end of the region
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
# └───────────────────────────────────┘
# ^
# 1734| on_failure_keep_string_jump opcode, and we want to throw away the \
# 1735| saved NULL, thus retaining our current position in the string. */ \
# 1736|-> string_temp = POP_FAILURE_POINTER (); \
# 1737| if (string_temp != NULL) \
# 1738| str = (const CHAR_T *) string_temp; \
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1186]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1744:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8014:1: note: in expansion of macro ‘regexec’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4922:1: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4925:10: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4955:1: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5013:1: note: in expansion of macro ‘PREFIX’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:184:33: note: in definition of macro ‘SWITCH_ENUM_CAST’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1744:7: note: read of 8 bytes from after the end of the region
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
# └───────────────────────────────────┘
# ^
# 1742| DEBUG_PRINT1 ("'\n"); \
# 1743| \
# 1744|-> pat = (UCHAR_T *) POP_FAILURE_POINTER (); \
# 1745| DEBUG_PRINT2 (" Popping pattern %p:\n", pat); \
# 1746| DEBUG_PRINT_COMPILED_PATTERN (bufp, pat, pend); \
Error: GCC_ANALYZER_WARNING (CWE-126): [#def1187]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1760:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8014:1: note: in expansion of macro ‘regexec’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:8043:9: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4922:1: note: in expansion of macro ‘re_search’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4925:10: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:4955:1: note: in expansion of macro ‘re_search_2’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5013:1: note: in expansion of macro ‘PREFIX’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5689:3: note: in expansion of macro ‘INIT_FAIL_STACK’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:184:33: note: in definition of macro ‘SWITCH_ENUM_CAST’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1760:35: note: in expansion of macro ‘POP_FAILURE_ELT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:1760:33: note: read of 8 bytes from after the end of the region
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:7154:13: note: in expansion of macro ‘POP_FAILURE_POINT’
# └───────────────────────────────────────────────┘
# ^
# 1758| DEBUG_PRINT2 (" Popping reg: %ld\n", this_reg); \
# 1759| \
# 1760|-> reg_info[this_reg].word = POP_FAILURE_ELT (); \
# 1761| DEBUG_PRINT2 (" info: %p\n", \
# 1762| reg_info[this_reg].word.pointer); \
Error: CPPCHECK_WARNING (CWE-401): [#def1188]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:2444: error[memleak]: Memory leak: compile_stack.stack
# 2442| }
# 2443|
# 2444|-> if (!COMPILED_BUFFER_VAR) FREE_STACK_RETURN (REG_ESPACE);
# 2445| #ifdef WCHAR
# 2446| bufp->buffer = (char*)COMPILED_BUFFER_VAR;
Error: CLANG_WARNING: [#def1189]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:643: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5176:34: warning[core.NullDereference]: Dereference of null pointer
# 5174| while (range > lim
# 5175| && !fastmap[(unsigned char)
# 5176|-> translate[(unsigned char) *d++]])
# 5177| range--;
# 5178| else
Error: CLANG_WARNING: [#def1190]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/regex.c:5179:64: warning[core.NullDereference]: Dereference of null pointer
# 5177| range--;
# 5178| else
# 5179|-> while (range > lim && !fastmap[(unsigned char) *d++])
# 5180| range--;
# 5181|
Error: CPPCHECK_WARNING: [#def1191]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/rust-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1192]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-coff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1193]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-elf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1194]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-mach-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1195]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-mach-o.c: scope_hint: In function ‘simple_object_mach_o_write_segment’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-mach-o.c:1159:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’
# 1157| if (sobj->segment_name != NULL)
# 1158| {
# 1159|-> index[sect*4+0] = (unsigned int) offset;
# 1160| index[sect*4+1] = secsize;
# 1161| /* Stash the section name in our table. */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1196]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-mach-o.c:1210:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’
# 1208| created section. */
# 1209|
# 1210|-> secsize = (offset - index[0]);
# 1211| if (!simple_object_mach_o_write_section_header (sobj, descriptor,
# 1212| sechdr_offset,
Error: CLANG_WARNING: [#def1197]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-mach-o.c:1217:13: warning[core.NullDereference]: Access to field 'align' results in a dereference of a null pointer (loaded from field 'sections')
# 1215| 0 /*secaddr*/,
# 1216| secsize, index[0],
# 1217|-> sobj->sections->align,
# 1218| errmsg, err))
# 1219| return 0;
Error: CLANG_WARNING: [#def1198]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-mach-o.c:1256:7: warning[deadcode.DeadStores]: Value stored to 'secaddr' is never read
# 1254|
# 1255| sechdr_offset += sechdrsize;
# 1256|-> secaddr += name_offset;
# 1257| offset += name_offset;
# 1258|
Error: CPPCHECK_WARNING: [#def1199]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-xcoff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1200]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object-xcoff.c:844:5: warning[deadcode.DeadStores]: Value stored to 'align' is never read
# 842| flags = STYP_DATA;
# 843| if (align > 13)
# 844|-> align = 13;
# 845| if (u64)
# 846| set_32 (hdr + offsetof (struct external_scnhdr, u.xcoff64.s_flags), flags);
Error: CPPCHECK_WARNING: [#def1201]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def1202]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object.c:295: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 293| /* Copy over .note.GNU-stack section under the same name if present. */
# 294| else if (strcmp (name, ".note.GNU-stack") == 0)
# 295|-> return strcpy (newname, name);
# 296| /* Copy over .note.gnu.property section under the same name if present. */
# 297| else if (strcmp (name, ".note.gnu.property") == 0)
Error: CPPCHECK_WARNING (CWE-562): [#def1203]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object.c:298: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 296| /* Copy over .note.gnu.property section under the same name if present. */
# 297| else if (strcmp (name, ".note.gnu.property") == 0)
# 298|-> return strcpy (newname, name);
# 299| /* Copy over .comment section under the same name if present. Solaris
# 300| ld uses them to relax its checking of ELF gABI access rules for
Error: CPPCHECK_WARNING (CWE-562): [#def1204]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object.c:303: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 301| COMDAT sections in objects produced by GCC. */
# 302| else if (strcmp (name, ".comment") == 0)
# 303|-> return strcpy (newname, name);
# 304| /* Copy over .GCC.command.line section under the same name if present. */
# 305| else if (strcmp (name, ".GCC.command.line") == 0)
Error: CPPCHECK_WARNING (CWE-562): [#def1205]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object.c:306: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 304| /* Copy over .GCC.command.line section under the same name if present. */
# 305| else if (strcmp (name, ".GCC.command.line") == 0)
# 306|-> return strcpy (newname, name);
# 307| /* Copy over .ctf section under the same name if present. */
# 308| else if (strcmp (name, ".ctf") == 0)
Error: CPPCHECK_WARNING (CWE-562): [#def1206]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object.c:309: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 307| /* Copy over .ctf section under the same name if present. */
# 308| else if (strcmp (name, ".ctf") == 0)
# 309|-> return strcpy (newname, name);
# 310| /* Copy over .BTF section under the same name if present. */
# 311| else if (strcmp (name, ".BTF") == 0)
Error: CPPCHECK_WARNING (CWE-562): [#def1207]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/simple-object.c:312: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 310| /* Copy over .BTF section under the same name if present. */
# 311| else if (strcmp (name, ".BTF") == 0)
# 312|-> return strcpy (newname, name);
# 313| free (newname);
# 314| return NULL;
Error: CPPCHECK_WARNING: [#def1208]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1209]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/splay-tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1210]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/strerror.c: scope_hint: In function ‘strtoerrno’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/strerror.c:756:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_names’
# 754| for (errnoval = 0; errnoval < num_error_names; errnoval++)
# 755| {
# 756|-> if ((error_names[errnoval] != NULL) &&
# 757| (strcmp (name, error_names[errnoval]) == 0))
# 758| {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1211]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/strsignal.c: scope_hint: In function ‘strtosigno’
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/strsignal.c:524:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘signal_names’
# 522| for (signo = 0; signo < num_signal_names; signo++)
# 523| {
# 524|-> if ((signal_names[signo] != NULL) &&
# 525| (strcmp (name, signal_names[signo]) == 0))
# 526| {
Error: CPPCHECK_WARNING (CWE-664): [#def1212]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/vprintf-support.c:52: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 50| va_copy (ap, args);
# 51| #else
# 52|-> memcpy ((void *) &ap, (void *) &args, sizeof (va_list));
# 53| #endif
# 54|
Error: CPPCHECK_WARNING (CWE-664): [#def1213]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/vprintf-support.c:65: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 63| {
# 64| ++p;
# 65|-> total_width += abs (va_arg (ap, int));
# 66| }
# 67| else
Error: CPPCHECK_WARNING (CWE-664): [#def1214]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/vprintf-support.c:75: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 73| {
# 74| ++p;
# 75|-> total_width += abs (va_arg (ap, int));
# 76| }
# 77| else
Error: CPPCHECK_WARNING (CWE-664): [#def1215]
gcc-14.1.1-build/gcc-14.1.1-20240701/libiberty/vprintf-support.c:129: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 127| switch (prec)
# 128| {
# 129|-> case 0: (void) va_arg (ap, int); break;
# 130| case 1: (void) va_arg (ap, long int); break;
# 131| case 2: (void) va_arg (ap, long long int); break;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1216]
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c: scope_hint: In function ‘write_resolution’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:607:3: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(resolution_file, "w")’ where non-null expected
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:48: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:575:3: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:575:3: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:52: included_from: Included from here.
/usr/include/stdio.h:357:12: note: argument 1 of ‘fprintf’ must be non-null
# 605| }
# 606|
# 607|-> fprintf (f, "%d\n", included_files);
# 608|
# 609| for (i = 0; i < num_claimed_files; i++)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1217]
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c: scope_hint: In function ‘write_resolution’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:607:3: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:48: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:575:3: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:575:3: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:52: included_from: Included from here.
/usr/include/stdio.h:357:12: note: argument 1 of ‘fprintf’ must be non-null
# 605| }
# 606|
# 607|-> fprintf (f, "%d\n", included_files);
# 608|
# 609| for (i = 0; i < num_claimed_files; i++)
Error: CLANG_WARNING: [#def1218]
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:607:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 605| }
# 606|
# 607|-> fprintf (f, "%d\n", included_files);
# 608|
# 609| for (i = 0; i < num_claimed_files; i++)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1219]
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c: scope_hint: In function ‘add_output_files’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:642:12: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘f’ where non-null expected
/usr/include/stdio.h:654:14: note: argument 3 of ‘fgets’ must be non-null
# 640| buf = s;
# 641| cont:
# 642|-> if (!fgets (buf, piece, f))
# 643| {
# 644| free (s);
Error: CLANG_WARNING: [#def1220]
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:696:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 694| t = writeargv (&argv[1], args);
# 695| check (t == 0, LDPL_FATAL, "could not write arguments");
# 696|-> t = fclose (args);
# 697| check (t == 0, LDPL_FATAL, "could not close arguments file");
# 698|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1221]
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c: scope_hint: In function ‘all_symbols_read_handler’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:859:7: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(offload_objects_file_name, "w")’ where non-null expected
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:575:3: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:575:3: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:858:7: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:858:7: note: in expansion of macro ‘check’
/usr/include/stdio.h:357:12: note: argument 1 of ‘fprintf’ must be non-null
# 857| f = fopen (offload_objects_file_name, "w");
# 858| check (f, LDPL_FATAL, "could not open file with offload objects");
# 859|-> fprintf (f, "%u\n", num_offload_files);
# 860|
# 861| /* Skip the dummy item at the start of the list. */
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1222]
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c: scope_hint: In function ‘all_symbols_read_handler’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:859:7: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:575:3: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:575:3: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:858:7: note: in expansion of macro ‘check’
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:858:7: note: in expansion of macro ‘check’
/usr/include/stdio.h:357:12: note: argument 1 of ‘fprintf’ must be non-null
# 857| f = fopen (offload_objects_file_name, "w");
# 858| check (f, LDPL_FATAL, "could not open file with offload objects");
# 859|-> fprintf (f, "%u\n", num_offload_files);
# 860|
# 861| /* Skip the dummy item at the start of the list. */
Error: CLANG_WARNING: [#def1223]
gcc-14.1.1-build/gcc-14.1.1-20240701/lto-plugin/lto-plugin.c:859:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 857| f = fopen (offload_objects_file_name, "w");
# 858| check (f, LDPL_FATAL, "could not open file with offload objects");
# 859|-> fprintf (f, "%u\n", num_offload_files);
# 860|
# 861| /* Skip the dummy item at the start of the list. */
Error: CPPCHECK_WARNING: [#def1224]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-569): [#def1225]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c: scope_hint: In function ‘courierize’
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:574:20: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
# 573 | while (at(tos, idx) == '\n'
# | ~~~~~~~~~~~~~~~~~~~~
# 574 | && (at(tos, idx+1) == '.')
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
# 572| }
# 573| while (at(tos, idx) == '\n'
# 574|-> && (at(tos, idx+1) == '.')
# 575| || (at(tos,idx+1) == '|'));
# 576| cattext(&out,"@end smallexample");
Error: CLANG_WARNING: [#def1226]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1028:10: warning[core.uninitialized.ArraySubscript]: Array subscript is undefined
# 1026| int length = 0;
# 1027|
# 1028|-> while (isspace(*string) || *string == '-') {
# 1029| if (*string == '-')
# 1030| {
Error: CLANG_WARNING: [#def1227]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1171:19: warning[unix.MallocSizeof]: Result of 'realloc' is converted to a pointer of type 'stinst_type', which is incompatible with sizeof operand type 'word_type'
# 1169| entry->code_length += 2;
# 1170| entry->code =
# 1171|-> (stinst_type *) realloc((char *)(entry->code),
# 1172| entry->code_length *sizeof(word_type));
# 1173| }
Error: CLANG_WARNING: [#def1228]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1286:5: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1284| }
# 1285|
# 1286|-> free(word);
# 1287| return(ret);
# 1288| }
Error: CLANG_WARNING: [#def1229]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1387:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffer.ptr'
# 1385| read_in(&buffer, stdin);
# 1386| remove_noncomments(&buffer, ptr);
# 1387|-> for (i= 1; i < ac; i++)
# 1388| {
# 1389| if (av[i][0] == '-')
Error: CLANG_WARNING: [#def1230]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1387:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'pptr.ptr'
# 1385| read_in(&buffer, stdin);
# 1386| remove_noncomments(&buffer, ptr);
# 1387|-> for (i= 1; i < ac; i++)
# 1388| {
# 1389| if (av[i][0] == '-')
Error: CLANG_WARNING: [#def1231]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1400:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'b.ptr'
# 1398| if (!f)
# 1399| {
# 1400|-> fprintf(stderr,"Can't open the input file %s\n",av[i+1]);
# 1401| return 33;
# 1402| }
Error: CLANG_WARNING: [#def1232]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1401:5: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'pptr' is still referred to by the global variable 'ptr' upon returning to the caller. This will be a dangling reference
# 1399| {
# 1400| fprintf(stderr,"Can't open the input file %s\n",av[i+1]);
# 1401|-> return 33;
# 1402| }
# 1403| if(Verbose) fprintf(stderr, "Reading -f '%s'\n", av[i+1]);
Error: CLANG_WARNING: [#def1233]
gcc-14.1.1-build/gcc-14.1.1-20240701/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1423:5: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'pptr' is still referred to by the global variable 'ptr' upon returning to the caller. This will be a dangling reference
# 1421| }
# 1422| write_buffer(stack+0);
# 1423|-> return status;
# 1424| }
Error: CPPCHECK_WARNING: [#def1234]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/argv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1235]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/choose-temp.c:71:7: warning[security.insecureAPI.mktemp]: Call to function 'mktemp' is insecure as it always creates or uses insecure temporary file. Use 'mkstemp' instead
# 69| strcpy (temp_filename + len, TEMP_FILE);
# 70|
# 71|-> if (mktemp (temp_filename) == 0)
# 72| abort ();
# 73| return temp_filename;
Error: CPPCHECK_WARNING: [#def1236]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def1237]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c:5131: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5129|
# 5130| adpm[i].next = dpi->modifiers;
# 5131|-> dpi->modifiers = &adpm[i];
# 5132| adpm[i].mod = typed_name;
# 5133| adpm[i].printed = 0;
Error: CPPCHECK_WARNING (CWE-562): [#def1238]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c:5169: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5167| adpm[i] = adpm[i - 1];
# 5168| adpm[i].next = &adpm[i - 1];
# 5169|-> dpi->modifiers = &adpm[i];
# 5170|
# 5171| adpm[i - 1].mod = typed_name;
Error: CPPCHECK_WARNING (CWE-562): [#def1239]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c:5190: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5188| {
# 5189| dpt.next = dpi->templates;
# 5190|-> dpi->templates = &dpt;
# 5191| dpt.template_decl = typed_name;
# 5192| }
Error: CLANG_WARNING: [#def1240]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c:5197:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 5195|
# 5196| if (typed_name->type == DEMANGLE_COMPONENT_TEMPLATE)
# 5197|-> dpi->templates = dpt.next;
# 5198|
# 5199| /* If the modifiers didn't get printed by the type, print them
Error: CPPCHECK_WARNING (CWE-562): [#def1241]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c:5649: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5647|
# 5648| adpm[0].next = hold_modifiers;
# 5649|-> dpi->modifiers = &adpm[0];
# 5650| adpm[0].mod = dc;
# 5651| adpm[0].printed = 0;
Error: CPPCHECK_WARNING (CWE-562): [#def1242]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c:6659: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 6657| {
# 6658| dpt.next = dpi->templates;
# 6659|-> dpi->templates = &dpt;
# 6660| dpt.template_decl = dpi->current_template;
# 6661| }
Error: CPPCHECK_WARNING (CWE-909): [#def1243]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c:6666: error[uninitStructMember]: Uninitialized struct member: dpt.next
# 6664|
# 6665| if (dpi->current_template != NULL)
# 6666|-> dpi->templates = dpt.next;
# 6667| }
# 6668|
Error: CLANG_WARNING: [#def1244]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demangle.c:6666:20: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 6664|
# 6665| if (dpi->current_template != NULL)
# 6666|-> dpi->templates = dpt.next;
# 6667| }
# 6668|
Error: CPPCHECK_WARNING: [#def1245]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cp-demint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1246]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cplus-dem.c:196:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 194| }
# 195|
# 196|-> return (ret);
# 197| }
# 198|
Error: CLANG_WARNING: [#def1247]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/cplus-dem.c:400:27: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 398| if (strncmp (p, special[k][0], slen) == 0)
# 399| {
# 400|-> p += slen;
# 401| slen = strlen (special[k][1]);
# 402| memcpy (d, special[k][1], slen);
Error: CPPCHECK_WARNING: [#def1248]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/d-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1249]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/fibheap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1250]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/floatformat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1251]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/fnmatch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1252]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/getopt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1253]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/hashtab.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-823): [#def1254]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/hashtab.c:187: error[arrayIndexOutOfBounds]: Array 'prime_tab[30]' accessed at index 30, which is out of bounds.
# 185|
# 186| /* If we've run out of primes, abort. */
# 187|-> if (n > prime_tab[low].prime)
# 188| {
# 189| fprintf (stderr, "Cannot find prime bigger than %lu\n", n);
Error: CPPCHECK_WARNING: [#def1255]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1256]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c: scope_hint: In function ‘save_string’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c:110:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 108| char *result = (char *) malloc (len + 1);
# 109|
# 110|-> memcpy (result, s, len);
# 111| result[len] = 0;
# 112| return result;
Error: GCC_ANALYZER_WARNING (CWE-127): [#def1257]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c: scope_hint: In function ‘split_directories’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c:192:11: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
# └──────────────────────────┘
# ^
# 190| dirs[num_dirs] = NULL;
# 191|
# 192|-> if (dirs[num_dirs - 1] == NULL)
# 193| {
# 194| free_split_directories (dirs);
Error: CLANG_WARNING: [#def1258]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c:192:26: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
# 190| dirs[num_dirs] = NULL;
# 191|
# 192|-> if (dirs[num_dirs - 1] == NULL)
# 193| {
# 194| free_split_directories (dirs);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1259]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c: scope_hint: In function ‘make_relative_prefix_1’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c:274:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nstore’
# 272| if (endp == startp)
# 273| {
# 274|-> nstore[0] = '.';
# 275| nstore[1] = DIR_SEPARATOR;
# 276| nstore[2] = '\0';
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1260]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/make-relative-prefix.c:280:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘nstore’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 278| else
# 279| {
# 280|-> memcpy (nstore, startp, endp - startp);
# 281| if (! IS_DIR_SEPARATOR (endp[-1]))
# 282| {
Error: CPPCHECK_WARNING: [#def1261]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/objalloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1262]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/obstack.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1263]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/obstack.c:147:33: warning[core.NullDereference]: Access to field 'limit' results in a dereference of a null pointer (loaded from variable 'chunk')
# 145| h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents,
# 146| alignment - 1);
# 147|-> h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size;
# 148| chunk->prev = 0;
# 149| /* The initial chunk now contains no empty object. */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1264]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/obstack.c: scope_hint: In function ‘_obstack_newchunk’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/obstack.c:210:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_chunk’
# 208| (*obstack_alloc_failed_handler)();
# 209| h->chunk = new_chunk;
# 210|-> new_chunk->prev = old_chunk;
# 211| new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;
# 212|
Error: CLANG_WARNING: [#def1265]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/obstack.c:210:19: warning[core.NullDereference]: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'new_chunk')
# 208| (*obstack_alloc_failed_handler)();
# 209| h->chunk = new_chunk;
# 210|-> new_chunk->prev = old_chunk;
# 211| new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;
# 212|
Error: CLANG_WARNING: [#def1266]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c:620:13: warning[security.insecureAPI.vfork]: Call to function 'vfork' is insecure as it can lead to denial of service situations in the parent process. Replace calls to vfork with calls to the safer 'posix_spawn' function
# 618| for (retries = 0; retries < 4; ++retries)
# 619| {
# 620|-> pid = vfork ();
# 621| if (pid >= 0)
# 622| break;
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1267]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c:636:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0]’
# 634| }
# 635| *err = errno;
# 636|-> *errmsg = VFORK_STRING;
# 637| return (pid_t) -1;
# 638|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1268]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c: scope_hint: In function ‘pex_unix_exec_child’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c:636:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[1]’
# 634| }
# 635| *err = errno;
# 636|-> *errmsg = VFORK_STRING;
# 637| return (pid_t) -1;
# 638|
Error: CLANG_WARNING: [#def1269]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c:643:12: warning[unix.Vfork]: This assignment is prohibited after a successful vfork
# 641| {
# 642| struct fn_err failed;
# 643|-> failed.fn = NULL;
# 644|
# 645| if (do_pipe)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1270]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c:649:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(in, 0)’
# 647| if (!failed.fn && in != STDIN_FILE_NO)
# 648| {
# 649|-> if (dup2 (in, STDIN_FILE_NO) < 0)
# 650| failed.fn = "dup2", failed.err = errno;
# 651| else if (close (in) < 0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1271]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c:656:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(out, 1)’
# 654| if (!failed.fn && out != STDOUT_FILE_NO)
# 655| {
# 656|-> if (dup2 (out, STDOUT_FILE_NO) < 0)
# 657| failed.fn = "dup2", failed.err = errno;
# 658| else if (close (out) < 0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1272]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c:663:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(errdes, 2)’
# 661| if (!failed.fn && errdes != STDERR_FILE_NO)
# 662| {
# 663|-> if (dup2 (errdes, STDERR_FILE_NO) < 0)
# 664| failed.fn = "dup2", failed.err = errno;
# 665| else if (close (errdes) < 0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1273]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/pex-unix.c:675:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(1, 2)’
# 673| if (!failed.fn && (flags & PEX_STDERR_TO_STDOUT) != 0)
# 674| {
# 675|-> if (dup2 (STDOUT_FILE_NO, STDERR_FILE_NO) < 0)
# 676| failed.fn = "dup2", failed.err = errno;
# 677| }
Error: CPPCHECK_WARNING: [#def1274]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/regex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def1275]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/regex.c:2444: error[memleak]: Memory leak: compile_stack.stack
# 2442| }
# 2443|
# 2444|-> if (!COMPILED_BUFFER_VAR) FREE_STACK_RETURN (REG_ESPACE);
# 2445| #ifdef WCHAR
# 2446| bufp->buffer = (char*)COMPILED_BUFFER_VAR;
Error: CLANG_WARNING: [#def1276]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/regex.c:643: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/regex.c:5176:34: warning[core.NullDereference]: Dereference of null pointer
# 5174| while (range > lim
# 5175| && !fastmap[(unsigned char)
# 5176|-> translate[(unsigned char) *d++]])
# 5177| range--;
# 5178| else
Error: CLANG_WARNING: [#def1277]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/regex.c:5179:64: warning[core.NullDereference]: Dereference of null pointer
# 5177| range--;
# 5178| else
# 5179|-> while (range > lim && !fastmap[(unsigned char) *d++])
# 5180| range--;
# 5181|
Error: CPPCHECK_WARNING: [#def1278]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/rust-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1279]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-coff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1280]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-elf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1281]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-mach-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1282]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-mach-o.c: scope_hint: In function ‘simple_object_mach_o_write_segment’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-mach-o.c:1159:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’
# 1157| if (sobj->segment_name != NULL)
# 1158| {
# 1159|-> index[sect*4+0] = (unsigned int) offset;
# 1160| index[sect*4+1] = secsize;
# 1161| /* Stash the section name in our table. */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1283]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-mach-o.c:1210:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’
# 1208| created section. */
# 1209|
# 1210|-> secsize = (offset - index[0]);
# 1211| if (!simple_object_mach_o_write_section_header (sobj, descriptor,
# 1212| sechdr_offset,
Error: CLANG_WARNING: [#def1284]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-mach-o.c:1217:13: warning[core.NullDereference]: Access to field 'align' results in a dereference of a null pointer (loaded from field 'sections')
# 1215| 0 /*secaddr*/,
# 1216| secsize, index[0],
# 1217|-> sobj->sections->align,
# 1218| errmsg, err))
# 1219| return 0;
Error: CLANG_WARNING: [#def1285]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-mach-o.c:1256:7: warning[deadcode.DeadStores]: Value stored to 'secaddr' is never read
# 1254|
# 1255| sechdr_offset += sechdrsize;
# 1256|-> secaddr += name_offset;
# 1257| offset += name_offset;
# 1258|
Error: CPPCHECK_WARNING: [#def1286]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-xcoff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1287]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object-xcoff.c:844:5: warning[deadcode.DeadStores]: Value stored to 'align' is never read
# 842| flags = STYP_DATA;
# 843| if (align > 13)
# 844|-> align = 13;
# 845| if (u64)
# 846| set_32 (hdr + offsetof (struct external_scnhdr, u.xcoff64.s_flags), flags);
Error: CPPCHECK_WARNING: [#def1288]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def1289]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object.c:295: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 293| /* Copy over .note.GNU-stack section under the same name if present. */
# 294| else if (strcmp (name, ".note.GNU-stack") == 0)
# 295|-> return strcpy (newname, name);
# 296| /* Copy over .note.gnu.property section under the same name if present. */
# 297| else if (strcmp (name, ".note.gnu.property") == 0)
Error: CPPCHECK_WARNING (CWE-562): [#def1290]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object.c:298: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 296| /* Copy over .note.gnu.property section under the same name if present. */
# 297| else if (strcmp (name, ".note.gnu.property") == 0)
# 298|-> return strcpy (newname, name);
# 299| /* Copy over .comment section under the same name if present. Solaris
# 300| ld uses them to relax its checking of ELF gABI access rules for
Error: CPPCHECK_WARNING (CWE-562): [#def1291]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object.c:303: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 301| COMDAT sections in objects produced by GCC. */
# 302| else if (strcmp (name, ".comment") == 0)
# 303|-> return strcpy (newname, name);
# 304| /* Copy over .GCC.command.line section under the same name if present. */
# 305| else if (strcmp (name, ".GCC.command.line") == 0)
Error: CPPCHECK_WARNING (CWE-562): [#def1292]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object.c:306: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 304| /* Copy over .GCC.command.line section under the same name if present. */
# 305| else if (strcmp (name, ".GCC.command.line") == 0)
# 306|-> return strcpy (newname, name);
# 307| /* Copy over .ctf section under the same name if present. */
# 308| else if (strcmp (name, ".ctf") == 0)
Error: CPPCHECK_WARNING (CWE-562): [#def1293]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object.c:309: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 307| /* Copy over .ctf section under the same name if present. */
# 308| else if (strcmp (name, ".ctf") == 0)
# 309|-> return strcpy (newname, name);
# 310| /* Copy over .BTF section under the same name if present. */
# 311| else if (strcmp (name, ".BTF") == 0)
Error: CPPCHECK_WARNING (CWE-562): [#def1294]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/simple-object.c:312: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
# 310| /* Copy over .BTF section under the same name if present. */
# 311| else if (strcmp (name, ".BTF") == 0)
# 312|-> return strcpy (newname, name);
# 313| free (newname);
# 314| return NULL;
Error: CPPCHECK_WARNING: [#def1295]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/sort.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1296]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/splay-tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1297]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/strerror.c: scope_hint: In function ‘strtoerrno’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/strerror.c:756:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_names’
# 754| for (errnoval = 0; errnoval < num_error_names; errnoval++)
# 755| {
# 756|-> if ((error_names[errnoval] != NULL) &&
# 757| (strcmp (name, error_names[errnoval]) == 0))
# 758| {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1298]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/strsignal.c: scope_hint: In function ‘strtosigno’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/strsignal.c:524:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘signal_names’
# 522| for (signo = 0; signo < num_signal_names; signo++)
# 523| {
# 524|-> if ((signal_names[signo] != NULL) &&
# 525| (strcmp (name, signal_names[signo]) == 0))
# 526| {
Error: CPPCHECK_WARNING (CWE-664): [#def1299]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/vprintf-support.c:52: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 50| va_copy (ap, args);
# 51| #else
# 52|-> memcpy ((void *) &ap, (void *) &args, sizeof (va_list));
# 53| #endif
# 54|
Error: CPPCHECK_WARNING (CWE-664): [#def1300]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/vprintf-support.c:64: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 62| {
# 63| ++p;
# 64|-> total_width += abs (va_arg (ap, int));
# 65| }
# 66| else
Error: CPPCHECK_WARNING (CWE-664): [#def1301]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/vprintf-support.c:74: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 72| {
# 73| ++p;
# 74|-> total_width += abs (va_arg (ap, int));
# 75| }
# 76| else
Error: CPPCHECK_WARNING (CWE-664): [#def1302]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/libiberty/vprintf-support.c:92: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
# 90| case 'X':
# 91| case 'c':
# 92|-> (void) va_arg (ap, int);
# 93| break;
# 94| case 'f':
Error: CPPCHECK_WARNING: [#def1303]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-as.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1304]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-as.cc:239:8: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 237| char *buffer;
# 238|
# 239|-> if (!fseek (stream, 0, SEEK_END))
# 240| {
# 241| /* Get the file size. */
Error: CLANG_WARNING: [#def1305]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-as.cc:1232:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1230| if (in != stdin)
# 1231| {
# 1232|-> fclose (in);
# 1233| in = NULL;
# 1234| }
Error: CLANG_WARNING: [#def1306]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-as.cc:1237:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1235| if (out != stdout)
# 1236| {
# 1237|-> fclose (out);
# 1238| out = NULL;
# 1239| }
Error: CPPCHECK_WARNING: [#def1307]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-ld.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-195): [#def1308]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-ld.cc: scope_hint: In function ‘int main(int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-ld.cc:740:20: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘off_t’ {aka ‘long int’}
# 740 | if (read_len != len || ferror (f))
# | ~~~~~~~~~^~~~~~
# 738| size_t read_len = fread (buf, 1, len, f);
# 739| buf[len] = '\0';
# 740|-> if (read_len != len || ferror (f))
# 741| {
# 742| std::cerr << "error reading " << name << "\n";
Error: COMPILER_WARNING (CWE-195): [#def1309]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-ld.cc:749:15: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘off_t’ {aka ‘long int’}
# 749 | if (out != len)
# | ~~~~^~~~~~
# 747| f = NULL;
# 748| size_t out = fwrite (buf, 1, len, outfile);
# 749|-> if (out != len)
# 750| {
# 751| std::cerr << "error writing to output file\n";
Error: CPPCHECK_WARNING: [#def1310]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-nm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-569): [#def1311]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-nm.cc:310:14: warning[-Wparentheses]: unnecessary parentheses in declaration of ‘sorters’
# 310 | static int (*(sorters[2][2])) (const void *, const void *) =
# | ^~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-nm.cc:310:14: note: remove parentheses
# 310 | static int (*(sorters[2][2])) (const void *, const void *) =
# | ^~~~~~~~~~~~~~~
# | - -
# 308| }
# 309|
# 310|-> static int (*(sorters[2][2])) (const void *, const void *) =
# 311| {
# 312| { non_numeric_forward, non_numeric_reverse },
Error: COMPILER_WARNING (CWE-195): [#def1312]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-nm.cc: scope_hint: In function ‘int main(int, char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-nm.cc:594:20: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘off_t’ {aka ‘long int’}
# 594 | if (read_len != len || ferror (f))
# | ~~~~~~~~~^~~~~~
# 592| size_t read_len = fread (buf, 1, len, f);
# 593| buf[len] = '\0';
# 594|-> if (read_len != len || ferror (f))
# 595| {
# 596| std::cerr << "error reading " << name << "\n";
Error: CPPCHECK_WARNING: [#def1313]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-run.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-252): [#def1314]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-run.cc: scope_hint: In function ‘void compile_file(FILE*, void**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-run.cc:169:9: warning[-Wunused-result]: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’
# 169 | fread (program, 1, len, f);
# | ~~~~~~^~~~~~~~~~~~~~~~~~~~
# 167|
# 168| char *program = new char[len + 1];
# 169|-> fread (program, 1, len, f);
# 170| program[len] = '\0';
# 171| int off = 0;
Error: CLANG_WARNING: [#def1315]
gcc-14.1.1-build/gcc-14.1.1-20240701/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804/nvptx-run.cc:400:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 398| compile_file (f, &hModule);
# 399|
# 400|-> fclose (f);
# 401| f = NULL;
# 402|
Error: CPPCHECK_WARNING: [#def1316]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/gcc-nm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1317]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/gcc-nm.cc:203:19: warning[deadcode.DeadStores]: Value stored to 'real_exe_name' during its initialization is never read
# 201| if (!exe_name)
# 202| {
# 203|-> const char *real_exe_name = PERSONALITY;
# 204| #ifdef CROSS_DIRECTORY_STRUCTURE
# 205| real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
Error: CPPCHECK_WARNING: [#def1318]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/gcc-ranlib.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1319]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/gcc-ranlib.cc:203:19: warning[deadcode.DeadStores]: Value stored to 'real_exe_name' during its initialization is never read
# 201| if (!exe_name)
# 202| {
# 203|-> const char *real_exe_name = PERSONALITY;
# 204| #ifdef CROSS_DIRECTORY_STRUCTURE
# 205| real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
Error: CLANG_WARNING: [#def1320]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/generic-match-10.cc:62:14: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 60| tree_vec_same_elem_p (tree t)
# 61| {
# 62|-> const tree type = TREE_TYPE (t);
# 63| const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 64| if (TREE_SIDE_EFFECTS (t)) return false;
Error: CPPCHECK_WARNING: [#def1321]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/gengtype-lex.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def1322]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l: scope_hint: In function ‘int yylex(const char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/gengtype-lex.cc:356:15: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 356 | */
# | ~~ ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l:119:1: note: in expansion of macro ‘YY_DO_BEFORE_ACTION’
# 119 | "GTY"/{EOID} { return GTY_TOKEN; }
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l:114:1: note: here
# 114 | "^" |
# | ^~~~~~~~
# 354| /* Done after the current pattern has been matched and before the
# 355| * corresponding action - sets up yytext.
# 356|-> */
# 357| #define YY_DO_BEFORE_ACTION \
# 358| (yytext_ptr) = yy_bp; \
Error: CPPCHECK_WARNING (CWE-476): [#def1323]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/gengtype-lex.cc:2497: warning[nullPointer]: Possible null pointer dereference: b
# 2495| */
# 2496| static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
# 2497|->
# 2498| {
# 2499| int oerrno = errno;
Error: CPPCHECK_WARNING (CWE-476): [#def1324]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/gengtype-lex.cc:2498: warning[nullPointer]: Possible null pointer dereference: b
# 2496| static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
# 2497|
# 2498|-> {
# 2499| int oerrno = errno;
# 2500|
Error: CPPCHECK_WARNING: [#def1325]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/min-insn-modes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def1326]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/config/gcn/mkoffload.cc:39: included_from: Included from here.
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/multilib.h: scope_hint: At global scope
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-amdgcn-amdhsa/gcc/multilib.h:30:20: warning[-Wunused-variable]: ‘multilib_extra’ defined but not used
# 30 | static const char *multilib_extra = "";
# | ^~~~~~~~~~~~~~
# 28| };
# 29|
# 30|-> static const char *multilib_extra = "";
# 31|
# 32| static const char *const multilib_exclusions_raw[] = {
Error: CPPCHECK_WARNING: [#def1327]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/gcc-nm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1328]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/gcc-nm.cc:203:19: warning[deadcode.DeadStores]: Value stored to 'real_exe_name' during its initialization is never read
# 201| if (!exe_name)
# 202| {
# 203|-> const char *real_exe_name = PERSONALITY;
# 204| #ifdef CROSS_DIRECTORY_STRUCTURE
# 205| real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
Error: CPPCHECK_WARNING: [#def1329]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/gcc-ranlib.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1330]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/gcc-ranlib.cc:203:19: warning[deadcode.DeadStores]: Value stored to 'real_exe_name' during its initialization is never read
# 201| if (!exe_name)
# 202| {
# 203|-> const char *real_exe_name = PERSONALITY;
# 204| #ifdef CROSS_DIRECTORY_STRUCTURE
# 205| real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
Error: CLANG_WARNING: [#def1331]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/generic-match-10.cc:62:14: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 60| tree_vec_same_elem_p (tree t)
# 61| {
# 62|-> const tree type = TREE_TYPE (t);
# 63| const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 64| if (TREE_SIDE_EFFECTS (t)) return false;
Error: CPPCHECK_WARNING: [#def1332]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/gengtype-lex.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def1333]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l: scope_hint: In function ‘int yylex(const char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/gengtype-lex.cc:356:15: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 356 | */
# | ~~ ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l:119:1: note: in expansion of macro ‘YY_DO_BEFORE_ACTION’
# 119 | "GTY"/{EOID} { return GTY_TOKEN; }
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l:114:1: note: here
# 114 | "^" |
# | ^~~~~~~~
# 354| /* Done after the current pattern has been matched and before the
# 355| * corresponding action - sets up yytext.
# 356|-> */
# 357| #define YY_DO_BEFORE_ACTION \
# 358| (yytext_ptr) = yy_bp; \
Error: CPPCHECK_WARNING (CWE-476): [#def1334]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/gengtype-lex.cc:2497: warning[nullPointer]: Possible null pointer dereference: b
# 2495| */
# 2496| static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
# 2497|->
# 2498| {
# 2499| int oerrno = errno;
Error: CPPCHECK_WARNING (CWE-476): [#def1335]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/gengtype-lex.cc:2498: warning[nullPointer]: Possible null pointer dereference: b
# 2496| static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
# 2497|
# 2498|-> {
# 2499| int oerrno = errno;
# 2500|
Error: CPPCHECK_WARNING: [#def1336]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-attrtab.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1337]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-dfatab.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1338]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-1.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1339]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-10.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1340]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-2.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1341]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-3.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1342]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-4.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1343]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-5.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1344]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-6.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1345]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-7.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1346]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-8.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1347]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-emit-9.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1348]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-extract.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1349]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-latencytab.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1350]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1351]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:447: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 445| MODE_MASK (2*BITS_PER_UNIT), /* HI */
# 446| MODE_MASK (4*BITS_PER_UNIT), /* SI */
# 447|-> MODE_MASK (8*BITS_PER_UNIT), /* DI */
# 448| MODE_MASK (16*BITS_PER_UNIT), /* TI */
# 449| MODE_MASK (1*BITS_PER_UNIT), /* QQ */
Error: CPPCHECK_WARNING (CWE-758): [#def1352]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:448: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 446| MODE_MASK (4*BITS_PER_UNIT), /* SI */
# 447| MODE_MASK (8*BITS_PER_UNIT), /* DI */
# 448|-> MODE_MASK (16*BITS_PER_UNIT), /* TI */
# 449| MODE_MASK (1*BITS_PER_UNIT), /* QQ */
# 450| MODE_MASK (2*BITS_PER_UNIT), /* HQ */
Error: CPPCHECK_WARNING (CWE-758): [#def1353]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:452: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 450| MODE_MASK (2*BITS_PER_UNIT), /* HQ */
# 451| MODE_MASK (4*BITS_PER_UNIT), /* SQ */
# 452|-> MODE_MASK (8*BITS_PER_UNIT), /* DQ */
# 453| MODE_MASK (16*BITS_PER_UNIT), /* TQ */
# 454| MODE_MASK (1*BITS_PER_UNIT), /* UQQ */
Error: CPPCHECK_WARNING (CWE-758): [#def1354]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:453: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 451| MODE_MASK (4*BITS_PER_UNIT), /* SQ */
# 452| MODE_MASK (8*BITS_PER_UNIT), /* DQ */
# 453|-> MODE_MASK (16*BITS_PER_UNIT), /* TQ */
# 454| MODE_MASK (1*BITS_PER_UNIT), /* UQQ */
# 455| MODE_MASK (2*BITS_PER_UNIT), /* UHQ */
Error: CPPCHECK_WARNING (CWE-758): [#def1355]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:457: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 455| MODE_MASK (2*BITS_PER_UNIT), /* UHQ */
# 456| MODE_MASK (4*BITS_PER_UNIT), /* USQ */
# 457|-> MODE_MASK (8*BITS_PER_UNIT), /* UDQ */
# 458| MODE_MASK (16*BITS_PER_UNIT), /* UTQ */
# 459| MODE_MASK (2*BITS_PER_UNIT), /* HA */
Error: CPPCHECK_WARNING (CWE-758): [#def1356]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:458: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 456| MODE_MASK (4*BITS_PER_UNIT), /* USQ */
# 457| MODE_MASK (8*BITS_PER_UNIT), /* UDQ */
# 458|-> MODE_MASK (16*BITS_PER_UNIT), /* UTQ */
# 459| MODE_MASK (2*BITS_PER_UNIT), /* HA */
# 460| MODE_MASK (4*BITS_PER_UNIT), /* SA */
Error: CPPCHECK_WARNING (CWE-758): [#def1357]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:461: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 459| MODE_MASK (2*BITS_PER_UNIT), /* HA */
# 460| MODE_MASK (4*BITS_PER_UNIT), /* SA */
# 461|-> MODE_MASK (8*BITS_PER_UNIT), /* DA */
# 462| MODE_MASK (16*BITS_PER_UNIT), /* TA */
# 463| MODE_MASK (2*BITS_PER_UNIT), /* UHA */
Error: CPPCHECK_WARNING (CWE-758): [#def1358]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:462: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 460| MODE_MASK (4*BITS_PER_UNIT), /* SA */
# 461| MODE_MASK (8*BITS_PER_UNIT), /* DA */
# 462|-> MODE_MASK (16*BITS_PER_UNIT), /* TA */
# 463| MODE_MASK (2*BITS_PER_UNIT), /* UHA */
# 464| MODE_MASK (4*BITS_PER_UNIT), /* USA */
Error: CPPCHECK_WARNING (CWE-758): [#def1359]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:465: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 463| MODE_MASK (2*BITS_PER_UNIT), /* UHA */
# 464| MODE_MASK (4*BITS_PER_UNIT), /* USA */
# 465|-> MODE_MASK (8*BITS_PER_UNIT), /* UDA */
# 466| MODE_MASK (16*BITS_PER_UNIT), /* UTA */
# 467| MODE_MASK (2*BITS_PER_UNIT), /* HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1360]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:466: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 464| MODE_MASK (4*BITS_PER_UNIT), /* USA */
# 465| MODE_MASK (8*BITS_PER_UNIT), /* UDA */
# 466|-> MODE_MASK (16*BITS_PER_UNIT), /* UTA */
# 467| MODE_MASK (2*BITS_PER_UNIT), /* HF */
# 468| MODE_MASK (4*BITS_PER_UNIT), /* SF */
Error: CPPCHECK_WARNING (CWE-758): [#def1361]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:469: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 467| MODE_MASK (2*BITS_PER_UNIT), /* HF */
# 468| MODE_MASK (4*BITS_PER_UNIT), /* SF */
# 469|-> MODE_MASK (8*BITS_PER_UNIT), /* DF */
# 470| MODE_MASK (4*BITS_PER_UNIT), /* SD */
# 471| MODE_MASK (8*BITS_PER_UNIT), /* DD */
Error: CPPCHECK_WARNING (CWE-758): [#def1362]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:471: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 469| MODE_MASK (8*BITS_PER_UNIT), /* DF */
# 470| MODE_MASK (4*BITS_PER_UNIT), /* SD */
# 471|-> MODE_MASK (8*BITS_PER_UNIT), /* DD */
# 472| MODE_MASK (16*BITS_PER_UNIT), /* TD */
# 473| MODE_MASK (2*BITS_PER_UNIT), /* CQI */
Error: CPPCHECK_WARNING (CWE-758): [#def1363]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:472: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 470| MODE_MASK (4*BITS_PER_UNIT), /* SD */
# 471| MODE_MASK (8*BITS_PER_UNIT), /* DD */
# 472|-> MODE_MASK (16*BITS_PER_UNIT), /* TD */
# 473| MODE_MASK (2*BITS_PER_UNIT), /* CQI */
# 474| MODE_MASK (4*BITS_PER_UNIT), /* CHI */
Error: CPPCHECK_WARNING (CWE-758): [#def1364]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:475: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 473| MODE_MASK (2*BITS_PER_UNIT), /* CQI */
# 474| MODE_MASK (4*BITS_PER_UNIT), /* CHI */
# 475|-> MODE_MASK (8*BITS_PER_UNIT), /* CSI */
# 476| MODE_MASK (16*BITS_PER_UNIT), /* CDI */
# 477| MODE_MASK (32*BITS_PER_UNIT), /* CTI */
Error: CPPCHECK_WARNING (CWE-758): [#def1365]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:476: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 474| MODE_MASK (4*BITS_PER_UNIT), /* CHI */
# 475| MODE_MASK (8*BITS_PER_UNIT), /* CSI */
# 476|-> MODE_MASK (16*BITS_PER_UNIT), /* CDI */
# 477| MODE_MASK (32*BITS_PER_UNIT), /* CTI */
# 478| MODE_MASK (4*BITS_PER_UNIT), /* HC */
Error: CPPCHECK_WARNING (CWE-758): [#def1366]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:477: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 475| MODE_MASK (8*BITS_PER_UNIT), /* CSI */
# 476| MODE_MASK (16*BITS_PER_UNIT), /* CDI */
# 477|-> MODE_MASK (32*BITS_PER_UNIT), /* CTI */
# 478| MODE_MASK (4*BITS_PER_UNIT), /* HC */
# 479| MODE_MASK (8*BITS_PER_UNIT), /* SC */
Error: CPPCHECK_WARNING (CWE-758): [#def1367]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:479: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 477| MODE_MASK (32*BITS_PER_UNIT), /* CTI */
# 478| MODE_MASK (4*BITS_PER_UNIT), /* HC */
# 479|-> MODE_MASK (8*BITS_PER_UNIT), /* SC */
# 480| MODE_MASK (16*BITS_PER_UNIT), /* DC */
# 481| MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
Error: CPPCHECK_WARNING (CWE-758): [#def1368]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:480: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 478| MODE_MASK (4*BITS_PER_UNIT), /* HC */
# 479| MODE_MASK (8*BITS_PER_UNIT), /* SC */
# 480|-> MODE_MASK (16*BITS_PER_UNIT), /* DC */
# 481| MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
# 482| MODE_MASK (16*BITS_PER_UNIT), /* V2DI */
Error: CPPCHECK_WARNING (CWE-758): [#def1369]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:481: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 479| MODE_MASK (8*BITS_PER_UNIT), /* SC */
# 480| MODE_MASK (16*BITS_PER_UNIT), /* DC */
# 481|-> MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
# 482| MODE_MASK (16*BITS_PER_UNIT), /* V2DI */
# 483| #undef MODE_MASK
Error: CPPCHECK_WARNING (CWE-758): [#def1370]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-modes.cc:482: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 480| MODE_MASK (16*BITS_PER_UNIT), /* DC */
# 481| MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
# 482|-> MODE_MASK (16*BITS_PER_UNIT), /* V2DI */
# 483| #undef MODE_MASK
# 484| };
Error: CPPCHECK_WARNING: [#def1371]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-opinit.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1372]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-output.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1373]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-peep.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1374]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-preds.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1375]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/insn-recog.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1376]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/min-insn-modes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1377]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/options-urls.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1378]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-offload-nvptx-none/gcc/options.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1379]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gcc-nm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1380]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gcc-ranlib.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def1381]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-10.cc:62:14: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 60| tree_vec_same_elem_p (tree t)
# 61| {
# 62|-> const tree type = TREE_TYPE (t);
# 63| const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 64| if (TREE_SIDE_EFFECTS (t)) return false;
Error: CLANG_WARNING: [#def1382]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-2.cc:12:14: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 10| tree_with_certain_nonzero_bits2 (tree t, tree *res_ops)
# 11| {
# 12|-> const tree type = TREE_TYPE (t);
# 13| const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 14| if (TREE_SIDE_EFFECTS (t)) return false;
Error: CLANG_WARNING: [#def1383]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-2.cc:59:14: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 57| tree_float_value_p (tree t)
# 58| {
# 59|-> const tree type = TREE_TYPE (t);
# 60| const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 61| if (TREE_SIDE_EFFECTS (t)) return false;
Error: CLANG_WARNING: [#def1384]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-2.cc:1469:7: warning[deadcode.DeadStores]: Value stored to 'type0' during its initialization is never read
# 1467| {
# 1468| {
# 1469|-> tree type0 = TREE_TYPE (captures[1]);
# 1470| tree stype = signed_type_for (TREE_TYPE (captures[1]));
# 1471| if (integer_zerop (captures[2]))
Error: CLANG_WARNING: [#def1385]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-2.cc:2218:7: warning[deadcode.DeadStores]: Value stored to 'arg00' during its initialization is never read
# 2216| {
# 2217| prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
# 2218|-> tree arg00 = captures[3];
# 2219| if (captures[2] != captures[3]
# 2220| && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
Error: CLANG_WARNING: [#def1386]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-3.cc:12:14: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 10| tree_with_possible_nonzero_bits2 (tree t, tree *res_ops)
# 11| {
# 12|-> const tree type = TREE_TYPE (t);
# 13| const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 14| if (TREE_SIDE_EFFECTS (t)) return false;
Error: CLANG_WARNING: [#def1387]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-3.cc:64:14: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 62| tree_ctz_table_index (tree t, tree *res_ops)
# 63| {
# 64|-> const tree type = TREE_TYPE (t);
# 65| const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 66| if (TREE_SIDE_EFFECTS (t)) return false;
Error: CLANG_WARNING: [#def1388]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-3.cc:1928:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 1926| const enum tree_code ARG_UNUSED (bitop))
# 1927| {
# 1928|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 1929| if (0
# 1930| && TREE_CODE (captures[3]) != INTEGER_CST
Error: CLANG_WARNING: [#def1389]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/generic-match-3.cc:2065:17: warning[deadcode.DeadStores]: Value stored to 'code' during its initialization is never read
# 2063| tree ty1 = TREE_TYPE (arg0);
# 2064| tree ty2 = TREE_TYPE (arg1);
# 2065|-> enum tree_code code = TREE_CODE (itype);
# 2066| if (FLOAT_TYPE_P (ty1)
# 2067| && FLOAT_TYPE_P (ty2)
Error: CPPCHECK_WARNING: [#def1390]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gengtype-lex.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def1391]
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l: scope_hint: In function ‘int yylex(const char**)’
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gengtype-lex.cc:356:15: warning[-Wimplicit-fallthrough=]: this statement may fall through
# 356 | */
# | ~~ ^
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l:119:1: note: in expansion of macro ‘YY_DO_BEFORE_ACTION’
# 119 | "GTY"/{EOID} { return GTY_TOKEN; }
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-14.1.1-build/gcc-14.1.1-20240701/gcc/gengtype-lex.l:114:1: note: here
# 114 | "^" |
# | ^~~~~~~~
# 354| /* Done after the current pattern has been matched and before the
# 355| * corresponding action - sets up yytext.
# 356|-> */
# 357| #define YY_DO_BEFORE_ACTION \
# 358| (yytext_ptr) = yy_bp; \
Error: CPPCHECK_WARNING (CWE-476): [#def1392]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gengtype-lex.cc:2497: warning[nullPointer]: Possible null pointer dereference: b
# 2495| */
# 2496| static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
# 2497|->
# 2498| {
# 2499| int oerrno = errno;
Error: CPPCHECK_WARNING (CWE-476): [#def1393]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gengtype-lex.cc:2498: warning[nullPointer]: Possible null pointer dereference: b
# 2496| static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
# 2497|
# 2498|-> {
# 2499| int oerrno = errno;
# 2500|
Error: CLANG_WARNING: [#def1394]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5466:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5464| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5465| {
# 5466|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5467| switch (TREE_CODE (_p0))
# 5468| {
Error: CLANG_WARNING: [#def1395]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5501:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5499| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5500| {
# 5501|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5502| switch (TREE_CODE (_p0))
# 5503| {
Error: CLANG_WARNING: [#def1396]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5536:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5534| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5535| {
# 5536|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5537| switch (TREE_CODE (_p0))
# 5538| {
Error: CLANG_WARNING: [#def1397]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5579:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5577| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5578| {
# 5579|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5580| switch (TREE_CODE (_p0))
# 5581| {
Error: CLANG_WARNING: [#def1398]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5630:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5628| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5629| {
# 5630|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5631| switch (TREE_CODE (_p0))
# 5632| {
Error: CLANG_WARNING: [#def1399]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5681:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5679| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5680| {
# 5681|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5682| switch (TREE_CODE (_p0))
# 5683| {
Error: CLANG_WARNING: [#def1400]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5724:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5722| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5723| {
# 5724|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5725| switch (TREE_CODE (_p0))
# 5726| {
Error: CLANG_WARNING: [#def1401]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5767:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5765| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5766| {
# 5767|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5768| switch (TREE_CODE (_p0))
# 5769| {
Error: CLANG_WARNING: [#def1402]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5837:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5835| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5836| {
# 5837|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5838| switch (TREE_CODE (_p0))
# 5839| {
Error: CLANG_WARNING: [#def1403]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5880:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5878| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5879| {
# 5880|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5881| switch (TREE_CODE (_p0))
# 5882| {
Error: CLANG_WARNING: [#def1404]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:5946:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 5944| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 5945| {
# 5946|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 5947| switch (TREE_CODE (_p0))
# 5948| {
Error: CLANG_WARNING: [#def1405]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:6004:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 6002| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 6003| {
# 6004|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 6005| switch (TREE_CODE (_p0))
# 6006| {
Error: CLANG_WARNING: [#def1406]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:6049:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 6047| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 6048| {
# 6049|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 6050| switch (TREE_CODE (_p0))
# 6051| {
Error: CLANG_WARNING: [#def1407]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:6099:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 6097| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 6098| {
# 6099|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 6100| if (integer_valued_real_p (_p0))
# 6101| {
Error: CLANG_WARNING: [#def1408]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:6121:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 6119| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 6120| {
# 6121|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 6122| if (integer_valued_real_p (_p0))
# 6123| {
Error: CLANG_WARNING: [#def1409]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:6143:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 6141| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 6142| {
# 6143|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 6144| switch (TREE_CODE (_p0))
# 6145| {
Error: CLANG_WARNING: [#def1410]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:6177:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 6175| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 6176| {
# 6177|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 6178| switch (TREE_CODE (_p0))
# 6179| {
Error: CLANG_WARNING: [#def1411]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/gimple-match-9.cc:6388:14: warning[deadcode.DeadStores]: Value stored to 'debug_dump' during its initialization is never read
# 6386| code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
# 6387| {
# 6388|-> const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
# 6389| switch (TREE_CODE (_p0))
# 6390| {
Error: CPPCHECK_WARNING: [#def1412]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def1413]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1241: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1239| MODE_MASK (2*BITS_PER_UNIT), /* HI */
# 1240| MODE_MASK (4*BITS_PER_UNIT), /* SI */
# 1241|-> MODE_MASK (8*BITS_PER_UNIT), /* DI */
# 1242| MODE_MASK (16*BITS_PER_UNIT), /* TI */
# 1243| MODE_MASK (32*BITS_PER_UNIT), /* OI */
Error: CPPCHECK_WARNING (CWE-758): [#def1414]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1242: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1240| MODE_MASK (4*BITS_PER_UNIT), /* SI */
# 1241| MODE_MASK (8*BITS_PER_UNIT), /* DI */
# 1242|-> MODE_MASK (16*BITS_PER_UNIT), /* TI */
# 1243| MODE_MASK (32*BITS_PER_UNIT), /* OI */
# 1244| MODE_MASK (64*BITS_PER_UNIT), /* XI */
Error: CPPCHECK_WARNING (CWE-758): [#def1415]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1243: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1241| MODE_MASK (8*BITS_PER_UNIT), /* DI */
# 1242| MODE_MASK (16*BITS_PER_UNIT), /* TI */
# 1243|-> MODE_MASK (32*BITS_PER_UNIT), /* OI */
# 1244| MODE_MASK (64*BITS_PER_UNIT), /* XI */
# 1245| MODE_MASK (16), /* P2QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1416]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1244: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1242| MODE_MASK (16*BITS_PER_UNIT), /* TI */
# 1243| MODE_MASK (32*BITS_PER_UNIT), /* OI */
# 1244|-> MODE_MASK (64*BITS_PER_UNIT), /* XI */
# 1245| MODE_MASK (16), /* P2QI */
# 1246| MODE_MASK (32), /* P2HI */
Error: CPPCHECK_WARNING (CWE-758): [#def1417]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1247: error[shiftTooManyBits]: Shifting 64-bit value by 160 bits is undefined behaviour
# 1245| MODE_MASK (16), /* P2QI */
# 1246| MODE_MASK (32), /* P2HI */
# 1247|-> MODE_MASK (160), /* POI */
# 1248| MODE_MASK (1*BITS_PER_UNIT), /* QQ */
# 1249| MODE_MASK (2*BITS_PER_UNIT), /* HQ */
Error: CPPCHECK_WARNING (CWE-758): [#def1418]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1251: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1249| MODE_MASK (2*BITS_PER_UNIT), /* HQ */
# 1250| MODE_MASK (4*BITS_PER_UNIT), /* SQ */
# 1251|-> MODE_MASK (8*BITS_PER_UNIT), /* DQ */
# 1252| MODE_MASK (16*BITS_PER_UNIT), /* TQ */
# 1253| MODE_MASK (1*BITS_PER_UNIT), /* UQQ */
Error: CPPCHECK_WARNING (CWE-758): [#def1419]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1252: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1250| MODE_MASK (4*BITS_PER_UNIT), /* SQ */
# 1251| MODE_MASK (8*BITS_PER_UNIT), /* DQ */
# 1252|-> MODE_MASK (16*BITS_PER_UNIT), /* TQ */
# 1253| MODE_MASK (1*BITS_PER_UNIT), /* UQQ */
# 1254| MODE_MASK (2*BITS_PER_UNIT), /* UHQ */
Error: CPPCHECK_WARNING (CWE-758): [#def1420]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1256: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1254| MODE_MASK (2*BITS_PER_UNIT), /* UHQ */
# 1255| MODE_MASK (4*BITS_PER_UNIT), /* USQ */
# 1256|-> MODE_MASK (8*BITS_PER_UNIT), /* UDQ */
# 1257| MODE_MASK (16*BITS_PER_UNIT), /* UTQ */
# 1258| MODE_MASK (2*BITS_PER_UNIT), /* HA */
Error: CPPCHECK_WARNING (CWE-758): [#def1421]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1257: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1255| MODE_MASK (4*BITS_PER_UNIT), /* USQ */
# 1256| MODE_MASK (8*BITS_PER_UNIT), /* UDQ */
# 1257|-> MODE_MASK (16*BITS_PER_UNIT), /* UTQ */
# 1258| MODE_MASK (2*BITS_PER_UNIT), /* HA */
# 1259| MODE_MASK (4*BITS_PER_UNIT), /* SA */
Error: CPPCHECK_WARNING (CWE-758): [#def1422]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1260: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1258| MODE_MASK (2*BITS_PER_UNIT), /* HA */
# 1259| MODE_MASK (4*BITS_PER_UNIT), /* SA */
# 1260|-> MODE_MASK (8*BITS_PER_UNIT), /* DA */
# 1261| MODE_MASK (16*BITS_PER_UNIT), /* TA */
# 1262| MODE_MASK (2*BITS_PER_UNIT), /* UHA */
Error: CPPCHECK_WARNING (CWE-758): [#def1423]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1261: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1259| MODE_MASK (4*BITS_PER_UNIT), /* SA */
# 1260| MODE_MASK (8*BITS_PER_UNIT), /* DA */
# 1261|-> MODE_MASK (16*BITS_PER_UNIT), /* TA */
# 1262| MODE_MASK (2*BITS_PER_UNIT), /* UHA */
# 1263| MODE_MASK (4*BITS_PER_UNIT), /* USA */
Error: CPPCHECK_WARNING (CWE-758): [#def1424]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1264: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1262| MODE_MASK (2*BITS_PER_UNIT), /* UHA */
# 1263| MODE_MASK (4*BITS_PER_UNIT), /* USA */
# 1264|-> MODE_MASK (8*BITS_PER_UNIT), /* UDA */
# 1265| MODE_MASK (16*BITS_PER_UNIT), /* UTA */
# 1266| MODE_MASK (2*BITS_PER_UNIT), /* HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1425]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1265: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1263| MODE_MASK (4*BITS_PER_UNIT), /* USA */
# 1264| MODE_MASK (8*BITS_PER_UNIT), /* UDA */
# 1265|-> MODE_MASK (16*BITS_PER_UNIT), /* UTA */
# 1266| MODE_MASK (2*BITS_PER_UNIT), /* HF */
# 1267| MODE_MASK (2*BITS_PER_UNIT), /* BF */
Error: CPPCHECK_WARNING (CWE-758): [#def1426]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1269: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1267| MODE_MASK (2*BITS_PER_UNIT), /* BF */
# 1268| MODE_MASK (4*BITS_PER_UNIT), /* SF */
# 1269|-> MODE_MASK (8*BITS_PER_UNIT), /* DF */
# 1270| MODE_MASK (80), /* XF */
# 1271| MODE_MASK (16*BITS_PER_UNIT), /* TF */
Error: CPPCHECK_WARNING (CWE-758): [#def1427]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1270: error[shiftTooManyBits]: Shifting 64-bit value by 80 bits is undefined behaviour
# 1268| MODE_MASK (4*BITS_PER_UNIT), /* SF */
# 1269| MODE_MASK (8*BITS_PER_UNIT), /* DF */
# 1270|-> MODE_MASK (80), /* XF */
# 1271| MODE_MASK (16*BITS_PER_UNIT), /* TF */
# 1272| MODE_MASK (4*BITS_PER_UNIT), /* SD */
Error: CPPCHECK_WARNING (CWE-758): [#def1428]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1271: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1269| MODE_MASK (8*BITS_PER_UNIT), /* DF */
# 1270| MODE_MASK (80), /* XF */
# 1271|-> MODE_MASK (16*BITS_PER_UNIT), /* TF */
# 1272| MODE_MASK (4*BITS_PER_UNIT), /* SD */
# 1273| MODE_MASK (8*BITS_PER_UNIT), /* DD */
Error: CPPCHECK_WARNING (CWE-758): [#def1429]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1273: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1271| MODE_MASK (16*BITS_PER_UNIT), /* TF */
# 1272| MODE_MASK (4*BITS_PER_UNIT), /* SD */
# 1273|-> MODE_MASK (8*BITS_PER_UNIT), /* DD */
# 1274| MODE_MASK (16*BITS_PER_UNIT), /* TD */
# 1275| MODE_MASK (2*BITS_PER_UNIT), /* CQI */
Error: CPPCHECK_WARNING (CWE-758): [#def1430]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1274: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1272| MODE_MASK (4*BITS_PER_UNIT), /* SD */
# 1273| MODE_MASK (8*BITS_PER_UNIT), /* DD */
# 1274|-> MODE_MASK (16*BITS_PER_UNIT), /* TD */
# 1275| MODE_MASK (2*BITS_PER_UNIT), /* CQI */
# 1276| MODE_MASK (32), /* CP2QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1431]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1278: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1276| MODE_MASK (32), /* CP2QI */
# 1277| MODE_MASK (4*BITS_PER_UNIT), /* CHI */
# 1278|-> MODE_MASK (64), /* CP2HI */
# 1279| MODE_MASK (8*BITS_PER_UNIT), /* CSI */
# 1280| MODE_MASK (16*BITS_PER_UNIT), /* CDI */
Error: CPPCHECK_WARNING (CWE-758): [#def1432]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1279: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1277| MODE_MASK (4*BITS_PER_UNIT), /* CHI */
# 1278| MODE_MASK (64), /* CP2HI */
# 1279|-> MODE_MASK (8*BITS_PER_UNIT), /* CSI */
# 1280| MODE_MASK (16*BITS_PER_UNIT), /* CDI */
# 1281| MODE_MASK (32*BITS_PER_UNIT), /* CTI */
Error: CPPCHECK_WARNING (CWE-758): [#def1433]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1280: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1278| MODE_MASK (64), /* CP2HI */
# 1279| MODE_MASK (8*BITS_PER_UNIT), /* CSI */
# 1280|-> MODE_MASK (16*BITS_PER_UNIT), /* CDI */
# 1281| MODE_MASK (32*BITS_PER_UNIT), /* CTI */
# 1282| MODE_MASK (320), /* CPOI */
Error: CPPCHECK_WARNING (CWE-758): [#def1434]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1281: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1279| MODE_MASK (8*BITS_PER_UNIT), /* CSI */
# 1280| MODE_MASK (16*BITS_PER_UNIT), /* CDI */
# 1281|-> MODE_MASK (32*BITS_PER_UNIT), /* CTI */
# 1282| MODE_MASK (320), /* CPOI */
# 1283| MODE_MASK (64*BITS_PER_UNIT), /* COI */
Error: CPPCHECK_WARNING (CWE-758): [#def1435]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1282: error[shiftTooManyBits]: Shifting 64-bit value by 320 bits is undefined behaviour
# 1280| MODE_MASK (16*BITS_PER_UNIT), /* CDI */
# 1281| MODE_MASK (32*BITS_PER_UNIT), /* CTI */
# 1282|-> MODE_MASK (320), /* CPOI */
# 1283| MODE_MASK (64*BITS_PER_UNIT), /* COI */
# 1284| MODE_MASK (128*BITS_PER_UNIT), /* CXI */
Error: CPPCHECK_WARNING (CWE-758): [#def1436]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1283: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1281| MODE_MASK (32*BITS_PER_UNIT), /* CTI */
# 1282| MODE_MASK (320), /* CPOI */
# 1283|-> MODE_MASK (64*BITS_PER_UNIT), /* COI */
# 1284| MODE_MASK (128*BITS_PER_UNIT), /* CXI */
# 1285| MODE_MASK (4*BITS_PER_UNIT), /* BC */
Error: CPPCHECK_WARNING (CWE-758): [#def1437]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1284: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1282| MODE_MASK (320), /* CPOI */
# 1283| MODE_MASK (64*BITS_PER_UNIT), /* COI */
# 1284|-> MODE_MASK (128*BITS_PER_UNIT), /* CXI */
# 1285| MODE_MASK (4*BITS_PER_UNIT), /* BC */
# 1286| MODE_MASK (4*BITS_PER_UNIT), /* HC */
Error: CPPCHECK_WARNING (CWE-758): [#def1438]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1287: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1285| MODE_MASK (4*BITS_PER_UNIT), /* BC */
# 1286| MODE_MASK (4*BITS_PER_UNIT), /* HC */
# 1287|-> MODE_MASK (8*BITS_PER_UNIT), /* SC */
# 1288| MODE_MASK (16*BITS_PER_UNIT), /* DC */
# 1289| MODE_MASK (160), /* XC */
Error: CPPCHECK_WARNING (CWE-758): [#def1439]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1288: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1286| MODE_MASK (4*BITS_PER_UNIT), /* HC */
# 1287| MODE_MASK (8*BITS_PER_UNIT), /* SC */
# 1288|-> MODE_MASK (16*BITS_PER_UNIT), /* DC */
# 1289| MODE_MASK (160), /* XC */
# 1290| MODE_MASK (32*BITS_PER_UNIT), /* TC */
Error: CPPCHECK_WARNING (CWE-758): [#def1440]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1289: error[shiftTooManyBits]: Shifting 64-bit value by 160 bits is undefined behaviour
# 1287| MODE_MASK (8*BITS_PER_UNIT), /* SC */
# 1288| MODE_MASK (16*BITS_PER_UNIT), /* DC */
# 1289|-> MODE_MASK (160), /* XC */
# 1290| MODE_MASK (32*BITS_PER_UNIT), /* TC */
# 1291| MODE_MASK (2*BITS_PER_UNIT), /* V2QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1441]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1290: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1288| MODE_MASK (16*BITS_PER_UNIT), /* DC */
# 1289| MODE_MASK (160), /* XC */
# 1290|-> MODE_MASK (32*BITS_PER_UNIT), /* TC */
# 1291| MODE_MASK (2*BITS_PER_UNIT), /* V2QI */
# 1292| MODE_MASK (4*BITS_PER_UNIT), /* V4QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1442]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1295: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1293| MODE_MASK (4*BITS_PER_UNIT), /* V2HI */
# 1294| MODE_MASK (4*BITS_PER_UNIT), /* V1SI */
# 1295|-> MODE_MASK (8*BITS_PER_UNIT), /* V8QI */
# 1296| MODE_MASK (8*BITS_PER_UNIT), /* V4HI */
# 1297| MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
Error: CPPCHECK_WARNING (CWE-758): [#def1443]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1296: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1294| MODE_MASK (4*BITS_PER_UNIT), /* V1SI */
# 1295| MODE_MASK (8*BITS_PER_UNIT), /* V8QI */
# 1296|-> MODE_MASK (8*BITS_PER_UNIT), /* V4HI */
# 1297| MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
# 1298| MODE_MASK (8*BITS_PER_UNIT), /* V1DI */
Error: CPPCHECK_WARNING (CWE-758): [#def1444]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1297: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1295| MODE_MASK (8*BITS_PER_UNIT), /* V8QI */
# 1296| MODE_MASK (8*BITS_PER_UNIT), /* V4HI */
# 1297|-> MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
# 1298| MODE_MASK (8*BITS_PER_UNIT), /* V1DI */
# 1299| MODE_MASK (12*BITS_PER_UNIT), /* V12QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1445]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1298: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1296| MODE_MASK (8*BITS_PER_UNIT), /* V4HI */
# 1297| MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
# 1298|-> MODE_MASK (8*BITS_PER_UNIT), /* V1DI */
# 1299| MODE_MASK (12*BITS_PER_UNIT), /* V12QI */
# 1300| MODE_MASK (12*BITS_PER_UNIT), /* V6HI */
Error: CPPCHECK_WARNING (CWE-758): [#def1446]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1299: error[shiftTooManyBits]: Shifting 64-bit value by 96 bits is undefined behaviour
# 1297| MODE_MASK (8*BITS_PER_UNIT), /* V2SI */
# 1298| MODE_MASK (8*BITS_PER_UNIT), /* V1DI */
# 1299|-> MODE_MASK (12*BITS_PER_UNIT), /* V12QI */
# 1300| MODE_MASK (12*BITS_PER_UNIT), /* V6HI */
# 1301| MODE_MASK (14*BITS_PER_UNIT), /* V14QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1447]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1300: error[shiftTooManyBits]: Shifting 64-bit value by 96 bits is undefined behaviour
# 1298| MODE_MASK (8*BITS_PER_UNIT), /* V1DI */
# 1299| MODE_MASK (12*BITS_PER_UNIT), /* V12QI */
# 1300|-> MODE_MASK (12*BITS_PER_UNIT), /* V6HI */
# 1301| MODE_MASK (14*BITS_PER_UNIT), /* V14QI */
# 1302| MODE_MASK (16*BITS_PER_UNIT), /* V16QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1448]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1301: error[shiftTooManyBits]: Shifting 64-bit value by 112 bits is undefined behaviour
# 1299| MODE_MASK (12*BITS_PER_UNIT), /* V12QI */
# 1300| MODE_MASK (12*BITS_PER_UNIT), /* V6HI */
# 1301|-> MODE_MASK (14*BITS_PER_UNIT), /* V14QI */
# 1302| MODE_MASK (16*BITS_PER_UNIT), /* V16QI */
# 1303| MODE_MASK (16*BITS_PER_UNIT), /* V8HI */
Error: CPPCHECK_WARNING (CWE-758): [#def1449]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1302: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1300| MODE_MASK (12*BITS_PER_UNIT), /* V6HI */
# 1301| MODE_MASK (14*BITS_PER_UNIT), /* V14QI */
# 1302|-> MODE_MASK (16*BITS_PER_UNIT), /* V16QI */
# 1303| MODE_MASK (16*BITS_PER_UNIT), /* V8HI */
# 1304| MODE_MASK (16*BITS_PER_UNIT), /* V4SI */
Error: CPPCHECK_WARNING (CWE-758): [#def1450]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1303: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1301| MODE_MASK (14*BITS_PER_UNIT), /* V14QI */
# 1302| MODE_MASK (16*BITS_PER_UNIT), /* V16QI */
# 1303|-> MODE_MASK (16*BITS_PER_UNIT), /* V8HI */
# 1304| MODE_MASK (16*BITS_PER_UNIT), /* V4SI */
# 1305| MODE_MASK (16*BITS_PER_UNIT), /* V2DI */
Error: CPPCHECK_WARNING (CWE-758): [#def1451]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1304: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1302| MODE_MASK (16*BITS_PER_UNIT), /* V16QI */
# 1303| MODE_MASK (16*BITS_PER_UNIT), /* V8HI */
# 1304|-> MODE_MASK (16*BITS_PER_UNIT), /* V4SI */
# 1305| MODE_MASK (16*BITS_PER_UNIT), /* V2DI */
# 1306| MODE_MASK (16*BITS_PER_UNIT), /* V1TI */
Error: CPPCHECK_WARNING (CWE-758): [#def1452]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1305: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1303| MODE_MASK (16*BITS_PER_UNIT), /* V8HI */
# 1304| MODE_MASK (16*BITS_PER_UNIT), /* V4SI */
# 1305|-> MODE_MASK (16*BITS_PER_UNIT), /* V2DI */
# 1306| MODE_MASK (16*BITS_PER_UNIT), /* V1TI */
# 1307| MODE_MASK (32*BITS_PER_UNIT), /* V32QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1453]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1306: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1304| MODE_MASK (16*BITS_PER_UNIT), /* V4SI */
# 1305| MODE_MASK (16*BITS_PER_UNIT), /* V2DI */
# 1306|-> MODE_MASK (16*BITS_PER_UNIT), /* V1TI */
# 1307| MODE_MASK (32*BITS_PER_UNIT), /* V32QI */
# 1308| MODE_MASK (32*BITS_PER_UNIT), /* V16HI */
Error: CPPCHECK_WARNING (CWE-758): [#def1454]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1307: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1305| MODE_MASK (16*BITS_PER_UNIT), /* V2DI */
# 1306| MODE_MASK (16*BITS_PER_UNIT), /* V1TI */
# 1307|-> MODE_MASK (32*BITS_PER_UNIT), /* V32QI */
# 1308| MODE_MASK (32*BITS_PER_UNIT), /* V16HI */
# 1309| MODE_MASK (32*BITS_PER_UNIT), /* V8SI */
Error: CPPCHECK_WARNING (CWE-758): [#def1455]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1308: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1306| MODE_MASK (16*BITS_PER_UNIT), /* V1TI */
# 1307| MODE_MASK (32*BITS_PER_UNIT), /* V32QI */
# 1308|-> MODE_MASK (32*BITS_PER_UNIT), /* V16HI */
# 1309| MODE_MASK (32*BITS_PER_UNIT), /* V8SI */
# 1310| MODE_MASK (32*BITS_PER_UNIT), /* V4DI */
Error: CPPCHECK_WARNING (CWE-758): [#def1456]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1309: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1307| MODE_MASK (32*BITS_PER_UNIT), /* V32QI */
# 1308| MODE_MASK (32*BITS_PER_UNIT), /* V16HI */
# 1309|-> MODE_MASK (32*BITS_PER_UNIT), /* V8SI */
# 1310| MODE_MASK (32*BITS_PER_UNIT), /* V4DI */
# 1311| MODE_MASK (32*BITS_PER_UNIT), /* V2TI */
Error: CPPCHECK_WARNING (CWE-758): [#def1457]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1310: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1308| MODE_MASK (32*BITS_PER_UNIT), /* V16HI */
# 1309| MODE_MASK (32*BITS_PER_UNIT), /* V8SI */
# 1310|-> MODE_MASK (32*BITS_PER_UNIT), /* V4DI */
# 1311| MODE_MASK (32*BITS_PER_UNIT), /* V2TI */
# 1312| MODE_MASK (64*BITS_PER_UNIT), /* V64QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1458]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1311: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1309| MODE_MASK (32*BITS_PER_UNIT), /* V8SI */
# 1310| MODE_MASK (32*BITS_PER_UNIT), /* V4DI */
# 1311|-> MODE_MASK (32*BITS_PER_UNIT), /* V2TI */
# 1312| MODE_MASK (64*BITS_PER_UNIT), /* V64QI */
# 1313| MODE_MASK (64*BITS_PER_UNIT), /* V32HI */
Error: CPPCHECK_WARNING (CWE-758): [#def1459]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1312: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1310| MODE_MASK (32*BITS_PER_UNIT), /* V4DI */
# 1311| MODE_MASK (32*BITS_PER_UNIT), /* V2TI */
# 1312|-> MODE_MASK (64*BITS_PER_UNIT), /* V64QI */
# 1313| MODE_MASK (64*BITS_PER_UNIT), /* V32HI */
# 1314| MODE_MASK (64*BITS_PER_UNIT), /* V16SI */
Error: CPPCHECK_WARNING (CWE-758): [#def1460]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1313: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1311| MODE_MASK (32*BITS_PER_UNIT), /* V2TI */
# 1312| MODE_MASK (64*BITS_PER_UNIT), /* V64QI */
# 1313|-> MODE_MASK (64*BITS_PER_UNIT), /* V32HI */
# 1314| MODE_MASK (64*BITS_PER_UNIT), /* V16SI */
# 1315| MODE_MASK (64*BITS_PER_UNIT), /* V8DI */
Error: CPPCHECK_WARNING (CWE-758): [#def1461]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1314: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1312| MODE_MASK (64*BITS_PER_UNIT), /* V64QI */
# 1313| MODE_MASK (64*BITS_PER_UNIT), /* V32HI */
# 1314|-> MODE_MASK (64*BITS_PER_UNIT), /* V16SI */
# 1315| MODE_MASK (64*BITS_PER_UNIT), /* V8DI */
# 1316| MODE_MASK (64*BITS_PER_UNIT), /* V4TI */
Error: CPPCHECK_WARNING (CWE-758): [#def1462]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1315: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1313| MODE_MASK (64*BITS_PER_UNIT), /* V32HI */
# 1314| MODE_MASK (64*BITS_PER_UNIT), /* V16SI */
# 1315|-> MODE_MASK (64*BITS_PER_UNIT), /* V8DI */
# 1316| MODE_MASK (64*BITS_PER_UNIT), /* V4TI */
# 1317| MODE_MASK (128*BITS_PER_UNIT), /* V128QI */
Error: CPPCHECK_WARNING (CWE-758): [#def1463]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1316: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1314| MODE_MASK (64*BITS_PER_UNIT), /* V16SI */
# 1315| MODE_MASK (64*BITS_PER_UNIT), /* V8DI */
# 1316|-> MODE_MASK (64*BITS_PER_UNIT), /* V4TI */
# 1317| MODE_MASK (128*BITS_PER_UNIT), /* V128QI */
# 1318| MODE_MASK (128*BITS_PER_UNIT), /* V64HI */
Error: CPPCHECK_WARNING (CWE-758): [#def1464]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1317: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1315| MODE_MASK (64*BITS_PER_UNIT), /* V8DI */
# 1316| MODE_MASK (64*BITS_PER_UNIT), /* V4TI */
# 1317|-> MODE_MASK (128*BITS_PER_UNIT), /* V128QI */
# 1318| MODE_MASK (128*BITS_PER_UNIT), /* V64HI */
# 1319| MODE_MASK (128*BITS_PER_UNIT), /* V32SI */
Error: CPPCHECK_WARNING (CWE-758): [#def1465]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1318: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1316| MODE_MASK (64*BITS_PER_UNIT), /* V4TI */
# 1317| MODE_MASK (128*BITS_PER_UNIT), /* V128QI */
# 1318|-> MODE_MASK (128*BITS_PER_UNIT), /* V64HI */
# 1319| MODE_MASK (128*BITS_PER_UNIT), /* V32SI */
# 1320| MODE_MASK (128*BITS_PER_UNIT), /* V16DI */
Error: CPPCHECK_WARNING (CWE-758): [#def1466]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1319: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1317| MODE_MASK (128*BITS_PER_UNIT), /* V128QI */
# 1318| MODE_MASK (128*BITS_PER_UNIT), /* V64HI */
# 1319|-> MODE_MASK (128*BITS_PER_UNIT), /* V32SI */
# 1320| MODE_MASK (128*BITS_PER_UNIT), /* V16DI */
# 1321| MODE_MASK (128*BITS_PER_UNIT), /* V8TI */
Error: CPPCHECK_WARNING (CWE-758): [#def1467]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1320: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1318| MODE_MASK (128*BITS_PER_UNIT), /* V64HI */
# 1319| MODE_MASK (128*BITS_PER_UNIT), /* V32SI */
# 1320|-> MODE_MASK (128*BITS_PER_UNIT), /* V16DI */
# 1321| MODE_MASK (128*BITS_PER_UNIT), /* V8TI */
# 1322| MODE_MASK (256*BITS_PER_UNIT), /* V64SI */
Error: CPPCHECK_WARNING (CWE-758): [#def1468]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1321: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1319| MODE_MASK (128*BITS_PER_UNIT), /* V32SI */
# 1320| MODE_MASK (128*BITS_PER_UNIT), /* V16DI */
# 1321|-> MODE_MASK (128*BITS_PER_UNIT), /* V8TI */
# 1322| MODE_MASK (256*BITS_PER_UNIT), /* V64SI */
# 1323| MODE_MASK (4*BITS_PER_UNIT), /* V2HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1469]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1322: error[shiftTooManyBits]: Shifting 64-bit value by 2048 bits is undefined behaviour
# 1320| MODE_MASK (128*BITS_PER_UNIT), /* V16DI */
# 1321| MODE_MASK (128*BITS_PER_UNIT), /* V8TI */
# 1322|-> MODE_MASK (256*BITS_PER_UNIT), /* V64SI */
# 1323| MODE_MASK (4*BITS_PER_UNIT), /* V2HF */
# 1324| MODE_MASK (4*BITS_PER_UNIT), /* V2BF */
Error: CPPCHECK_WARNING (CWE-758): [#def1470]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1325: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1323| MODE_MASK (4*BITS_PER_UNIT), /* V2HF */
# 1324| MODE_MASK (4*BITS_PER_UNIT), /* V2BF */
# 1325|-> MODE_MASK (8*BITS_PER_UNIT), /* V4BF */
# 1326| MODE_MASK (8*BITS_PER_UNIT), /* V4HF */
# 1327| MODE_MASK (8*BITS_PER_UNIT), /* V2SF */
Error: CPPCHECK_WARNING (CWE-758): [#def1471]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1326: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1324| MODE_MASK (4*BITS_PER_UNIT), /* V2BF */
# 1325| MODE_MASK (8*BITS_PER_UNIT), /* V4BF */
# 1326|-> MODE_MASK (8*BITS_PER_UNIT), /* V4HF */
# 1327| MODE_MASK (8*BITS_PER_UNIT), /* V2SF */
# 1328| MODE_MASK (12*BITS_PER_UNIT), /* V6HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1472]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1327: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
# 1325| MODE_MASK (8*BITS_PER_UNIT), /* V4BF */
# 1326| MODE_MASK (8*BITS_PER_UNIT), /* V4HF */
# 1327|-> MODE_MASK (8*BITS_PER_UNIT), /* V2SF */
# 1328| MODE_MASK (12*BITS_PER_UNIT), /* V6HF */
# 1329| MODE_MASK (16*BITS_PER_UNIT), /* V8BF */
Error: CPPCHECK_WARNING (CWE-758): [#def1473]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1328: error[shiftTooManyBits]: Shifting 64-bit value by 96 bits is undefined behaviour
# 1326| MODE_MASK (8*BITS_PER_UNIT), /* V4HF */
# 1327| MODE_MASK (8*BITS_PER_UNIT), /* V2SF */
# 1328|-> MODE_MASK (12*BITS_PER_UNIT), /* V6HF */
# 1329| MODE_MASK (16*BITS_PER_UNIT), /* V8BF */
# 1330| MODE_MASK (16*BITS_PER_UNIT), /* V8HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1474]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1329: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1327| MODE_MASK (8*BITS_PER_UNIT), /* V2SF */
# 1328| MODE_MASK (12*BITS_PER_UNIT), /* V6HF */
# 1329|-> MODE_MASK (16*BITS_PER_UNIT), /* V8BF */
# 1330| MODE_MASK (16*BITS_PER_UNIT), /* V8HF */
# 1331| MODE_MASK (16*BITS_PER_UNIT), /* V4SF */
Error: CPPCHECK_WARNING (CWE-758): [#def1475]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1330: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1328| MODE_MASK (12*BITS_PER_UNIT), /* V6HF */
# 1329| MODE_MASK (16*BITS_PER_UNIT), /* V8BF */
# 1330|-> MODE_MASK (16*BITS_PER_UNIT), /* V8HF */
# 1331| MODE_MASK (16*BITS_PER_UNIT), /* V4SF */
# 1332| MODE_MASK (16*BITS_PER_UNIT), /* V2DF */
Error: CPPCHECK_WARNING (CWE-758): [#def1476]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1331: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1329| MODE_MASK (16*BITS_PER_UNIT), /* V8BF */
# 1330| MODE_MASK (16*BITS_PER_UNIT), /* V8HF */
# 1331|-> MODE_MASK (16*BITS_PER_UNIT), /* V4SF */
# 1332| MODE_MASK (16*BITS_PER_UNIT), /* V2DF */
# 1333| MODE_MASK (32*BITS_PER_UNIT), /* V16BF */
Error: CPPCHECK_WARNING (CWE-758): [#def1477]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1332: error[shiftTooManyBits]: Shifting 64-bit value by 128 bits is undefined behaviour
# 1330| MODE_MASK (16*BITS_PER_UNIT), /* V8HF */
# 1331| MODE_MASK (16*BITS_PER_UNIT), /* V4SF */
# 1332|-> MODE_MASK (16*BITS_PER_UNIT), /* V2DF */
# 1333| MODE_MASK (32*BITS_PER_UNIT), /* V16BF */
# 1334| MODE_MASK (32*BITS_PER_UNIT), /* V16HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1478]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1333: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1331| MODE_MASK (16*BITS_PER_UNIT), /* V4SF */
# 1332| MODE_MASK (16*BITS_PER_UNIT), /* V2DF */
# 1333|-> MODE_MASK (32*BITS_PER_UNIT), /* V16BF */
# 1334| MODE_MASK (32*BITS_PER_UNIT), /* V16HF */
# 1335| MODE_MASK (32*BITS_PER_UNIT), /* V8SF */
Error: CPPCHECK_WARNING (CWE-758): [#def1479]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1334: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1332| MODE_MASK (16*BITS_PER_UNIT), /* V2DF */
# 1333| MODE_MASK (32*BITS_PER_UNIT), /* V16BF */
# 1334|-> MODE_MASK (32*BITS_PER_UNIT), /* V16HF */
# 1335| MODE_MASK (32*BITS_PER_UNIT), /* V8SF */
# 1336| MODE_MASK (32*BITS_PER_UNIT), /* V4DF */
Error: CPPCHECK_WARNING (CWE-758): [#def1480]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1335: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1333| MODE_MASK (32*BITS_PER_UNIT), /* V16BF */
# 1334| MODE_MASK (32*BITS_PER_UNIT), /* V16HF */
# 1335|-> MODE_MASK (32*BITS_PER_UNIT), /* V8SF */
# 1336| MODE_MASK (32*BITS_PER_UNIT), /* V4DF */
# 1337| MODE_MASK (32*BITS_PER_UNIT), /* V2TF */
Error: CPPCHECK_WARNING (CWE-758): [#def1481]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1336: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1334| MODE_MASK (32*BITS_PER_UNIT), /* V16HF */
# 1335| MODE_MASK (32*BITS_PER_UNIT), /* V8SF */
# 1336|-> MODE_MASK (32*BITS_PER_UNIT), /* V4DF */
# 1337| MODE_MASK (32*BITS_PER_UNIT), /* V2TF */
# 1338| MODE_MASK (64*BITS_PER_UNIT), /* V32BF */
Error: CPPCHECK_WARNING (CWE-758): [#def1482]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1337: error[shiftTooManyBits]: Shifting 64-bit value by 256 bits is undefined behaviour
# 1335| MODE_MASK (32*BITS_PER_UNIT), /* V8SF */
# 1336| MODE_MASK (32*BITS_PER_UNIT), /* V4DF */
# 1337|-> MODE_MASK (32*BITS_PER_UNIT), /* V2TF */
# 1338| MODE_MASK (64*BITS_PER_UNIT), /* V32BF */
# 1339| MODE_MASK (64*BITS_PER_UNIT), /* V32HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1483]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1338: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1336| MODE_MASK (32*BITS_PER_UNIT), /* V4DF */
# 1337| MODE_MASK (32*BITS_PER_UNIT), /* V2TF */
# 1338|-> MODE_MASK (64*BITS_PER_UNIT), /* V32BF */
# 1339| MODE_MASK (64*BITS_PER_UNIT), /* V32HF */
# 1340| MODE_MASK (64*BITS_PER_UNIT), /* V16SF */
Error: CPPCHECK_WARNING (CWE-758): [#def1484]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1339: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1337| MODE_MASK (32*BITS_PER_UNIT), /* V2TF */
# 1338| MODE_MASK (64*BITS_PER_UNIT), /* V32BF */
# 1339|-> MODE_MASK (64*BITS_PER_UNIT), /* V32HF */
# 1340| MODE_MASK (64*BITS_PER_UNIT), /* V16SF */
# 1341| MODE_MASK (64*BITS_PER_UNIT), /* V8DF */
Error: CPPCHECK_WARNING (CWE-758): [#def1485]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1340: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1338| MODE_MASK (64*BITS_PER_UNIT), /* V32BF */
# 1339| MODE_MASK (64*BITS_PER_UNIT), /* V32HF */
# 1340|-> MODE_MASK (64*BITS_PER_UNIT), /* V16SF */
# 1341| MODE_MASK (64*BITS_PER_UNIT), /* V8DF */
# 1342| MODE_MASK (64*BITS_PER_UNIT), /* V4TF */
Error: CPPCHECK_WARNING (CWE-758): [#def1486]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1341: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1339| MODE_MASK (64*BITS_PER_UNIT), /* V32HF */
# 1340| MODE_MASK (64*BITS_PER_UNIT), /* V16SF */
# 1341|-> MODE_MASK (64*BITS_PER_UNIT), /* V8DF */
# 1342| MODE_MASK (64*BITS_PER_UNIT), /* V4TF */
# 1343| MODE_MASK (128*BITS_PER_UNIT), /* V64BF */
Error: CPPCHECK_WARNING (CWE-758): [#def1487]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1342: error[shiftTooManyBits]: Shifting 64-bit value by 512 bits is undefined behaviour
# 1340| MODE_MASK (64*BITS_PER_UNIT), /* V16SF */
# 1341| MODE_MASK (64*BITS_PER_UNIT), /* V8DF */
# 1342|-> MODE_MASK (64*BITS_PER_UNIT), /* V4TF */
# 1343| MODE_MASK (128*BITS_PER_UNIT), /* V64BF */
# 1344| MODE_MASK (128*BITS_PER_UNIT), /* V64HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1488]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1343: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1341| MODE_MASK (64*BITS_PER_UNIT), /* V8DF */
# 1342| MODE_MASK (64*BITS_PER_UNIT), /* V4TF */
# 1343|-> MODE_MASK (128*BITS_PER_UNIT), /* V64BF */
# 1344| MODE_MASK (128*BITS_PER_UNIT), /* V64HF */
# 1345| MODE_MASK (128*BITS_PER_UNIT), /* V32SF */
Error: CPPCHECK_WARNING (CWE-758): [#def1489]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1344: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1342| MODE_MASK (64*BITS_PER_UNIT), /* V4TF */
# 1343| MODE_MASK (128*BITS_PER_UNIT), /* V64BF */
# 1344|-> MODE_MASK (128*BITS_PER_UNIT), /* V64HF */
# 1345| MODE_MASK (128*BITS_PER_UNIT), /* V32SF */
# 1346| MODE_MASK (128*BITS_PER_UNIT), /* V16DF */
Error: CPPCHECK_WARNING (CWE-758): [#def1490]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1345: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1343| MODE_MASK (128*BITS_PER_UNIT), /* V64BF */
# 1344| MODE_MASK (128*BITS_PER_UNIT), /* V64HF */
# 1345|-> MODE_MASK (128*BITS_PER_UNIT), /* V32SF */
# 1346| MODE_MASK (128*BITS_PER_UNIT), /* V16DF */
# 1347| MODE_MASK (128*BITS_PER_UNIT), /* V8TF */
Error: CPPCHECK_WARNING (CWE-758): [#def1491]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1346: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1344| MODE_MASK (128*BITS_PER_UNIT), /* V64HF */
# 1345| MODE_MASK (128*BITS_PER_UNIT), /* V32SF */
# 1346|-> MODE_MASK (128*BITS_PER_UNIT), /* V16DF */
# 1347| MODE_MASK (128*BITS_PER_UNIT), /* V8TF */
# 1348| MODE_MASK (256*BITS_PER_UNIT), /* V128BF */
Error: CPPCHECK_WARNING (CWE-758): [#def1492]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1347: error[shiftTooManyBits]: Shifting 64-bit value by 1024 bits is undefined behaviour
# 1345| MODE_MASK (128*BITS_PER_UNIT), /* V32SF */
# 1346| MODE_MASK (128*BITS_PER_UNIT), /* V16DF */
# 1347|-> MODE_MASK (128*BITS_PER_UNIT), /* V8TF */
# 1348| MODE_MASK (256*BITS_PER_UNIT), /* V128BF */
# 1349| MODE_MASK (256*BITS_PER_UNIT), /* V128HF */
Error: CPPCHECK_WARNING (CWE-758): [#def1493]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1348: error[shiftTooManyBits]: Shifting 64-bit value by 2048 bits is undefined behaviour
# 1346| MODE_MASK (128*BITS_PER_UNIT), /* V16DF */
# 1347| MODE_MASK (128*BITS_PER_UNIT), /* V8TF */
# 1348|-> MODE_MASK (256*BITS_PER_UNIT), /* V128BF */
# 1349| MODE_MASK (256*BITS_PER_UNIT), /* V128HF */
# 1350| MODE_MASK (256*BITS_PER_UNIT), /* V64SF */
Error: CPPCHECK_WARNING (CWE-758): [#def1494]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1349: error[shiftTooManyBits]: Shifting 64-bit value by 2048 bits is undefined behaviour
# 1347| MODE_MASK (128*BITS_PER_UNIT), /* V8TF */
# 1348| MODE_MASK (256*BITS_PER_UNIT), /* V128BF */
# 1349|-> MODE_MASK (256*BITS_PER_UNIT), /* V128HF */
# 1350| MODE_MASK (256*BITS_PER_UNIT), /* V64SF */
# 1351| MODE_MASK (256*BITS_PER_UNIT), /* V32DF */
Error: CPPCHECK_WARNING (CWE-758): [#def1495]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1350: error[shiftTooManyBits]: Shifting 64-bit value by 2048 bits is undefined behaviour
# 1348| MODE_MASK (256*BITS_PER_UNIT), /* V128BF */
# 1349| MODE_MASK (256*BITS_PER_UNIT), /* V128HF */
# 1350|-> MODE_MASK (256*BITS_PER_UNIT), /* V64SF */
# 1351| MODE_MASK (256*BITS_PER_UNIT), /* V32DF */
# 1352| MODE_MASK (256*BITS_PER_UNIT), /* V16TF */
Error: CPPCHECK_WARNING (CWE-758): [#def1496]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1351: error[shiftTooManyBits]: Shifting 64-bit value by 2048 bits is undefined behaviour
# 1349| MODE_MASK (256*BITS_PER_UNIT), /* V128HF */
# 1350| MODE_MASK (256*BITS_PER_UNIT), /* V64SF */
# 1351|-> MODE_MASK (256*BITS_PER_UNIT), /* V32DF */
# 1352| MODE_MASK (256*BITS_PER_UNIT), /* V16TF */
# 1353| #undef MODE_MASK
Error: CPPCHECK_WARNING (CWE-758): [#def1497]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-modes.cc:1352: error[shiftTooManyBits]: Shifting 64-bit value by 2048 bits is undefined behaviour
# 1350| MODE_MASK (256*BITS_PER_UNIT), /* V64SF */
# 1351| MODE_MASK (256*BITS_PER_UNIT), /* V32DF */
# 1352|-> MODE_MASK (256*BITS_PER_UNIT), /* V16TF */
# 1353| #undef MODE_MASK
# 1354| };
Error: CPPCHECK_WARNING: [#def1498]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/insn-peep.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1499]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/min-insn-modes.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1500]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/options-urls.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def1501]
gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/gcc/options.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-251.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | gcc-14.1.1-7.fc41 |
store-results-to | /tmp/tmpnnuz9a8a/gcc-14.1.1-7.fc41.tar.xz |
time-created | 2024-07-03 22:55:08 |
time-finished | 2024-07-04 09:17:44 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpnnuz9a8a/gcc-14.1.1-7.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpnnuz9a8a/gcc-14.1.1-7.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |