[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[DejaGnu] Some cygwin issues (with patches)
From: |
Billinghurst, David (CRTS) |
Subject: |
[DejaGnu] Some cygwin issues (with patches) |
Date: |
Wed, 4 Apr 2001 00:20:36 -0000 |
I have been testing gcc on cygwin. There are couple of testsuite issues
that (i think) can only be addressed in dejagnu. I have some fixes for
these that I'd like reviewed.
1. Don't link with -lm
g77 programs cannot be linked with -lm, and it is unnecessary for other
languages. I work around this by the following patch to
${prefix}/share/dejagnu/baseboards/unix.exp
--- unix.exp.bak Tue Apr 3 22:33:08 2001
+++ unix.exp Tue Apr 3 22:40:11 2001
@@ -6,3 +6,8 @@
set_board_info compiler "[find_gcc]";
set_board_info bmk,use_alarm 1;
+
+# Do not use -lm
+if { [istarget "*-*-cygwin*"] } {
+ set_board_info mathlib "";
+}
2. Compiler warnings about -fpic of -fPIC
I get excess errors like:
FAIL: gcc.dg/20000807-1.c (test for excess errors)
Excess errors:
cc1.exe: warning: -fpic ignored for target (all code is position
independent)
I think fix is in ${prefix}/share/dejagnu/target.exp. Add
--- target.exp.orig Tue Apr 3 22:32:31 2001
+++ target.exp Tue Apr 3 22:36:46 2001
@@ -271,6 +271,9 @@
# Libgloss libnosys defines functions that warn when linked in
regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*is not
implemented and will always fail\[^\n\]*" $text "" text
+ # Cygwin cc1 warns about -fpic and -fPIC
+ regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text ""
text
+
# It might be tempting to get carried away and delete blank lines, etc.
# Just delete *exactly* what we're ask to, and that's it.
return $text
+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone: +61 3 9469 0642
FAX: +61 3 9462 2700
Email: address@hidden
- [DejaGnu] Some cygwin issues (with patches),
Billinghurst, David (CRTS) <=