aboutsummaryrefslogtreecommitdiff
path: root/gdb/objc-lang.c
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2020-11-10 16:40:40 +0000
committerGary Benson <gbenson@redhat.com>2020-11-10 16:40:40 +0000
commit6ff174a7275512ce6f5c7a5496576a0531bd2c2f (patch)
treec656665e072211c50816418603bc55f494ec4504 /gdb/objc-lang.c
parenteb24648c453c28f2898fb599311ba004394a8b41 (diff)
downloadbinutils-6ff174a7275512ce6f5c7a5496576a0531bd2c2f.zip
binutils-6ff174a7275512ce6f5c7a5496576a0531bd2c2f.tar.gz
binutils-6ff174a7275512ce6f5c7a5496576a0531bd2c2f.tar.bz2
Prevent inlining in gdb.base/vla-optimized-out.c
The function f1 in gdb.base/vla-optimized-out.c sets various attributes to prevent its being inlined, but Clang inlines it anyway, causing the test that uses it to fail. This commit adds the "weak" attribute to cause Clang to keep the function fully out of line so the test can operate as it should. gdb/testsuite/ChangeLog: * gdb.base/vla-optimized-out.c (f1): Add __attribute__ ((weak)).
Diffstat (limited to 'gdb/objc-lang.c')
0 files changed, 0 insertions, 0 deletions