https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92988
Bug ID: 92988
Summary: crtstuff.c:387:21: error: '__dso_handle' undeclared
(first use in this function)
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: danglin at gcc dot gnu.org
CC: jozef.l at somniumtech dot com
Target Milestone: ---
Host: hppa64-hp-hpux11.11
Target: hppa64-hp-hpux11.11
Build: hppa64-hp-hpux11.11
/test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-B/opt/gnu64/gcc/g
cc-10/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-10/hppa64-hp-hpux11.11/lib/
-isystem /opt/gnu64/gcc/gcc-10/hppa64-hp-hpux11.11/include -isystem
/opt/gnu64/g
cc/gcc-10/hppa64-hp-hpux11.11/sys-include -fno-checking -g -O2 -O2 -g -O2
-DIN
_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wstrict
-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include
-I.
-I. -I../.././gcc -I../../../gcc/libgcc -I../../../gcc/libgcc/.
-I../../../gcc/
libgcc/../gcc -I../../../gcc/libgcc/../include -g0 -finhibit-size-directive
-fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder
-fno-tree-vectorize -fbuilding-libgcc -fno-stack-protector -I. -I.
-I../.././gcc -I../../../gcc/libgcc -I../../../gcc/libgcc/.
-I../../../gcc/libgcc/../gcc -I../../../gcc/libgcc/../include -o crtbeginS.o
-MT crtbeginS.o -MD -MP -MF crtbeginS.dep -c ../../../gcc/libgcc/crtstuff.c
-DCRT_BEGIN -DCRTSTUFFS_O
../../../gcc/libgcc/crtstuff.c: In function '__do_global_dtors_aux':
../../../gcc/libgcc/crtstuff.c:386:7: warning: the address of '__cxa_finalize'
will always evaluate as 'true' [-Waddress]
386 | if (__cxa_finalize)
| ^~~~~~~~~~~~~~
../../../gcc/libgcc/crtstuff.c:387:21: error: '__dso_handle' undeclared (first
use in this function)
387 | __cxa_finalize (__dso_handle);
| ^~~~~~~~~~~~
../../../gcc/libgcc/crtstuff.c:387:21: note: each undeclared identifier is
reported only once for each function it appears in
../../../gcc/libgcc/crtstuff.c:430:7: warning: the address of
'__deregister_frame_info' will always evaluate as 'true' [-Waddress]
430 | if (__deregister_frame_info)
| ^~~~~~~~~~~~~~~~~~~~~~~
../../../gcc/libgcc/crtstuff.c: In function 'frame_dummy':
../../../gcc/libgcc/crtstuff.c:482:7: warning: the address of
'__register_frame_info' will always evaluate as 'true' [-Waddress]
482 | if (__register_frame_info)
| ^~~~~~~~~~~~~~~~~~~~~
Makefile:1031: recipe for target 'crtbeginS.o' failed
make[3]: *** [crtbeginS.o] Error 1