Seongbae Park - Re: [PATCH]: PR inline-asm/28686 missing check for asm_clobbered at -O0 (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.
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.