aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/darwin.h
diff options
context:
space:
mode:
authorMike Stump <mikestump@comcast.net>2011-02-21 21:38:21 +0000
committerMike Stump <mrs@gcc.gnu.org>2011-02-21 21:38:21 +0000
commitd1d46f9f70fff00e39f71183909f37605a113b3f (patch)
tree3a09989bc2b7ebdaa2146f5f3b8aa2731fc84b6f /gcc/config/i386/darwin.h
parent23e0d9301971df49e1b283e948a548faf0d3facd (diff)
downloadgcc-d1d46f9f70fff00e39f71183909f37605a113b3f.zip
gcc-d1d46f9f70fff00e39f71183909f37605a113b3f.tar.gz
gcc-d1d46f9f70fff00e39f71183909f37605a113b3f.tar.bz2
re PR target/47822 (Multiple test suite failures due to revision 170321)
PR target/47822 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a tree so we can get save the type. * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot for CFString instead of trying to use past the end of the builtins. * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise. * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise. * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise. * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING): Rename to darwin_builtin_cfstring. (darwin_init_cfstring_builtins): Return the built type. From-SVN: r170376
Diffstat (limited to 'gcc/config/i386/darwin.h')
-rw-r--r--gcc/config/i386/darwin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index 9cf51e3..934ab4b 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -308,7 +308,8 @@ do { \
#undef SUBTARGET_INIT_BUILTINS
#define SUBTARGET_INIT_BUILTINS \
do { \
- darwin_init_cfstring_builtins ((unsigned) (IX86_BUILTIN_MAX));\
+ ix86_builtins[(int) IX86_BUILTIN_CFSTRING] \
+ = darwin_init_cfstring_builtins ((unsigned) (IX86_BUILTIN_CFSTRING)); \
darwin_rename_builtins (); \
} while(0)