--- Additional Comments From mostrows at watson dot ibm dot com 2005-02-24
14:18 ---
New test case exhibits same problem.
struct demo {
int s;
};
extern struct demo * const *xd;
static inline struct demo *fn1(void) __attribute__((pure));
static inline struct demo *fn1(void
} while (0);
} while (0);
return ret;
}
--
Summary: const/pure functions result in bad asm
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassig
--- Additional Comments From mostrows at watson dot ibm dot com 2004-10-13 21:45
---
Subject: Re: const/pure functions result in
bad asm
For starters, when compiling without -DBUG, the resulting assembly is
much longer (correct assembly, with -DBUG below, that is without
pure
--- Additional Comments From mostrows at watson dot ibm dot com 2004-10-13 23:11
---
Subject: Re: const/pure functions result in
bad asm
Here is simpler code that demonstrates the problem. Note, no loops
involved. Further below is compilation and objdump with and without