Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Paul Gilliam <pgilliam@us.ibm.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [patch] Allow compilatiion by IBM'x xlc compiler - shreloc.exp
Date: Fri, 01 Apr 2005 22:45:00 -0000	[thread overview]
Message-ID: <200504011441.24804.pgilliam@us.ibm.com> (raw)
In-Reply-To: <200504011438.41322.pgilliam@us.ibm.com>

Opps!   Here's the patch:

2005-04-01  Paul Gilliam  <pgilliam@us.ibm.com>

	* gdb.base/shreloc.exp: Allow for compilation by IBM's xlc compiler.

Index: gdb.base/shreloc.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/shreloc.exp,v
retrieving revision 1.2
diff -c -3 -p -r1.2 shreloc.exp
*** gdb.base/shreloc.exp	11 Nov 2003 17:58:28 -0000	1.2
--- gdb.base/shreloc.exp	1 Apr 2005 22:06:59 -0000
*************** set bug_id 0
*** 41,55 ****
  
  set workdir ${objdir}/${subdir}
  
  foreach module [list "shreloc" "shreloc1" "shreloc2"] {
!     if {[gdb_compile "${srcdir}/${subdir}/${module}.c" "${workdir}/${module}.o" object {debug}] != ""} {
  	untested "Couldn't compile ${module}.c"
  	return -1
      }
  }
  
- set additional_flags "additional_flags=-shared"
- 
  if {([istarget "*pc-cygwin"] || [istarget "*pc-mingw32"]) } {
      set additional_flags "${additional_flags} -Wl,--image-base,0x04000000"
  }
--- 41,66 ----
  
  set workdir ${objdir}/${subdir}
  
+ if [get_compiler_info ${workdir}/shreloc] {
+     return -1
+ }
+ 
+ if { [test_compiler_info "xlc-*"] } {
+     set additional_flags "additional_flags=-qstatsym -qdbxextra -qmkshrobj"
+     set libfileso1 "-Wl,${workdir}/shreloc1.dll"
+     set libfileso2 "-Wl,${workdir}/shreloc2.dll"
+ } else {
+     set additional_flags "additional_flags=-shared"
+     set libfileso1 "${workdir}/shreloc1.dll"
+     set libfileso2 "${workdir}/shreloc2.dll"
+ }
  foreach module [list "shreloc" "shreloc1" "shreloc2"] {
!     if {[gdb_compile "${srcdir}/${subdir}/${module}.c" "${workdir}/${module}.o" object [list debug $additional_flags]] != ""} {
  	untested "Couldn't compile ${module}.c"
  	return -1
      }
  }
  
  if {([istarget "*pc-cygwin"] || [istarget "*pc-mingw32"]) } {
      set additional_flags "${additional_flags} -Wl,--image-base,0x04000000"
  }
*************** foreach module [list "shreloc1" "shreloc
*** 61,67 ****
      }
  }
  
! if {[gdb_compile [list "${workdir}/shreloc.o" "${workdir}/shreloc1.dll" "${workdir}/shreloc2.dll"] "${workdir}/shreloc" executable debug] != ""} {
      untested "Couldn't link shreloc executable"
      return -1
  }
--- 72,78 ----
      }
  }
  
! if {[gdb_compile [list "${workdir}/shreloc.o" ${libfileso1} ${libfileso2} ] "${workdir}/shreloc" executable debug] != ""} {
      untested "Couldn't link shreloc executable"
      return -1
  }


      reply	other threads:[~2005-04-01 22:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-01 22:42 Paul Gilliam
2005-04-01 22:45 ` Paul Gilliam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200504011441.24804.pgilliam@us.ibm.com \
    --to=pgilliam@us.ibm.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox