[PATCH] Improve attributes printing.

Jordan Rose jordan_rose at apple.com
Thu Mar 21 16:23:26 PDT 2013


  For the record, always placing GNU attributes at the end isn't correct for function definitions.

  ```
  static void bad() __attribute__((cold)) {} // -Wgcc-compat

  __attribute__((cold)) static void good() {}

  static __attribute__((cold)) void okay() {}
  static void __attribute__((cold)) alsoOkay() {}
  ```

http://llvm-reviews.chandlerc.com/D395



More information about the cfe-commits mailing list