Re: How to gimplify_build a FMA_EXPR since it was removed?

2019-02-04 Thread Andrew Pinski
On Mon, Feb 4, 2019 at 3:13 PM Laurent Thévenoux wrote: > > Hi, > > Thanks for pointing this me out. Nevertheless, I’m not sure this can apply in > my case since gimple_build_call_internal() returns a gimple data type while > gimplify_build3() returns a tree data type. I’ll try to figure how fai

Re: How to gimplify_build a FMA_EXPR since it was removed?

2019-02-04 Thread Laurent Thévenoux
Hi, Thanks for pointing this me out. Nevertheless, I’m not sure this can apply in my case since gimple_build_call_internal() returns a gimple data type while gimplify_build3() returns a tree data type. I’ll try to figure how faisable is to use it in my case. For more context, see the code snipp

Re: How to gimplify_build a FMA_EXPR since it was removed?

2019-02-04 Thread Andrew Pinski
On Mon, Feb 4, 2019 at 4:47 AM Laurent Thévenoux wrote: > > Sorry for duplicate, gcc-help was not the right mailing list for this one. > > > Original Message > Subject: How to gimplify_build a FMA_EXPR since it was removed? > Date: Monday, February 04, 2019 13:28 CET > From: Laur

Re: About GSOC.

2019-02-04 Thread Tejas Joshi
Hi. Although now, I am unable to build the compiler. The build exited returning status as: DEF_INTERNAL_FLT_FN (ROUNDEVEN) has no associated built-in functions I have added the entry in fold_const_call_ss() and do not find any other place to add the case. Here is the latest patch. On Mon, 4 Feb

Re: GCC GSoC project idea to make C/C++ not promote memory_order_consume to memory_order_acquire

2019-02-04 Thread Jason Merrill
On Mon, Feb 4, 2019 at 6:06 AM Martin Jambor wrote: > > I have received the following idea for a Google Summer of Code project, > see the quotation from Paul McKenney below (I do not know myself where > exactly it is from). I consider memory consistency models a very tough > topic and so am doubl

Re: About GSOC.

2019-02-04 Thread Prathamesh Kulkarni
On Mon, 4 Feb 2019 at 21:27, Tejas Joshi wrote: > > Thanks. > > Did you add an entry for roundeven in builtins.def ? > Yes, I did. > > Find here the attached patch.diff for which I did the changes to > implement roundeven. There might be some unnecessary changes and some > necessary changes which

Re: About GSOC.

2019-02-04 Thread Tejas Joshi
Thanks. > Did you add an entry for roundeven in builtins.def ? Yes, I did. Find here the attached patch.diff for which I did the changes to implement roundeven. There might be some unnecessary changes and some necessary changes which have not been made. Regards, -Tejas On Mon, 4 Feb 2019 at 20:3

Re: About GSOC.

2019-02-04 Thread Prathamesh Kulkarni
On Mon, 4 Feb 2019 at 20:10, Tejas Joshi wrote: > > Hello. > I have implemented roundeven function in real.c as follows: (and > respective changes in real.h) It's a better idea to include all changes in patch instead of copy-pasting. Use the command: git diff > patch.diff which will create a file

Re: About GSOC.

2019-02-04 Thread Tejas Joshi
Hello. I have implemented roundeven function in real.c as follows: (and respective changes in real.h) /* Round X to nearest even integer towards zero. */ void real_roundeven (REAL_VALUE_TYPE *r, format_helper fmt, const REAL_VALUE_TYPE *x) { REAL_VALUE_TYPE t; do_fix_trunc (&t, x);

Fwd: How to gimplify_build a FMA_EXPR since it was removed?

2019-02-04 Thread Laurent Thévenoux
Sorry for duplicate, gcc-help was not the right mailing list for this one. Original Message Subject: How to gimplify_build a FMA_EXPR since it was removed? Date: Monday, February 04, 2019 13:28 CET From: Laurent Thévenoux To: gcc-h...@gcc.gnu.org CC: richard.sandif...@linaro.or

GCC GSoC project idea to make C/C++ not promote memory_order_consume to memory_order_acquire

2019-02-04 Thread Martin Jambor
Hi, I have received the following idea for a Google Summer of Code project, see the quotation from Paul McKenney below (I do not know myself where exactly it is from). I consider memory consistency models a very tough topic and so am doubly reluctant to just post it to wiki without having a mento