Do not mangle restrict qualifiers.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Nov 2008 14:31:23 +0000 (14:31 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Nov 2008 14:31:23 +0000 (14:31 +0000)
[r23731]

mangle.c

index c80ec31..83fb373 100644 (file)
--- a/mangle.c
+++ b/mangle.c
@@ -157,8 +157,10 @@ static void mangle_imaginary_type(const imaginary_type_t *type)
 
 static void mangle_qualifiers(type_qualifiers_t qualifiers)
 {
+#if 0 /* Do not mangle restrict qualifiers.  GCC doesn't either */
        if (qualifiers & TYPE_QUALIFIER_RESTRICT)
                obstack_1grow(&obst, 'r');
+#endif
        if (qualifiers & TYPE_QUALIFIER_VOLATILE)
                obstack_1grow(&obst, 'V');
        if (qualifiers & TYPE_QUALIFIER_CONST)