This is the mail archive of the gcc-patches@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: [PATCH] Speed up genattrtab


>>>>> "Mark" == Mark Mitchell <mark@codesourcery.com> writes:

Mark> I agree that the original version is more robust against future change.
Mark>  In my own code, I always write "if (...) { ... }" even if there's only
Mark> one dependent statement.  But, I thought that the GNU coding standards
Mark> left no room for interpretation in this case.  If everyone's comfortable
Mark> with making an exception for this case, it's fine by me.

The standards.info on my FC5 box says:

       When you have an `if'-`else' statement nested in another `if'
    statement, always put braces around the `if'-`else'.  Thus, never write
    like this:

The document doesn't actually seem to say all that much about braces
otherwise.  Less than I remembered anyway.

Tom


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