re PR objc/18406 (ICE compiling Objective C code with long double arguments)
authorAndrew Pinski <pinskia@physics.uc.edu>
Tue, 9 Nov 2004 19:44:38 +0000 (19:44 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 9 Nov 2004 19:44:38 +0000 (11:44 -0800)
2004-11-09  Andrew Pinski  <pinskia@physics.uc.edu>

        PR objc/18406
        * obj-act.c (encode_type): 96bits doubles are encoded the
        same way as 64bit and 128bit doubles are.

2004-11-09  Andrew Pinski  <pinskia@physics.uc.edu>

        PR objc/18406
        * objc/compile/pr18406.m: New test.

From-SVN: r90361

gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/objc/compile/pr18406.m [new file with mode: 0644]

index bf9096c799b03b617d3860ee00607a4f1e5d572d..6eaa96429da8f58e995a33686b998ba566900725 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR objc/18406
+       * obj-act.c (encode_type): 96bits doubles are encoded the
+       same way as 64bit and 128bit doubles are.
+
 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
 
        * objc-act.c: Use %q, %< and %> for quoting in diagnostics.
index 9e289936f262661789d6e9e1877cd5ccd213c783..408f25709a41827fd8bd7d3918e0644cbe0255c8 100644 (file)
@@ -7245,6 +7245,7 @@ encode_type (tree type, int curtype, int format)
        {
        case 32:  c = 'f'; break;
        case 64:
+       case 96:
        case 128: c = 'd'; break;
        default: abort ();
        }
index d4e2788818ac942cea1f02e7425cfcbe5ca2fa50..d63447e978a01eb4c3ce32d5c3688778afc66c95 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR objc/18406
+       * objc/compile/pr18406.m: New test.
+
 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
 
        * gcc.dg/builtin-prefetch-1.c: Update expected diagnostic.
diff --git a/gcc/testsuite/objc/compile/pr18406.m b/gcc/testsuite/objc/compile/pr18406.m
new file mode 100644 (file)
index 0000000..d34334f
--- /dev/null
@@ -0,0 +1,9 @@
+@interface Test
+- (void)test: (long double)val;
+@end
+
+@implementation Test
+- (void)test: (long double)val
+{
+}
+@end