This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cc and gcc compilers
- From: "Nguyen, KhaiDinh" <KhaiDinh dot Nguyen at ato dot gov dot au>
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>, "'bug-gcc at gnu dot org'" <bug-gcc at gnu dot org>, "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Fri, 17 Oct 2003 16:41:25 +1000
- Subject: cc and gcc compilers
****************************************************************
IMPORTANT
The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. Any review, re-transmission, disclosure dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may result in severe penalties. If you have received this e-mail in error please notify the Privacy Hotline of the Australian Taxation Office, telephone 13 28 69 and delete all copies of this transmission together with any attachments.
****************************************************************
Hi,
My name is KhaiDinh from Australia (down-under country).
We are migating many C programs from (old) NCR Unix system to AIX.
These C programs are non-ansi standard and compiled by using NCR unix cc
compiler.
In the new system AIX, we have problems of compiling these C programs when
using gcc. It displays error messages because these C programs are
"NON-ANSI"; eg. variable declared after statements/variable assignments.
My question is that is there any way to compile our NON-ANSI C programs by
using gcc, eg any option to disable -ansi flag....?
Is there any other C compilers can be used to compile our NON-ANSI C
programs?
We don't have time & resources to modify 500 C programs to make them conform
to ANSI standard.
I'd be apreciated if you can help us. I'm waiting for your advise and help.
Many thanks.
Regards,
KhaiDinh Nguyen