Restore detection of HAVE_XCOFF_DWARF_EXTRAS

gcc/ChangeLog:

	* configure.ac: Restore detection of  HAVE_XCOFF_DWARF_EXTRAS.
	* config/rs6000/rs6000.cc (HAVE_XCOFF_DWARF_EXTRAS): Reset it.
	* configure: Regenerate.
	* config.in: Regenerate.
This commit is contained in:
Martin Liska 2022-09-07 16:33:59 +02:00
parent b9cb441c98
commit b8cd1630d0
4 changed files with 56 additions and 0 deletions

View file

@ -2099,6 +2099,13 @@
#endif
/* Define if your assembler supports AIX debug frame section label reference.
*/
#ifndef USED_FOR_TARGET
#undef HAVE_XCOFF_DWARF_EXTRAS
#endif
/* Define if you have a working <zstd.h> header file. */
#ifndef USED_FOR_TARGET
#undef HAVE_ZSTD_H

View file

@ -20946,6 +20946,11 @@ rs6000_elf_file_end (void)
#if TARGET_XCOFF
#ifndef HAVE_XCOFF_DWARF_EXTRAS
#define HAVE_XCOFF_DWARF_EXTRAS 0
#endif
/* Names of bss and data sections. These should be unique names for each
compilation unit. */

35
gcc/configure vendored
View file

@ -28142,6 +28142,41 @@ if test $gcc_cv_as_aix_ref = yes; then
$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
$as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
if ${gcc_cv_as_aix_dwloc+:} false; then :
$as_echo_n "(cached) " >&6
else
gcc_cv_as_aix_dwloc=no
if test x$gcc_cv_as != x; then
$as_echo ' .dwsect 0xA0000
Lframe..0:
.vbyte 4,Lframe..0
' > conftest.s
if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }
then
gcc_cv_as_aix_dwloc=yes
else
echo "configure: failed program was" >&5
cat conftest.s >&5
fi
rm -f conftest.o conftest.s
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
$as_echo "$gcc_cv_as_aix_dwloc" >&6; }
if test $gcc_cv_as_aix_dwloc = yes; then
$as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
fi
;;

View file

@ -5066,6 +5066,15 @@ LCF0:
],,
[AC_DEFINE(HAVE_AS_REF, 1,
[Define if your assembler supports .ref])])
gcc_GAS_CHECK_FEATURE([AIX DWARF location lists section support],
gcc_cv_as_aix_dwloc,,
[ .dwsect 0xA0000
Lframe..0:
.vbyte 4,Lframe..0
],,
[AC_DEFINE(HAVE_XCOFF_DWARF_EXTRAS, 1,
[Define if your assembler supports AIX debug frame section label reference.])])
;;
esac
;;