This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13506] tcpsm.c:263: internal compiler error: Segmentation fault (WinXP / Cygwin / arm-elf-gcc 3.4)
- From: "capiman at clibb dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2003 23:32:53 -0000
- Subject: [Bug optimization/13506] tcpsm.c:263: internal compiler error: Segmentation fault (WinXP / Cygwin / arm-elf-gcc 3.4)
- References: <20031229224200.13506.capiman@clibb.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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