This is the mail archive of the gcc@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: preprocessor: % as args to #defines


Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes:

> * How to re-write these macros into ansi-compliant form (I've tried to,
> but no success until now)

Try this:

#define RP() __REGISTER_PREFIX__
#define REG(x) RP()x

> * Why does gcc-3.3.x issue errors instead of warnings like gcc-3.2.x
> did?

People have had long enough to fix their code.

> * Why does gcc-3.3.x behave differently on *.c and *.S file types?

.S files get special dispensation, because assembly syntax is not the
same as C syntax.

zw


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