Re: [RFD] Using the 'memory constraint' trick to avoid memory clobber doesn't work

2014-10-06 Thread Richard Biener
On Fri, Oct 3, 2014 at 8:41 AM, David Wohlferd wrote: > >> You want >> >> "=m" (*( struct foo { char x[8]; } __attribute__((may_alias)) *)Dest) > > > Thank you. With your help, that worse-than-useless sample in the docs is > getting closer to something people can actually use. > > Except for one

bug report - libsanitizer compilation fail

2014-10-06 Thread Daniel Doron
Hi, I am sending this bug report here because I can't register an account in bugzilla... gcc version: gcc-linaro-4.9-2014.09 (I checked also the main repo git, the code is the same) kernel: 2.6.37 "home/daniel/Downloads/.build/src/gcc-custom/libsanitizer/sanitizer_common/sanitizer_platform_limit

Re: Autotuning parameters/heuristics within gcc - best place to start?

2014-10-06 Thread gfursin
Hello, Actually MILEPOST link is quite outdated. We now have a new python-based Collective Mind framework which includes universal multi-dimensional multi-objective auto-tuner with a web-based interface. If you are interested, you may find some optimization flags and parameters for different

Re: How to identify the type of the object being created using the new operator?

2014-10-06 Thread Swati Rathi
On Monday 06 October 2014 02:28 PM, Marc Glisse wrote: On Mon, 6 Oct 2014, Swati Rathi wrote: Statement : A *a = new B; gets translated in GIMPLE as 1. void * D.2805; 2. struct A * a; 3. D.2805 = operator new (20); 4. a = D.2805; A is the base class and B is the derived class. In statement 3,

Re: How to identify the type of the object being created using the new operator?

2014-10-06 Thread Marc Glisse
On Mon, 6 Oct 2014, Swati Rathi wrote: Statement : A *a = new B; gets translated in GIMPLE as 1. void * D.2805; 2. struct A * a; 3. D.2805 = operator new (20); 4. a = D.2805; A is the base class and B is the derived class. In statement 3, new operator is creating an object of derived class B.

How to identify the type of the object being created using the new operator?

2014-10-06 Thread Swati Rathi
Hello, Statement : A *a = new B; gets translated in GIMPLE as 1. void * D.2805; 2. struct A * a; 3. D.2805 = operator new (20); 4. a = D.2805; A is the base class and B is the derived class. In statement 3, new operator is creating an object of derived class B. By analyzing the RHS of the assig