------- Comment #39 from olga at gcc dot gnu dot org 2008-01-21 13:33 ------- (In reply to comment #38) > With patch form comments #11 and #31, the executable for > gcc.dg/struct/wo_prof_mult_field_peeling.c segfault with -m64. I have used the > 32 bit mode for -fprofile-generate, run the executable, and use -m64 for > -fprofile-use. wo_prof_mult_field_peeling_db.c is the code from comment #34.
Yes... The assembly for wo_prof_mult_field_peeling.c looks "unrolled". But I have number of question to you. Why are you running wo_prof_mult_field_peeling.c with profiling? At least, it was not intended to be executed this way. If it is, then it is a bug in struct-reorg.exp. The other question is whether the failing tests that should run *with* profiling, like w_prof_gloval_var.c and w_prof_local_var.c, fail after compilation with -fprofile-generate or after second compilation with -fprofile-use. Thanks a lot for debugging, Olga -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34483