-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added x86 and x86_64 support (issue #2)
- Loading branch information
Showing
3 changed files
with
35 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/gcc-4.9/libgfortran/mk-kinds-h.sh b/gcc-4.9/libgfortran/mk-kinds-h.sh | ||
index 98a95ab..fdbccb0 100755 | ||
--- a/gcc-4.9/libgfortran/mk-kinds-h.sh | ||
+++ b/gcc-4.9/libgfortran/mk-kinds-h.sh | ||
@@ -51,7 +51,10 @@ echo "use iso_c_binding; print *, c_long_double ; end" > tmq$$.f90 | ||
long_double_kind=`$compile -S -fdump-parse-tree tmq$$.f90 | grep TRANSFER \ | ||
| sed 's/ *TRANSFER *//'` | ||
rm -f tmq$$.* | ||
- | ||
+echo "use iso_c_binding; print *, c_double ; end" > tmq$$.f90 | ||
+double_kind=`$compile -S -fdump-parse-tree tmq$$.f90 | grep TRANSFER \ | ||
+ | sed 's/ *TRANSFER *//'` | ||
+rm -f tmq$$.* | ||
|
||
for k in $possible_real_kinds; do | ||
echo " real (kind=$k) :: x" > tmp$$.f90 | ||
@@ -66,10 +69,12 @@ for k in $possible_real_kinds; do | ||
ctype="__float128" | ||
cplxtype="_Complex float __attribute__((mode(TC)))" | ||
suffix="q" | ||
- else | ||
+ elif [ $long_double_kind -ne $double_kind ]; then | ||
ctype="long double" | ||
cplxtype="complex long double" | ||
suffix="l" | ||
+ else | ||
+ break; | ||
fi ;; | ||
*) echo "$0: Unknown type" >&2 ; exit 1 ;; | ||
esac |