[llvm-commits] [llvm-gcc-4.2] r108558 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Dale Johannesen dalej at apple.com
Fri Jul 16 14:17:26 PDT 2010


Author: johannes
Date: Fri Jul 16 16:17:26 2010
New Revision: 108558

URL: http://llvm.org/viewvc/llvm-project?rev=108558&view=rev
Log:
"p" constraint also accepts constants.  PR 5533.


Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=108558&r1=108557&r2=108558&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Jul 16 16:17:26 2010
@@ -4431,9 +4431,9 @@
 
     // Translate 'p' to 'm'.  This is supposed to check for a valid memory
     // address, but for inline assembly there is no way to know the mode of
-    // the data being addressed.
+    // the data being addressed.  Peculiarly, it also accepts a constant.
     if (ConstraintChar == 'p')
-      ConstraintChar = 'm';
+      Result += "im";
 
     // See if this is a regclass constraint.
     unsigned RegClass;





More information about the llvm-commits mailing list