[Fwd: Doubt regarding INSN_ADDRESSES macro]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, I forgot to mention the problem faced. I am getting segmentation
fault on using INSN_ADDRESSES as mentioned below.


-------- Forwarded Message --------
From: Meena <meena@xxxxxxxxx>
Reply-to: meena@xxxxxxxxx
To: gcc-help <gcc-help@xxxxxxxxxxx>
Subject: Doubt regarding INSN_ADDRESSES macro
Date: Wed, 06 Jan 2010 14:33:35 +0530

Hi,

I have a doubt regarding INSN_ADDRESSES macro. 

As per my understanding, this macro should written the pseudo address
assigned to any instruction. However, when I am trying to use this macro
during machine dependent re-organization pass as shown below:

---snip---
  int LoopStartAddress = INSN_ADDRESSES(INSN_UID(loop->start_label));
  int LoopEndAddress = INSN_ADDRESSES(INSN_UID(loop->end_label));

  if( (LoopEndAddress - LoopStartAddress) == 1)
  {
        printf("Single Instruction");
  }
  else
  {
        printf("Multiple Instructions");
  }
---snip---

Am I using the macro correctly? Is there any constraint in using this
macro?


Thanks and Regards,
Meena



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux