1. 25 Apr, 2010 1 commit
    • c-common.c (flag_isoc1x): New. · 2778d766
      gcc:
      	* c-common.c (flag_isoc1x): New.
      	(flag_isoc99): Update comment.
      	* c-common.h (flag_isoc1x): New.
      	(flag_isoc99): Update comment.
      	* c-cppbuiltin.c (builtin_define_float_constants): Also define
      	__<type>_DECIMAL_DIG__.
      	* c-opts.c (set_std_c1x): New.
      	(c_common_handle_option): Handle -std=c1x and -std=gnu1x.
      	(set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
      	* c.opt (-std=c1x, -std=gnu1x): New options.
      	* doc/cpp.texi: Mention -std=c1x.
      	* doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
      	* doc/extend.texi: Mention -std=c1x and -std=gnu1x.
      	* doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
      	* doc/standards.texi: Mention C1X.
      	* ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
      	LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
      	LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
      	Define for C1X.
      
      gcc/testsuite:
      	* gcc.dg/c90-float-1.c: Also test that C1X macros are not defined.
      	* gcc.dg/c99-float-1.c: Also test that C1X macros are not defined.
      	* gcc.dg/c1x-float-1.c: New test.
      
      libcpp:
      	* include/cpplib.h (enum c_lang): Add CLK_GNUC1X and CLK_STDC1X.
      	* init.c (lang_defaults): Add entries for new language variants.
      	(cpp_init_builtins): Define __STDC_VERSION__ to 201000L for C1X
      	variants.
      
      From-SVN: r158711
      Joseph Myers committed
  2. 19 Apr, 2010 1 commit
  3. 18 Apr, 2010 1 commit
  4. 16 Apr, 2010 2 commits
  5. 09 Apr, 2010 1 commit
  6. 07 Apr, 2010 1 commit
    • diagnostic.h (diagnostic_override_option_index): New macro to set a diagnostic's option_index. · 87cf0651
      	* diagnostic.h (diagnostic_override_option_index): New macro to
      	set a diagnostic's option_index.
      	* c-tree.h (c_cpp_error): Add warning reason argument.
      	* opts.c (_warning_as_error_callback): New.
      	(register_warning_as_error_callback): Store callback for
      	warnings enabled via enable_warning_as_error.
      	(enable_warning_as_error): Call callback, minor code tidy.
      	* opts.h (register_warning_as_error_callback): Declare.
      	* c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
      	response to -Werror=.
      	(c_common_init_options): Register warning_as_error_callback in opts.c.
      	* common.opt: Add -Wno-cpp option.
      	* c-common.c (struct reason_option_codes_t): Map cpp warning
      	reason codes to gcc option indexes.
      	* (c_option_controlling_cpp_error): New function, lookup the gcc
      	option index for a cpp warning reason code.
      	* (c_cpp_error): Add warning reason argument, call
      	c_option_controlling_cpp_error for diagnostic_override_option_index.
      	* doc/invoke.texi: Document -Wno-cpp.
      
      	* cpp.c (cb_cpp_error): Add warning reason argument, set a value
      	for diagnostic_override_option_index if CPP_W_WARNING_DIRECTIVE.
      
      	* directives.c (do_diagnostic): Add warning reason argument,
      	call appropriate error reporting function for code.
      	(directive_diagnostics): Call specific warning functions with
      	warning reason where appropriate.
      	(do_error, do_warning, do_pragma_dependency): Add warning reason
      	argument to do_diagnostic calls.
      	* macro.c (_cpp_warn_if_unused_macro, enter_macro_context,
      	_cpp_create_definition): Call specific warning functions with
              warning reason where appropriate.
      	* Makefile.in: Add new diagnostic functions to gettext translations.
      	* include/cpplib.h (struct cpp_callbacks): Add warning reason code
      	to error callback.
      	(CPP_DL_WARNING, CPP_DL_WARNING_SYSHDR, CPP_DL_PEDWARN, CPP_DL_ERROR,
      	CPP_DL_ICE, CPP_DL_NOTE, CPP_DL_FATAL): Replace macros with enums.
      	(CPP_W_NONE, CPP_W_DEPRECATED, CPP_W_COMMENTS,
      	CPP_W_MISSING_INCLUDE_DIRS, CPP_W_TRIGRAPHS, CPP_W_MULTICHAR,
      	CPP_W_TRADITIONAL, CPP_W_LONG_LONG, CPP_W_ENDIF_LABELS,
      	CPP_W_NUM_SIGN_CHANGE, CPP_W_VARIADIC_MACROS,
      	CPP_W_BUILTIN_MACRO_REDEFINED, CPP_W_DOLLARS, CPP_W_UNDEF,
      	CPP_W_UNUSED_MACROS, CPP_W_CXX_OPERATOR_NAMES, CPP_W_NORMALIZE,
      	CPP_W_INVALID_PCH, CPP_W_WARNING_DIRECTIVE): New enums for cpp
      	warning reason codes.
      	(cpp_warning, cpp_pedwarning, cpp_warning_syshdr,
      	cpp_warning_with_line, cpp_pedwarning_with_line,
      	cpp_warning_with_line_syshdr): New specific error reporting functions.
      	* pch.c (cpp_valid_state): Call specific warning functions with
              warning reason where appropriate.
      	* errors.c (cpp_diagnostic, cpp_diagnostic_with_line): New central
      	diagnostic handlers.
      	(cpp_warning, cpp_pedwarning, cpp_warning_syshdr,
      	cpp_warning_with_line, cpp_pedwarning_with_line,
      	cpp_warning_with_line_syshdr): New specific error reporting functions.
      	* expr.c (cpp_classify_number, eval_token, num_unary_op): Call
      	specific warning functions with warning reason where appropriate.
      	* lex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
      	warn_about_normalization, lex_identifier_intern, lex_identifier,
      	_cpp_lex_direct): Ditto.
      	* charset.c (_cpp_valid_ucn, convert_hex, convert_escape,
      	narrow_str_to_charconst): Ditto.
      
      	* gcc.dg/cpp/warn-undef-2.c: New.
      	* gcc.dg/cpp/warn-traditional-2.c: New.
      	* gcc.dg/cpp/warn-comments-2.c: New.
      	* gcc.dg/cpp/warning-directive-1.c: New.
      	* gcc.dg/cpp/warn-long-long.c: New.
      	* gcc.dg/cpp/warn-traditional.c: New.
      	* gcc.dg/cpp/warn-variadic-2.c: New.
      	* gcc.dg/cpp/warn-undef.c: New.
      	* gcc.dg/cpp/warn-normalized-1.c: New.
      	* gcc.dg/cpp/warning-directive-2.c: New.
      	* gcc.dg/cpp/warn-long-long-2.c: New.
      	* gcc.dg/cpp/warn-variadic.c: New.
      	* gcc.dg/cpp/warn-normalized-2.c: New.
      	* gcc.dg/cpp/warning-directive-3.c: New.
      	* gcc.dg/cpp/warn-deprecated-2.c: New.
      	* gcc.dg/cpp/warn-trigraphs-1.c: New.
      	* gcc.dg/cpp/warn-multichar-2.c: New.
      	* gcc.dg/cpp/warn-normalized-3.c: New.
      	* gcc.dg/cpp/warning-directive-4.c: New.
      	* gcc.dg/cpp/warn-unused-macros.c: New.
      	* gcc.dg/cpp/warn-trigraphs-2.c: New.
      	* gcc.dg/cpp/warn-cxx-compat-2.c: New.
      	* gcc.dg/cpp/warn-cxx-compat.c: New.
      	* gcc.dg/cpp/warn-redefined.c: New.
      	* gcc.dg/cpp/warn-trigraphs-3.c: New.
      	* gcc.dg/cpp/warn-unused-macros-2.c: New.
      	* gcc.dg/cpp/warn-deprecated.c: New.
      	* gcc.dg/cpp/warn-trigraphs-4.c: New.
      	* gcc.dg/cpp/warn-redefined-2.c: New.
      	* gcc.dg/cpp/warn-comments.c: New.
      	* gcc.dg/cpp/warn-multichar.c: New.
      	* g++.dg/cpp/warning-directive-1.C: New.
      	* g++.dg/cpp/warning-directive-2.C: New.
      	* g++.dg/cpp/warning-directive-3.C: New.
      	* g++.dg/cpp/warning-directive-4.C: New.
      	* gfortran.dg/warning-directive-1.F90: New.
      	* gfortran.dg/warning-directive-3.F90: New.
      	* gfortran.dg/warning-directive-2.F90: New.
      	* gfortran.dg/warning-directive-4.F90: New.
      
      From-SVN: r158079
      Simon Baldwin committed
  7. 06 Apr, 2010 2 commits
  8. 02 Apr, 2010 1 commit
    • Update to Automake 1.11.1. · 4d9e8446
      gcc/:
      	PR other/43620
      	* doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
      	* aclocal.m4: Regenerate.
      
      lto-plugin/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      
      intl/:
      	* aclocal.m4: Regenerate.
      
      boehm-gc/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* include/Makefile.in: Regenerate.
      
      fixincludes/:
      	* aclocal.m4: Regenerate.
      
      libcpp/:
      	* aclocal.m4: Regenerate.
      
      libdecnumber/:
      	* aclocal.m4: Regenerate.
      
      libffi/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* man/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      libgfortran/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      
      libgomp/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      libjava/classpath/:
      	* HACKING: Update required Automake version.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* doc/Makefile.in: Regenerate.
      	* doc/api/Makefile.in: Regenerate.
      	* examples/Makefile.in: Regenerate.
      	* external/Makefile.in: Regenerate.
      	* external/jsr166/Makefile.in: Regenerate.
      	* external/relaxngDatatype/Makefile.in: Regenerate.
      	* external/sax/Makefile.in: Regenerate.
      	* external/w3c_dom/Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* lib/Makefile.in: Regenerate.
      	* native/Makefile.in: Regenerate.
      	* native/fdlibm/Makefile.in: Regenerate.
      	* native/jawt/Makefile.in: Regenerate.
      	* native/jni/Makefile.in: Regenerate.
      	* native/jni/classpath/Makefile.in: Regenerate.
      	* native/jni/gconf-peer/Makefile.in: Regenerate.
      	* native/jni/gstreamer-peer/Makefile.in: Regenerate.
      	* native/jni/gtk-peer/Makefile.in: Regenerate.
      	* native/jni/java-io/Makefile.in: Regenerate.
      	* native/jni/java-lang/Makefile.in: Regenerate.
      	* native/jni/java-math/Makefile.in: Regenerate.
      	* native/jni/java-net/Makefile.in: Regenerate.
      	* native/jni/java-nio/Makefile.in: Regenerate.
      	* native/jni/java-util/Makefile.in: Regenerate.
      	* native/jni/midi-alsa/Makefile.in: Regenerate.
      	* native/jni/midi-dssi/Makefile.in: Regenerate.
      	* native/jni/native-lib/Makefile.in: Regenerate.
      	* native/jni/qt-peer/Makefile.in: Regenerate.
      	* native/jni/xmlj/Makefile.in: Regenerate.
      	* native/plugin/Makefile.in: Regenerate.
      	* resource/Makefile.in: Regenerate.
      	* scripts/Makefile.in: Regenerate.
      	* tools/Makefile.in: Regenerate.
      
      libjava/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* gcj/Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      libjava/libltdl/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      
      libmudflap/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      libobjc/:
      	* aclocal.m4: Regenerate.
      
      libssp/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      
      libstdc++-v3/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* doc/Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* libsupc++/Makefile.in: Regenerate.
      	* po/Makefile.in: Regenerate.
      	* python/Makefile.in: Regenerate.
      	* src/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      zlib/:
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      
      From-SVN: r157949
      Ralf Wildenhues committed
  9. 29 Mar, 2010 2 commits
    • More N3077 raw string changes · 00a81b8b
      	More N3077 raw string changes
      	* charset.c (cpp_interpret_string): Don't transform UCNs in raw
      	strings.
      	* lex.c (bufring_append): Split out from...
      	(lex_raw_string): ...here.  Undo trigraph and line splicing
      	transformations.  Do process line notes in multi-line literals.
      	(_cpp_process_line_notes): Ignore notes that were already handled.
      
      From-SVN: r157804
      Jason Merrill committed
    • Some raw string changes from N3077 · 52150625
      	Some raw string changes from N3077
      	* charset.c (cpp_interpret_string): Change inner delimiters to ().
      	* lex.c (lex_raw_string): Likewise.  Also disallow '\' in delimiter.
      
      From-SVN: r157797
      Jason Merrill committed
  10. 24 Feb, 2010 1 commit
  11. 11 Feb, 2010 1 commit
  12. 09 Feb, 2010 1 commit
  13. 07 Feb, 2010 1 commit
  14. 05 Feb, 2010 2 commits
  15. 11 Jan, 2010 1 commit
  16. 09 Jan, 2010 1 commit
  17. 01 Jan, 2010 1 commit
  18. 10 Dec, 2009 2 commits
  19. 07 Dec, 2009 1 commit
  20. 04 Dec, 2009 2 commits
  21. 02 Dec, 2009 1 commit
  22. 20 Nov, 2009 1 commit
  23. 11 Nov, 2009 1 commit
    • ChangeLog for libcpp · 17e7cb85
      2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
      
      	* directives.c (do_pragma_push_macro): New pragma handler.
      	(do_pragma_pop_macro): Likewise.
      	(_cpp_init_internal_pragmas): Add push_macro and
      	pop_macro handler to internal pragmas.
      	(lex_macro_node_from_str): Removed.
      	(cpp_push_definition): Replace lex_macro_node_from_str
      	by _cpp_lex_identifier.
      	(cpp_pop_definition): Likewise.
      	* internal.h (_cpp_lex_identifier): New prototype.
      	(def_pragma_macro): New structure.
      	(cpp_reader): New member pushed_macros.
      	* lex.c (_cpp_lex_identifier): New function.
      	(lex_identifier_intern): New function.
      	* init.c (cpp_create_reader): Initialize pushed_macros
      	member.
      	(cpp_destroy): Free elements in pushed_macros member.
      	* pch.c (_cpp_save_pushed_macros): New function.
      	(_cpp_restore_pushed_macros): Likewise.
      	(_cpp_restore_pushed_macros): Use _cpp_save_pushed_macros.
      	(cpp_read_state): Use _cpp_restore_pushed_macros.
      
      ChangeLog for gcc
      
      2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
      
      	* config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO):
      	Removed.
      	* c-pragma.c (def_pragma_macro_value): Likewise.
      	(def_pragma_macro): Likewise.
      	(pushed_macro_table): Likewise.
      	(HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded
      	code.
      	* doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO):
      	Removed.
      
      ChangeLog for gcc/testsuite
      
      2009-11-11  Kai Tietz  <kai.tietz@onevision.com>
      
      	* g++.dg/torture/pushpop_macro.C: New testcase.
      	* gcc.c-torture/execute/pushpop_macro.c: New testcase.
      	* gcc.dg/cpp/pragma-pop_macro-1.c: Allow test for all
      	targets.
      
      From-SVN: r154098
      Kai Tietz committed
  24. 19 Oct, 2009 1 commit
    • charset.c (cpp_init_iconv): Initialize utf8_cset_desc. · 2c6e3f55
      	* charset.c (cpp_init_iconv): Initialize utf8_cset_desc.
      	(_cpp_destroy_iconv): Destroy utf8_cset_desc, char16_cset_desc
      	and char32_cset_desc.
      	(converter_for_type): Handle CPP_UTF8STRING.
      	(cpp_interpret_string): Handle CPP_UTF8STRING and raw-strings.
      	* directives.c (get__Pragma_string): Handle CPP_UTF8STRING.
      	(parse_include): Reject raw strings.
      	* include/cpplib.h (CPP_UTF8STRING): New token type.
      	* internal.h (struct cpp_reader): Add utf8_cset_desc field.
      	* lex.c (lex_raw_string): New function.
      	(lex_string): Handle u8 string literals, call lex_raw_string
      	for raw string literals.
      	(_cpp_lex_direct): Call lex_string even for u8" and {,u,U,L,u8}R"
      	sequences.
      	* macro.c (stringify_arg): Handle CPP_UTF8STRING.
      
      	* c-common.c (c_parse_error): Handle CPP_UTF8STRING.
      	* c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
      	instead of C_LEX_RAW_STRINGS.
      	(lex_string): Handle CPP_UTF8STRING.
      	* c-parser.c (c_parser_postfix_expression): Likewise.
      	* c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
      	(C_LEX_STRING_NO_JOIN): ... this.
      
      	* parser.c (cp_lexer_print_token, cp_parser_is_string_literal,
      	cp_parser_string_literal, cp_parser_primary_expression): Likewise.
      	(cp_lexer_get_preprocessor_token): Use C_LEX_STRING_JOIN instead
      	of C_LEX_RAW_STRINGS.
      
      	* gcc.dg/raw-string-1.c: New test.
      	* gcc.dg/raw-string-2.c: New test.
      	* gcc.dg/raw-string-3.c: New test.
      	* gcc.dg/raw-string-4.c: New test.
      	* gcc.dg/raw-string-5.c: New test.
      	* gcc.dg/raw-string-6.c: New test.
      	* gcc.dg/raw-string-7.c: New test.
      	* gcc.dg/utf8-1.c: New test.
      	* gcc.dg/utf8-2.c: New test.
      	* gcc.dg/utf-badconcat2.c: New test.
      	* gcc.dg/utf-dflt2.c: New test.
      	* gcc.dg/cpp/include6.c: New test.
      	* g++.dg/ext/raw-string-1.C: New test.
      	* g++.dg/ext/raw-string-2.C: New test.
      	* g++.dg/ext/raw-string-3.C: New test.
      	* g++.dg/ext/raw-string-4.C: New test.
      	* g++.dg/ext/raw-string-5.C: New test.
      	* g++.dg/ext/raw-string-6.C: New test.
      	* g++.dg/ext/raw-string-7.C: New test.
      	* g++.dg/ext/utf8-1.C: New test.
      	* g++.dg/ext/utf8-2.C: New test.
      	* g++.dg/ext/utf-badconcat2.C: New test.
      	* g++.dg/ext/utf-dflt2.C: New test.
      
      From-SVN: r152995
      Jakub Jelinek committed
  25. 17 Oct, 2009 1 commit
  26. 14 Oct, 2009 1 commit
    • re PR preprocessor/41543 (BUILTINS_LOCATION wrong with -fpreprocessed) · 96c169e1
      	PR preprocessor/41543
      	* input.h (BUILTINS_LOCATION): Change to 1 from 2.
      	Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
      	* tree.c: Include intl.h.
      	(expand_location): Handle BUILTINS_LOCATION.
      	* Makefile.in (tree.o): Depend on intl.h.
      
      	* include/line-map.h (RESERVED_LOCATION_COUNT): Define.
      	* line-map.c (linemap_init): Initialize highest_location and
      	highest_line to RESERVED_LOCATION_COUNT-1 instead of 0.
      
      	* gcc.dg/debug/dwarf2/pr41543.c: New test.
      
      From-SVN: r152761
      Jakub Jelinek committed
  27. 10 Oct, 2009 2 commits
  28. 23 Sep, 2009 1 commit
  29. 22 Sep, 2009 1 commit
  30. 19 Sep, 2009 2 commits
    • * vi.po: Update. · 4172245c
      From-SVN: r151881
      Joseph Myers committed
    • re PR preprocessor/28435 (-MMD vs not found system header (included from a system header)) · 74dc6a11
      [libcpp/ChangeLog]
      2009-09-18  Chris Demetriou  <cgd@google.com>
      
      	PR preprocessor/28435:
      	* include/cpplib.h (struct cpp_options): Add new member
      	deps.need_preprocessor_output.
      	* files.c (open_file_failed): If preprocessor output is needed
      	always report an error.
      
      [gcc/ChangeLog]
      2009-09-19  Chris Demetriou  <cgd@google.com>
      
      	PR preprocessor/28435:
      	* c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
      	to cpplib that the preprocessor output is needed.
      
      [gcc/testsuite/ChangeLog]
      2009-09-19  Chris Demetriou  <cgd@google.com>
      
      	PR preprocessor/28435:
      	* gcc.dg/cpp/missing-header-MD.c: New test.
      	* gcc.dg/cpp/missing-header-MMD.c: New test.
      	* gcc.dg/cpp/missing-sysheader-MD.c: New test.
      	* gcc.dg/cpp/missing-sysheader-MMD.c: New test.
      
      From-SVN: r151879
      Chris Demetriou committed
  31. 13 Sep, 2009 1 commit
    • Changlog libcpp · 933608b7
      2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
      
      	* configure.ac: Set for i?86-w64-mingw*
      	need_64bit_hwint to yes.
      	* configure: Regenerated.
      
      
      ChangeLog gcc
      
      2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
      
      	* config.gcc (tm_file): Remove i386/biarch32.h
      	for i?86-w64-mingw* case.
      	(i?86-*-mingw* andx86_64-*-mingw*): Add multilib
      	support.
      	* config.host: Set for cygwin and x86/x64 mingw the
      	option use_long_long_for_widest_fast_int to yes.
      
      From-SVN: r151672
      Kai Tietz committed
  32. 12 Sep, 2009 1 commit