[PATCH]: PR inline-asm/28686 missing check for asm_clobbered at -O0

Seongbae Park seongbae.park@gmail.com
Sat Feb 3 01:00:00 GMT 2007


On 2/2/07, Seongbae Park <seongbae.park@gmail.com> wrote:
> This is a follow-up on PR28686.
> At -O0, checking for regs_asm_clobbered code in global_alloc() isn't executed,
> missing the error message when the hard frame pointer is clobbered
> in asm, while -fno-omit-frame-pointer.
> This patch refactors the code a bit, and fixes PR28686 at -O0
> by issuing an error message for conflicting requirement
> between -fno-omit-frame-pointer and the clobber of the frame pointer.
>
> The refactoring was done in this way for the possibility of making
> ELIMINABLE_REGSETS and NO_GLOBAL_ALLOC_REGS non-global.
>
> Bootstrapped and regtested on i686 and IA64. OK for mainline ?
>
> 2007-02-02  Seongbae Park <seongbae.park@gmail.com>
>
>         * global.c (compute_regsets): New function.
>         (global_alloc): Refactored ELIMINABLE_REGSET
>         and NO_GLOBAL_ALLOC_REGS computation out.
>         (rest_of_handle_global_alloc): Call compute_regsets()
>         for non-optimizing case.

The above ChangeLog entry is missing the PR number. I've fixed it as:

2007-02-02  Seongbae Park <seongbae.park@gmail.com>

        PR inline-asm/28686
        * global.c (compute_regsets): New function.
        (global_alloc): Refactored ELIMINABLE_REGSET
        and NO_GLOBAL_ALLOC_REGS computation out.
        (rest_of_handle_global_alloc): Call compute_regsets()
        for non-optimizing case.

-- 
#pragma ident "Seongbae Park, compiler, http://seongbae.blogspot.com"



More information about the Gcc-patches mailing list