public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/41849] optimization fails when register variables are used for an interrupt
       [not found] <bug-41849-4@http.gcc.gnu.org/bugzilla/>
@ 2011-04-20 19:46 ` gjl at gcc dot gnu.org
  2011-07-25 15:19 ` gjl at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-04-20 19:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41849

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gjl at gcc dot gnu.org,
                   |                            |hendrixgr at gmail dot com
          Component|rtl-optimization            |target
      Known to work|                            |4.5.0

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-04-20 19:45:54 UTC ---
Unfortunately, we don't see the exact command line.

I don't see this for 4.5.0, tried -O, -O2, -Os, -O3. All gives

foo:
/* prologue: function */
/* frame size = 0 */
/* stack size = 0 */
.L__stack_usage = 0
    sts timer0_h8_buf,r3
/* epilogue start */
    ret

Note that volatile on register variables does not work as expected. volatile is
meaningful for memory locations only.

As the addresses in your snipp indicate there is much more code in the module,
so presumably we don't see the proper source.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/41849] optimization fails when register variables are used for an interrupt
       [not found] <bug-41849-4@http.gcc.gnu.org/bugzilla/>
  2011-04-20 19:46 ` [Bug target/41849] optimization fails when register variables are used for an interrupt gjl at gcc dot gnu.org
@ 2011-07-25 15:19 ` gjl at gcc dot gnu.org
  2011-07-25 15:22 ` gjl at gcc dot gnu.org
  2011-07-25 15:26 ` gjl at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-07-25 15:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41849

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-25 15:19:28 UTC ---
Created attachment 24828
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24828
C test case


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/41849] optimization fails when register variables are used for an interrupt
       [not found] <bug-41849-4@http.gcc.gnu.org/bugzilla/>
  2011-04-20 19:46 ` [Bug target/41849] optimization fails when register variables are used for an interrupt gjl at gcc dot gnu.org
  2011-07-25 15:19 ` gjl at gcc dot gnu.org
@ 2011-07-25 15:22 ` gjl at gcc dot gnu.org
  2011-07-25 15:26 ` gjl at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-07-25 15:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41849

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-25 15:21:54 UTC ---
Created attachment 24829
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24829
Test case from attachment 24828 as compiled with avr-gcc 4.4.2

For compiler options, see the attachment: -Os -mmcu=atmega8.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/41849] optimization fails when register variables are used for an interrupt
       [not found] <bug-41849-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-07-25 15:22 ` gjl at gcc dot gnu.org
@ 2011-07-25 15:26 ` gjl at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-07-25 15:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41849

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.4.2
         Resolution|                            |WORKSFORME

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-25 15:26:02 UTC ---
Closed as WORKSFORME. avr-gcc 4.4.2 compiles the test case correctly.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-25 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41849-4@http.gcc.gnu.org/bugzilla/>
2011-04-20 19:46 ` [Bug target/41849] optimization fails when register variables are used for an interrupt gjl at gcc dot gnu.org
2011-07-25 15:19 ` gjl at gcc dot gnu.org
2011-07-25 15:22 ` gjl at gcc dot gnu.org
2011-07-25 15:26 ` gjl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).