This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: lvalue casting


Hi Yuri,

Maybe the -fnon-lvalue-assign flag will do what you need.

But I think you should change the code to be compliant.

(type)expr           ---becomes--->  *(type *)&expr
cond ? expr1 : expr2 ---becomes--->  *(cond ? &expr1 : &expr2)

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]