This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/16194] [3.4/4.0/4.1/4.2 Regression] global register with inline-asm and clobered
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Feb 2006 21:56:29 -0000
- Subject: [Bug inline-asm/16194] [3.4/4.0/4.1/4.2 Regression] global register with inline-asm and clobered
- References: <bug-16194-8804@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from amylaar at gcc dot gnu dot org 2006-02-01 21:56 -------
(In reply to comment #15)
> I'm not surprised that decl_overlaps_hard_reg_set_p is only used in
> config/cris/cris.c or that it may seem limited in its implementation.
> It's just a convenience function invented for it's current use.
> It's a recent change too, see ChangeLog-2005. Nice to hear it has
> potential for other uses too. Having it scan subexpressions seems
> useful. Don't forget to update the head comment, adding
> "... or a sub-expression referring to an asm-declared register"
> or something to the effect of describing the extended functionality.
>
Since we are no longer scanning only decls, and I need to return a tree so
that the caller can tell where the problem is,I have named the function that
does the scan differently. See:
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00087.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16194