aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-12-15Clean up initialization and simplfy caching of underlying "C" locale objects.Benjamin Kosnik21-1185/+1499
2001-12-14 Benjamin Kosnik <bkoz@redhat.com> Clean up initialization and simplfy caching of underlying "C" locale objects. * src/localename.cc (locale::_Impl::_Impl(string, size_t): Unconditionally create __clocale object for all named locales, including "C" and "POSIX". * config/locale/c_locale_generic.cc (locale::facet::_S_create_c_locale): Always set __cloc to zero. * config/locale/c_locale_gnu.cc: Always delete. * include/bits/localefwd.h (locale::facet::_S_c_locale): New. * src/locale.cc (locale::classic()): Initialize locale::facet::_S_c_locale. (locale::facet::_S_c_locale): Define. * include/bits/locale_facets.h: Add ctype_byname<wchar_t> ctor specialization. * src/locale.cc: Add definition here. * config/os/gnu-linux/bits/ctype_inline.h: Tweak. * config/os/gnu-linux/bits/ctype_noninline.h: Adjust initializations. * include/bits/locale_facets.h (ctype<char>::_M_c_locale_ctype): Add. Adjust ctors, dtors. (ctype<char>::_M_toupper): Remove const&. (ctype<char>::_M_tolower): Remove const&. (ctype<char>::_M_ctable): Remove const&. * include/bits/locale_facets.h (collate): Clean up initialization of _M_c_locale_collate in ctors and dtors. * config/locale/collate_members_gnu.cc: Always use extended functions. * include/bits/locale_facets.h (messages): Clean up inits in ctor/dtor. (messages_byname): Same. * config/locale/messages_members_generic.h (messages::~messages): Remove. * config/locale/messages_members_gnu.h: Same. * include/bits/localefwd.h: Clean. Move dtor definitions to * src/locale.cc: Here. * testsuite/22_locale/facet.cc: Fix spelling. Named locale support for ctype<wchar_t>. * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add variable ctype_members_* bits. * aclocal.m4: Regenerate. * configure: Regenerate. * src/Makefile.am (sources): Add ctype.cc. * src/Makefile.in: Regenerate. * config/locale/ctype_members_generic.cc: New file. * config/locale/ctype_members_gnu.cc: New file. * src/locale.cc: Remove ctype<wchart_t> definitions. From-SVN: r48034
2001-12-15builtins.c (expand_builtin_memcmp): Mark parameter with ATTRIBUTE_UNUSED.Kaveh R. Ghazi5-4/+12
* builtins.c (expand_builtin_memcmp): Mark parameter with ATTRIBUTE_UNUSED. * cfgcleanup.c (insns_match_p): Likewise. * regrename.c (mode_change_ok): Likewise. * gcc.c (execute): Const-ify. From-SVN: r48033
2001-12-15c-parse.in (typename): Do not split attributes.Aldy Hernandez3-10/+21
* c-parse.in (typename): Do not split attributes. Remove unsupported attributes warning. * c-decl.c (groktypename): Apply attributes. From-SVN: r48032
2001-12-15* testsuite/gcc.dg/20011214-1.c: New.Aldy Hernandez2-0/+18
From-SVN: r48031
2001-12-14ia64.c (spill_restore_mem): Mark iterator initialization as possibly dead.Richard Henderson2-6/+20
* config/ia64/ia64.c (spill_restore_mem): Mark iterator initialization as possibly dead. From-SVN: r48030
2001-12-14regrename.c (mode_change_ok): New.Richard Henderson2-2/+29
* regrename.c (mode_change_ok): New. (find_oldest_value_reg): Use it. From-SVN: r48029
2001-12-14regrename.c (struct value_data): Add max_value_regs.Richard Henderson2-7/+59
* regrename.c (struct value_data): Add max_value_regs. (init_value_data): Initialize it. (kill_value): Kill values that overlap the dying register. (set_value_regno): New. (kill_set_value, kill_autoinc_value, copy_value): Use it. (copyprop_hardreg_forward_1): Kill earlyclobber operands before looking at inputs. From-SVN: r48028
2001-12-14rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Handle DECL_WEAK for function descriptors.David Edelsohn3-8/+43
* config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Handle DECL_WEAK for function descriptors. * config/rs6000/xcoff.h (HANDLE_PRAGMA_WEAK): Define if assembler weak support present. (ASM_WEAKEN_LABEL): Same. From-SVN: r48027
2001-12-15h8300.md (anonymous pattern): Add a missing mode.Kazu Hirata2-1/+6
* config/h8300/h8300.md (anonymous pattern): Add a missing mode. From-SVN: r48026
2001-12-15h8300.c (h8300_adjust_insn_length): Fix a comment typo.Kazu Hirata2-1/+6
* config/h8300/h8300.c (h8300_adjust_insn_length): Fix a comment typo. From-SVN: r48025
2001-12-15h8300.c (h8300_handle_eightbit_data_attribute): Remove the initialization ↵Kazu Hirata2-14/+8
requierment. * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Remove the initialization requierment. (h8300_handle_tiny_data_attribute): Likewise. From-SVN: r48024
2001-12-15h8300.md (udivqi3): Remove.Kazu Hirata2-63/+72
* config/h8300/h8300.md (udivqi3): Remove. (divqi3): Likewise. (udivhi3): Likewise. (divhi3): Likewise. (umodqi3): Likewise. (modqi3): Likewise. (umodhi3): Likewise. (modhi3): Likewise. (udivmodqi3): New. (divmodqi3): Likewise. (udivmodhi3): Likewise. (divmodhi3): Likewise. From-SVN: r48023
2001-12-15cfgcleanup.c (flow_find_cross_jump): Replace tests for note by ↵Jan Hubicka2-7/+21
active_insn_p; count conditional jump as instruction. * cfgcleanup.c (flow_find_cross_jump): Replace tests for note by active_insn_p; count conditional jump as instruction. From-SVN: r48022
2001-12-14cygwin.h (I386_PE_STRIP_ENCODING): Handle '*' at SYM_NAME[0] or SYM_NAME[3].DJ Delorie2-2/+10
* config/i386/cygwin.h (I386_PE_STRIP_ENCODING): Handle '*' at SYM_NAME[0] or SYM_NAME[3]. (STRIP_NAME_ENCODING): Don't check for leading '*'. Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net> From-SVN: r48020
2001-12-14Added changes to support -### (previously ok'ed by R. Henderson).Ira Ruben2-8/+112
Added changes to prevent -save-temps from clobbering the input file (previously ok'ed by R. Henderson). 2001-12-14 Ira Ruben <ira@apple.com> Add -### option (displays driver-generated commands without executing and quotes all arguments). * doc/invoke.texi: Add -###. * gcc.c (verbose_only_flag) - New flag. * (execute): If -### write quoted arguments and return. * (display_help): Print meaning of -###. * (process_command): Handle -###. 2001-12-14 Ira Ruben <ira@apple.com> Fix to no allow -save-temps to clobber user's source file. * gcc.c: Add static globals input_stat and input_stat_set. (do_spec_1): For 'g', 'u', 'U' case with save_temps_flag set, check that user's input file is not overwritten. (set_input): Reset input_stat_set for each new file. From-SVN: r48019
2001-12-14gcj.texi: Markup for man page generation.Matthias Klose3-13/+263
* gcj.texi: Markup for man page generation. Document missing options printed by <tool> --help. Terminate description of gij's -ms option with a dot. * Make-lang.in ($(srcdir)/java/*.1): New targets. (java.generated-manpages java.install-man, java.uninstall, java-maintainer-clean) Updated. From-SVN: r48016
2001-12-14texi2pod.pl: Merge changes from binutils' texi2pod.pl.Matthias Klose2-13/+49
2001-12-12 Matthias Klose <doko@debian.org> * texi2pod.pl: Merge changes from binutils' texi2pod.pl. Allows generation of more than one man page from one source. Add '-' to set of valid chars for an identifier. Let -D option accept flags of the form <flag>=<value>. Use \s+ for whitespace detection in '@c man' lines. Handle @set and @clear independent of $output. Substitute all @value{}'s in a line. From-SVN: r48015
2001-12-14config-lang.in: Update copyright noticeGeert Bosch6-7/+20
* config-lang.in: Update copyright notice * layout.adb: Remove commented out code. * mdllfile.ads: Update copyright notice. Fix header format. * sem_case.ads: Likewise. * sem_ch3.adb: Minor reformatting. From-SVN: r48014
2001-12-14For PR libgcj/5103:Tom Tromey5-1/+67
* libjava.jni/cxxtest.out: New file. * libjava.jni/cxxtest.cc: New file. * libjava.jni/cxxtest.java: New file. * libjava.jni/jni.exp (gcj_jni_test_one): If there is no .c file, assume there is a .cc file. From-SVN: r48012
2001-12-14* predict.c (estimate_probability): Fix LOOP_EXIT heuristic.Jan Hubicka2-1/+5
From-SVN: r48010
2001-12-14combine.c (record_dead_and_set_regs): Use regs_invalidated_by_call.Zack Weinberg2-1/+13
* combine.c (record_dead_and_set_regs): Use regs_invalidated_by_call. Don't note stores for CALL_INSNs. From-SVN: r48009
2001-12-14builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and __builtin_fsqrt to ↵Andreas Jaeger14-234/+255
__builtin_sqrt. 2001-12-14 Roger Sayle <roger@eyesopen.com> * builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and __builtin_fsqrt to __builtin_sqrt. * builtins.c (expand_builtin_mathfn,expand_builtin): Same. * doc/extend.texi: Simplify documentation to match patch. f: * com-rt.def: Use __builtin_sqrt instead of __builtin_fsqrt. * com.c (ffecom_init_0): Same, and fixed enumeration usage. libstdc++-v3: * acconfig.h: Test for __builtin_sqrt instead of __builtin_fsqrt. * acinclude.m4: Same. * include/c_shadow/bits/std_cmath.h: Same. * aclocal.m4: Regenerated. * config.h.in: Regenerated. * configure: Regenerated. From-SVN: r48008
2001-12-14config.gcc: Revamp target_cpu_default2 to strings; support new x86 variants.Jan Hubicka1-6/+33
* config.gcc: Revamp target_cpu_default2 to strings; support new x86 variants. From-SVN: r48007
2001-12-14config.gcc: Revamp target_cpu_default2 to strings; support new x86 variants.Jan Hubicka4-88/+235
* config.gcc: Revamp target_cpu_default2 to strings; support new x86 variants. * i386.c (override_options): Default x86_cpu_string and x86_arch_string properly; set prefetch_sse. * i386.h (x86_prefetch_sse): Declare. (TARGET_PREFETCH_SSE): New. (CPP_CPU_DEFAULT_SPEC): Define according to the new macros. (TARGET_CPU_DEFAULT_*): New. * config/i386/i386.h (struct processor_costs): Add new members prefetch_block and simultaneous_prefetches. (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): New. * config/i386/i386.c (processor_costs structs): Add values for prefetch_block and simultaneous_prefetches. * config/i386/i386.md (unspec values): Remove values for prefetch operations, which now use the PREFETCH rtx code. (prefetch_sse, prefetch_3dnow, prefetchw): Combine to use new unified prefetch support. From-SVN: r48006
2001-12-14diagnostic.c (sorry): Increment sorrycount before saving the buffer state.Jason Merrill2-1/+6
* diagnostic.c (sorry): Increment sorrycount before saving the buffer state. From-SVN: r48005
2001-12-14class.c (get_dispatch_table): Fix java vtable layout for ↵Hans Boehm6-12/+82
TARGET_VTABLE_USES_DESCRIPTORS. * class.c (get_dispatch_table): Fix java vtable layout for TARGET_VTABLE_USES_DESCRIPTORS. * decl.c (java_init_decl_processing): Initialize alloc_no_finalizer_node, finalize_identifier_node. * expr.c (class_has_finalize_method): New function. (expand_java_NEW): Generate calls for finalizer-free allocation. (build_invokevirtual): Fix java vtable layout for TARGET_VTABLE_USES_DESCRIPTORS. * java-tree.h (enum java_tree_index): New entries: JTI_ALLOC_NO_FINALIZER_NODE, JTI_FINALIZE_IDENTIFIER_NODE. (alloc_no_finalizer_node, finalize_deintifier_node): New macros. (class_has_finalize_method): declare. (HAS_FINALIZER_P): New macro. * parse.y (patch_invoke): Generate calls for finalizer-free allocation. From-SVN: r48004
2001-12-14* i386.md (sqrt?f): Fix conditionals.Jan Hubicka2-6/+10
From-SVN: r48003
2001-12-14prims.cc: Some old cleanups.Hans Boehm5-37/+79
* libjava/prims.cc: Some old cleanups. The collector now handles test for out of memory. * libjava/prims.cc, libjava/gcj/javaprims.h: (_Jv_AllocObjectNoInitNoFinalizer, _Jv_AllocObjectNoFinalizer): New functions for finalizer-free allocation. (jvmpi_notify_alloc): Became separate function. * libjava/java/lang/Object.h, libjava/include/jvm.h: Adjust for revised vtable layout on IA64. With TARGET_VTABLE_USES_DESCRIPTORS, there is only one extra descriptor. From-SVN: r48002
2001-12-14config.gcc (alpha64-dec-*vms*): New case.Douglas B Rupp7-0/+318
* config.gcc (alpha64-dec-*vms*): New case. * config/alpha/t-vms64, config/alpha/vms-crt0-64.c: New files. * config/alpha/vms-psxcrt0-64.c, config/alpha/vms64.h: Likewise. * config/alpha/xm-vms64.h: Likewise. From-SVN: r48001
2001-12-14alpha.c (vms_attribute_table): Add new attributes.Douglas B Rupp2-11/+36
* config/alpha/alpha.c (vms_attribute_table): Add new attributes. (alpha_write_linkage): Test for null alpha_links. (SECTION_VMS_GLOBAL, SECTION_VMS_INITIALIZE): New section attributes. (vms_section_type_flags, vms_asm_named_section): Handle them. From-SVN: r48000
2001-12-14i386.c (ix86_fpmath, [...]): New.Jan Hubicka5-47/+223
Fri Dec 14 12:05:14 CET 2001 Jan Hubicka <jh@suse.cz> * i386.c (ix86_fpmath, ix86_fpmath_string): New. (override_option): Set ix86_fpmath. * i386.h (MASK_MIX_SSE_I387): Remove. (TARGET_SSE_MATH): New. (TARGET_MIX_SSE_I387): Use ix86_fpmath. (TARGET_SWITCHES): Remove "mix-sse-i387". (fpmath_unit): New enum. (ix86_fpmath, ix86_fpmath_string): Declare. * i386.md (swapsf): Fix condition. (add?f, sub?f, mul?f, div?f, sqrt?f, min?f): Use TARGET_SSE_MATH. (fp_?f_*_nosse): New. (fp_*): Use TARGET_SSE_MATH. * invoke.texi (-mfpmath): Document. (-msse2): Add. From-SVN: r47999
2001-12-14tweak commentJason Merrill1-1/+6
From-SVN: r47998
2001-12-14dwarf2out.c (output_die): Print the string in the comment for a DW_FORM_strp.Jason Merrill2-3/+8
* dwarf2out.c (output_die): Print the string in the comment for a DW_FORM_strp. From-SVN: r47997
2001-12-14* netbsd.h (COLLECT_SHARED_INIT_FUNC)Richard Earnshaw3-4/+11
(COLLECT_SHARD_FINI_FUNC): Remove redundant semicolon. * doc/tm.texi (COLLECT_SHARED_INIT_FUNC) (COLLECT_SHARD_FINI_FUNC): Use @code where appropriate. From-SVN: r47996
2001-12-14Daily bump.GCC Administrator6-6/+6
From-SVN: r47995
2001-12-13regrename.c (kill_value_regno): Simplify chain removal.Richard Henderson2-29/+33
* regrename.c (kill_value_regno): Simplify chain removal. (kill_value): Kill all of HARD_REGNO_NREGS. (kill_set_value): Use kill_value not kill_value_regno. (kill_autoinc_value): Likewise. (copyprop_hardreg_forward): Don't collect refresh_blocks. Call delete_noop_moves. From-SVN: r47992
2001-12-14altivec-4.c: New.Aldy Hernandez2-0/+14
2001-12-13 Aldy Hernandez <aldyh@redhat.com> * gcc.dg/altivec-4.c: New. From-SVN: r47991
2001-12-14attribs.c (c_common_attribute_table): Swap decl_req and type_req for the ↵Aldy Hernandez2-11/+6
mode attribute. * attribs.c (c_common_attribute_table): Swap decl_req and type_req for the mode attribute. (handle_mode_attribute): Handle types, not decls. From-SVN: r47990
2001-12-14attribs.c (c_common_attribute_table): Swap decl_req and type_req for the ↵Aldy Hernandez1-0/+6
mode attribute. 2001-12-09 Aldy Hernandez <aldyh@redhat.com> * attribs.c (c_common_attribute_table): Swap decl_req and type_req for the mode attribute. (handle_mode_attribute): Handle types, not decls. From-SVN: r47989
2001-12-13c-common.h (COMPOUND_STMT_BODY_BLOCK): New macro.Jason Merrill1-0/+33
* c-common.h (COMPOUND_STMT_BODY_BLOCK): New macro. Use cleanups to run base and member destructors. * init.c (push_base_cleanups): New function, split out from... (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code. * decl.c (finish_destructor_body): Move vbase destruction code to push_base_cleanups. (begin_function_body, finish_function_body): New fns. (finish_function): Move [cd]tor handling and call_poplevel to finish_function_body. (pushdecl): Skip the new level. * semantics.c (genrtl_try_block): Don't call end_protect_partials. (setup_vtbl_ptr): Call push_base_cleanups. * method.c (synthesize_method): Call {begin,end}_function_body. * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK. * cp-tree.h: Declare new fns. * parse.y (function_body, .begin_function_body): New nonterminals. (fndef, pending_inline, function_try_block): Use function_body. (ctor_initializer_opt, function_try_block): No longer has a value. (base_init): Remove .set_base_init token. (.set_base_init, compstmt_or_error): Remove. * Make-lang.in (parse.c): Expect two fewer s/r conflicts. From-SVN: r47988
2001-12-13c-common.h (COMPOUND_STMT_BODY_BLOCK): New macro.Jason Merrill12-201/+231
* c-common.h (COMPOUND_STMT_BODY_BLOCK): New macro. * Make-lang.in (parse.h): Separate rule, just depend on parse.c. Use cleanups to run base and member destructors. * init.c (push_base_cleanups): New function, split out from... (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code. * decl.c (finish_destructor_body): Move vbase destruction code to push_base_cleanups. (begin_function_body, finish_function_body): New fns. (finish_function): Move [cd]tor handling and call_poplevel to finish_function_body. (pushdecl): Skip the new level. * semantics.c (genrtl_try_block): Don't call end_protect_partials. (setup_vtbl_ptr): Call push_base_cleanups. * method.c (synthesize_method): Call {begin,end}_function_body. * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK. * cp-tree.h: Declare new fns. * parse.y (function_body, .begin_function_body): New nonterminals. (fndef, pending_inline, function_try_block): Use function_body. (ctor_initializer_opt, function_try_block): No longer has a value. (base_init): Remove .set_base_init token. (.set_base_init, compstmt_or_error): Remove. * Make-lang.in (parse.c): Expect two fewer s/r conflicts. From-SVN: r47987
2001-12-14rs6000.md (eh_set_lr_di): Change scratch constraint to base register.Aldy Hernandez2-2/+8
2001-12-13 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.md (eh_set_lr_di): Change scratch constraint to base register. (eh_set_lr_si): Same. From-SVN: r47986
2001-12-13restore # linesJason Merrill1-0/+11
From-SVN: r47985
2001-12-14expr.c (expand_expr, [...]): Don't honor flag_force_addr for modifier != ↵Hans-Peter Nilsson4-1/+31
EXPAND_CONST_ADDRESS... * expr.c (expand_expr, case ADDR_EXPR): Don't honor flag_force_addr for modifier != EXPAND_CONST_ADDRESS, modifier != EXPAND_INITIALIZER and modifier != EXPAND_SUM. * gcc.dg/20011113-1.c: New test. From-SVN: r47984
2001-12-13expr.c (copy_blkmode_from_reg): Add missing braces to eliminate warning and ↵Richard Kenner2-14/+27
reformat comments. * expr.c (copy_blkmode_from_reg): Add missing braces to eliminate warning and reformat comments. (expand_assignment): Don't pass EXPAND_WRITE if LHS is component. (highest_pow2_factor, case INTEGER_CST): Return BIGGEST_ALIGNMENT if overflow. From-SVN: r47983
2001-12-13rs6000.c (rs6000_override_options): Add SUBSUBTARGET_OVERRIDE_OPTIONS.Aldy Hernandez5-0/+91
* config/rs6000/rs6000.c (rs6000_override_options): Add SUBSUBTARGET_OVERRIDE_OPTIONS. * config/rs6000/eabialtivec.h: New file. * config/rs6000/linuxaltivec.h: New file. * config.gcc: Add powerpc-*-eabialtivec and powerpc-*-linux-gnualtivec. From-SVN: r47981
2001-12-13howto.html: Fix typos.Phil Edwards2-2/+6
2001-12-13 Phil Edwards <pme@gcc.gnu.org> * docs/html/ext/howto.html: Fix typos. From-SVN: r47980
2001-12-13toplev.c (process_options, [...]): Set flag_no_inline before the ↵Neil Booth2-9/+19
post_options hook. * toplev.c (process_options, parse_options_and_default_flags): Set flag_no_inline before the post_options hook. From-SVN: r47979
2001-12-13emit-rtl.c (adjust_address_1): Don't adjust address if adjust is false.Richard Henderson2-11/+19
* emit-rtl.c (adjust_address_1): Don't adjust address if adjust is false. From-SVN: r47978
2001-12-13template31.C: Remove templates for classes std::__malloc_alloc_template<0> ↵John David Anglin2-10/+6
and... * g++.old-deja/g++.jason/template31.C: Remove templates for classes std::__malloc_alloc_template<0> and std::__default_alloc_template<false, 0>. From-SVN: r47977