following code (extracted from WINE) fails in HEAD branch with: /home/marcus/projects/gcc/BIN/bin/gcc -c -O2 server.i server.i: In function 'f': server.i:17: internal compiler error: in do_structure_copy, at tree-ssa-structalias.c:2363 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Created attachment 9068 [details] server.i gcc -c -O2 server.i
Confirmed.
*** Bug 22015 has been marked as a duplicate of this bug. ***
*** Bug 22016 has been marked as a duplicate of this bug. ***
*** Bug 22030 has been marked as a duplicate of this bug. ***
this code is btw generic connect (fd, (struct sockaddr*)&sockaddrinvar, sizeof(sockaddrinvar)); so it triggers in every socket client program using linux glibc.
Hi. Daniel Berlin's patch of June 20 has fixed bug 22016 - a duplicate of this. Builds of GCC after this patch had been applied would successfully compile CVS postgres, the package I found that would fail. I believe this bug can be closed now.
Fixed.