optimizing away parts of macros?

2006-04-17 Thread David Nicol
I am using gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8) under the Inline::C perl module and having a very weird situation. I have a multi-line macro that declares several variables and then does some work with them, for use in several functions that have similar invocations, interfacing to an

Re: optimizing away parts of macros?

2006-04-17 Thread Daniel Jacobowitz
On Mon, Apr 17, 2006 at 04:42:18PM -0500, David Nicol wrote: GCC appears to be treating my long macro as some kind of block and throwing out variables that are not used within it instead of simply pasting the code in at the macro invocation point. Is this a known problem with 4.0.2? Is

Re: optimizing away parts of macros?

2006-04-17 Thread Joe Buck
On Mon, Apr 17, 2006 at 04:42:18PM -0500, David Nicol wrote: I am using gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8) under the Inline::C perl module and having a very weird situation. You vaguely describe your problem, speculate on its cause, and don't include a complete testcase. Not a

Re: optimizing away parts of macros?

2006-04-17 Thread David Nicol
Thank you. Nobody is aware of such a problem.

Re: optimizing away parts of macros?

2006-04-17 Thread Diego Novillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Nicol wrote: Thank you. Nobody is aware of such a problem. What problem? You have provided no evidence that there indeed is a problem here. Again, please visit our bug submission page at gcc.gnu.org. -BEGIN PGP SIGNATURE- Version: