Re: Confused about code/comment in tree.c:build2

2020-01-30 Thread Richard Biener
On Fri, 31 Jan 2020, Bin.Cheng wrote: > Hi, > In tree.c:build2 there is following code/comment: > > if ((code == MINUS_EXPR || code == PLUS_EXPR || code == MULT_EXPR) > && arg0 && arg1 && tt && POINTER_TYPE_P (tt) > /* When sizetype precision doesn't match that of pointers >

Confused about code/comment in tree.c:build2

2020-01-30 Thread Bin.Cheng
Hi, In tree.c:build2 there is following code/comment: if ((code == MINUS_EXPR || code == PLUS_EXPR || code == MULT_EXPR) && arg0 && arg1 && tt && POINTER_TYPE_P (tt) /* When sizetype precision doesn't match that of pointers we need to be able to build explicit extensions or

Re: SSA Iterators

2020-01-30 Thread Nicholas Krause
On 1/30/20 11:25 AM, Richard Biener wrote: On January 30, 2020 5:05:09 PM GMT+01:00, Martin Sebor wrote: On 1/30/20 2:59 AM, Jonathan Wakely wrote: On Thu, 30 Jan 2020, 05:44 Nicholas Krause wrote: Greetings, I was looking into starting to cleaning up the SSA trees for various reasons and

Re: SSA Iterators

2020-01-30 Thread Richard Biener
On January 30, 2020 5:05:09 PM GMT+01:00, Martin Sebor wrote: >On 1/30/20 2:59 AM, Jonathan Wakely wrote: >> On Thu, 30 Jan 2020, 05:44 Nicholas Krause wrote: >>> >>> Greetings, >>> >>> I was looking into starting to cleaning up the SSA trees for various >>> reasons and iterators >>> seem to be th

Re: SSA Iterators

2020-01-30 Thread Martin Sebor
On 1/30/20 2:59 AM, Jonathan Wakely wrote: On Thu, 30 Jan 2020, 05:44 Nicholas Krause wrote: Greetings, I was looking into starting to cleaning up the SSA trees for various reasons and iterators seem to be the easiest to do. I searched the list to see if someone mentioned it before and I ran a

Re: [musl] musl, glibc and ideal place for __stack_chk_fail_local

2020-01-30 Thread Segher Boessenkool
On Thu, Jan 30, 2020 at 08:37:40AM -0500, Rich Felker wrote: > On Thu, Jan 30, 2020 at 06:33:51AM -0600, Segher Boessenkool wrote: > > On Sat, Jan 25, 2020 at 10:54:24AM -0500, Rich Felker wrote: > > > > To support smash stack protection gcc emits __stack_chk_fail > > > > calls on all targets. On t

Re: [musl] musl, glibc and ideal place for __stack_chk_fail_local

2020-01-30 Thread Rich Felker
On Thu, Jan 30, 2020 at 06:33:51AM -0600, Segher Boessenkool wrote: > On Sat, Jan 25, 2020 at 10:54:24AM -0500, Rich Felker wrote: > > > To support smash stack protection gcc emits __stack_chk_fail > > > calls on all targets. On top of that gcc emits __stack_chk_fail_local > > > calls at least on i

Re: [musl] musl, glibc and ideal place for __stack_chk_fail_local

2020-01-30 Thread Segher Boessenkool
On Sat, Jan 25, 2020 at 10:54:24AM -0500, Rich Felker wrote: > > To support smash stack protection gcc emits __stack_chk_fail > > calls on all targets. On top of that gcc emits __stack_chk_fail_local > > calls at least on i386 and powerpc: (Only on 32-bit -fPIC -msecure-plt, for Power). > There i

Re: SSA Iterators

2020-01-30 Thread Jonathan Wakely
On Thu, 30 Jan 2020, 05:44 Nicholas Krause wrote: > > Greetings, > > I was looking into starting to cleaning up the SSA trees for various > reasons and iterators > seem to be the easiest to do. I searched the list to see if someone > mentioned it before > and I ran across this: > https://gcc.gnu.or