[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions withou
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size |
Date: |
Wed, 10 Aug 2022 08:34:34 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29451
--- Comment #15 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The binutils-2_39-branch branch has been updated by Jan Beulich
<jbeulich@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e8cf73215187b0c08679d726a5cc7c019fa3ea2e
commit e8cf73215187b0c08679d726a5cc7c019fa3ea2e
Author: Jan Beulich <jbeulich@suse.com>
Date: Wed Aug 10 10:34:22 2022 +0200
gas/Dwarf: properly skip zero-size functions
PR gas/29451
While out_debug_abbrev() properly skips such functions, out_debug_info()
mistakenly didn't. It needs to calculate the high_pc expression ahead of
time, in order to skip emitting any data for the function if the value
is zero.
The one case which would still leave a zero-size entry is when
symbol_get_obj(symp)->size ends up evaluating to zero. I hope we can
expect that to not be the case, otherwise we'd need to have a way to
post-process .debug_info contents between resolving expressions and
actually writing the data out to the file. Even then it wouldn't be
entirely obvious in which way to alter the data.
(cherry picked from commit d7abcbcea5ddd40a3bf28758b62f35933c59f996)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, (continued)
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, mliska at suse dot cz, 2022/08/08
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, sam at gentoo dot org, 2022/08/08
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, mark at klomp dot org, 2022/08/08
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, jbeulich at suse dot com, 2022/08/09
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, jbeulich at suse dot com, 2022/08/09
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, mliska at suse dot cz, 2022/08/09
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, mark at klomp dot org, 2022/08/09
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, jbeulich at suse dot com, 2022/08/09
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, jbeulich at suse dot com, 2022/08/09
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, cvs-commit at gcc dot gnu.org, 2022/08/10
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size,
cvs-commit at gcc dot gnu.org <=
- [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size, jbeulich at suse dot com, 2022/08/10