This is the mail archive of the gcc-bugs@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]

[Bug optimization/13506] tcpsm.c:263: internal compiler error: Segmentation fault (WinXP / Cygwin / arm-elf-gcc 3.4)


------- Additional Comments From capiman at clibb dot de  2003-12-29 23:32 -------
I narrowed the error to following statement:

ntohl(th->th_ack);

When ntohl is called, compiler is crashing).

ntohl is defined as __byte_swap4(x), which is again defined as

#define __byte_swap4(val)           \
    (((val & 0xff) << 24) |         \
     ((val & 0xff00) << 8) |        \
     ((val & 0xff0000) >> 8) |      \
     ((val & 0xff000000) >> 24))    

I tried extracting the parts from the big environment out to a single C file, 
but then i can compile with a segmentation fault. But wasn't able to use the 
same parameter when calling gcc.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13506


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