History

upgrade to gcc 4.9.1

Wolfgang Thaller committed 12 years ago

Commit 449227a1 parent aaf905c28754 files · +2479258 −1097659Browse files

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

Unified · Split

gcc/libcpp/include/cpplib.h+38−10
@@ -1,7 +1,5 @@
1/* Definitions for CPP library.1/* Definitions for CPP library.
2 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,2 Copyright (C) 1995-2014 Free Software Foundation, Inc.
3 2004, 2005, 2007, 2008, 2009, 2010, 2011
4 Free Software Foundation, Inc.
5 Written by Per Bothner, 1994-95.3 Written by Per Bothner, 1994-95.
6 4
7This program is free software; you can redistribute it and/or modify it5This program is free software; you can redistribute it and/or modify it
@@ -167,7 +165,8 @@ enum cpp_ttype · 159 unmodified lines
167/* C language kind, used when calling cpp_create_reader. */165/* C language kind, used when calling cpp_create_reader. */
168enum c_lang {CLK_GNUC89 = 0, CLK_GNUC99, CLK_GNUC11,166enum c_lang {CLK_GNUC89 = 0, CLK_GNUC99, CLK_GNUC11,
169 CLK_STDC89, CLK_STDC94, CLK_STDC99, CLK_STDC11,167 CLK_STDC89, CLK_STDC94, CLK_STDC99, CLK_STDC11,
170 CLK_GNUCXX, CLK_CXX98, CLK_GNUCXX11, CLK_CXX11, CLK_ASM};168 CLK_GNUCXX, CLK_CXX98, CLK_GNUCXX11, CLK_CXX11,
169 CLK_GNUCXX1Y, CLK_CXX1Y, CLK_ASM};
171 170
172/* Payload of a NUMBER, STRING, CHAR or COMMENT token. */171/* Payload of a NUMBER, STRING, CHAR or COMMENT token. */
173struct GTY(()) cpp_string {172struct GTY(()) cpp_string {
@@ -249,7 +248,7 @@ struct GTY(()) cpp_token { · 75 unmodified lines
249};248};
250 249
251/* Say which field is in use. */250/* Say which field is in use. */
252extern enum cpp_token_fld_kind cpp_token_val_index (cpp_token *tok);251extern enum cpp_token_fld_kind cpp_token_val_index (const cpp_token *tok);
253 252
254/* A type wide enough to hold any multibyte source character.253/* A type wide enough to hold any multibyte source character.
255 cpplib's character constant interpreter requires an unsigned type.254 cpplib's character constant interpreter requires an unsigned type.
@@ -338,6 +337,9 @@ struct cpp_options · 82 unmodified lines
338 /* Nonzero means warn if slash-star appears in a comment. */337 /* Nonzero means warn if slash-star appears in a comment. */
339 unsigned char warn_comments;338 unsigned char warn_comments;
340 339
340 /* Nonzero means to warn about __DATA__, __TIME__ and __TIMESTAMP__ usage. */
341 unsigned char warn_date_time;
342
341 /* Nonzero means warn if a user-supplied include directory does not343 /* Nonzero means warn if a user-supplied include directory does not
342 exist. */344 exist. */
343 unsigned char warn_missing_include_dirs;345 unsigned char warn_missing_include_dirs;
@@ -424,9 +426,27 @@ struct cpp_options · 80 unmodified lines
424 /* True for traditional preprocessing. */426 /* True for traditional preprocessing. */
425 unsigned char traditional;427 unsigned char traditional;
426 428
427 /* Nonzero for C++ 2011 Standard user-defnied literals. */429 /* Nonzero for C++ 2011 Standard user-defined literals. */
428 unsigned char user_literals;430 unsigned char user_literals;
429 431
432 /* Nonzero means warn when a string or character literal is followed by a
433 ud-suffix which does not beging with an underscore. */
434 unsigned char warn_literal_suffix;
435
436 /* Nonzero means interpret imaginary, fixed-point, or other gnu extension
437 literal number suffixes as user-defined literal number suffixes. */
438 unsigned char ext_numeric_literals;
439
440 /* Nonzero means extended identifiers allow the characters specified
441 in C11 and C++11. */
442 unsigned char c11_identifiers;
443
444 /* Nonzero for C++ 2014 Standard binary constants. */
445 unsigned char binary_constants;
446
447 /* Nonzero for C++ 2014 Standard digit separators. */
448 unsigned char digit_separators;
449
430 /* Holds the name of the target (execution) character set. */450 /* Holds the name of the target (execution) character set. */
431 const char *narrow_charset;451 const char *narrow_charset;
432 452
@@ -485,6 +505,9 @@ struct cpp_options · 52 unmodified lines
485 505
486 /* True disables tokenization outside of preprocessing directives. */506 /* True disables tokenization outside of preprocessing directives. */
487 bool directives_only;507 bool directives_only;
508
509 /* True enables canonicalization of system header file paths. */
510 bool canonical_system_headers;
488};511};
489 512
490/* Callback for header lookup for HEADER, which is the name of a513/* Callback for header lookup for HEADER, which is the name of a
@@ -847,13 +870,15 @@ struct cpp_num · 356 unmodified lines
847/* Classify a CPP_NUMBER token. The return value is a combination of870/* Classify a CPP_NUMBER token. The return value is a combination of
848 the flags from the above sets. */871 the flags from the above sets. */
849extern unsigned cpp_classify_number (cpp_reader *, const cpp_token *,872extern unsigned cpp_classify_number (cpp_reader *, const cpp_token *,
850 const char **);873 const char **, source_location);
851 874
852/* Return the classification flags for a float suffix. */875/* Return the classification flags for a float suffix. */
853extern unsigned int cpp_interpret_float_suffix (const char *, size_t);876extern unsigned int cpp_interpret_float_suffix (cpp_reader *, const char *,
877 size_t);
854 878
855/* Return the classification flags for an int suffix. */879/* Return the classification flags for an int suffix. */
856extern unsigned int cpp_interpret_int_suffix (const char *, size_t);880extern unsigned int cpp_interpret_int_suffix (cpp_reader *, const char *,
881 size_t);
857 882
858/* Evaluate a token classified as category CPP_N_INTEGER. */883/* Evaluate a token classified as category CPP_N_INTEGER. */
859extern cpp_num cpp_interpret_integer (cpp_reader *, const cpp_token *,884extern cpp_num cpp_interpret_integer (cpp_reader *, const cpp_token *,
@@ -906,7 +931,9 @@ enum { · 46 unmodified lines
906 CPP_W_CXX_OPERATOR_NAMES,931 CPP_W_CXX_OPERATOR_NAMES,
907 CPP_W_NORMALIZE,932 CPP_W_NORMALIZE,
908 CPP_W_INVALID_PCH,933 CPP_W_INVALID_PCH,
909 CPP_W_WARNING_DIRECTIVE934 CPP_W_WARNING_DIRECTIVE,
935 CPP_W_LITERAL_SUFFIX,
936 CPP_W_DATE_TIME
910};937};
911 938
912/* Output a diagnostic of some kind. */939/* Output a diagnostic of some kind. */
@@ -1005,6 +1032,7 @@ extern bool cpp_included (cpp_reader *, const char *); · 92 unmodified lines
1005extern bool cpp_included_before (cpp_reader *, const char *, source_location);1032extern bool cpp_included_before (cpp_reader *, const char *, source_location);
1006extern void cpp_make_system_header (cpp_reader *, int, int);1033extern void cpp_make_system_header (cpp_reader *, int, int);
1007extern bool cpp_push_include (cpp_reader *, const char *);1034extern bool cpp_push_include (cpp_reader *, const char *);
1035extern bool cpp_push_default_include (cpp_reader *, const char *);
1008extern void cpp_change_file (cpp_reader *, enum lc_reason, const char *);1036extern void cpp_change_file (cpp_reader *, enum lc_reason, const char *);
1009extern const char *cpp_get_path (struct _cpp_file *);1037extern const char *cpp_get_path (struct _cpp_file *);
1010extern cpp_dir *cpp_get_dir (struct _cpp_file *);1038extern cpp_dir *cpp_get_dir (struct _cpp_file *);

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