1. 11 Jul, 2003 10 commits
  2. 10 Jul, 2003 30 commits
    • cppcharset.c (one_utf8_to_cppchar, [...]): New functions. · 6b88314c
      	* cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
      	one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
      	one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
      	convert_utf8_utf32, convert_utf16_utf8,	convert_utf32_utf8,
      	convert_no_conversion, convert_using_iconv): New functions.
      	(APPLY_CONVERSION): New macro.
      	(struct conversion, conversion_tab): New data structure.
      	(init_iconv_desc): Check conversion_tab for a custom conversion
      	primitive before trying to use iconv.
      	(convert_cset): Deleted.
      	(cpp_init_iconv): Use UTF- terminology, not UCS-.
      	(_cpp_destroy_iconv): Update to match.
      	(_cpp_valid_ucn): We don't need iconv to implement UCNs.
      	(convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
      	(convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
      	(_cpp_interpret_string_notranslate): New function, moved here
      	from cpplib.c.
      
      	* cpphash.h (convert_f, struct cset_converter): New types.
      	(struct cpp_reader): narrow_cset_desc and wide_cset_desc
      	are now struct cset_converter, not bare iconv_t.
      	Update prototypes.
      	* cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
      	all callers changed.
      
      From-SVN: r69204
      Zack Weinberg committed
    • oops · 38f4680f
      From-SVN: r69203
      Kelley Cook committed
    • Make-lang.in: Update. · 9cffadfb
      	* Make-lang.in: Update.
      	* tree1.c: Don't include c-common.h.
      	(c_language): Remove.
      
      From-SVN: r69202
      Neil Booth committed
    • ffe.texi: Correctly use @var{srcdir}. · dbf70135
      2003-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
      
      	* ffe.texi: Correctly use @var{srcdir}.
      
      From-SVN: r69201
      Toon Moene committed
    • Makefile.in (options.h): Depend on Makefile. · 4ade7b1a
      	* Makefile.in (options.h): Depend on Makefile.  Add move-if-change
      	to opts.sh command line.
      	* opts.sh: Write to temporary files with a move-if-change at the end.
      
      From-SVN: r69200
      Kelley Cook committed
    • combine.c (gen_binary): Handle the CLOBBER rtx and don't build a binary operation with it. · 9db367b4
      	* combine.c (gen_binary): Handle the CLOBBER rtx and
      	don't build a binary operation with it.
      
      Co-Authored-By: Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
      
      From-SVN: r69199
      Denis Chertykov committed
    • gcse.c (load_kills_store, [...]): Keep track of the correct dependency function to use. · 3b14e3af
      	* gcse.c (load_kills_store, find_loads, store_killed_in_insn,
      	store_killed_after, store_killed_before): Keep track of the correct
      	dependency function to use.
      
      From-SVN: r69198
      Zdenek Dvorak committed
    • re PR c++/9411 ([New parser] Template function lookup problem) · 584672ee
      	PR c++/9411
      	* parser.c (cp_parser_postfix_expression): Check dependency of
      	functions.
      
      	PR c++/9411
      	* g++.dg/template/explicit2.C: New test.
      
      From-SVN: r69196
      Mark Mitchell committed
    • toplev.c (do_compile): Don't try to open dump files before lang_dependent_init… · a9189cc0
      toplev.c (do_compile): Don't try to open dump files before lang_dependent_init initializes dump_base_name.
      
      2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
      	* toplev.c (do_compile): Don't try to open dump files before
      	lang_dependent_init initializes dump_base_name.
      
      From-SVN: r69195
      Steven Bosscher committed
    • arm.c (arm_init_iwmmxt_builtins, [...]): Use ARRAY_SIZE. · e97a46ce
      	* config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
      	Use ARRAY_SIZE.
      	* config/frv/frv.c (frv_expand_builtin): Likewise.
      	* config/sh/sh.c (sh_media_init_builtins): Likewise.
      
      From-SVN: r69194
      Kaveh R. Ghazi committed
    • re PR c++/10032 (-pedantic converts some errors to warnings) · 4a386498
      	PR c++/10032
      	* doc/invoke.texi (C++ Dialect Options): Change documentation of
      	-fpermissive.
      
      	PR c++/10032
      	* decl.c (cxx_init_decl_processing): With -pedantic, pedwarns are
      	still errors.
      
      	PR c++/10527
      	* error.c (decl_to_string): Do not print default argument
      	expressions.
      
      	* cp-tree.h (break_out_calls): Remove declaration.
      	* tree.c (break_out_calls): Remove.
      	* typeck.c (build_modify_expr): Avoid invalid sharing of trees.
      
      	PR c++/10032
      	* g++.dg/warn/pedantic1.C: New test.
      
      From-SVN: r69191
      Mark Mitchell committed
    • * tm.texi (RETURN_ADDR_OFFSET): Document. · 1e60c057
      From-SVN: r69190
      J"orn Rennecke committed
    • PR c++ 9483 · 7c728fc6
      	PR c++ 9483
      	* g++.dg/other/field1.C: New test.
      
      From-SVN: r69189
      Nathan Sidwell committed
    • gcov-io.h: Update documentation. · 330d2e2a
      	* gcov-io.h: Update documentation.
      	(GCOV_UNSIGNED2STRING): New.
      	(GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
      	GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
      	GCOV_TAG_SUMMARY_LENGTH): Adjust.
      	(GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
      	GCOV_TAG_COUNTER_NUM): New.
      	(GCOV_BLOCK_SIZE): Number of words.
      	(gcov_var): Adjust buffer type.
      	* gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
      	(gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
      	count, not byte count.
      	(gcov_open): Adjust overread init.
      	(gcov_allocate, gcov_write_unsigned, gcov_write_counter,
      	gcov_write_string, gcov_write_tag, gcov_write_length,
      	gcov_write_tag_length): Adjust.
      	(gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
      	(gcov_sync, gcov_seek): Adjust.
      	* gcov-dump.c (print_usage): Show gcc version only.
      	(dump_file): Use GCOV_UNSIGNED2STRING.
      	(tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
      	* gcov.c (print_version): Show gcc version only.
      	(read_graph_file): Use GCOV_UNSIGNED2STRING. Use
      	GCOV_TAG_*_NUM macros.
      	(read_count_file): Use GCOV_UNSIGNED2STRING. Use
      	GCOV_TAG_COUNTER_LENGTH.
      	* coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
      	Use GCOV_TAG_COUNTER_NUM.
      	* libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
      	(__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
      
      From-SVN: r69188
      Nathan Sidwell committed
    • re PR c/11449 (ICE in invert_truthvalue called on AND operation) · 11791dbc
      	PR c/11449
      	* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
      	of HOST_WIDE_INT.
      	(fold_single_bit_test): If sign_bit_p() fails, assume that the
      	bit being tested is not a sign bit.
      
      	PR c/11449
      	* gcc.c-torture/compile/20030707-1.c: New.
      	* config/h8300/h8300.md (a peephole2): New.
      
      From-SVN: r69187
      Kazu Hirata committed
    • re PR c++/10849 (Cannot define an out-of-class specialization of a private nested template class) · 0c3b76ea
      	PR c++/10849
      	* g++.dg/template/access12.C: New test.
      
      From-SVN: r69186
      Kriang Lerdsuwanakij committed
    • re PR c/11449 (ICE in invert_truthvalue called on AND operation) · c87d821b
      	PR c/11449
      	* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
      	of HOST_WIDE_INT.
      	(fold_single_bit_test): If sign_bit_p() fails, assume that the
      	bit being tested is not a sign bit.
      
      	PR c/11449
      	* gcc.c-torture/compile/20030707-1.c: New.
      	* config/h8300/h8300.md (a peephole2): New.
      
      From-SVN: r69184
      Kazu Hirata committed
    • ggc.h, [...]: Use `rtx' instead of `struct rtx_def *'... · bcda12f4
      2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* ggc.h, integrate.h, langhooks.h, real.h, toplev.h:
      	Use `rtx' instead of `struct rtx_def *', `rtvec' instead of
      	`struct rtvec_dev *' and `tree' instead of `union tree_node *'
      	in function prototypes.
      	* varray.h (const_equiv_data): Likewise for fields.
      	(varray_data_tag): Likewise.
      	* output.h: Likewise, and don't forward declare union tree_node.
      	* emit_rtl.c (const_int_htab_hash): Cast to `rtx' instead of
      	`struct rtxvec *'.
      	* print-tree.c (print_node): Likewise.
      	* reload1.c: Don't redeclare current_function_decl, tree.h is
      	included in this file.
      
      From-SVN: r69183
      Steven Bosscher committed
    • * gcov-dump.c (dump_file): Fix missing address operator. · 3dbb446e
      From-SVN: r69182
      Andreas Schwab committed
    • Fixed rare threading problem · c19f8e35
      From-SVN: r69181
      Nicola Pero committed
    • PR c++ 9483 · 633221db
      cp:
      	PR c++ 9483
      	* class.c (check_field_decls): Pass DECL_NAME to constructor_name_p.
      	* decl2.c (constructor_name_p): Avoid repeated constructor_name
      	calls.
      	* decl.c (grokdeclarator): Refactor ctor/dtor detection.
      testsuite:
      	PR c++ 9483
      	* g++.dg/other/field1.C: New test.
      
      From-SVN: r69180
      Nathan Sidwell committed
    • Remove C language front end dependencies. · 31c56a8b
      * tree-convert.c: New file.
      * treetree.c: Don't include c-tree.h.  Include target.h.
      (struct lang_identifier, union lang_tree_node, struct lang_type,
      struct lang_function): New, minimal language-specific datastructs.
      (tree_lang_truthvalue_conversion, tree_mark_addressable,
      tree_lang_type_for_size, tree_lang_type_for_mode,
      tree_lang_unsigned_type, tree_lang_signed_type,
      tree_lang_signed_or_unsigned): New functions.
      (LANG_HOOKS_*): Don't use C front end langhooks.  Use new functions.
      (pushlevel, poplevel, global_bindings_p, insert_block, set_block,
      pushdecl, getdecls, kept_level_p, tree_push_type_decl,
      tree_push_atomic_type_decl): New functions.
      (struct resword, struct reswords): Remove.
      * Make-lang.in: Update.  Don't depend on C front end objects.
      * config-lang.in: Likewise.
      
      Co-Authored-By: Steven Bosscher <steven@gcc.gnu.org>
      
      From-SVN: r69178
      Fergus Henderson committed
    • locale_facets.tcc: Use function object for __use_cache instead of template function. · cde63840
      
      2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/bits/locale_facets.tcc: Use function object for
      	__use_cache instead of template function. Partially specialize for
      	__numpunct<_CharT>.
      	* include/bits/locale_classes.h: Update friend declaration for
      	__use_cache.
      	(_M_install_cache): No throw exception specs.
      	* src/locale.cc: Remove __use_cache specializations.
      	* include/ext/pod_char_traits.h (length): Tweak.
      	* include/bits/locale_facets.h (__numpunct_cache): Remove
      	char_type typedef.
      	* testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
      	(pod_long): Remove.
      	* testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
      	* testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
      	* testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
      	* testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
      	* testsuite/22_locale/numpunct/members/pod/1.cc: New.
      	* testsuite/22_locale/numpunct/members/pod/2.cc: New.
      
      From-SVN: r69177
      Benjamin Kosnik committed
    • * config/h8300/h8300.md (a peephole2): New. · ae12c666
      From-SVN: r69176
      Kazu Hirata committed
    • libgcj.pc.in: New file. · f9d232c3
      2003-07-09  Michael Koch  <konqueror@gmx.de>
      
      	* libgcj.pc.in: New file.
      	* Makefile.am: Install libgcj.pc in $libdir/pkgconfig.
      	* Makefile.in: Regenerated.
      	* configure: Regenrated.
      	* configure.in: Create libgcj.pc from libgcj.pc.in.
      
      From-SVN: r69175
      Michael Koch committed
    • * xtensa-config.h: Undef all macros before defining them. · b31185fe
      From-SVN: r69174
      Bob Wilson committed
    • configure: Rebuilt. · 33952f6f
      * configure: Rebuilt.
      2001-09-26  Alexandre Oliva  <aoliva@redhat.com>
      * configure.in (noconfigdirs) [am33_2.0-*-linux*]: Don't build
      newlib nor libgloss.
      Wed May  9 10:07:19 2001  Alexandre Oliva  <aoliva@redhat.com>
      * configure.in (am33_2.0-*-linux*): Added.
      
      From-SVN: r69173
      Alexandre Oliva committed
    • configure.in: Add ${libgcj} to noconfigdirs for xtensa-*-* targets. · 0d4f1b4e
              * configure.in: Add ${libgcj} to noconfigdirs for xtensa-*-* targets.
              * configure: Regenerate.
      
      From-SVN: r69172
      Bob Wilson committed
    • [multiple changes] · 2beef00e
      2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
      * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
      from ld-linux.so.2 to ld.so.1.
      2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
      * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
      * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
      nor -Wl,-rpath-link.
      (LIB_SPEC): Add -rpath-link if !static.
      2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
      * config/mn10300/mn10300.c (mn10300_protect_label): New
      variable.
      * config/mn10300/linux.h (PRINT_OPERAND,
      PRINT_OPERAND_ADDRESS): Set it during their execution.
      (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
      mn10300_protect_label is set.
      * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
      -Wl,-rpath-link.
      (LIB_SPEC, STARTFILE_SPEC): Define.
      2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
      * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
      FLOAT_BIT_ORDER_MISMATCH.
      2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
      * config.gcc (am33_2.0-*-linux*): Added.
      * config/mn10300/linux.h: New.
      * config/mn10300/t-linux: New.
      
      From-SVN: r69171
      Alexandre Oliva committed
    • * fold-const.c: Properly wrap prototypes. · 75040a04
      From-SVN: r69170
      Andreas Jaeger committed