Skip to content
Snippets Groups Projects
  1. Mar 29, 2005
  2. Mar 28, 2005
  3. Mar 19, 2005
  4. Mar 16, 2005
  5. Mar 15, 2005
    • Geoffrey Keating's avatar
      Index: libcpp/ChangeLog · 6baba9bb
      Geoffrey Keating authored
      2005-03-14  Geoffrey Keating  <geoffk@apple.com>
      
      	* lex.c (forms_identifier_p): Disable UCNs in C89 mode.
      
      Index: gcc/testsuite/ChangeLog
      2005-03-14  Geoffrey Keating  <geoffk@apple.com>
      
      	* gcc.dg/cpp/ucnid-6.c: New.
      
      From-SVN: r96475
      6baba9bb
    • Geoffrey Keating's avatar
      Index: gcc/ChangeLog · 50668cf6
      Geoffrey Keating authored
      2005-03-14  Geoffrey Keating  <geoffk@apple.com>
      
      	* doc/cppopts.texi (-fexec-charset): Add concept index entry.
      	(-fwide-exec-charset): Likewise.
      	(-finput-charset): Likewise.
      	* doc/invoke.texi (Warning Options): Document -Wnormalized=.
      	* c-opts.c (c_common_handle_option): Handle -Wnormalized=.
      	* c.opt (Wnormalized): New.
      
      Index: libcpp/ChangeLog
      2005-03-14  Geoffrey Keating  <geoffk@apple.com>
      
      	* init.c (cpp_create_reader): Default warn_normalize to normalized_C.
      	* charset.c: Update for new format of ucnid.h.
      	(ucn_valid_in_identifier): Update for new format of ucnid.h.
      	Add NST parameter, and update it; update callers.
      	(cpp_valid_ucn): Add NST parameter, update callers.  Replace abort
      	with cpp_error.
      	(convert_ucn): Pass normalize_state to cpp_valid_ucn.
      	* internal.h (struct normalize_state): New.
      	(INITIAL_NORMALIZE_STATE): New.
      	(NORMALIZE_STATE_RESULT): New.
      	(NORMALIZE_STATE_UPDATE_IDNUM): New.
      	(_cpp_valid_ucn): New.
      	* lex.c (warn_about_normalization): New.
      	(forms_identifier_p): Add normalize_state parameter, update callers.
      	(lex_identifier): Add normalize_state parameter, update callers.  Keep
      	the state current.
      	(lex_number): Likewise.
      	(_cpp_lex_direct): Pass normalize_state to subroutines.  Check
      	it with warn_about_normalization.
      	* makeucnid.c: New.
      	* ucnid.h: Replace.
      	* ucnid.pl: Remove.
      	* ucnid.tab: Make appropriate for input to makeucnid.c.  Remove
      	comments about obsolete version of C++.
      	* include/cpplib.h (enum cpp_normalize_level): New.
      	(struct cpp_options): Add warn_normalize field.
      
      Index: gcc/testsuite/ChangeLog
      2005-03-14  Geoffrey Keating  <geoffk@apple.com>
      
      	* gcc.dg/cpp/normalize-1.c: New.
      	* gcc.dg/cpp/normalize-2.c: New.
      	* gcc.dg/cpp/normalize-3.c: New.
      	* gcc.dg/cpp/normalize-4.c: New.
      	* gcc.dg/cpp/ucnid-4.c: New.
      	* gcc.dg/cpp/ucnid-5.c: New.
      	* g++.dg/cpp/normalize-1.C: New.
      	* g++.dg/cpp/ucnid-1.C: New.
      
      From-SVN: r96459
      50668cf6
  6. Mar 12, 2005
    • Geoffrey Keating's avatar
      Index: libcpp/ChangeLog · 47e20491
      Geoffrey Keating authored
      2005-03-12  Geoffrey Keating  <geoffk@apple.com>
      
      	* directives.c (glue_header_name): Update call to cpp_spell_token.
      	* internal.h (_cpp_interpret_identifier): New.
      	* charset.c (_cpp_interpret_identifier): New.
      	(_cpp_valid_ucn): Allow UCN version of '$'.
      	* lex.c (lex_identifier): Add extra parameter to indicate if initial
      	character was '$' or '\'.  Support identifiers with UCNs.
      	(forms_identifier_p): Allow UCNs.
      	(_cpp_lex_direct): Pass extra parameter to lex_identifier.
      	(utf8_to_ucn): New.
      	(cpp_spell_token): Add FORSTRING parameter.  Use it.
      	(cpp_token_as_text): Update call to cpp_spell_token.
      	(cpp_output_token): Write UCNs back out.
      	(stringify_arg): Update call to cpp_spell_token.
      	(paste_tokens): Likewise.
      	(cpp_macro_definition): Likewise.
      	* macro.c (stringify_arg): Likewise.
      	(paste_tokens): Likewise.
      	(cpp_macro_definition): Likewise.
      	* include/cpplib.h: Add parameter to cpp_spell_token.
      
      Index: gcc/ChangeLog
      2005-03-12  Geoffrey Keating  <geoffk@apple.com>
      
      	* c-lex.c (c_lex_with_flags): Add parameter to call to
      	cpp_spell_token.
      
      Index: gcc/testsuite/ChangeLog
      2005-03-12  Geoffrey Keating  <geoffk@apple.com>
      
      	* gcc.dg/ucnid-1.c: New.
      	* gcc.dg/ucnid-2.c: New.
      	* gcc.dg/ucnid-3.c: New.
      	* gcc.dg/ucnid-4.c: New.
      	* gcc.dg/ucnid-5.c: New.
      	* gcc.dg/ucnid-6.c: New.
      	* gcc.dg/cpp/ucnid-1.c: New.
      	* gcc.dg/cpp/ucnid-2.c: New.
      	* gcc.dg/cpp/ucnid-3.c: New.
      	* g++.dg/other/ucnid-1.C: New.
      
      From-SVN: r96333
      47e20491
  7. Mar 04, 2005
  8. Feb 28, 2005
  9. Feb 25, 2005
  10. Feb 20, 2005
    • Zack Weinberg's avatar
      re PR middle-end/18785 (isdigit builtin function fails with EBCDIC character sets) · c5ff069d
      Zack Weinberg authored
      	PR 18785
      libcpp:
      	* charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
      	(cpp_host_to_exec_charset): New function.
      	* include/cpplib.h: Declare cpp_host_to_exec_charset.
      
      gcc:
      	* langhooks.h (struct lang_hooks): Add to_target_charset.
      	* langhooks.c (lhd_to_target_charset): New function.
      	* langhooks-def.h: Declare lhd_to_target_charset.
      	(LANG_HOOKS_TO_TARGET_CHARSET): New macro.
      	(LANG_HOOKS_INITIALIZER): Update.
      	* c-common.c (c_common_to_target_charset): New function.
      	* c-common.h: Declare it.
      	* c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
      	c_common_to_target_charset.
      
      	* defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
      	(TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
      	Delete definitions.
      	* system.h: Poison them.
      	* doc/tm.texi: Don't discuss them.
      	* builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
      	* c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
      	(pp_c_char): Do not attempt to generate letter escapes for
      	newline, tab, etc.
      	* config/arm/arm.c (output_ascii_pseudo_op): Likewise.
      	* config/mips/mips.c (mips_output_ascii): Likewise.
      gcc/cp:
      	* cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
      	c_common_to_target_charset.  Delete bogus comment.
      gcc/testsuite:
      	* gcc.dg/charset/builtin1.c: New test.
      
      From-SVN: r95304
      c5ff069d
  11. Feb 19, 2005
  12. Feb 15, 2005
    • Eric Christopher's avatar
      re PR preprocessor/19077 (Internal compiler error compiling MPlayer) · 6da55c00
      Eric Christopher authored
      2005-02-15  Eric Christopher  <echristo@redhat.com>
      
      	PR preprocessor/19077
      	* macro.c (cpp_macro_definition): Move handling of whitespace
      	to PREV_WHITE conditional. Remove overloading of len
      	variable.
      
      2005-02-15  Eric Christopher  <echristo@redhat.com>
      
      	* gcc.dg/cpp/20050215-1.c: New file.
      
      From-SVN: r95080
      6da55c00
  13. Feb 14, 2005
    • Kazu Hirata's avatar
      directives.c, [...]: Update copyright. · 31c3e631
      Kazu Hirata authored
      	* directives.c, files.c, init.c, internal.h, macro.c, pch.c,
      	traditional.c: Update copyright.
      
      From-SVN: r95012
      31c3e631
    • Paolo Bonzini's avatar
      re PR bootstrap/19818 (GCC 4.0 cannot bootstrap itself) · be0f1e54
      Paolo Bonzini authored
      include:
      2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR bootstrap/19818
      	* ansidecl.h (PARAMS): Guard from redefinition.
      
      libcpp:
      2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR bootstrap/19818
      	* configure.ac: Check for declaration of basename and getopt.
      	* config.in: Regenerate.
      	* configure: Regenerate.
      	* internal.h (ustrcspn): New.
      	* macro.c (create_iso_definition): Fix allocation of memory.
      	(padding_token): Add cast to remove const-ness.
      	* pch.c (cpp_read_state): Use ustrcspn.
      
      From-SVN: r95003
      be0f1e54
  14. Feb 09, 2005
    • Mike Stump's avatar
      files.c (pchf_adder): Remove. · ecddfb39
      Mike Stump authored
              * files.c (pchf_adder): Remove.
              (struct pchf_adder_info): Likewise.
              (_cpp_save_file_entries): Write out all files so that #import works.
      
      From-SVN: r94755
      ecddfb39
  15. Jan 23, 2005
    • Joseph Myers's avatar
      re PR bootstrap/18058 (Bootstrap fails with non-GCC compilers) · 9fcdd891
      Joseph Myers authored
      config:
      	* warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Don't do
      	anything for non-GCC compilers.
      
      libcpp:
      	* configure: Regenerate.
      
      gcc:
      	PR bootstrap/18058
      	* recog.c (recog_memoized): Don't define if GENERATOR_FILE.
      	* ggc-none.c (ggc_free): Define.
      
      From-SVN: r94123
      9fcdd891
  16. Jan 11, 2005
  17. Jan 04, 2005
    • Geoffrey Keating's avatar
      Index: libcpp/ChangeLog · 942926ad
      Geoffrey Keating authored
      2005-01-03  Geoffrey Keating  <geoffk@apple.com>
      
      	* files.c (_cpp_find_file): Add files found by search_path_exhausted
      	to the list of all files.
      
      Index: gcc/testsuite/ChangeLog
      2005-01-03  Geoffrey Keating  <geoffk@apple.com>
      	    Robert Bowdidge <bowdidge@apple.com>
      
      	* gcc.dg/cpp/subframework1.c: New.
      	* gcc.dg/cpp/frame/one.framework/Frameworks/OneSub.framework/Headers/A.h: New.
      	* gcc.dg/cpp/frame/one.framework/Frameworks/OneSub.framework/Headers/B.h: New.
      	* gcc.dg/cpp/frame/one.framework/Frameworks/OneSub.framework/Headers/C.h: New.
      	* gcc.dg/cpp/frame/one.framework/Headers/one-includeSubs.h: New.
      
      Co-Authored-By: default avatarRobert Bowdidge <bowdidge@apple.com>
      
      From-SVN: r92883
      942926ad
  18. Jan 02, 2005
  19. Dec 15, 2004
  20. Dec 04, 2004
  21. Dec 02, 2004
  22. Nov 28, 2004
  23. Nov 27, 2004
  24. Nov 24, 2004
  25. Nov 23, 2004
    • Daniel Jacobowitz's avatar
      sol2-c.c (solaris_register_pragmas): Use c_register_pragma_with_expansion. · b5b3e36a
      Daniel Jacobowitz authored
      
      gcc:
      2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
                  Joseph Myers  <joseph@codesourcery.com>
      
      	* config/sol2-c.c (solaris_register_pragmas): Use
      	c_register_pragma_with_expansion.
      	* config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
      	* c-pragma.c (c_register_pragma): Update call to
      	cpp_register_pragma.
      	(c_register_pragma_with_expansion): New function.
      	(init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
      	* c-pragma.h (c_register_pragma_with_expansion): New prototype.
      	* doc/extend.texi (Solaris Pragmas): Mention macro expansion for
      	#pragma align.
      	* doc/tm.texi (c_register_pragma_with_expansion,
      	HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
      
      gcc/testsuite:
      2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
      
      	* gcc.dg/pragma-align-2.c: Test macro expansion.
      	* gcc.dg/pragma-pack-2.c: New test.
      
      libcpp:
      2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
                  Joseph Myers  <joseph@codesourcery.com>
      
      	* internal.h (struct lexer_state): Add in_deferred_pragma.
      	* directives.c (struct pragma_entry): Add allow_expansion.
      	(insert_pragma_entry): Take allow_expansion flag.
      	(register_pragma): Likewise.
      	(cpp_register_pragma): Likewise.
      	(_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
      	(do_pragma): Honor allow_expansion.
      	(cpp_handle_deferred_pragma): Set in_deferred_pragma.
      	* include/cpplib.h (cpp_register_pragma): Update prototype.
      
      Co-Authored-By: default avatarJoseph Myers <joseph@codesourcery.com>
      
      From-SVN: r91117
      b5b3e36a
  26. Nov 18, 2004
    • Daniel Jacobowitz's avatar
      configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set need_64bit_hwint=yes. · a8e68029
      Daniel Jacobowitz authored
      
      libcpp:
      2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
                  Mark Mitchell  <mark@codesourcery.com>
      
      	* configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
      	need_64bit_hwint=yes.
      	* configure: Regenerate.
      
      gcc:
      2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
                  Mark Mitchell  <mark@codesourcery.com>
      
      	* config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
      	* config/i386/i386.c (i386_solaris_elf_named_section): New
      	function.
      	* config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
      	* config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
      	64-bit.
      	(ASM_QUAD): Don't undefine for biarch targets.
      	* config/i386/t-sol2: Introduce multilib support.
      
      gcc/testsuite:
      2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
                  Mark Mitchell  <mark@codesourcery.com>
      
      	* testsuite/gcc.dg/pragma-init-fini-2.c: New test.
      
      Co-Authored-By: default avatarMark Mitchell <mark@codesourcery.com>
      
      From-SVN: r90839
      a8e68029
  27. Nov 09, 2004
    • Joseph Myers's avatar
      * cpplib.pot: Regenerate. · d34aacdf
      Joseph Myers authored
      From-SVN: r90369
      d34aacdf
    • Joseph Myers's avatar
      Makefile.in ($(PACKAGE).pot): New rule. · 50f47ee0
      Joseph Myers authored
      	* Makefile.in ($(PACKAGE).pot): New rule.  Depend on
      	po/$(PACKAGE).pot.
      	(po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
      	arguments.  Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
      	Remove local srcdir path from generated file.
      
      From-SVN: r90368
      50f47ee0
  28. Nov 04, 2004
  29. Oct 27, 2004
  30. Oct 14, 2004
Loading