Created attachment 23146 [details] reduced testcase Compiler output: $ gcc -Os -fmodulo-sched -fcompare-debug testcase.c gcc: error: testcase.c: -fcompare-debug failure (length) $ diff testcase.*gkd 25a26 > (note# 0 0 NOTE_INSN_DELETED) Tested revisions: r169326 - fail r169287 - fail r169257 - OK
It is caused by revision 169260: http://gcc.gnu.org/ml/gcc-cvs/2011-01/msg00884.html
Mine. Patch reverted in revision 169429, testing revised patch at http://gcc.gnu.org/ml/gcc-patches/2011-01/msg02260.html
Author: aoliva Date: Wed Feb 2 04:31:35 2011 New Revision: 169513 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169513 Log: gcc/ChangeLog: PR debug/47498 PR debug/47501 PR debug/45136 PR debug/45130 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary debug insns. (no_real_insns_p, schedule_block, set_priorities): Drop special treatment of boundary debug insns. * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns. * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns. * sched-int.h (DEBUG_INSN_SCHED_P): Remove. (BOUNDARY_DEBUG_INSN_P): Likewise. (SCHEDULE_DEBUG_INSN_P): Likewise. * sched-rgn.c (init_ready_list): Drop special treatment of boundary debug insns. * final.c (rest_of_clean_state): Clear notes' BB. gcc/testsuite/ChangeLog: PR debug/47498 PR debug/47501 PR debug/45136 PR debug/45130 * debug/pr47498.c: New. * debug/pr47501.c: New. Added: trunk/gcc/testsuite/gcc.dg/debug/pr47498.c trunk/gcc/testsuite/gcc.dg/debug/pr47501.c Modified: trunk/gcc/ChangeLog trunk/gcc/final.c trunk/gcc/haifa-sched.c trunk/gcc/sched-deps.c trunk/gcc/sched-ebb.c trunk/gcc/sched-int.h trunk/gcc/sched-rgn.c trunk/gcc/testsuite/ChangeLog
Fixed
Thank you for quick fix. I tested that patch on top of r169501 (I tested it before with r169450, but deleted the results...) - bootstrap with yes,rtl,df checking went fine, check with RUNTESTFLAGS="--target_board=unix/-fschedule-insns2/-fsched2-use-superblocks/-fmodulo-sched/-fcompare-debug" showed no ICEs, -fcompare-debug failures or exec failures caused by that patch. (languages=c,c++,lto,fortran)