Re: Transactional memory test case reduction failure

2018-08-29 Thread Jonathan Wakely
On Mon, 27 Aug 2018 at 16:35, 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

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/

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
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 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 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 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
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 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 Blower, Melanie
ailto:melanie.blo...@intel.com>> Cc: gcc@gcc.gnu.org<mailto:gcc@gcc.gnu.org>; Shubham Narlawar mailto:gsocshub...@gmail.com>> Subject: Re: Transactional memory test case reduction failure Hi,thanks for helping. Below is the text file contain the shell script . I tried removing th

Re: Transactional memory test case reduction failure

2018-08-27 Thread Shubham Narlawar
sfully on the first line – I use timeout because sometimes > the compiler goes into an infinite loop – the 2nd line requires the > compiler to issue an internal error as the first line of output. Grep > returns 0 if the pattern is found > > > > > > > > *From:* sameer

RE: Transactional memory test case reduction failure

2018-08-27 Thread Blower, Melanie
the pattern is found From: sameeran joshi [mailto:gsocsamee...@gmail.com] Sent: Monday, August 27, 2018 11:13 AM To: Blower, Melanie Cc: gcc@gcc.gnu.org; Shubham Narlawar Subject: Re: Transactional memory test case reduction failure Hi,thanks for helping. Below is the text file contain the shell

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