Re: [PATCH] Optimize n + 1 for automatic n array (PR c++/71537)

2017-01-11 Thread John Tytgat
On 01/10/2017 11:40 PM, Jakub Jelinek wrote: +constexpr bool +foo () +{ + constexpr int n[42] = { 1 }; + constexpr int o = n ? 1 : 0; + constexpr int p = n + 1 ? 1 : 0; + constexpr int q = "abc" + 1 ? 1 : 0; + return p + p + q == 3; +} Not o + p + q ? John.

Re: [PATCH, libgcc, ARM] __gnu_f2h_internal inaccuracy

2012-12-11 Thread John Tytgat
Ping ? Paul, seen that you've contributed fp16.c together with Sandra Loosemore, perhaps you can review this patch please ? John. In message ab11eef452...@hobbes.bass-software.com John Tytgat j...@bass-software.com wrote: __gnu_f2h_internal in libgcc converts single-precision

[PATCH, libgcc, ARM] __gnu_f2h_internal inaccuracy

2012-11-26 Thread John Tytgat
the clamping of aexp to -26 for values less than -25 as this it not necessary. After the even-odd rounding all aexp values less than -24 will result in +0. or -0. anyway. John Tytgat j...@bass-software.com * config/arm/fp16.c (__gnu_f2h_internal): Fix inaccuracy. I've got a copyright

Re: [PATCH, libgcc, ARM] __gnu_f2h_internal inaccuracy

2012-11-26 Thread John Tytgat
In message ab11eef452...@hobbes.bass-software.com John Tytgat j...@bass-software.com wrote: [...] Attached patch solves this problem. [...] This time for real. John Tytgat. -- John Tytgat, in his comfy chair at home john.tyt...@aaug.net Index: libgcc/config/arm/fp16.c

Re: [RFC, PATCH] ARM related deprecations

2012-02-28 Thread John Tytgat
if the removal of FPA is really necessary. Does FPA support prevent future ARM improvements in GCC ? John. -- John Tytgat, in his comfy chair at home BASS john.tyt...@aaug.net ARM powered, RISC OS driven

Re: [RFC, PATCH] ARM related deprecations

2011-12-09 Thread John Tytgat
following the gcc developments on the 4.6 branch and trunk) can make use of hard-float FPA output for one of its multilib flavours (see http://gccsdk.riscos.info/) and I would like to keep on supporting this in gcc 4.8. John. -- John Tytgat, in his comfy chair at home

[PATCH libcpp]: S_ISREG non-zero value does not always fit in a bool

2011-05-29 Thread John Tytgat
have commit write rights). John. 2011-05-29 John Tytgat john.tyt...@aaug.net * files.c (read_file_guts): Add test on non-zero value of S_ISREG. -- John Tytgat, in his comfy chair at home john.tyt...@aaug.net Index: libcpp/files.c