This is the mail archive of the
mailing list for the GCC project.
New gcc hacker: problems with NOTE_LOOP RTL notes
- From: Brett Boren <borenb at uah dot edu>
- To: gcc at gcc dot gnu dot org
- Date: 02 May 2002 16:55:04 -0500
- Subject: New gcc hacker: problems with NOTE_LOOP RTL notes
Hello and many thanks to all of you,
I am a grad student working with modifying GCC to generate instrumented
code. Right now I'm trying to generate traces into the assembler for
when loops are entered, iterated, and ended. This seemed an easy hack to
place my code within the case statement found in final.c:
final_scan_insn and when I run with any optimization, this hack works
just fine. However, unoptimized code leaves the trace notes in very
wrong places, most notably the loop end notes are placed in between a
jmp and a label. ex.
# loop end
# instrumentation code
Am I approaching this correctly by waiting until the final pass to
insert these trace instructions? Should I be trying to place these
instructions higher up in the RTL or should this work? Thank you for any
help you can provide.
Graduate Research Assistant
University of Alabama in Huntsville