This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14798] [3.4/3.5 Regression] [unit-at-a-time?] In case of SH target with -O2 option #pragma interrupt doesn't get resetted.
- From: "wilson at specifixinc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2004 08:19:13 -0000
- Subject: [Bug target/14798] [3.4/3.5 Regression] [unit-at-a-time?] In case of SH target with -O2 option #pragma interrupt doesn't get resetted.
- References: <20040331111136.14798.anilp1@kpitcummins.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wilson at specifixinc dot com 2004-06-01 08:19 -------
Subject: Re: [3.4/3.5 Regression] [unit-at-a-time?] In
case of SH target with -O2 option #pragma interrupt doesn't get resetted.
aoliva at gcc dot gnu dot org wrote:
> ------- Additional Comments From aoliva at gcc dot gnu dot org 2004-06-01 04:19 -------
> Given the comment above the variable pragma_interrupt in sh.c, I assume the
> behavior expected by Anil is the correct and intended behavior. Although the
> patch correctly implements this, I'd prefer to clear the variable only after
> successfully adding the interrupt_handler attribute, right before returning.
> Patch approved with that change.
That just trades one set of problems for another set of problems.
Please see my review of the patch
http://gcc.gnu.org/ml/gcc-patches/2004-04/msg01891.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14798