http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51784
--- Comment #25 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-14 11:33:20 UTC --- > I don't think this is a regression - I think it's been there for(ever/long > time). I don't want to waste time arguing about the regression tag, but gcc.dg/tree-prof/pr44777.c and its avatars gcc.c-torture/execute/comp-goto-2.c and gcc.c-torture/execute/920501-7.c pass (I do not say work) with -fprofile-generate -D_PROFILE_GENERATE -m32 for gcc 4.6.2 or for trunk with r182920 reverted on x86_64-apple-darwin10 (i.e. no pr44777 on this platform). > I guess xfailing is the thing to do for now ... I hate xfail in this kind of situation: I see it as a hypocritical way to say "won't fix". Note the test passes with -fno-pic, so I'ld prefer an additional option -fno-pic for darwin. BTW what happens on i?86-linux-* with -fpic?