Bug 63750 - use of undeclared identifier 'do_not_use_isalnum_with_safe_ctype'
Summary: use of undeclared identifier 'do_not_use_isalnum_with_safe_ctype'
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 5.0
: P3 normal
Target Milestone: 5.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 16:14 UTC by Jack Howarth
Modified: 2014-11-11 09:22 UTC (History)
2 users (show)

See Also:
Host: x86_64-apple-darwin14
Target: x86_64-apple-darwin14
Build: x86_64-apple-darwin14
Known to work:
Known to fail:
Last reconfirmed: 2014-11-07 00:00:00


Attachments
patch to pass fix by appending #include <sstream> to gcc/ipa-chkp.c (238 bytes, patch)
2014-11-05 17:38 UTC, Jack Howarth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Howarth 2014-11-05 16:14:09 UTC
The bootstrap on x86_64-apple-darwin14 at r217129. now fails to compile under Clang 6.0 with the errors...

g++ -c   -g  -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc-5.0-20141105/gcc -I../../gcc-5.0-20141105/gcc/. -I../../gcc-5.0-20141105/gcc/../include -I../../gcc-5.0-20141105/gcc/../libcpp/include -I/sw/include -I/sw/include  -I../../gcc-5.0-20141105/gcc/../libdecnumber -I../../gcc-5.0-20141105/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-5.0-20141105/gcc/../libbacktrace -DCLOOG_INT_GMP -I/sw/include -DCLOOG_INT_GMP -I/sw/include -I/sw/include -o ipa-chkp.o -MT ipa-chkp.o -MMD -MP -MF ./.deps/ipa-chkp.TPo ../../gcc-5.0-20141105/gcc/ipa-chkp.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:23:
../../gcc-5.0-20141105/gcc/coretypes.h:62:1: warning: class 'rtx_def' was previously declared as a struct [-Wmismatched-tags]
class rtx_def;
^
../../gcc-5.0-20141105/gcc/coretypes.h:55:8: note: previous use is here
struct rtx_def;
       ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:24:
In file included from ../../gcc-5.0-20141105/gcc/tree-core.h:24:
In file included from ../../gcc-5.0-20141105/gcc/hash-set.h:24:
In file included from ../../gcc-5.0-20141105/gcc/hash-table.h:200:
../../gcc-5.0-20141105/gcc/ggc.h:315:15: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags]
static inline struct rtx_def *
              ^
../../gcc-5.0-20141105/gcc/coretypes.h:62:7: note: previous use is here
class rtx_def;
      ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:24:
In file included from ../../gcc-5.0-20141105/gcc/tree-core.h:24:
In file included from ../../gcc-5.0-20141105/gcc/hash-set.h:24:
In file included from ../../gcc-5.0-20141105/gcc/hash-table.h:200:
../../gcc-5.0-20141105/gcc/ggc.h:318:11: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags]
  return (struct rtx_def *) ggc_internal_alloc (s PASS_MEM_STAT);
          ^
../../gcc-5.0-20141105/gcc/coretypes.h:62:7: note: previous use is here
class rtx_def;
      ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:24:
In file included from ../../gcc-5.0-20141105/gcc/tree-core.h:29:
In file included from ../../gcc-5.0-20141105/gcc/double-int.h:23:
../../gcc-5.0-20141105/gcc/wide-int.h:370:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:377:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:384:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:394:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:401:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:411:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:422:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:886:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:965:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
../../gcc-5.0-20141105/gcc/wide-int.h:1127:1: warning: 'fixed_wide_int_storage' defined as a class template here but previously declared as a
      struct template [-Wmismatched-tags]
class GTY(()) fixed_wide_int_storage
^
../../gcc-5.0-20141105/gcc/wide-int.h:286:18: note: did you mean class here?
template <int N> struct fixed_wide_int_storage;
                 ^~~~~~
                 class
../../gcc-5.0-20141105/gcc/wide-int.h:1152:3: warning: extraneous template parameter list in template specialization
  template <>
  ^~~~~~~~~~~
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:39:
../../gcc-5.0-20141105/gcc/ipa-ref.h:26:1: warning: class 'symtab_node' was previously declared as a struct [-Wmismatched-tags]
class symtab_node;
^
../../gcc-5.0-20141105/gcc/tree-core.h:1475:9: note: previous use is here
 struct symtab_node *symtab_node;
        ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:902:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (asm_out)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:1510:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (sched)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:1540:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (simd_clone)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:1758:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (vectorize)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:3014:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (addr_space)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:4486:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (calls)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:5014:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (c)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:5167:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (cxx)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:5256:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (emutls)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:5362:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (target_option)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:5650:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (mode_switching)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
In file included from ../../gcc-5.0-20141105/gcc/lto-streamer.h:29:
In file included from ../../gcc-5.0-20141105/gcc/target.h:188:
../../gcc-5.0-20141105/gcc/target.def:5653:1: warning: empty macro arguments are a C99 feature [-Wc99-extensions]
HOOK_VECTOR_END (C90_EMPTY_HACK)
^
../../gcc-5.0-20141105/gcc/target-hooks-macros.h:43:50: note: expanded from macro 'HOOK_VECTOR_END'
#define HOOK_VECTOR_END(DECL_NAME) HOOK_VECTOR_1(,} DECL_NAME ;)
                                                 ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
../../gcc-5.0-20141105/gcc/lto-streamer.h:678:8: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
extern struct lto_input_block * lto_create_simple_input_block (
       ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:678:8: note: did you mean class here?
extern struct lto_input_block * lto_create_simple_input_block (
       ^~~~~~
       class
../../gcc-5.0-20141105/gcc/lto-streamer.h:684:5: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
                                struct lto_input_block *, const char *, size_t);
                                ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:684:5: note: did you mean class here?
                                struct lto_input_block *, const char *, size_t);
                                ^~~~~~
                                class
../../gcc-5.0-20141105/gcc/lto-streamer.h:708:34: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
extern void lto_section_overrun (struct lto_input_block *) ATTRIBUTE_NORETURN;
                                 ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:708:34: note: did you mean class here?
extern void lto_section_overrun (struct lto_input_block *) ATTRIBUTE_NORETURN;
                                 ^~~~~~
                                 class
../../gcc-5.0-20141105/gcc/lto-streamer.h:769:10: warning: struct 'varpool_node' was previously declared as a class [-Wmismatched-tags]
                                            struct varpool_node *,
                                            ^
../../gcc-5.0-20141105/gcc/ipa-ref.h:25:7: note: previous use is here
class varpool_node;
      ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:40:
../../gcc-5.0-20141105/gcc/lto-streamer.h:778:35: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
extern void lto_input_data_block (struct lto_input_block *, void *, size_t);
                                  ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:778:35: note: did you mean class here?
extern void lto_input_data_block (struct lto_input_block *, void *, size_t);
                                  ^~~~~~
                                  class
../../gcc-5.0-20141105/gcc/lto-streamer.h:780:26: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
tree lto_input_tree_ref (struct lto_input_block *, struct data_in *,
                         ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:780:26: note: did you mean class here?
tree lto_input_tree_ref (struct lto_input_block *, struct data_in *,
                         ^~~~~~
                         class
../../gcc-5.0-20141105/gcc/lto-streamer.h:784:26: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
hashval_t lto_input_scc (struct lto_input_block *, struct data_in *,
                         ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:784:26: note: did you mean class here?
hashval_t lto_input_scc (struct lto_input_block *, struct data_in *,
                         ^~~~~~
                         class
../../gcc-5.0-20141105/gcc/lto-streamer.h:786:24: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
tree lto_input_tree_1 (struct lto_input_block *, struct data_in *,
                       ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:786:24: note: did you mean class here?
tree lto_input_tree_1 (struct lto_input_block *, struct data_in *,
                       ^~~~~~
                       class
../../gcc-5.0-20141105/gcc/lto-streamer.h:788:22: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
tree lto_input_tree (struct lto_input_block *, struct data_in *);
                     ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:788:22: note: did you mean class here?
tree lto_input_tree (struct lto_input_block *, struct data_in *);
                     ^~~~~~
                     class
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:41:
../../gcc-5.0-20141105/gcc/cgraph.h:91:1: warning: 'symtab_node' defined as a class here but previously declared as a struct [-Wmismatched-tags]
class GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"),
^
../../gcc-5.0-20141105/gcc/tree-core.h:1475:2: note: did you mean class here?
 struct symtab_node *symtab_node;
 ^~~~~~
 class
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:41:
../../gcc-5.0-20141105/gcc/cgraph.h:1382:19: warning: struct 'lto_input_block' was previously declared as a class [-Wmismatched-tags]
  void stream_in (struct lto_input_block *, struct data_in *data_in);
                  ^
../../gcc-5.0-20141105/gcc/lto-streamer.h:310:7: note: previous use is here
class lto_input_block
      ^
../../gcc-5.0-20141105/gcc/cgraph.h:1382:19: note: did you mean class here?
  void stream_in (struct lto_input_block *, struct data_in *data_in);
                  ^~~~~~
                  class
../../gcc-5.0-20141105/gcc/cgraph.h:1433:10: warning: class 'cgraph_node' was previously declared as a struct [-Wmismatched-tags]
  friend class cgraph_node;
         ^
../../gcc-5.0-20141105/gcc/cgraph.h:764:39: note: previous use is here
struct GTY((tag ("SYMTAB_FUNCTION"))) cgraph_node : public symtab_node {
                                      ^
../../gcc-5.0-20141105/gcc/cgraph.h:1433:10: note: did you mean struct here?
  friend class cgraph_node;
         ^~~~~
         struct
../../gcc-5.0-20141105/gcc/cgraph.h:1786:10: warning: class 'cgraph_node' was previously declared as a struct [-Wmismatched-tags]
  friend class cgraph_node;
         ^
../../gcc-5.0-20141105/gcc/cgraph.h:764:39: note: previous use is here
struct GTY((tag ("SYMTAB_FUNCTION"))) cgraph_node : public symtab_node {
                                      ^
../../gcc-5.0-20141105/gcc/cgraph.h:1786:10: note: did you mean struct here?
  friend class cgraph_node;
         ^~~~~
         struct
../../gcc-5.0-20141105/gcc/cgraph.h:1787:10: warning: class 'cgraph_edge' was previously declared as a struct [-Wmismatched-tags]
  friend class cgraph_edge;
         ^
../../gcc-5.0-20141105/gcc/cgraph.h:1432:17: note: previous use is here
            for_user)) cgraph_edge {
                       ^
../../gcc-5.0-20141105/gcc/cgraph.h:1787:10: note: did you mean struct here?
  friend class cgraph_edge;
         ^~~~~
         struct
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:51:72: error: use of undeclared
      identifier 'do_not_use_isalnum_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isalnum(int __c) {return isalnum(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:126:20: note: expanded from macro 'isalnum'
#define isalnum(c) do_not_use_isalnum_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:59:72: error: use of undeclared
      identifier 'do_not_use_isalpha_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isalpha(int __c) {return isalpha(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:124:20: note: expanded from macro 'isalpha'
#define isalpha(c) do_not_use_isalpha_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:75:72: error: use of undeclared
      identifier 'do_not_use_iscntrl_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_iscntrl(int __c) {return iscntrl(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:128:20: note: expanded from macro 'iscntrl'
#define iscntrl(c) do_not_use_iscntrl_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:83:72: error: use of undeclared
      identifier 'do_not_use_isdigit_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isdigit(int __c) {return isdigit(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:130:20: note: expanded from macro 'isdigit'
#define isdigit(c) do_not_use_isdigit_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:91:72: error: use of undeclared
      identifier 'do_not_use_isgraph_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isgraph(int __c) {return isgraph(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:132:20: note: expanded from macro 'isgraph'
#define isgraph(c) do_not_use_isgraph_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:99:72: error: use of undeclared
      identifier 'do_not_use_islower_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_islower(int __c) {return islower(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:134:20: note: expanded from macro 'islower'
#define islower(c) do_not_use_islower_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:107:72: error: use of undeclared
      identifier 'do_not_use_isprint_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isprint(int __c) {return isprint(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:136:20: note: expanded from macro 'isprint'
#define isprint(c) do_not_use_isprint_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:115:72: error: use of undeclared
      identifier 'do_not_use_ispunct_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_ispunct(int __c) {return ispunct(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:138:20: note: expanded from macro 'ispunct'
#define ispunct(c) do_not_use_ispunct_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:123:72: error: use of undeclared
      identifier 'do_not_use_isspace_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isspace(int __c) {return isspace(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:140:20: note: expanded from macro 'isspace'
#define isspace(c) do_not_use_isspace_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:131:72: error: use of undeclared
      identifier 'do_not_use_isupper_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isupper(int __c) {return isupper(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:142:20: note: expanded from macro 'isupper'
#define isupper(c) do_not_use_isupper_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:139:73: error: use of undeclared
      identifier 'do_not_use_isxdigit_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_isxdigit(int __c) {return isxdigit(__c);}
                                                                        ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:144:21: note: expanded from macro 'isxdigit'
#define isxdigit(c) do_not_use_isxdigit_with_safe_ctype
                    ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:147:72: error: use of undeclared
      identifier 'do_not_use_tolower_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_tolower(int __c) {return tolower(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:148:20: note: expanded from macro 'tolower'
#define tolower(c) do_not_use_tolower_with_safe_ctype
                   ^
In file included from ../../gcc-5.0-20141105/gcc/ipa-chkp.c:44:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:438:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwchar:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:155:72: error: use of undeclared
      identifier 'do_not_use_toupper_with_safe_ctype'
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_toupper(int __c) {return toupper(__c);}
                                                                       ^
../../gcc-5.0-20141105/gcc/../include/safe-ctype.h:146:20: note: expanded from macro 'toupper'
#define toupper(c) do_not_use_toupper_with_safe_ctype
                   ^
41 warnings and 13 errors generated.
Comment 1 Jack Howarth 2014-11-05 16:16:40 UTC
Bootstrap attempted with...

 ../gcc-5.0-20141105/configure --prefix=/sw --prefix=/sw/lib/gcc5.0 --mandir=/sw/share/man --infodir=/sw/lib/gcc5.0/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-5.0
Comment 2 Jack Howarth 2014-11-05 17:38:54 UTC
Created attachment 33897 [details]
patch to pass fix by appending #include <sstream> to gcc/ipa-chkp.c
Comment 3 Francois-Xavier Coudert 2014-11-07 08:43:04 UTC
Look at the analysis in PR63699. It's probably the same cause for the problem, and hence the same fix.
Comment 4 Jack Howarth 2014-11-09 20:37:53 UTC
Patch posted at https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00661.html.

Note that the alternate approach of modifying gcc/system.h to include <string>
conditionally on __cplusplus before "safe-ctype.h" causes bootstrap breakage
elsewhere on darwin.
Comment 5 Francois-Xavier Coudert 2014-11-11 09:20:38 UTC
Author: fxcoudert
Date: Tue Nov 11 09:20:07 2014
New Revision: 217342

URL: https://gcc.gnu.org/viewcvs?rev=217342&root=gcc&view=rev
Log:
	PR bootstrap/63699
	PR bootstrap/63750

	* system.h: Include <string> before "safe-ctype.h"
	* wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
	calls to min/max with wi namespace.
	* ipa-chkp.c: Don't include <string>.

	* plugin.cc: Don't include <string>.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-chkp.c
    trunk/gcc/system.h
    trunk/gcc/wide-int.h
    trunk/libcc1/ChangeLog
    trunk/libcc1/plugin.cc
Comment 6 Francois-Xavier Coudert 2014-11-11 09:22:12 UTC
Fixed.