-g and -fvar-tracking

2018-04-23 Thread Sandra Loosemore
Can somebody remind me why using -g doesn't also enable -fvar-tracking by default? At least for -g2, which is supposed to emit debug information about local variables? It seems kind of counterintuitive to me that specifying a -O option enables a pass to collect better debug information but sp

r9 on ARM32?

2018-04-23 Thread Jay K
I'm wondering what is the role of r9 on ARM32, on Linux and Android.   On Apple it is documented as long ago reserved, these days available for scratch. I've looked around a bit but haven't gotten the full answer. It is "the PIC register", I see. What does that imply? Volatile? Von-volatile? I

Re: Loop fusion.

2018-04-23 Thread Toon Moene
On 04/23/2018 01:00 PM, Richard Biener wrote: On Sun, Apr 22, 2018 at 4:27 PM, Toon Moene wrote: A few days ago there was a rant on the Fortran Standardization Committee's e-mail list about Fortran's "whole array arithmetic" being unoptimizable. An example picked at random from our weather fo

Re: style of code examples in changes.html

2018-04-23 Thread David Malcolm
On Mon, 2018-04-16 at 20:34 -0600, Martin Sebor wrote: > Hi David & Gerald, (sorry for the late response; I was offline on vacation last week) > I noticed that the coding examples in the updates I committed > to changes.html use a different formatting style than David's. > I just copied mine from

Re: bug ? : -Wpedantic -Wconversion 'short a=1; a-=1;' complaint

2018-04-23 Thread Jonathan Wakely
On 23 April 2018 at 15:11, Jason Vas Dias wrote: > Please can GCC fix this warning bug eventually - I have to wade > through code that generates thousands of them per compilation. gcc@gcc.gnu.org is for discussing development of GCC, not bugs. gcc-b...@gcc.gnu.org is for automated emails generated

bug ? : -Wpedantic -Wconversion 'short a=1; a-=1;' complaint

2018-04-23 Thread Jason Vas Dias
I really do not think a '-Wpedantic -Wconversion' warning should be generated for the following code, but it is (with GCC 6.4.1 and 7.3.1 on RHEL-7.5 Linux) : $ echo ' typedef unsigned short U16_t; static void f(void) { U16_t a = 1; a-=1; }' > t.C; $ g++ -std=c++14 -Wall -Wextra -pedant

Re: Loop fusion.

2018-04-23 Thread Richard Biener
On Mon, Apr 23, 2018 at 2:31 PM, Janne Blomqvist wrote: > On Mon, Apr 23, 2018 at 2:02 PM, Richard Biener > wrote: >> >> On Mon, Apr 23, 2018 at 12:59 PM, Bin.Cheng wrote: >> > On Sun, Apr 22, 2018 at 3:27 PM, Toon Moene wrote: >> >> A few days ago there was a rant on the Fortran Standardizatio

Re: Loop fusion.

2018-04-23 Thread Janne Blomqvist
On Mon, Apr 23, 2018 at 2:02 PM, Richard Biener wrote: > On Mon, Apr 23, 2018 at 12:59 PM, Bin.Cheng wrote: > > On Sun, Apr 22, 2018 at 3:27 PM, Toon Moene wrote: > >> A few days ago there was a rant on the Fortran Standardization > Committee's > >> e-mail list about Fortran's "whole array arit

Re: Loop fusion.

2018-04-23 Thread Richard Biener
On Mon, Apr 23, 2018 at 12:59 PM, Bin.Cheng wrote: > On Sun, Apr 22, 2018 at 3:27 PM, Toon Moene wrote: >> A few days ago there was a rant on the Fortran Standardization Committee's >> e-mail list about Fortran's "whole array arithmetic" being unoptimizable. >> >> An example picked at random from

Re: Loop fusion.

2018-04-23 Thread Richard Biener
On Sun, Apr 22, 2018 at 4:27 PM, Toon Moene wrote: > A few days ago there was a rant on the Fortran Standardization Committee's > e-mail list about Fortran's "whole array arithmetic" being unoptimizable. > > An example picked at random from our weather forecasting code: > > ZQICE(1:NPROMA,1:NF

Re: Loop fusion.

2018-04-23 Thread Bin.Cheng
On Sun, Apr 22, 2018 at 3:27 PM, Toon Moene wrote: > A few days ago there was a rant on the Fortran Standardization Committee's > e-mail list about Fortran's "whole array arithmetic" being unoptimizable. > > An example picked at random from our weather forecasting code: > > ZQICE(1:NPROMA,1:NF