aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2018-12-24 08:43:20 +0000
committerIain Sandoe <iains@gcc.gnu.org>2018-12-24 08:43:20 +0000
commitf1b2727feb2d6427e1372672c16f0bf887a482ed (patch)
tree346e8f37b3aa599e8f6bfde3370618218ee78641 /gcc
parent959b8c8257b8b6fa547c25098d1024b53e5f9b45 (diff)
downloadgcc-f1b2727feb2d6427e1372672c16f0bf887a482ed.zip
gcc-f1b2727feb2d6427e1372672c16f0bf887a482ed.tar.gz
gcc-f1b2727feb2d6427e1372672c16f0bf887a482ed.tar.bz2
darwin, configuration, check properly for dwarf2 debug line support
This corrects a long-standing misconfiguration for Darwin. The assembler supports the “.file” and “.loc” directives, but the GCC configury was not detecting this because it was using objdump, which does not exist on most Darwin installations. We added support for “otool” to GCC and now we can use that to make the check that’s done with objdump on ELF targets. 2018-12-24 Iain Sandoe <iain@sandoe.co.uk> * configure.ac (dwarf2_debug_line): Check for the debug_line section using otool when there’s no objdump available. * configure: Regenerate. From-SVN: r267393
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rwxr-xr-xgcc/configure4
-rw-r--r--gcc/configure.ac4
3 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 479083e..310bbec 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2018-12-24 Iain Sandoe <iain@sandoe.co.uk>
+
+ * configure.ac (dwarf2_debug_line): Check for the debug_line
+ section using otool when there’s no objdump available.
+ * configure: Regenerate.
+
2018-12-24 Jan Hubicka <hubicka@ucw.cz>
* ipa-utils.c (ipa_merge_profiles): Fix updating of fnsummary;
diff --git a/gcc/configure b/gcc/configure
index efbf621..caebe4c 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -27724,6 +27724,10 @@ fi
&& $gcc_cv_objdump -h conftest.o 2> /dev/null \
| grep debug_line > /dev/null 2>&1; then
gcc_cv_as_dwarf2_debug_line=yes
+ elif test x$gcc_cv_otool != x \
+ && $gcc_cv_otool -l conftest.o 2> /dev/null \
+ | grep debug_line > /dev/null 2>&1; then
+ gcc_cv_as_dwarf2_debug_line=yes
fi
else
echo "configure: failed program was" >&5
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 7fce52a..a101232 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4926,6 +4926,10 @@ if test x"$insn" != x; then
&& $gcc_cv_objdump -h conftest.o 2> /dev/null \
| grep debug_line > /dev/null 2>&1; then
gcc_cv_as_dwarf2_debug_line=yes
+ elif test x$gcc_cv_otool != x \
+ && $gcc_cv_otool -l conftest.o 2> /dev/null \
+ | grep debug_line > /dev/null 2>&1; then
+ gcc_cv_as_dwarf2_debug_line=yes
fi])
# The .debug_line file table must be in the exact order that