[cfe-dev] One little test, comparing clang and gcc

Sebastian Redl sebastian.redl at getdesigned.at
Fri Oct 30 05:14:20 PDT 2009


Mike Stump wrote:
> On Oct 29, 2009, at 5:38 PM, Giangiacomo Mariotti wrote:
>   
>> Let's make the example code much shorter:
>>     
>
> And even shorter:
>
> int n = 50000;
>
> int main(void) {
>    int i, j;
>    for (i = 1; i <= n; i++) {
>      for (j = 1; j <= n; j++) {
>      }
>    }
>    return 0;
> }
>
> Please file a PR for this on the website.  Should be trivial enough  
> for them to fix.  Thanks.
>   
Don't we intentionally *not* optimize out because it's a classical 
delay-loop?

Sebastian



More information about the cfe-dev mailing list