Re: [PATCH] gcc/toplev.c: Avoid to close 'asm_out_file' when it is 'stdout'

2014-07-25 Thread Chen Gang
On 07/26/2014 05:12 AM, Jeff Law wrote: > On 07/23/14 16:17, Chen Gang wrote: >> On 07/23/2014 11:44 AM, Jeff Law wrote: >>> On 07/21/14 09:47, Chen Gang wrote: 'asm_out_file' may be 'stdout', so need check this case before close it. Or 'stdout' may be closed -- since need not open

Re: [PATCH] gcc/toplev.c: Avoid to close 'asm_out_file' when it is 'stdout'

2014-07-25 Thread Jeff Law
On 07/23/14 16:17, Chen Gang wrote: On 07/23/2014 11:44 AM, Jeff Law wrote: On 07/21/14 09:47, Chen Gang wrote: 'asm_out_file' may be 'stdout', so need check this case before close it. Or 'stdout' may be closed -- since need not open 'stdout', either need not close it. ChangLog: * topleve

Re: [PATCH] gcc/toplev.c: Avoid to close 'asm_out_file' when it is 'stdout'

2014-07-23 Thread Chen Gang
On 07/23/2014 11:44 AM, Jeff Law wrote: > On 07/21/14 09:47, Chen Gang wrote: >> 'asm_out_file' may be 'stdout', so need check this case before close it. >> Or 'stdout' may be closed -- since need not open 'stdout', either need >> not close it. >> >> ChangLog: >> >>* topleve.c (finalize): Avoid

Re: [PATCH] gcc/toplev.c: Avoid to close 'asm_out_file' when it is 'stdout'

2014-07-23 Thread Jeff Law
On 07/21/14 09:47, Chen Gang wrote: 'asm_out_file' may be 'stdout', so need check this case before close it. Or 'stdout' may be closed -- since need not open 'stdout', either need not close it. ChangLog: * topleve.c (finalize): Avoid to close 'asm_out_file' when it is 'stdout'. What exact

[PATCH] gcc/toplev.c: Avoid to close 'asm_out_file' when it is 'stdout'

2014-07-21 Thread Chen Gang
'asm_out_file' may be 'stdout', so need check this case before close it. Or 'stdout' may be closed -- since need not open 'stdout', either need not close it. ChangLog: * topleve.c (finalize): Avoid to close 'asm_out_file' when it is 'stdout'. Signed-off-by: Chen Gang --- gcc/toplev.c | 2 +