History

upgrade gcc to 6.3.0, binutils to 2.28

Wolfgang Thaller committed 9 years ago

Commit 0a883ac1 parent 41040e140760 files · +2452287 −2616733Browse files

Showing the changes to gcc/libcpp/include/cpplib.h (1 of 40760 files). Show all

Unified · Split

gcc/libcpp/include/cpplib.h+20−6
@@ -1,5 +1,5 @@
11 /* Definitions for CPP library.
2− Copyright (C) 1995-2015 Free Software Foundation, Inc.
2+ Copyright (C) 1995-2016 Free Software Foundation, Inc.
33 Written by Per Bothner, 1994-95.
44
55 This program is free software; you can redistribute it and/or modify it
@@ -119,6 +119,7 @@ struct _cpp_file; · 113 unmodified lines
119119 TK(WCHAR, LITERAL) /* L'char' */ \
120120 TK(CHAR16, LITERAL) /* u'char' */ \
121121 TK(CHAR32, LITERAL) /* U'char' */ \
122+ TK(UTF8CHAR, LITERAL) /* u8'char' */ \
122123 TK(OTHER, LITERAL) /* stray punctuation */ \
123124 \
124125 TK(STRING, LITERAL) /* "string" */ \
@@ -133,6 +134,7 @@ struct _cpp_file; · 8 unmodified lines
133134 TK(WCHAR_USERDEF, LITERAL) /* L'char'_suffix - C++-0x */ \
134135 TK(CHAR16_USERDEF, LITERAL) /* u'char'_suffix - C++-0x */ \
135136 TK(CHAR32_USERDEF, LITERAL) /* U'char'_suffix - C++-0x */ \
137+ TK(UTF8CHAR_USERDEF, LITERAL) /* u8'char'_suffix - C++-0x */ \
136138 TK(STRING_USERDEF, LITERAL) /* "string"_suffix - C++-0x */ \
137139 TK(WSTRING_USERDEF, LITERAL) /* L"string"_suffix - C++-0x */ \
138140 TK(STRING16_USERDEF, LITERAL) /* u"string"_suffix - C++-0x */ \
@@ -235,7 +237,8 @@ struct GTY(()) cpp_identifier { · 96 unmodified lines
235237 /* A preprocessing token. This has been carefully packed and should
236238 occupy 16 bytes on 32-bit hosts and 24 bytes on 64-bit hosts. */
237239 struct GTY(()) cpp_token {
238− source_location src_loc; /* Location of first char of token. */
240+ source_location src_loc; /* Location of first char of token,
241+ together with range of full token. */
239242 ENUM_BITFIELD(cpp_ttype) type : CHAR_BIT; /* token type */
240243 unsigned short flags; /* flags - see above */
241244
@@ -339,6 +342,9 @@ struct cpp_options · 97 unmodified lines
339342 /* Nonzero means process u/U prefix literals (UTF-16/32). */
340343 unsigned char uliterals;
341344
345+ /* Nonzero means process u8 prefixed character literals (UTF-8). */
346+ unsigned char utf8_char_literals;
347+
342348 /* Nonzero means process r/R raw strings. If this is set, uliterals
343349 must be set as well. */
344350 unsigned char rliterals;
@@ -484,6 +490,9 @@ struct cpp_options · 139 unmodified lines
484490 /* True if warn about differences between C90 and C99. */
485491 signed char cpp_warn_c90_c99_compat;
486492
493+ /* True if warn about differences between C++98 and C++11. */
494+ bool cpp_warn_cxx11_compat;
495+
487496 /* Dependency generation. */
488497 struct
489498 {
@@ -546,7 +555,7 @@ struct cpp_callbacks · 56 unmodified lines
546555 The line_map is for the new file. It is NULL if there is no new file.
547556 (In C this happens when done with <built-in>+<command line> and also
548557 when done with a main file.) This can be used for resource cleanup. */
549− void (*file_change) (cpp_reader *, const struct line_map *);
558+ void (*file_change) (cpp_reader *, const line_map_ordinary *);
550559
551560 void (*dir_change) (cpp_reader *, const char *);
552561 void (*include) (cpp_reader *, source_location, const unsigned char *,
@@ -565,9 +574,9 @@ struct cpp_callbacks · 12 unmodified lines
565574
566575 /* Called to emit a diagnostic. This callback receives the
567576 translated message. */
568− bool (*error) (cpp_reader *, int, int, source_location, unsigned int,
577+ bool (*error) (cpp_reader *, int, int, rich_location *,
569578 const char *, va_list *)
570− ATTRIBUTE_FPTR_PRINTF(6,0);
579+ ATTRIBUTE_FPTR_PRINTF(5,0);
571580
572581 /* Callbacks for when a macro is expanded, or tested (whether
573582 defined or not at the time) in #ifdef, #ifndef or "defined". */
@@ -804,6 +813,7 @@ extern int cpp_avoid_paste (cpp_reader *, const cpp_token *, · 230 unmodified lines
804813 extern const cpp_token *cpp_get_token (cpp_reader *);
805814 extern const cpp_token *cpp_get_token_with_location (cpp_reader *,
806815 source_location *);
816+extern bool cpp_fun_like_macro_p (cpp_hashnode *);
807817 extern const unsigned char *cpp_macro_definition (cpp_reader *,
808818 cpp_hashnode *);
809819 extern void _cpp_backup_tokens (cpp_reader *, unsigned int);
@@ -960,7 +970,8 @@ enum { · 150 unmodified lines
960970 CPP_W_LITERAL_SUFFIX,
961971 CPP_W_DATE_TIME,
962972 CPP_W_PEDANTIC,
963− CPP_W_C90_C99_COMPAT
973+ CPP_W_C90_C99_COMPAT,
974+ CPP_W_CXX11_COMPAT
964975 };
965976
966977 /* Output a diagnostic of some kind. */
@@ -976,6 +987,9 @@ extern bool cpp_warning_syshdr (cpp_reader *, int, const char *msgid, ...) · 9 unmodified lines
976987 /* Output a diagnostic with "MSGID: " preceding the
977988 error string of errno. No location is printed. */
978989 extern bool cpp_errno (cpp_reader *, int, const char *msgid);
990+/* Similarly, but with "FILENAME: " instead of "MSGID: ", where
991+ the filename is not localized. */
992+extern bool cpp_errno_filename (cpp_reader *, int, const char *filename);
979993
980994 /* Same as cpp_error, except additionally specifies a position as a
981995 (translation unit) physical line and physical column. If the line is

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t