Hi,

Thanks for the heads-up.

I also see what you're seeing for my build, and this is a mystery for me as
well.

The libgo makefile generates "sysinfo.go" by running the C compiler on a
source that includes various system headers, so as to capture Go versions
of C-specific constants and types. This is done using the
-fdump-go-spec=<outfile> command line option.

I ran GCC under the debugger and looked at the value for FLT128_MAX at the
point where the go-dumpspec code executes, and it is indeed "1.1", so I
don't think this is a bug in the Go-specific code.  What's more surprising
is that when I start with the same compile command used to generate the Go
file, remove "-fdump-go-spec, and add in "-E -dM", I do see a correct
definition for FLT128_MAX (very weird).

Given that Go doesn't use float128, I'm not sure it will really matter a
whole lot in the long run, but it is a surprising oddity.

Thanks, Than

On Mon, Aug 12, 2019 at 11:21 PM Xiangdong JI <xiangdong...@arm.com> wrote:

> Hello,
>
> The .go files generated during building gccgo seem to have a few constants
> with weird values, for example:
>
> // sysinfo.go (on x86-64, latest gcc-9 trunk)
>
> const ___FLT128_MAX__ = 1.1
> const ___FLT32X_DENORM_MIN__ = 1.1
>
> as a comparison, gollvm generates expected values.
> Could it be caused by incorrect building setting?
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/b808ccdd-023c-4b95-9db0-2a00b3435735%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/b808ccdd-023c-4b95-9db0-2a00b3435735%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2BUr55EDGqJFzBCW5etNeyzsSNpjzxA2x_goe9NxsEjT0Xuk2Q%40mail.gmail.com.

Reply via email to