* config/mips/mips.c (mips_build_builtin_va_list): Use runtime
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Oct 2003 16:48:13 +0000 (16:48 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Oct 2003 16:48:13 +0000 (16:48 +0000)
        test for irix6 rather than preprocessor test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73089 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.c

index 9e103cf..6b6a161 100644 (file)
@@ -1,5 +1,10 @@
 2003-10-30  Richard Henderson  <rth@redhat.com>
 
+       * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
+       test for irix6 rather than preprocessor test.
+
+2003-10-30  Richard Henderson  <rth@redhat.com>
+
        * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
 
 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
index d85a83d..73873bf 100644 (file)
@@ -4030,16 +4030,12 @@ mips_build_builtin_va_list (void)
       layout_type (record);
       return record;
     }
+  else if (TARGET_IRIX && !TARGET_IRIX5)
+    /* On IRIX 6, this type is 'char *'.  */
+    return build_pointer_type (char_type_node);
   else
-    {
-#if defined(TARGET_IRIX) && !TARGET_IRIX5
-      /* On IRIX 6, this type is 'char *'.  */
-      return build_pointer_type (char_type_node);
-#else
-      /* Otherwise, we use 'void *'.  */
-      return ptr_type_node;
-#endif
-    }
+    /* Otherwise, we use 'void *'.  */
+    return ptr_type_node;
 }
 
 /* Implement va_start.  */