This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Extreme memory demand compiling not-too-complicated expression: gcc bug?


On 04/11/2012 12:00 PM, Bob McKay wrote:
> does this look like a bug to you? Should I be reporting it?

No.  That expression expands to more than 200 megabytes of source code.
You're expanding macros within macros.

This gcc extension would help:

#define PVAL(Y) ({double y = (Y); ((y==HUGE_VAL)?(INFPLUS):((y==-HUGE_VAL)?(-INFMINUS):(y)))})

Or just define PVAL as a function.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]