4.7.2.3 No_gccisr Attribute

The no_gccisr attribute disables any optimization of the context switch code associated with the interrupt function. For example:
void  __attribute__((no_gccisr)) __interrupt(PORTF_PORT_vect_num) foo(void);

See also ISR Prologues Option.