From 4f1cad002d1ff9c297ecbb799e83c5e8be6ebb8b Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 30 Oct 2003 08:48:13 -0800 Subject: [PATCH] mips.c (mips_build_builtin_va_list): Use runtime test for irix6 rather than preprocessor test. * config/mips/mips.c (mips_build_builtin_va_list): Use runtime test for irix6 rather than preprocessor test. From-SVN: r73089 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 14 +++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e103cf4f8b..6b6a1618b63 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-10-30 Richard Henderson + + * config/mips/mips.c (mips_build_builtin_va_list): Use runtime + test for irix6 rather than preprocessor test. + 2003-10-30 Richard Henderson * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index d85a83d68f2..73873bf15b2 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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. */