1. 14 Feb, 2010 1 commit
    • intl.c (fake_ngettext): New function. · 0f667308
      2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
      
      	* intl.c (fake_ngettext): New function.
      	* intl.h (fake_ngettext): Declare.
      	(ngettext): Define macro.
      	* collect2.c (notice_translated): New function.
      	(main): Use notice_translated and ngettext.
      	* collect2.h (notice_translated): Declare.
      
      From-SVN: r156762
      Marco Poletti committed
  2. 15 Dec, 2009 1 commit
    • [multiple changes] · 6ba6f70d
      2009-12-15  Paolo Bonzini  <bonzini@gnu.org>
      	    Shujing Zhao  <pearly.zhao@oracle.com>
      
      	* intl.c (get_spaces): New.
      	* intl.h (get_spaces): New.
      
      cp:
      2009-12-15  Paolo Bonzini  <bonzini@gnu.org>
      	    Shujing Zhao  <pearly.zhao@oracle.com>
      
      	* Makefile.in (cp/pt.o): Depend on intl.h
      	* call.c (print_z_candidates): Make loop more compact,
      	choose head string depending on number of candidates,
      	extract creation of spaces string to intl.c.
      	* pt.c (print_overloaded_functions): Replace with...
      	(print_candidates_1): ... this rewrite.
      	(print_candidates): Rewrite to call print_candidates_1.
      	(most_specialized_class): Make loop more compact,
      	choose head string depending on number of candidates,
      	and size indents depending on translations.
       
      testsuite:
      2009-12-15  Shujing Zhao  <pearly.zhao@oracle.com>
      
      	* g++.dg/other/error20.C: Adjust dg-message strings.
      	* g++.dg/other/error31.C: Likewise.
      	* g++.dg/rtti/typeid6.C: Likewise.
      	* g++.dg/ext/ms-1.C: Likewise.
      	* g++.dg/parse/error19.C: Likewise.
      	* g++.dg/parse/crash5.C: Likewise.
      	* g++.dg/cpp0x/explicit4.C: Likewise.
      	* g++.dg/template/ptrmem4.C: Likewise.
      	* g++.dg/template/crash37.C: Likewise.
      	* g++.dg/template/qualttp5.C: Likewise.
      	* g++.dg/template/local6.C: Likewise.
      	* g++.dg/template/instantiate5.C: Likewise.
      	* g++.old-deja/g++.brendan/overload1.C: Likewise.
      	* g++.old-deja/g++.brendan/cvt3.C: Likewise.
      	* g++.old-deja/g++.brendan/overload4.C: Likewise.
      	* g++.old-deja/g++.jason/conversion11.C: Likewise.
      	* g++.old-deja/g++.jason/scoping10.C: Likewise.
      	* g++.old-deja/g++.other/expr1.C: Likewise.
      	* g++.old-deja/g++.other/pmf3.C: Likewise.
      	* g++.old-deja/g++.other/crash24.C: Likewise.
      	* g++.old-deja/g++.niklas/t120.C: Likewise.
      	* g++.old-deja/g++.niklas/t121.C: Likewise.
      	* g++.old-deja/g++.law/operators9.C: Likewise.
      	* g++.old-deja/g++.law/arm9.C: Likewise.
      	* g++.old-deja/g++.law/enum4.C: Likewise.
      	* g++.old-deja/g++.law/arg11.C: Likewise.
      	* g++.old-deja/g++.benjamin/15800-1.C: Likewise.
      	* g++.old-deja/g++.mike/p2431.C: Likewise.
      	* g++.old-deja/g++.mike/p438.C: Likewise.
      	* g++.old-deja/g++.mike/p9068.C: Likewise.
      	* g++.old-deja/g++.mike/p11110.C: Likewise.
      	* g++.old-deja/g++.bugs/900330_02.C: Likewise.
      
      From-SVN: r155245
      Paolo Bonzini committed
  3. 04 May, 2009 1 commit
    • intl.c (locale_encoding, [...]): New. · a3af5087
      	* intl.c (locale_encoding, locale_utf8): New.
      	(gcc_init_libintl): Initialize locale_encoding and locale_utf8.
      	* intl.h (locale_encoding, locale_utf8): Declare.
      	* pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
      	(pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
      	New.
      	* pretty-print.h (pp_identifier): Call identifier_to_locale on ID
      	argument.
      	(pp_tree_identifier): Define to call pp_base_tree_identifier.
      	(pp_base_tree_identifier): Declare as function.
      	(identifier_to_locale): Declare.
      	* Makefile.in (pretty-print.o): Update dependencies.
      	* varasm.c (finish_aliases_1): Use %qE for identifiers in
      	diagnostics.
      
      testsuite:
      	* gcc.dg/attr-alias-5.c, gcc.dg/ucnid-7.c: New tests.
      
      From-SVN: r147096
      Joseph Myers committed
  4. 20 Feb, 2009 1 commit
  5. 29 Jun, 2008 1 commit
  6. 26 Jul, 2007 1 commit
  7. 25 Jun, 2005 1 commit
  8. 18 Mar, 2005 1 commit
    • hooks.c, [...]: Update copyright. · bc7ffd06
      	* hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
      	config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
      	config/alpha/freebsd.h, config/alpha/linux.h,
      	config/alpha/netbsd.h, config/alpha/osf5.h,
      	config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
      	config/h8300/h8300-protos.h, config/h8300/h8300.c,
      	config/h8300/h8300.h, config/ia64/unwind-ia64.c,
      	doc/cppopts.texi: Update copyright.
      
      From-SVN: r96686
      Kazu Hirata committed
  9. 16 Mar, 2005 1 commit
    • gcc-version.m4: Delete. · a1286ef5
      config:
      	* gcc-version.m4: Delete.
      fastjar:
      	* Makefile.am (fastjar_TEXINFOS): Add gcc-vers.texi.
      	(BASEVER, DEVPHASE): New variables.
      	(POD2MAN): Adjust setting of --release option.
      	(fastjar.1, grepjar.1, gcc-vers.texi): New rules.
      	* Makefile.in: Regenerate.
      	* configure.ac: Do not invoke TL_AC_GCC_VERSION.
      	* aclocal.m4, configure: Regenerate.
      gcc:
      	* BASE-VER, DATESTAMP, DEV-PHASE: New files.
      	* Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
      	(BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
      	(BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
      	(version): Define using $(BASEVER_c).
      	(Makefile, config.status, build/gcov-iov.o): No longer depends on
      	version.c.
      	(version.o): Depend on version files; add custom generation command.
      	(prefix.o): Define BASEVER on command line.
      	(s-iov): Depend on version files; adjust command.
      	(TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
      	Add gcc-vers.texi.
      	(gcc-vers.texi): New rule.
      	(doc/%.info, doc/%.dvi): Add -I . to command line.
      	(doc/gccinstall.dvi): Likewise.
      	(PACKAGE): Delete.  All uses replaced with "gcc".
      	* aclocal.m4: Do not include gcc-version.m4.
      	* configure.ac: Do not invoke TL_AC_GCC_VERSION.
      	Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
      	Set is_release based on contents of DEV-PHASE.
      	Set gcc_version based on contents of BASE-VER.
      	Define WIN32_REGISTRY_KEY only if the user overrode the default.
      	* config.in, configure: Regenerate.
      	* gccbug.in: Determine version of GCC in use at runtime.
      	* gcov-iov.c: Get version number and development phase from
      	command line, not by including version.c.
      	* intl.c: Replace all uses of PACKAGE with "gcc".
      	* libada-mk.in: Delete unused "gcc_version" variable.
      	* prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
      	* version.c: (VERSUFFIX): New hook for redistributors; adjust
      	commentary to match.
      	(version_string): Put together from pieces.
      	* config/alpha/x-vms: Do not use $(gcc_version).
      	* config/i386/t-nwld: Likewise.
      	* doc/include/gcc-common.texi: Include gcc-vers.texi for
      	version-GCC and DEVELOPMENT.
      gcc/ada:
      	* Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
      	(doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
      	to dependencies.
      gcc/fortran:
      	* Make-lang.in (GFORTRAN_TEXI): Add gcc-vers.texi.
      gcc/java:
      	* Make-lang.in (TEXI_JAVA_FILES): Add gcc-vers.texi.
      gcc/treelang:
      	* Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
      libstdc++-v3:
      	* include/Makefile.am (c++config.h): Depend on DATESTAMP from gcc
      	subdirectory.  Generate #define of __GLIBCXX__ from contents of
      	that file.
      	* include/Makefile.in: Regenerate.
      	* include/bits/c++config: Do not define __GLIBCXX__.
      maintainer-scripts:
      	* README: Update.
      	* gcc_release: Update gcc/DEV-PHASE if that file exists, instead
      	of gcc/version.c.
      	* update_version: Handle updating gcc/DATESTAMP.
      	* update_web_docs: Generate gcc-vers.texi first.
      
      From-SVN: r96549
      Zack Weinberg committed
  10. 23 Jul, 2004 1 commit
  11. 24 May, 2004 1 commit
    • intl.h (open_quote, [...]): New. · a668adb2
      	* intl.h (open_quote, close_quote): New.
      	* intl.c (open_quote, close_quote): New.
      	(gcc_init_libintl): Set them.
      	* pretty-print.c: Include "intl.h".
      	(pp_base_format_text): Support 'q' format flag and %` and %'
      	formats.  Use ' instead of ` in comments.
      	* c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
      	gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
      	foramt_types_orig): Describe these new formats.
      	(decode_format_attr, check_function_format,
      	check_format_info_main): Use these new formats.
      	(status_warning): Use ATTRIBUTE_GCC_DIAG.
      	* toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
      	check these formats to 3.5.
      
      From-SVN: r82215
      Joseph Myers committed
  12. 01 Jun, 2003 1 commit
    • genrecog.c: Use ISO C90 prototypes. · 3d7aafde
      	* genrecog.c: Use ISO C90 prototypes.
      	(nodes_identical): Correct declaration to match prototype.
      	(maybe_both_true): Likewise.
      	(merge_trees): Likewise.
      
      	* genpeep.c (gen_peephole): Remove #if 0 code.
      	Use ISO C90 prototypes.
      
      	* genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
      	Remove #if 0'ed function simplify_by_alternatives.
      	(optimize_attrs): Remove #if 0'ed code.
      	Remove ^L.
      	Use ISO C90 prototypes.
      	(make_canonical): Remove #if 0'ed code.
      	(convert_const_symbol_ref): Remove #if 0'ed function.
      
      	* gen-protos.c (main): Check for argument.
      
      	* rtl.h: Use ISO C90 prototypes for functions from lists.c.
      
      	* params.h: Use ISO C90 prototypes.
      	* params.c: Likewise.
      	* intl.c: Likewise.
      	* intl.h: Likewise.
      	* lists.c: Likewise.
      	* errors.c: Likewise.
      	* errors.h: Likewise.
      	* gencodes.c: Likewise.
      	* genpreds.c: Likewise.
      	* genattr.c: Likewise.
      	* gen-protos.c: Likewise.
      	* genflags.c: Likewise
      	* genconditions.c: Likewise.
      	* genautomata.c: Likewise.
      	* gencheck.c: Likewise.
      	* genconfig.c: Likewise.
      	* genconstants.c: Likewise.
      	* genemit.c: Likewise.
      	* genextract.c: Likewise.
      	* gengenrtl.c: Likewise.
      	* gengtype.c: Likewise.
      	* gengtype.h: Likewise.
      	* genopinit.c: Likewise.
      	* genoutput.c: Likewise.
      	* gensupport.c: Likewise.
      	* gensupport.h: Likewise.
      
      From-SVN: r67296
      Andreas Jaeger committed
  13. 24 Apr, 2003 1 commit
  14. 12 Apr, 2003 1 commit
  15. 16 Dec, 2002 1 commit
  16. 08 Jan, 2002 1 commit
    • Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or except.h. · 0d24f4d1
      	* Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
      	except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
      	(cppinit.o): Depend on except.h.
      	(gencheck.h, options.h, specs.h, s-gencheck, s-options,
      	s-specs): New rules.
      
      	* configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
      	Don't create specs.h/options.h/gencheck.h here.  Remove
      	unnecessary variable settings from last argument of AC_OUTPUT.
      	* config.in, configure: Regenerate.
      	* intl.c: Hardcode package name as "gcc".
      
      	* cppinit.c: Include except.h.
      	(builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
      	appropriate.
      	* unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
      	Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
      	(!)USING_SJLJ_EXCEPTIONS.
      	* doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
      
      From-SVN: r48651
      Zack Weinberg committed
  17. 19 Oct, 2001 1 commit
    • aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and USE_INCLUDED_LIBINTL when appropriate. · 191bf464
      	* aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
      	USE_INCLUDED_LIBINTL when appropriate.
      	* configure, config.in: Regenerate.
      	* Makefile.in (datadir): Set to @datadir@.
      	(intl.o): Also depend on $(CONFIG_H) and system.h.
      
      	* intl.c: Factor out common gettext initialization sequence.
      	(gcc_init_libintl):  New function.
      	* intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
      	otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
      	off NLS.  Add multiple include guard.  No need to #ifdef-guard
      	an #undef.  Prototype gcc_init_libintl here.
      
      	* collect2.c (main), cppmain.c (general_init), gcc.c (main),
      	gcov.c (main), protoize.c (main), toplev.c (toplev_main):
      	Use gcc_init_libintl.
      
      intl:
      	* Makefile.in: Don't copy libgnuintl.h anywhere.
      
      From-SVN: r46348
      Zack Weinberg committed
  18. 04 Apr, 2001 1 commit
    • ansidecl.h: All logic from gcc/gansidecl.h moved here. · d02af173
      include:
      	* ansidecl.h: All logic from gcc/gansidecl.h moved here.
      gcc:
      	* gansidecl.h: Delete file.
      	* configure.in: Change all refs to gansidecl.h to use
      	ansidecl.h.  Adjust *_file_list so they know where ansidecl.h
      	lives.
      	* configure: Regenerate.
      
      	* Makefile.in (intl.o): Don't depend on gansidecl.h.
      	* defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
      	* ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
      	Don't include gansidecl.h.
      	* intl.c, main.c, version.c, fixinc/fixlib.h,
      	fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
      	gansidecl.h.
      gcc/java:
      	* Make-lang.in (buffer.o, check-init.o, class.o): Don't depend
      	on gansidecl.h.
      	* buffer.c, jvgenmain.c: Don't include gansidecl.h.
      libiberty:
      	* make-temp-file.c (try): Inline.
      
      From-SVN: r41069
      Zack Weinberg committed
  19. 02 Aug, 1998 1 commit