[go-nuts] Re: Patch RFA: [C family frontend]: avoid weird constant values in libgo/sysinfo.go

2019-09-03 Thread Joseph Myers
On Tue, 3 Sep 2019, Ian Lance Taylor wrote:

> > * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
> > when using -fgo-dump-spec.
> 
> Ping Joseph Myers as C frontend maintainer.

This patch is OK.

-- 
Joseph S. Myers
jos...@codesourcery.com

-- 
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/alpine.DEB.2.21.1909031935420.32599%40digraph.polyomino.org.uk.


[go-nuts] Re: Patch RFA: [C family frontend]: avoid weird constant values in libgo/sysinfo.go

2019-09-03 Thread Ian Lance Taylor
On Tue, Aug 20, 2019 at 4:36 PM Ian Lance Taylor  wrote:
>
> On Mon, Aug 12, 2019 at 8:21 PM Xiangdong JI  wrote:
> >
> > 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?
>
> Per later discussion, this problem is fixed by this patch.
> Bootstrapped and ran full testsuite on x86_64-pc-linux-gnu.
>
> OK for mainline?
>
> Ian
>
>
> 2019-08-20  Ian Lance Taylor  
>
> * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand
> when using -fgo-dump-spec.

Ping Joseph Myers as C frontend maintainer.

Ian

-- 
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/CAOyqgcX7EAzTBqED%3DWNZnH5Tjcr%3DNGm1jR6KXWPGpTjqcJWdvg%40mail.gmail.com.
Index: c-family/c-cppbuiltin.c
===
--- c-family/c-cppbuiltin.c (revision 274749)
+++ c-family/c-cppbuiltin.c (working copy)
@@ -1643,6 +1643,7 @@ builtin_define_with_hex_fp_value (const
   /* This is very expensive, so if possible expand them lazily.  */
   if (lazy_hex_fp_value_count < LAZY_HEX_FP_VALUES_CNT
   && flag_dump_macros == 0
+  && flag_dump_go_spec == NULL
   && !cpp_get_options (parse_in)->traditional)
 {
   if (lazy_hex_fp_value_count == 0)


[go-nuts] Re: Patch RFA: [C family frontend]: avoid weird constant values in libgo/sysinfo.go

2019-08-20 Thread Xiangdong JI
Thanks a lot, Ian. the schedule is fine. 

On Wednesday, August 21, 2019 at 7:37:10 AM UTC+8, Ian Lance Taylor wrote:
>
> On Mon, Aug 12, 2019 at 8:21 PM Xiangdong JI  > wrote: 
> > 
> > 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? 
>
> Per later discussion, this problem is fixed by this patch. 
> Bootstrapped and ran full testsuite on x86_64-pc-linux-gnu. 
>
> OK for mainline? 
>
> Ian 
>
>
> 2019-08-20  Ian Lance Taylor  > 
>
> * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand 
> when using -fgo-dump-spec. 
>

-- 
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/3ad9946e-6a97-469c-9adf-5b8fdadfd677%40googlegroups.com.