]> gcc.gnu.org Git - gcc.git/commit
re PR target/41246 (should "sorry" when regparm=3 and nested functions are encountered)
authorRichard Henderson <rth@redhat.com>
Tue, 22 Sep 2009 15:16:49 +0000 (08:16 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 22 Sep 2009 15:16:49 +0000 (08:16 -0700)
commit3452586be1fc37d759e62de8e9db42cf574f0663
treed7ed31230832c3072e574e4ad2c28ef2af15c05f
parent3c1229cb545da35578b7df31316b0e60377054d4
re PR target/41246 (should "sorry" when regparm=3 and nested functions are encountered)

PR target/41246
* config/i386/i386.c (ix86_function_regparm): Do not issue an
error for nested functions with regparm=3.
(ix86_compute_frame_layout): Adjust frame pointer offset for
ix86_static_chain_on_stack.
(ix86_expand_prologue): Handle ix86_static_chain_on_stack.
(ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
don't reset to UNITS_PER_WORD.
(ix86_emit_leave): Adjust ix86_cfa_state.
(ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
(ix86_static_chain): New.
(ix86_trampoline_init): Rename from x86_initialize_trampoline;
make static; update for target hook parameters; use ix86_static_chain.
(TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
* config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
(INITIALIZE_TRAMPOLINE): Remove.
(TRAMPOLINE_SIZE): Use 24 for 64-bit.
(struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
to the end.  Add static_chain_on_stack.
(ix86_static_chain_on_stack): New.

From-SVN: r152018
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.h
This page took 0.053229 seconds and 5 git commands to generate.