4.3.1 compiler crash at function call

Kranthi Kiran kranthi.d@redpinesignals.com
Tue Sep 16 04:57:00 GMT 2008


Hi,

    Iam porting cross compiler from gcc 3.3 to gcc 4.3.1.

    I have tried to compile a simple program whose preprocessor output 
is as follows

            # 1 "test.c"
            # 1 "<built-in>"
            # 1 "<command-line>"
            # 1 "test.c"

            int add(a,b)
            {
                 return (a+b);
            }

            int main()
            {
                int a,b,c;
                 a=1;
                 b=2;
                 c=add(a,b);
                return 0;
            }

    The compiler is giving internal compiler error as follows
                rpine-elf32-gcc: Internal error: Segmentation fault 
(program cc1)
                Please submit a full bug report.
                See <http://gcc.gnu.org/bugs.html> for instructions.


-- 

Thanks & Regards,
D.kranthi kiran




More information about the Gcc-help mailing list