http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53870
--- Comment #1 from brag 2012-07-06 06:17:19 UTC
---
*** Bug 53869 has been marked as a duplicate of this bug. ***
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53869
brag changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53869
--- Comment #1 from brag 2012-07-06 06:16:05 UTC
---
class test{
public:
void remove();
private:
test *next;
test *prev;
};
void test::remove(){
next->prev=prev;
prev->next=next;
}
arm-none-eabi-gcc++ -mcpu=cortex-m3 -mthumb
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53870
Bug #: 53870
Summary: Redundant memory load
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Compone
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53869
Bug #: 53869
Summary: Redundant memory load
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Compone
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53085
--- Comment #4 from brag 2012-04-24 12:27:29 UTC
---
Alexander Monakov, As for me it's ok to treat whole struct as non-volatile even
if it has a volatile members when doing smth like this:
struct ss0 a,b;
a=b;
a=b;
Simple example with class:
cla
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53085
brag changed:
What|Removed |Added
Severity|critical|normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53085
--- Comment #2 from brag 2012-04-23 13:19:03 UTC
---
The simpler example:
struct aa{
volatile unsigned short a;
};
struct aa AAmem;
void f(){
AAmem.a=0xff;
AAmem.a=0xff;
}
<_Z1fv>:
0:f240 0300 movwr3, #0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53085
--- Comment #1 from brag 2012-04-23 12:58:17 UTC
---
struct aa{
volatile unsigned short a;
unsigned short b;
volatile unsigned short c;
unsigned short d;
};
#define AAmem ((struct aa *) 256)
static inline unsigned int tx(unsigne
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53085
Bug #: 53085
Summary: write to volatile struct member is missing on
Cortex-M3
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
S
10 matches
Mail list logo