Re: -fdump-go-spec option does not handle redefinitions

2011-10-27 Thread Uros Bizjak
On Thu, Oct 27, 2011 at 9:29 PM, Ian Lance Taylor wrote: >> This testfile: >> >> #define aa 2 >> #undef aa >> #define aa 3 >> >> does not generate correct output with -fdump-go-spec. The result is: >> >> const _aa = 2 >> // undef _aa >> >> One would expect: >> >> const _aa = 2 >> // undef _aa >>

Re: -fdump-go-spec option does not handle redefinitions

2011-10-27 Thread Ian Lance Taylor
Uros Bizjak writes: > This testfile: > > #define aa 2 > #undef aa > #define aa 3 > > does not generate correct output with -fdump-go-spec. The result is: > > const _aa = 2 > // undef _aa > > One would expect: > > const _aa = 2 > // undef _aa > const _aa = 3 Did this come up in a real situation?