mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-04 16:00:28 +08:00
avr.h (BASE_REG_CLASS): Don't permit to use X register as pointer after reload.
* config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X register as pointer after reload. From-SVN: r76216
This commit is contained in:
parent
162f92bb89
commit
c099ba2802
@ -1,3 +1,8 @@
|
||||
2004-01-20 Denis Chertykov <denisc@overta.ru>
|
||||
|
||||
* config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
|
||||
register as pointer after reload.
|
||||
|
||||
2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
|
||||
|
||||
PR optimization/12440
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* Definitions of target machine for GNU compiler,
|
||||
for ATMEL AVR at90s8515, ATmega103/103L, ATmega603/603L microcontrollers.
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Denis Chertykov (denisc@overta.ru)
|
||||
|
||||
This file is part of GCC.
|
||||
@ -560,7 +561,7 @@ enum reg_class {
|
||||
choose a class which is "minimal", meaning that no smaller class
|
||||
also contains the register. */
|
||||
|
||||
#define BASE_REG_CLASS POINTER_REGS
|
||||
#define BASE_REG_CLASS (reload_completed ? BASE_POINTER_REGS : POINTER_REGS)
|
||||
/* A macro whose definition is the name of the class to which a valid
|
||||
base register must belong. A base register is one used in an
|
||||
address which is the register value plus a displacement. */
|
||||
|
Loading…
Reference in New Issue
Block a user