aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-02-09 15:05:03 +0000
committerRainer Orth <ro@gcc.gnu.org>2011-02-09 15:05:03 +0000
commit67b6839f9965ead41034070d6b9c681fe66c8e4d (patch)
treecb62cb7941a2b616752e7ffbb01fa2cad0fdcebc /gcc
parent0b0eaff093015bab43feb8181944b93476e122f5 (diff)
downloadgcc-67b6839f9965ead41034070d6b9c681fe66c8e4d.zip
gcc-67b6839f9965ead41034070d6b9c681fe66c8e4d.tar.gz
gcc-67b6839f9965ead41034070d6b9c681fe66c8e4d.tar.bz2
iris6.h (TARGET_C99_FUNCTIONS): Define.
gcc: * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define. gcc/testsuite: * gcc.dg/builtins-config.h: Remove __sgi handling. * lib/target-supports.exp (add_options_for_c99_runtime): Add -std=c99 for mips-sgi-irix6.5*. From-SVN: r169976
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/mips/iris6.h5
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/builtins-config.h4
-rw-r--r--gcc/testsuite/lib/target-supports.exp3
5 files changed, 18 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7dc0847..66e7a8a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
+
2011-02-09 Martin Jambor <mjambor@suse.cz>
PR middle-end/45505
diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h
index 4663c2a..edf8020 100644
--- a/gcc/config/mips/iris6.h
+++ b/gcc/config/mips/iris6.h
@@ -1,6 +1,6 @@
/* Definitions of target machine for GNU compiler. IRIX 6.5 version.
Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 2000,
- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of GCC.
@@ -38,6 +38,9 @@ along with GCC; see the file COPYING3. If not see
/* Configuration-independent MIPS rules. */ \
BASE_DRIVER_SELF_SPECS
+/* IRIX 6.5 has the float and long double forms of math functions. */
+#define TARGET_C99_FUNCTIONS 1
+
/* MIPS specific debugging info */
#define MIPS_DEBUGGING_INFO 1
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3483b50..7d0f60e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * gcc.dg/builtins-config.h: Remove __sgi handling.
+ * lib/target-supports.exp (add_options_for_c99_runtime): Add
+ -std=c99 for mips-sgi-irix6.5*.
+
2011-02-09 Martin Jambor <mjambor@suse.cz>
PR middle-end/45505
diff --git a/gcc/testsuite/gcc.dg/builtins-config.h b/gcc/testsuite/gcc.dg/builtins-config.h
index 487da41..49ec0dc 100644
--- a/gcc/testsuite/gcc.dg/builtins-config.h
+++ b/gcc/testsuite/gcc.dg/builtins-config.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005, 2006, 2009 Free Software Foundation.
+/* Copyright (C) 2003, 2004, 2005, 2006, 2009, 2011 Free Software Foundation.
Define macros useful in tests for bulitin functions. */
@@ -11,8 +11,6 @@
#if defined(__hppa) && defined(__hpux)
/* PA HP-UX doesn't have the entire C99 runtime. */
-#elif defined(__sgi)
-/* Irix6 doesn't have the entire C99 runtime. */
#elif defined(__AVR__)
/* AVR doesn't have the entire C99 runtime. */
#elif defined(__FreeBSD__) && (__FreeBSD__ < 9)
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index ee7a8bf..861fa75 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -3512,6 +3512,9 @@ proc add_options_for_c99_runtime { flags } {
if { [istarget *-*-solaris2*] } {
return "$flags -std=c99"
}
+ if { [istarget mips-sgi-irix6.5*] } {
+ return "$flags -std=c99"
+ }
if { [istarget powerpc-*-darwin*] } {
return "$flags -mmacosx-version-min=10.3"
}