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: Regarding GCC 4.9.2 backward compatibility with 3.2.1


Thanks for your response.

Regards,
Pialy

On Fri, Aug 25, 2017 at 9:27 AM, Martin Sebor <msebor@gmail.com> wrote:
> On 08/24/2017 03:46 AM, Pialy Ghosh wrote:
>>
>> Hi All,
>>
>> Thanks for your response.
>> The code snippet is like below
>> (void *)ShMem = shmat(ShId, 0, 0);
>>
>> Error in this line: lvalue required as left operand of assignment.
>>
>>
>> From GCC 3.4 lvalue casting is removed.
>> Is there any way to solve this error without changing the code? If we
>> can use compiler 4.9.2 without any code modification.
>> Enabling this support by adding any flag, if any?
>
>
> I don't think there is a way.  At my last job years ago we migrated
> a large code base from an ancient GCC (I think 3.4.5) to a more recent
> version and this was among the errors that led to many changes.  But
> in the long run, investing in modernizing a code base pays off.
>
> Martin
>


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