h8300.c (dosize): Avoid corrupting R3 in interrupt routines.
authorRichard Hodson <hodsonr@dionecorp.com>
Thu, 15 Nov 2001 14:52:51 +0000 (14:52 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 15 Nov 2001 14:52:51 +0000 (14:52 +0000)
* config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
routines.

From-SVN: r47057

gcc/ChangeLog
gcc/config/h8300/h8300.c

index 2bec869535097bb9be9e9376c39bbe14ade78112..0cec809d65965cfba7c209b10b7878b1b2eaead8 100644 (file)
@@ -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.
index ea9c74dc8fe78a971742fe10bb49467e78a0c251..e582a026ee070bee30c67d76d2e16ff5f8104657 100644 (file)
@@ -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")))
     {