]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use gfc_commit_symbol() to remove UNDO status instead of new function.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 9 Mar 2025 18:35:06 +0000 (19:35 +0100)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 9 Mar 2025 18:47:42 +0000 (19:47 +0100)
commit9f5b508bc5c16ae11ea385f6031487a518f62c8f
tree829fb45515699b1990891484e093b86c0cee735c
parent7232c005afb5002cdfd0a2dbd0e8b8f2d80250ce
Use gfc_commit_symbol() to remove UNDO status instead of new function.

This is a cleaner version, removing an unneeded function and
making sure that no memory leaks can occur if callers change.

gcc/fortran/ChangeLog:

PR fortran/119157
* gfortran.h (gfc_pop_undo_symbol): Remove prototype.
* interface.cc (gfc_get_formal_from_actual_arglist): Use
gfc_commit_symbol() instead of gfc_pop_undo_symbol().
* symbol.cc (gfc_pop_undo_symbol): Remove.
gcc/fortran/gfortran.h
gcc/fortran/interface.cc
gcc/fortran/symbol.cc