diff mbox

[committed] Ignore --with-dwarf2 option on 32-bit hppa*-*-hpux*

Message ID 20101206004659.GA3295@hiauly1.hia.nrc.ca
State New
Headers show

Commit Message

John David Anglin Dec. 6, 2010, 12:47 a.m. UTC
On Mon, 22 Nov 2010, Paolo Bonzini wrote:

> Second, because if anywhere the right place to put this is in config.gcc 
> rather than by adding a new case $target statement. I wouldn't complain if 
> it was placed there.

Tested on hppa2.0w-hp-hpux11 with and without option.  Committed to trunk.

Dave
diff mbox

Patch

Index: config.gcc
===================================================================
--- config.gcc	(revision 167467)
+++ config.gcc	(working copy)
@@ -1065,6 +1065,10 @@ 
 	fi
 	use_collect2=yes
 	gas=yes
+	if test "x$with_dwarf2" != x; then
+		echo "Warning: dwarf2 debug format is not supported for this targe, --with-dwarf2 ignored" 1>&2
+		dwarf2=no
+	fi
 	;;
 hppa*64*-*-hpux11*)
 	target_cpu_default="MASK_PA_11|MASK_PA_20"
@@ -1153,6 +1157,10 @@ 
 		tm_file="${tm_file} hpux-stdint.h"
 		;;
 	esac
+	if test "x$with_dwarf2" != x; then
+		echo "Warning: dwarf2 debug format is not supported for this targe, --with-dwarf2 ignored" 1>&2
+		dwarf2=no
+	fi
 	;;
 i[34567]86-*-darwin*)
 	need_64bit_hwint=yes