mirror of git://gcc.gnu.org/git/gcc.git
re PR go/52557 (Timex undefined on arm-linux-gnueabi)
PR go/52557 mksysinfo: Fix handling of timex for ARM GNU/Linux. From-SVN: r185354
This commit is contained in:
parent
be23f73241
commit
42cd874911
|
|
@ -834,7 +834,15 @@ fi | sed -e 's/type _statfs64/type Statfs_t/' \
|
||||||
>> ${OUT}
|
>> ${OUT}
|
||||||
|
|
||||||
# The timex struct.
|
# The timex struct.
|
||||||
grep '^type _timex ' gen-sysinfo.go | \
|
timex=`grep '^type _timex ' gen-sysinfo.go || true`
|
||||||
|
if test "$timex" = ""; then
|
||||||
|
timex=`grep '^// type _timex ' gen-sysinfo.go || true`
|
||||||
|
if test "$timex" != ""; then
|
||||||
|
timex=`echo $timex | sed -e 's|// ||' -e 's/INVALID-bit-field/int32/g'`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test "$timex" != ""; then
|
||||||
|
echo "$timex" | \
|
||||||
sed -e 's/_timex/Timex/' \
|
sed -e 's/_timex/Timex/' \
|
||||||
-e 's/modes/Modes/' \
|
-e 's/modes/Modes/' \
|
||||||
-e 's/offset/Offset/' \
|
-e 's/offset/Offset/' \
|
||||||
|
|
@ -858,6 +866,7 @@ grep '^type _timex ' gen-sysinfo.go | \
|
||||||
-e 's/tai/Tai/' \
|
-e 's/tai/Tai/' \
|
||||||
-e 's/_timeval/Timeval/' \
|
-e 's/_timeval/Timeval/' \
|
||||||
>> ${OUT}
|
>> ${OUT}
|
||||||
|
fi
|
||||||
|
|
||||||
# The rlimit struct.
|
# The rlimit struct.
|
||||||
grep '^type _rlimit ' gen-sysinfo.go | \
|
grep '^type _rlimit ' gen-sysinfo.go | \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue