GCC-Reordering-Optimization-Options in Os and O2 when using __builtin_expect() and documentation

2019-03-25 Thread Moritz Strübe
Hi, I have an issue with the optimization options. We are on an stm32 and it only has a prefetcher, but no cache. Thus it's nice to have linear default path. For example, we use  __builtin_expect in our asserts. Yet it seems that this does not work when using -Os. I confirmed that this is not

[PATCH] Proposed patch to fix bug id, 89796 on bugzilla

2019-03-25 Thread Nicholas Krause
Not sure if this is a correct fix to this bug found here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796 but comments are welcome. If a backtrace is required please let me know. I am just sending it to the development list for review to make sure it's OK in terms of my understanding the code.

Re: [PATCH] Proposed patch to fix bug id, 89796 on bugzilla

2019-03-25 Thread Jonathan Wakely
On Mon, 25 Mar 2019 at 12:39, Nicholas Krause wrote: > > Not sure if this is a correct fix to this bug found here: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796 but > comments are welcome. If a backtrace is required please > let me know. I am just sending it to the development list > for re

Re: [PATCH] Proposed patch to fix bug id, 89796 on bugzilla

2019-03-25 Thread nick
On 2019-03-25 9:25 a.m., Jonathan Wakely wrote: > On Mon, 25 Mar 2019 at 12:39, Nicholas Krause wrote: >> >> Not sure if this is a correct fix to this bug found here: >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796 but >> comments are welcome. If a backtrace is required please >> let me k

Re: [PATCH] Proposed patch to fix bug id, 89796 on bugzilla

2019-03-25 Thread Jonathan Wakely
On Mon, 25 Mar 2019 at 13:26, nick wrote: > > > > On 2019-03-25 9:25 a.m., Jonathan Wakely wrote: > > On Mon, 25 Mar 2019 at 12:39, Nicholas Krause wrote: > >> > >> Not sure if this is a correct fix to this bug found here: > >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796 but > >> comments

Re: [PATCH] Proposed patch to fix bug id, 89796 on bugzilla

2019-03-25 Thread nick
On 2019-03-25 9:29 a.m., Jonathan Wakely wrote: > On Mon, 25 Mar 2019 at 13:26, nick wrote: >> >> >> >> On 2019-03-25 9:25 a.m., Jonathan Wakely wrote: >>> On Mon, 25 Mar 2019 at 12:39, Nicholas Krause wrote: Not sure if this is a correct fix to this bug found here: https://gcc.

Regarding GSOC

2019-03-25 Thread Aniket Agarwalla
Hello Sir, I am interested in working with you in your shortlisted projects on Gsoc 2019 namely "Add new math.h and complex.h functions as built-ins". I would like to add that I have a good mathematical background and have been doing competitive programming for years now.So I think I can work hard

Re: Gcov Internals

2019-03-25 Thread Nathan Sidwell
On 3/22/19 7:58 AM, Sebastian Roland wrote: Hi, I am currently trying to understand the internals of Gcov. Specifically I am wondering of the following: 1) Certain Basic Blocks are instrumented with counters that are incremented during execution. During compilation a destructor is registere

Re: Warning in gcc/libiberty/dyn-string.c during build

2019-03-25 Thread Martin Sebor
On 3/23/19 9:49 PM, nick wrote: Greetings all, I just got this in my build output: ar: `u' modifier ignored since `D' is the default (see `U') configure: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok ../../gcc/libiberty/dyn-string.c: In function ‘

Gsoc

2019-03-25 Thread FuN traveller
Hello, I am Darshan jadhao ,I am a computer engineering student at Lovely Professional University, Jalandhar. And I would like to work with GNU on the project "c/c++ Not automatically promote memory". Email:- darshan18jadha...@gmail.com

Re: Warning in gcc/libiberty/dyn-string.c during build

2019-03-25 Thread Jeff Law
On 3/25/19 10:39 AM, Martin Sebor wrote: > On 3/23/19 9:49 PM, nick wrote: >> Greetings all, >> I just got this in my build output: >> ar: `u' modifier ignored since `D' is the default (see `U') >> configure: WARNING: cannot check for properly working vsnprintf when >> cross compiling, will assume

Re: Warning in gcc/libiberty/dyn-string.c during build

2019-03-25 Thread nick
On 2019-03-25 3:45 p.m., Jeff Law wrote: > On 3/25/19 10:39 AM, Martin Sebor wrote: >> On 3/23/19 9:49 PM, nick wrote: >>> Greetings all, >>> I just got this in my build output: >>> ar: `u' modifier ignored since `D' is the default (see `U') >>> configure: WARNING: cannot check for properly work

Re: [GSoC 2019] No application template?

2019-03-25 Thread Martin Jambor
Hi, On Sun, Mar 24 2019, 김규래 wrote: > Hello, > I was trying to write my application for GSoC 2019 but couldn't find an > application form for GCC. > Some other organizations seem to have GSoC application forms/templates. > The gcc GSoC wiki page doesn't mention any. > Is the application format fr

GSOC

2019-03-25 Thread nick
Greetings All, I would like to take up parallelize compilation using threads or make c++/c memory issues not automatically promote. I did ask about this before but not get a reply. When someone replies I'm just a little concerned as my writing for proposals has never been great so if someone jus

Re: GSoC

2019-03-25 Thread Martin Jambor
Hello Martin, On Sun, Mar 10 2019, Martin Emil wrote: > Hello , > I am Martin Emil last year computer engineering student from Egypt . > I came through your project in GSoC and i am very interested about it and > want to work on it. > I have strong knowledge in C,C++,Java and python programming >

Re: GSoC

2019-03-25 Thread Jakub Jelinek
On Tue, Mar 26, 2019 at 01:05:37AM +0100, Martin Jambor wrote: > On Sun, Mar 10 2019, Martin Emil wrote: > > Hello , > > I am Martin Emil last year computer engineering student from Egypt . > > I came through your project in GSoC and i am very interested about it and > > want to work on it. > > I

Re: [GSoC 2019] [extending Csmith for fuzzing OpenMp extensions]

2019-03-25 Thread Andi Kleen
sameeran joshi writes: > On 3/24/19, Andi Kleen wrote: >> On Sat, Mar 23, 2019 at 11:49:11PM +0530, sameeran joshi wrote: >>> 1) check_structured_block_conditions() >>> checks for the conditions related to a structured block >>> 1.no returns in block >> >> returns should be allowed insid