1
Fork 0
forked from gcc/gcc-TEST
TEST repository for https://forge.sourceware.org/ experimenting.
Find a file
Richard Biener 7c4f8ae20c Use gather_imm_use_stmts instead of FOR_EACH_IMM_USE_STMT in forwprop
The following fixes forwprop using FOR_EACH_IMM_USE_STMT to iterate
over stmts and then eventually removing the active stmt, releasing
its defs.  This can cause debug stmt insertion with a RHS referencing
the SSA name we iterate over, adding to its immediate use list
but also adjusting all other debug stmts refering to the released
SSA name, updating those.  And those can refer to the original
iterated over variable.

In the end the destructive behavior of update_stmt is a problem
here, which unlinks all uses of a stmt and then links in the
newly computed ones instead of leaving those in place that are.

The solution is to not rely on FOR_EACH_IMM_USE_STMT to iterate
over stmt uses without duplicates.

	* tree-ssa-forwprop.cc (forward_propagate_addr_expr):
	Use gather_imm_use_stmts instead of FOR_EACH_IMM_USE_STMT.
2025-11-05 09:34:09 +01:00
.forgejo top-level: Add forgejo sanity checks 2025-10-20 10:46:55 +00:00
.github
c++tools Daily bump. 2025-06-03 00:18:06 +00:00
config Daily bump. 2025-11-04 00:20:26 +00:00
contrib Daily bump. 2025-10-31 00:22:18 +00:00
fixincludes Daily bump. 2025-08-29 00:19:55 +00:00
gcc Use gather_imm_use_stmts instead of FOR_EACH_IMM_USE_STMT in forwprop 2025-11-05 09:34:09 +01:00
gnattools Daily bump. 2025-06-23 00:16:33 +00:00
gotools
include Daily bump. 2025-10-17 00:18:48 +00:00
INSTALL
libada
libatomic Daily bump. 2025-11-04 00:20:26 +00:00
libbacktrace Daily bump. 2025-11-04 00:20:26 +00:00
libcc1 Daily bump. 2025-11-04 00:20:26 +00:00
libcody
libcpp Daily bump. 2025-10-14 00:20:06 +00:00
libdecnumber
libffi Daily bump. 2025-11-04 00:20:26 +00:00
libgcc Daily bump. 2025-10-26 00:17:33 +00:00
libgcobol Daily bump. 2025-11-04 00:20:26 +00:00
libgfortran Daily bump. 2025-11-04 00:20:26 +00:00
libgm2 Daily bump. 2025-11-04 00:20:26 +00:00
libgo runtime: avoid libc memmove and memclr 2025-07-08 15:49:16 -07:00
libgomp Daily bump. 2025-11-04 00:20:26 +00:00
libgrust Daily bump. 2025-11-04 00:20:26 +00:00
libiberty Daily bump. 2025-11-04 00:20:26 +00:00
libitm Daily bump. 2025-11-04 00:20:26 +00:00
libobjc Daily bump. 2025-11-04 00:20:26 +00:00
libphobos Daily bump. 2025-11-04 00:20:26 +00:00
libquadmath Daily bump. 2025-11-04 00:20:26 +00:00
libsanitizer Daily bump. 2025-11-04 00:20:26 +00:00
libssp Daily bump. 2025-11-04 00:20:26 +00:00
libstdc++-v3 Daily bump. 2025-11-04 00:20:26 +00:00
libvtv Daily bump. 2025-11-04 00:20:26 +00:00
lto-plugin Daily bump. 2025-11-04 00:20:26 +00:00
maintainer-scripts Daily bump. 2025-09-02 00:19:26 +00:00
zlib Daily bump. 2025-11-04 00:20:26 +00:00
.b4-config
.dir-locals.el
.editorconfig editorconfig: Add explicit tab_width when indent_size != 8 2025-10-28 15:06:51 +00:00
.gitattributes
.gitignore Rust: Move 'libformat_parser' build into the GCC build directory 2025-08-05 16:36:43 +02:00
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2025-11-04 00:20:26 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in *: Fix patch email address 2025-10-11 11:08:01 +02:00
config.guess
config.rpath
config.sub
configure gcc: sync top-level with binutils-gdb 2025-11-03 20:25:00 +00:00
configure.ac PR81358: Enable automatic linking of libatomic. 2025-10-09 07:26:51 +00:00
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
depcomp
install-sh
libtool-ldflags
libtool.m4 Sync toplevel files from binutils-gdb 2025-10-02 15:00:06 +08:00
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
MAINTAINERS MAINTAINERS: Add myself to reviewers/maintainers. 2025-10-30 15:54:29 +01:00
Makefile.def PR81358: Enable automatic linking of libatomic. 2025-10-09 07:26:51 +00:00
Makefile.in Simplify 'Makefile' dependencies for libatomic [PR81358] 2025-10-24 12:40:22 +02:00
Makefile.tpl Simplify 'Makefile' dependencies for libatomic [PR81358] 2025-10-24 12:40:22 +02:00
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
SECURITY.txt
symlink-tree *: Fix patch email address 2025-10-11 11:08:01 +02:00
test-driver
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.