[Bug c++/17972] [3.4 Regression] const/pure functions result in bad asm

2005-02-24 Thread mostrows at watson dot ibm dot com
--- 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

[Bug c++/17972] New: const/pure functions result in bad asm

2004-10-13 Thread mostrows at watson dot ibm dot com
} 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

[Bug rtl-optimization/17972] const/pure functions result in bad asm

2004-10-13 Thread mostrows at watson dot ibm dot com
--- 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

[Bug rtl-optimization/17972] const/pure functions result in bad asm

2004-10-13 Thread mostrows at watson dot ibm dot com
--- 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