Re: [PATCH] Fix miscompilation with -fprofile-use (PR gcov-profile/50127)

2012-01-06 Thread Richard Henderson
On 01/07/2012 03:36 AM, Jakub Jelinek wrote: > PR gcov-profile/50127 > * bb-reorder.c (partition_hot_cold_basic_blocks): Clear > bb->aux before running df_analyze. Ok except, > + /* Clear bb->aux fields that the above routines were using. */ > + FOR_EACH_BB (bb) > +bb->au

[PATCH] Fix miscompilation with -fprofile-use (PR gcov-profile/50127)

2012-01-06 Thread Jakub Jelinek
Hi! When tree-prof/bb-reorg.c is compiled with 32-bit host cc1 with -fprofile-use, it is miscompiled. The problem is that partition_hot_cold_basic_blocks leaves garbage (other bb pointers) in bb->aux of some basic blocks and df_analyze assumes (like other passes) that it is cleared and uses ->aux