This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix of small typo
- To: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Subject: Re: fix of small typo
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 04 Dec 1998 01:26:12 -0700
- cc: mrs at wrs dot com (Mike Stump), egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199812032058.RAA21785@pincoya.inf.utfsm.cl>you write:
> mrs@wrs.com (Mike Stump) said:
>
> [...]
>
> > #define ASM_FILE_START(FILE) \
> > ! do { output_file_directive (FILE, main_input_filename); \
> > } while (0)
>
> Can't the do{ .. }while(0) be removed here?
I don't recommend removing them.
The do { ... } while (0) constructs make maintenance significantly easier.
Such constructs are much more tolerant of being used in if/else arms
safely for example.
jeff