Re: ChangeLog files: 8 spaces vs. a tabular

2018-08-27 Thread Martin Liška
On 08/27/2018 03:54 PM, Jakub Jelinek wrote: > On Mon, Aug 27, 2018 at 03:37:07PM +0200, Martin Liška wrote: > Recently I've noticed that I have wrongly set up my editor and > I installed quite some changes where my changelog entries > have 8 spaces instead of a tabular. > > I g

RE: Transactional memory test case reduction failure

2018-08-27 Thread Blower, Melanie
There's probably something wrong with your "check.sh" causing it to not return 0. You need to debug the script. > -Original Message- > From: sameeran joshi [mailto:gsocsamee...@gmail.com] > Sent: Sunday, August 26, 2018 2:38 PM > To: gcc@gcc.gnu.org > Cc: Shubham Narlawar > Subject: Tr

RE: Transactional memory test case reduction failure

2018-08-27 Thread Blower, Melanie
The –Wall option probably doesn’t make a difference, warning can be issued and the return code is still 0. I use creduce a lot. Usually I have a “reference” compilation as well as the failure compilation. In your case, possibly, the reference compilation would be to NOT use the –fsquiggle opt

Re: Transactional memory test case reduction failure

2018-08-27 Thread Shubham Narlawar
Here is the file. I am getting some error in sending .sh file, so I send it as below. #!/bin/bash gcc -fgnu-tm testcase.c > out.txt 2>&1 &&\ if grep 'internal compiler error' out.txt then exit 0 else exit 1 fi #! gcc -c -fgnu-tm testcase.c On Mon, Aug 27, 2018 at 8:59 PM Blower,

RE: Transactional memory test case reduction failure

2018-08-27 Thread Blower, Melanie
I’m going to let you take it from here. I added notes in the bottom of previous message showing you how I would do it. From: Shubham Narlawar [mailto:gsocshub...@gmail.com] Sent: Monday, August 27, 2018 11:35 AM To: Blower, Melanie Cc: sameeran joshi ; gcc@gcc.gnu.org Subject: Re: Transactional

Re: Transactional memory test case reduction failure

2018-08-27 Thread Peter Bergner
On 8/27/18 10:35 AM, Shubham Narlawar wrote: > Here is the file. I am getting some error in sending .sh file, so I send it > as below. > > #!/bin/bash > gcc -fgnu-tm testcase.c > out.txt 2>&1 &&\ > if > grep 'internal compiler error' out.txt > then > exit 0 > else > exit 1 > fi When I

Re: Transactional memory test case reduction failure

2018-08-27 Thread sameeran joshi
running commands : chmod u+x bash check.sh echo $? It's still giving output as 1,I included the -squiggle option still,it dosen't work for me? any Ideas? #!/bin/bash CC="-I/home/swamimauli/upload/csmith/runtime/" OPTS="-Wall" TEST="bug.c" gcc ${CC} ${OPTS} ${TEST} 2>&1 | grep 'internal compiler

Re: Transactional memory test case reduction failure

2018-08-27 Thread Peter Bergner
On 8/27/18 11:42 AM, sameeran joshi wrote: > It's still giving output as 1,I included the -squiggle option still,it > dosen't work for me? any Ideas? > > #!/bin/bash > > CC="-I/home/swamimauli/upload/csmith/runtime/" > OPTS="-Wall" > TEST="bug.c" > gcc ${CC} ${OPTS} ${TEST} 2>&1 | grep 'internal

Re: Transactional memory test case reduction failure

2018-08-27 Thread sameeran joshi
On 8/27/18, Peter Bergner wrote: > On 8/27/18 11:42 AM, sameeran joshi wrote: >> It's still giving output as 1,I included the -squiggle option still,it >> dosen't work for me? any Ideas? >> >> #!/bin/bash >> >> CC="-I/home/swamimauli/upload/csmith/runtime/" >> OPTS="-Wall" >> TEST="bug.c" >> gcc $

Re: Transactional memory test case reduction failure

2018-08-27 Thread Peter Bergner
On 8/27/18 12:13 PM, sameeran joshi wrote: > On 8/27/18, Peter Bergner wrote: >> Well what does: >> >> linux% gcc -I/home/swamimauli/upload/csmith/runtime/ -Wall bug.c > > running above command on terminal,gives many warnings and asks for the > -fgnu-tm option. > > bug.c:1091:2: error: ‘__tran

Re: Transactional memory test case reduction failure

2018-08-27 Thread sameeran joshi
On 8/27/18, Peter Bergner wrote: > On 8/27/18 12:13 PM, sameeran joshi wrote: >> On 8/27/18, Peter Bergner wrote: >>> Well what does: >>> >>> linux% gcc -I/home/swamimauli/upload/csmith/runtime/ -Wall bug.c >> >> running above command on terminal,gives many warnings and asks for the >> -fgnu-tm

Re: Transactional memory test case reduction failure

2018-08-27 Thread Peter Bergner
On 8/27/18 1:20 PM, sameeran joshi wrote: > On 8/27/18, Peter Bergner wrote: >> On 8/27/18 12:13 PM, sameeran joshi wrote: >>> On 8/27/18, Peter Bergner wrote: Well what does: linux% gcc -I/home/swamimauli/upload/csmith/runtime/ -Wall bug.c >>> >>> running above command on termin

Re: Transactional memory test case reduction failure

2018-08-27 Thread sameeran joshi
Thank you people for your help and investing time. I have successfully reduces file and filed bug. Thanks, Sameeran Joshi On 8/27/18, Peter Bergner wrote: > On 8/27/18 1:20 PM, sameeran joshi wrote: >> On 8/27/18, Peter Bergner wrote: >>> On 8/27/18 12:13 PM, sameeran joshi wrote: On 8/27/

Feature Request: sizeof/typeof/offsetof for bit-fields

2018-08-27 Thread Daurnimator
I'm writing a binding generator and would love a way to get the size, type, and offset of bit fields of an arbitrary struct. To implement, it appears that 'bit_position' in tree.c has the information required. As a stranger to GCC development, what is the process to get such an extension? Daurn.

ChangeLog files: 8 spaces vs. a tabular

2018-08-27 Thread Martin Liška
Hi. Recently I've noticed that I have wrongly set up my editor and I installed quite some changes where my changelog entries have 8 spaces instead of a tabular. I grepped that for all ChangeLog files (ignoring ChangeLog-{year} files) and I see: ./gcc/ChangeLog :40 ./libgcc/Change

Re: ChangeLog files: 8 spaces vs. a tabular

2018-08-27 Thread Alexander Monakov
On Mon, 27 Aug 2018, Martin Liška wrote: > Hi. > > Recently I've noticed that I have wrongly set up my editor and > I installed quite some changes where my changelog entries > have 8 spaces instead of a tabular. > > I grepped that for all ChangeLog files (ignoring ChangeLog-{year} files) > and I

Re: ChangeLog files: 8 spaces vs. a tabular

2018-08-27 Thread Jakub Jelinek
On Mon, Aug 27, 2018 at 04:00:38PM +0300, Alexander Monakov wrote: > On Mon, 27 Aug 2018, Martin Liška wrote: > > > Hi. > > > > Recently I've noticed that I have wrongly set up my editor and > > I installed quite some changes where my changelog entries > > have 8 spaces instead of a tabular. > >

Re: ChangeLog files: 8 spaces vs. a tabular

2018-08-27 Thread Martin Liška
On 08/27/2018 03:11 PM, Jakub Jelinek wrote: > On Mon, Aug 27, 2018 at 04:00:38PM +0300, Alexander Monakov wrote: >> On Mon, 27 Aug 2018, Martin Liška wrote: >> >>> Hi. >>> >>> Recently I've noticed that I have wrongly set up my editor and >>> I installed quite some changes where my changelog entri

Re: ChangeLog files: 8 spaces vs. a tabular

2018-08-27 Thread Jakub Jelinek
On Mon, Aug 27, 2018 at 03:37:07PM +0200, Martin Liška wrote: > >>> Recently I've noticed that I have wrongly set up my editor and > >>> I installed quite some changes where my changelog entries > >>> have 8 spaces instead of a tabular. > >>> > >>> I grepped that for all ChangeLog files (ignoring C