[lkml]   [2000]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: GCC proposal for "@" asm constraint
> I see. So Jamie was right and we reproduced a case of miscompilation.

Umm ... "miscompilation"? As in the compiler produced the wrong code
based on the input provided?

int * p;


a = *p;

movl p,%eax
movl (%eax),%edx

The assembly code appears to load the address stored at p (keep in mind
that p is a pointer), then use that address to fetch the value which is
placed in a. What do you believe should have been generated by the compiler?

-- John
| Feith Systems | Voice: 1-215-646-8000 | Email: |
| John Wehle | Fax: 1-215-540-5495 | |

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.295 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site