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: Fix PR20204



On Feb 25, 2005, at 2:21 PM, Diego Novillo wrote:


Andrew Pinski wrote:

Besides the test only being able to run on cris (well I think it would work
also on ppc), you most likely want to have it run only on cris.
No. It runs on x86 as well.

The trick with the __asm__ annotations is that they force the optimizers to treat all those variables as virtuals, tickling the bug. This test works on x86 with the fix and fails without it.

How can it run on x86, when there is no register r12/r11? I just tried on x86, not x86_32: int main() { register void *return_dst __asm__ ("r13"); return *(int*)(return_dst); }

And I get an ICE (which is a regression by the way).

-- Pinski


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