https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109031

--- Comment #11 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Martin Liška from comment #10)
> What about:
> 
> /usr/bin/gcc -w -Werror=implicit bug892.c -o one.exe
>       && (./one.exe 1 | fgrep "checksum after hashing g_50 :" > 1) 
>       && /home/dcb36/gcc/results/bin/gcc -w -O2 -fno-strict-aliasing bug892.c 
>  -o two.exe
>       && (./two.exe 1 | fgrep "checksum after hashing g_50 :" > 2) 
> 
>       if test $? != 0; then 
>               exit 1
> 
>       diff 1 2; 
>       if test $? = 0; then 
>               exit 1
>       fi
>               exit 0
> 
> ?

Thanks for the idea, but no further forward ;-|. Getting to the diff
is easy. Getting the return code of 1 from the diff out to the calling
perl program converted to 0 is proving to be a challenge.

$ diff 1 2
1c1
< ...checksum after hashing g_50 : 646CF84D
---
> ...checksum after hashing g_50 : C21BF3F9
$ echo $?
1
$

Reply via email to