diff options
author | Richard Hodson <hodsonr@dionecorp.com> | 2001-11-15 14:52:51 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2001-11-15 14:52:51 +0000 |
commit | 768caa286d153f6366c98154db2ecb5557af8c4a (patch) | |
tree | 1655e09cab1d745a145b5b158f48d0582b9d732b /gcc | |
parent | 56c2b525b35c7a93e547eeefeb3940bb5ac7e5cb (diff) | |
download | gcc-768caa286d153f6366c98154db2ecb5557af8c4a.zip gcc-768caa286d153f6366c98154db2ecb5557af8c4a.tar.gz gcc-768caa286d153f6366c98154db2ecb5557af8c4a.tar.bz2 |
h8300.c (dosize): Avoid corrupting R3 in interrupt routines.
* config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
routines.
From-SVN: r47057
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2bec869..0cec809 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-11-15 Richard Hodson <hodsonr@dionecorp.com> + + * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt + routines. + 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk> * fix-header.c (read_scan_file): Update. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index ea9c74d..e582a02 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -187,6 +187,7 @@ dosize (file, op, size) subs since this shouldn't happen often. */ if ((TARGET_H8300 && size <= 4) || ((TARGET_H8300H || TARGET_H8300S) && size <= 8) + || (TARGET_H8300 && interrupt_handler) || (TARGET_H8300 && current_function_needs_context && ! strcmp (op, "sub"))) { |