> So, do you suggest to tweak get_addr like the patch below, and remove the > mem_addr = get_addr (mem_addr); > line above and the comment?
Yes, exactly. And if that doesn't easily work, then go for your solution and add a blurb to the comment explaining why get_addr cannot be easily changed. -- Eric Botcazou