title: GCC - Macro containing compilation flags
body: <p>Is there any macro in GCC that contain compilation flags used to compile the program?  </p>
  
  <p>I want something like this:</p>
  
  <pre><code>printf("Compilation flags: %s", __FLAGS__);
  </code></pre>
  
  <p>To output for example:</p>
  
  <pre><code>Compilation flags: -02 -g
  </code></pre>