diff mbox

Robustify configure test for .debug_line

Message ID 201010241001.23757.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou Oct. 24, 2010, 8:01 a.m. UTC
Hi,

we have the following patch in our tree to robustify the configure test for 
the .debug_line feature.  It eliminates the need to adjust the test each time 
you add a small target variant to the compiler.

Tested on various architectures (Alpha, AVR, x86, IA-64, MIPS, PowerPC, SPARC 
at least), OK for mainline?


2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>

	* configure.ac: Use $cpu_type instead of $target to define the nop.
	* configure: Regenerate.

Comments

Paolo Bonzini Oct. 25, 2010, 12:11 a.m. UTC | #1
On 10/24/2010 10:01 AM, Eric Botcazou wrote:
> Hi,
>
> we have the following patch in our tree to robustify the configure test for
> the .debug_line feature.  It eliminates the need to adjust the test each time
> you add a small target variant to the compiler.
>
> Tested on various architectures (Alpha, AVR, x86, IA-64, MIPS, PowerPC, SPARC
> at least), OK for mainline?
>
>
> 2010-10-24  Eric Botcazou<ebotcazou@adacore.com>
>
> 	* configure.ac: Use $cpu_type instead of $target to define the nop.
> 	* configure: Regenerate.

Ok.

Paolo
diff mbox

Patch

Index: configure.ac
===================================================================
--- configure.ac	(revision 165881)
+++ configure.ac	(working copy)
@@ -3764,17 +3764,15 @@  esac
 # add some instruction here to (also) show we expect this might work.
 # ??? Once 2.11 is released, probably need to add first known working
 # version to the per-target configury.
-case "$target" in
-  i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
-  | x86_64*-*-* | hppa*-*-* | arm*-*-* | avr*-*-* \
-  | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
-  | spu-*-* | fido*-*-* | m32c-*-* | microblaze-*-*)
+case "$cpu_type" in
+  alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
+  | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
     insn="nop"
     ;;
-  ia64*-*-* | s390*-*-*)
+  ia64 | s390)
     insn="nop 0"
     ;;
-  mmix-*-*)
+  mmix)
     insn="swym 0"
     ;;
 esac