public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25206]  New: for loop with comma operator problem
@ 2005-12-01 14:46 ymonyak at lipowsky dot de
  2005-12-01 15:28 ` [Bug middle-end/25206] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ymonyak at lipowsky dot de @ 2005-12-01 14:46 UTC (permalink / raw)
  To: gcc-bugs

GCC 4.0.1 bilt by GNUARM.

follow source has different read and store address by incrementing of "n".
As result variable "n" will be not changed.

unsigned short CommTxNum;

static void foo (void) __attribute__ ((interrupt ("IRQ")));
void foo(void)
{
unsigned char n;

 for (n = 0; n < 3 && CommTxNum; n++, CommTxNum++)
 {
...
 }
}


-- 
           Summary: for loop with comma operator problem
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ymonyak at lipowsky dot de
 GCC build triplet: 4.0.1
  GCC host triplet: windows2000 sygwin
GCC target triplet: arm-elf


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


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

end of thread, other threads:[~2005-12-05  9:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-01 14:46 [Bug c/25206] New: for loop with comma operator problem ymonyak at lipowsky dot de
2005-12-01 15:28 ` [Bug middle-end/25206] " pinskia at gcc dot gnu dot org
2005-12-01 15:55 ` efim at lipowsky dot de
2005-12-01 16:00 ` pinskia at gcc dot gnu dot org
2005-12-05  7:34 ` efim at lipowsky dot de
2005-12-05  9:02 ` falk at debian dot 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).