Re: Byte swapping support

2017-09-14 Thread David Brown
On 12/09/17 20:56, Michael Meissner wrote: > On Tue, Sep 12, 2017 at 05:26:29PM +0200, David Brown wrote: >> On 12/09/17 16:15, paul.kon...@dell.com wrote: >>> On Sep 12, 2017, at 5:32 AM, Jürg Billeter wrote: Hi, To support applications that assume big-endian memory

Re: Byte swapping support

2017-09-14 Thread David Brown
On 14/09/17 08:22, Eric Botcazou wrote: >> And there are lots of other problems, I don't have time to document them >> all, or even remember them all. Personally, I think you are better off >> trying to fix the application to make it more portable. Fixing the >> compiler is not a magic solution t

Re: Byte swapping support

2017-09-14 Thread Eric Botcazou
> I seem to remember it being able to attach a big-endian or little-endian > label to any individual variable (rather than a type), which could be a > scaler rather than a struct. So it was a bit more flexible than gcc. Well, the only thing I see in the documentation for "Byte Ordering" is the r

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Richard Biener
On Wed, Sep 13, 2017 at 5:08 PM, Allan Sandfeld Jensen wrote: > On Mittwoch, 13. September 2017 15:46:09 CEST Jakub Jelinek wrote: >> On Wed, Sep 13, 2017 at 03:41:19PM +0200, Richard Biener wrote: >> > On its own -O3 doesn't add much (some loop opts and slightly more >> > aggressive inlining/unro

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Richard Biener
On Wed, Sep 13, 2017 at 6:11 PM, Nikos Chantziaras wrote: > On 12/09/17 16:57, Wilco Dijkstra wrote: >> >> [...] As a result users are >> required to enable several additional optimizations by hand to get good >> code. >> Other compilers enable more optimizations at -O2 (loop unrolling in LLVM >>

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Markus Trippelsdorf
On 2017.09.14 at 11:57 +0200, Richard Biener wrote: > On Wed, Sep 13, 2017 at 6:11 PM, Nikos Chantziaras wrote: > > On 12/09/17 16:57, Wilco Dijkstra wrote: > >> > >> [...] As a result users are > >> required to enable several additional optimizations by hand to get good > >> code. > >> Other comp

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Michael Clark
> On 14 Sep 2017, at 3:06 AM, Allan Sandfeld Jensen wrote: > > On Dienstag, 12. September 2017 23:27:22 CEST Michael Clark wrote: >>> On 13 Sep 2017, at 1:57 AM, Wilco Dijkstra wrote: >>> >>> Hi all, >>> >>> At the GNU Cauldron I was inspired by several interesting talks about >>> improving G

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Martin Liška
On 09/14/2017 12:07 PM, Markus Trippelsdorf wrote: > On 2017.09.14 at 11:57 +0200, Richard Biener wrote: >> On Wed, Sep 13, 2017 at 6:11 PM, Nikos Chantziaras wrote: >>> On 12/09/17 16:57, Wilco Dijkstra wrote: [...] As a result users are required to enable several additional optimi

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Richard Biener
On Thu, Sep 14, 2017 at 12:18 PM, Martin Liška wrote: > On 09/14/2017 12:07 PM, Markus Trippelsdorf wrote: >> On 2017.09.14 at 11:57 +0200, Richard Biener wrote: >>> On Wed, Sep 13, 2017 at 6:11 PM, Nikos Chantziaras wrote: On 12/09/17 16:57, Wilco Dijkstra wrote: > > [...] As a resu

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Bin.Cheng
On Thu, Sep 14, 2017 at 11:24 AM, Richard Biener wrote: > On Thu, Sep 14, 2017 at 12:18 PM, Martin Liška wrote: >> On 09/14/2017 12:07 PM, Markus Trippelsdorf wrote: >>> On 2017.09.14 at 11:57 +0200, Richard Biener wrote: On Wed, Sep 13, 2017 at 6:11 PM, Nikos Chantziaras wrote: >

Re: Byte swapping support

2017-09-14 Thread David Brown
On 14/09/17 11:30, Eric Botcazou wrote: >> I seem to remember it being able to attach a big-endian or little-endian >> label to any individual variable (rather than a type), which could be a >> scaler rather than a struct. So it was a bit more flexible than gcc. > > Well, the only thing I see in

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Martin Liška
On 09/14/2017 12:37 PM, Bin.Cheng wrote: > On Thu, Sep 14, 2017 at 11:24 AM, Richard Biener > wrote: >> On Thu, Sep 14, 2017 at 12:18 PM, Martin Liška wrote: >>> On 09/14/2017 12:07 PM, Markus Trippelsdorf wrote: On 2017.09.14 at 11:57 +0200, Richard Biener wrote: > On Wed, Sep 13, 2017

Re: How to configure a bi-arch PowerPC GCC?

2017-09-14 Thread Sebastian Huber
On 13/09/17 15:11, Andreas Schwab wrote: On Jul 20 2017, Sebastian Huber wrote: Ok, so why do I get a "error: unrecognizable insn:"? How can I debug a message like this: (insn 12 11 13 2 (set (reg:CCFP 126) (compare:CCFP (reg:TF 123) (reg:TF 124))) "test-v0.i":5 -1

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Richard Biener
On Thu, Sep 14, 2017 at 12:42 PM, Martin Liška wrote: > On 09/14/2017 12:37 PM, Bin.Cheng wrote: >> On Thu, Sep 14, 2017 at 11:24 AM, Richard Biener >> wrote: >>> On Thu, Sep 14, 2017 at 12:18 PM, Martin Liška wrote: On 09/14/2017 12:07 PM, Markus Trippelsdorf wrote: > On 2017.09.14 at

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Markus Trippelsdorf
On 2017.09.14 at 14:48 +0200, Richard Biener wrote: > On Thu, Sep 14, 2017 at 12:42 PM, Martin Liška wrote: > > On 09/14/2017 12:37 PM, Bin.Cheng wrote: > >> On Thu, Sep 14, 2017 at 11:24 AM, Richard Biener > >> wrote: > >>> On Thu, Sep 14, 2017 at 12:18 PM, Martin Liška wrote: > On 09/14/2

Re: RFC: Improving GCC8 default option settings

2017-09-14 Thread Richard Biener
On Thu, Sep 14, 2017 at 3:08 PM, Markus Trippelsdorf wrote: > On 2017.09.14 at 14:48 +0200, Richard Biener wrote: >> On Thu, Sep 14, 2017 at 12:42 PM, Martin Liška wrote: >> > On 09/14/2017 12:37 PM, Bin.Cheng wrote: >> >> On Thu, Sep 14, 2017 at 11:24 AM, Richard Biener >> >> wrote: >> >>> On T

Infering that the condition of a for loop is initially true?

2017-09-14 Thread Niels Möller
This is more of a question than a bug report, so I'm trying to send it to the list rather than filing a bugzilla issue. I think it's quite common to write for- and while-loops where the condition is always initially true. A simple example might be double average (const double *a, size_t n) { d

Re: Infering that the condition of a for loop is initially true?

2017-09-14 Thread Marc Glisse
On Thu, 14 Sep 2017, Niels Möller wrote: This is more of a question than a bug report, so I'm trying to send it to the list rather than filing a bugzilla issue. I think it's quite common to write for- and while-loops where the condition is always initially true. A simple example might be doubl

Re: Infering that the condition of a for loop is initially true?

2017-09-14 Thread Geza Herman
Hi, On 09/14/2017 09:50 PM, Marc Glisse wrote: On Thu, 14 Sep 2017, Niels Möller wrote: This is more of a question than a bug report, so I'm trying to send it to the list rather than filing a bugzilla issue. I think it's quite common to write for- and while-loops where the condition is alway

Re: Infering that the condition of a for loop is initially true?

2017-09-14 Thread Jeff Law
On 09/14/2017 01:28 PM, Niels Möller wrote: > This is more of a question than a bug report, so I'm trying to send it > to the list rather than filing a bugzilla issue. > > I think it's quite common to write for- and while-loops where the > condition is always initially true. A simple example might

gcc-7-20170914 is now available

2017-09-14 Thread gccadmin
Snapshot gcc-7-20170914 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/7-20170914/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 7 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-7