This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ping some of my patches
On Sun, Sep 12, 2004 at 03:19:28PM -0700, Andrew Pinski wrote:
> @@ -946,8 +945,12 @@ make_decl_rtl (tree decl)
> /* Now handle ordinary static variables and functions (in memory).
> Also handle vars declared register invalidly. */
>
> - if (name[0] == '*' && (reg_number >= 0 || reg_number == -3))
> - error ("%Jregister name given for non-register variable '%D'",
> decl, decl);
> + if (name[0] == '*')
There should be no fallthru from the previous if.
> + {
> + reg_number = decode_reg_name (name);
> + if (reg_number >= 0 || reg_number == -3)
And, as I was saying, I believe this error should be disabled
if REGISTER_PREFIX is non-empty.
r~