aboutsummaryrefslogtreecommitdiff
path: root/gprofng/src
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-09-03 10:59:54 +0930
committerAlan Modra <amodra@gmail.com>2025-09-03 11:14:21 +0930
commit180075d14fab9f75eaf679589f9d175fb5448d21 (patch)
tree83939b5239866edc6b12137386f70ff7cc923e37 /gprofng/src
parentfcd717899e8a38dd152002ebcb432e6d508b7c38 (diff)
downloadbinutils-180075d14fab9f75eaf679589f9d175fb5448d21.zip
binutils-180075d14fab9f75eaf679589f9d175fb5448d21.tar.gz
binutils-180075d14fab9f75eaf679589f9d175fb5448d21.tar.bz2
frag_alloc use of obstack_alloc
Avoid the alignment hackery necessary when obstack_alloc is used. obstack_alloc expands to obstack_blank plus obstack_finish, and the latter call is where alignment of the tail of the obstack happens. The docs say obstack_alloc "is invoked almost like malloc", which implies a fixed size allocation and you don't need other obstack calls in its use. So I think trying to use obstack_alloc in frag_alloc was always a poor choice. * frags.c (frag_alloc): Replace obstack_alloc with obstack_blank.
Diffstat (limited to 'gprofng/src')
0 files changed, 0 insertions, 0 deletions