Tip of they day..
Put this into a script where you've unpacked your GCC documentation from the tarball.
---------------------------
echo "<html><head></head><body>" >tmp.htm
echo "<p>Your results..." >>tmp.htm
grep -l -i "$1" *.html | sed 's@\(.*\)@<br><a href="\1">\1<a>@' >> tmp.htm
echo "</body></html>" >tmp.htm
---------------------------
This will create a (more-or-less well-formed) html page with your search results. Since the GCC documentation pages end in extension ".html", this page should be isolated from the real documentation.
Then you can use your browser to load up tmp.htm and view each of the resulting pages.
Enjoy,
--Eljay