* [patch] Allow compilatiion by IBM'x xlc compiler - shreloc.exp
@ 2005-04-01 22:42 Paul Gilliam
2005-04-01 22:45 ` Paul Gilliam
0 siblings, 1 reply; 2+ messages in thread
From: Paul Gilliam @ 2005-04-01 22:42 UTC (permalink / raw)
To: gdb-patches
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] Allow compilatiion by IBM'x xlc compiler - shreloc.exp
2005-04-01 22:42 [patch] Allow compilatiion by IBM'x xlc compiler - shreloc.exp Paul Gilliam
@ 2005-04-01 22:45 ` Paul Gilliam
0 siblings, 0 replies; 2+ messages in thread
From: Paul Gilliam @ 2005-04-01 22:45 UTC (permalink / raw)
To: gdb-patches
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
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-01 22:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-01 22:42 [patch] Allow compilatiion by IBM'x xlc compiler - shreloc.exp Paul Gilliam
2005-04-01 22:45 ` Paul Gilliam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox