diff options
author | synergydev <synergye@codefi.re> | 2013-10-17 18:16:42 -0700 |
---|---|---|
committer | synergydev <synergye@codefi.re> | 2013-10-17 18:16:42 -0700 |
commit | 61c0330cc243abf13fdd01f377a7f80bd3989eb1 (patch) | |
tree | 119b08ae76294f23e2b1b7e72ff9a06afa9e8509 /gcc-4.8/libgo/go/time/zoneinfo_read.go | |
parent | 1c712bf7621f3859c33fd3afaa61fdcaf3fdfd76 (diff) | |
download | toolchain_gcc-61c0330cc243abf13fdd01f377a7f80bd3989eb1.tar.gz toolchain_gcc-61c0330cc243abf13fdd01f377a7f80bd3989eb1.tar.bz2 toolchain_gcc-61c0330cc243abf13fdd01f377a7f80bd3989eb1.zip |
[4.8] Merge GCC 4.8.2
Change-Id: I0f1fcf69c5076d8534c5c45562745e1a37adb197
Diffstat (limited to 'gcc-4.8/libgo/go/time/zoneinfo_read.go')
-rw-r--r-- | gcc-4.8/libgo/go/time/zoneinfo_read.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.8/libgo/go/time/zoneinfo_read.go b/gcc-4.8/libgo/go/time/zoneinfo_read.go index a5a2de218..4519c9962 100644 --- a/gcc-4.8/libgo/go/time/zoneinfo_read.go +++ b/gcc-4.8/libgo/go/time/zoneinfo_read.go @@ -174,6 +174,12 @@ func loadZoneData(bytes []byte) (l *Location, err error) { } } + if len(tx) == 0 { + // Build fake transition to cover all time. + // This happens in fixed locations like "Etc/GMT0". + tx = append(tx, zoneTrans{when: -1 << 63, index: 0}) + } + // Committed to succeed. l = &Location{zone: zone, tx: tx} |