GCC proposal for "@" asm constraint

John Wehle john@feith.com
Tue Sep 19 13:16:00 GMT 2000

> 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@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |

More information about the Gcc mailing list