This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit/obvious/testsuite] so-impl-ld.exp, gcc_compiled


After a day of wrangling with demangler testing, it's a pleasure
to put out another gcc_compiled patch.

Tested on: native i686-pc-linux-gnu, gcc 2.95.3 and 3.3.2, dwarf-2 and stabs+.

I am committing this now as an obvious fix.

Michael C

2003-12-04  Michael Chastain  <mec.gnu@mindspring.com>

	Partial fix for PR testsuite/1456.
	* gdb.base/so-impl-ld.exp: Replace reference to gcc_compiled with call
	to test_compiler_info.

Index: gdb.base/so-impl-ld.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/so-impl-ld.exp,v
retrieving revision 1.5
diff -c -3 -p -r1.5 so-impl-ld.exp
*** gdb.base/so-impl-ld.exp	4 Dec 2003 04:37:54 -0000	1.5
--- gdb.base/so-impl-ld.exp	5 Dec 2003 01:49:28 -0000
***************
*** 1,4 ****
! # Copyright 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
--- 1,4 ----
! # Copyright 1997, 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
*************** if [get_compiler_info ${binfile}] {
*** 55,69 ****
  #remote_exec build "$CC -g +z -c ${libfile}1.c -o ${libfile}1.o"
  
  
! if {$gcc_compiled == 0} {
      if [istarget "hppa*-hp-hpux*"] then {
  	set additional_flags "additional_flags=+z"
      } else {
  	# don't know that the compiler is, hope for the best...
  	set additional_flags ""
      }
- } else {
-     set additional_flags "additional_flags=-fpic"
  }
  
  if {[gdb_compile "${srcdir}/${subdir}/${libfile}1.c" "${libfile}1.o" object [list debug $additional_flags]] != ""} {
--- 55,69 ----
  #remote_exec build "$CC -g +z -c ${libfile}1.c -o ${libfile}1.o"
  
  
! if { [test_compiler_info gcc-*-*] } then {
!     set additional_flags "additional_flags=-fpic"
! } else {
      if [istarget "hppa*-hp-hpux*"] then {
  	set additional_flags "additional_flags=+z"
      } else {
  	# don't know that the compiler is, hope for the best...
  	set additional_flags ""
      }
  }
  
  if {[gdb_compile "${srcdir}/${subdir}/${libfile}1.c" "${libfile}1.o" object [list debug $additional_flags]] != ""} {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]