1. 02 Mar, 2004 33 commits
    • m68hc11.c (m68hc11_addr_mode): New variable. · de70723b
      	* config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
      	(m68hc11_mov_addr_mode): Likewise.
      	(m68hc11_override_options): Initialize them based on target.
      	(register_indirect_p): Allow a MEM for indirect addressing modes and
      	use flags to control what is allowed.
      	(m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
      	supported addressing modes.
      	(m68hc11_register_indirect_p): Use m68hc11_addr_mode.
      	(go_if_legitimate_address_internal): Likewise.
      	(m68hc11_indirect_p): Likewise and check the mode.
      	(print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
      
      From-SVN: r78792
      Stephane Carrez committed
    • builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove. · d6da68b9
      	* builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
      	(expand_builtin_setjmp_setup): Use
      	targetm.builtin_setjmp_frame_value instead of
      	BUILTIN_SETJMP_FRAME_VALUE.
      	* system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
      	* target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
      	(TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
      	* target.h (gcc_target): Add builtin_setjmp_frame_value.
      	* targhooks.c (default_builtin_setjmp_frame_value): New.
      	* targhooks.h: Add a prototype for
      	default_builtin_setjmp_frame_value.
      	* doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
      	TARGET_BUILTIN_SETJMP_FRAME_VALUE.
      
      From-SVN: r78789
      Kazu Hirata committed
    • locale_facets.tcc (money_get<>::_M_extract): Reorganize a bit the main parsing loop... · 59564c5e
      2004-03-02  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (money_get<>::_M_extract):
      	Reorganize a bit the main parsing loop, thus early detecting
      	an empty value component.
      	* testsuite/22_locale/money_get/get/char/16.cc: New.
      	* testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
      
      From-SVN: r78788
      Paolo Carlini committed
    • m68hc11.md (move peephole2): New peepholes to optimize sequences of moves. · d87e83b9
      	* config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
      	sequences of moves.
      	(add peepholes): New peepholes to optimize sequences adding small
      	constants.
      	(bset peepholes): New peepholes to transform an OR in a bset form
      	(bclr peepholes): Likewise for bclr form.
      	(cmp peepholes): New peepholes to avoid register copies when comparing.
      
      From-SVN: r78787
      Stephane Carrez committed
    • m68hc11.md ("*pushdi_internal"): New insn and split to separate push from moves. · d5111c9c
      	* config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
      	to separate push from moves.
      	("*pushdf_internal"): Likewise.
      	("*pushsf_internal"): Likewise.
      	("*pushsi_internal"): Likewise.
      	("movdi_internal"): Use define_insn_and_split; non push operand.
      	("movdf_internal"): Likewise.
      	("movsf_internal"): Likewise.
      	("movsi_internal"): Likewise.
      	("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
      	("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
      	("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
      
      From-SVN: r78785
      Stephane Carrez committed
    • m68hc11.md ("tstqi_z_used"): Use define_insn_and_split. · 9449502d
      	* config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
      	("cmphi_z_used", "cmpqi_z_used"): Likewise.
      	("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
      	("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
      	("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
      	("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
      	("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
      	("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
      	("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
      	("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
      	("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
      
      From-SVN: r78783
      Stephane Carrez committed
    • m68hc11.md (SOFT_TMP_REGNUM): Define. · b90f3299
      	* config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
      	(SOFT_XY_REGNUM): Define.
      	(cmp split): Use the above instead of hard coded numbers.
      	(8-bit op split): No need to check the mode; allow Q_REG.
      	(ashift split): Adjust the first operand if it uses the SP and we
      	are pushing the shifted value.
      	(plus shift split): Fix when a source is in register D+X.
      	("doloop_end"): Pass dummy arguments to gen_rtx_NE.
      
      From-SVN: r78781
      Stephane Carrez committed
    • m68hc11.c (m68hc11_check_z_replacement): Fix when comparing with Z register. · 77d2a36d
      	* config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
      	comparing with Z register.
      
      From-SVN: r78779
      Stephane Carrez committed
    • cfgloop.h (struct loop_desc): Removed. · f2dca510
      	* cfgloop.h (struct loop_desc): Removed.
      	(struct loop): Fields simple, desc and has_desc removed.
      	(simple_loop_p, count_loop_iterations): Declaration removed.
      	* cfgloopanal.c (struct unmark_altered_insn_data): Removed.
      	(unmark_altered, blocks_invariant_registers, unmark_altered_insn
      	blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
      	invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
      	simple_loop_exit_p, variable_initial_value, variable_initial_values,
      	simple_condition_p, simple_increment, count_strange_loop_iterations,
      	inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
      	Removed.
      	* loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
      
      From-SVN: r78777
      Zdenek Dvorak committed
    • Support automake 1.8.2 · ec2075e9
      
      2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
      
      	Support automake 1.8.2
      	* configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
      	* po/Makefile.am (EXTRA_DIST): New.
      	* po/Makefile.in: Regenerate.
      	* Makefile.in: Same.
      	* include/Makefile.in: Same.
      	* libmath/Makefile.in: Same.
      	* libsupc++/Makefile.in: Same.
      	* src/Makefile.in: Same.
      	* testsuite/Makefile.in: Same.
      
      	* include/Makefile.am (${host_builddir}/gthr-posix.h): Use
      	__GXX_WEAK__ instead of SUPPORTS_WEAK.
      	(${host_builddir}/gthr-default.h): Same.
      	(${host_builddir}/gthr.h): Same.
      	* acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
      	_GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
      	-fno-weak.
      	* aclocal.m4: Regenerate.
      	* acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
      	* config.h.in: Regenerate.
      	* configure: Same.
      
      From-SVN: r78770
      Benjamin Kosnik committed
    • genattrtab.c: Don't handle MATCH_INSN. · 87ca8b8c
      	* genattrtab.c: Don't handle MATCH_INSN.
      	* genrecog.c: Likewise.
      	* gensupport.c: Likewise.
      	* rtl.def (match_insn): Remove.
      	* doc/md.texi (match_insn, match_insn2): Remove.
      
      From-SVN: r78768
      Kazu Hirata committed
    • c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this macro results in memory allocation. · bdc2893c
      	* doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
      	macro results in memory allocation.
      
      From-SVN: r78767
      Mark Mitchell committed
    • freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add. · 2de2f846
      2004-03-02  David O'Brien  <obrien@FreeBSD.org>
      	* config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
      	* config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
      	%(fbsd_dynamic_linker),
      	(LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
      	config/i386/freebsd.h
      	* config/arm/freebsd.h: Ditto.
      	* config/i386/freebsd.h: Ditto.
      	* config/i386/freebsd64.h: Ditto.
      	* config/ia64/freebsd.h: Ditto.
      	* config/rs6000/sysv4.h: Ditto.
      	* config/sparc/freebsd.h: Ditto.
      
      From-SVN: r78766
      David O'Brien committed
    • * configure: Regenerate. · 21a32e08
      From-SVN: r78765
      Jan Hubicka committed
    • configure.host: Pass -fno-omit-frame-pointer for i386. · 2ac87ccb
      
      	* configure.host: Pass -fno-omit-frame-pointer for i386.
      	* configure.in: Likewise.
      
      From-SVN: r78764
      Jan Hubicka committed
    • Complete previous change. · 215cae7b
      From-SVN: r78761
      Arnaud Charlet committed
    • re PR ada/14350 (libada/configure.in should not hardcode GCC version) · f0d3c336
              PR ada/14350
              * configure.in: Remove hardcoded gcc version.
      
              * configure: Regenerated.
      
      From-SVN: r78760
      Arnaud Charlet committed
    • Fix typo. · a5c40cfb
      From-SVN: r78759
      Arnaud Charlet committed
    • [multiple changes] · 555360a5
      2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
      
      	* ali.adb (Read_Instantiation_Instance): Do not modify the
      	current_file_num when reading information about instantiations, since
      	this corrupts files in later references.
      
      2004-03-02  Vincent Celier  <celier@gnat.com>
      
      	* bcheck.adb (Check_Consistency): Get the full path of an ALI file
      	before checking if it is read-only.
      
      	* bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
      	of SRC_DIRS and eliminate duplicates.
      
      	* gprcmd.adb: Replace command "path" with command "path_sep" to return
      	the path separator.
      	(Usage): Document path_sep
      
      	* Makefile.generic: For Ada and GNU C++ cases, link directly with the
      	C++ compiler. No need for a script.
      	Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
      	Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
      	subst.
      
      	* prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
      	where there are Ada sources.
      	(Set_Ada_Paths): Only add to the include path the source dirs of project
      	with Ada sources.
      	(Add_To_Path): Add the Display_Values of the directories, not their
      	Values.
      
      	* prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
      	data.
      
      	* prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
      	is not No_Name.
      	(Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
      	Value is canonicalized.
      	(Language_Independent_Check): Do not copy Value to Display_Value when
      	canonicalizing Value.
      
      	* prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
      	path to find limited with cycles.
      	(Parse_Single_Project): Use canonical cased path to find the end of a
      	with cycle.
      
      2004-03-02  Ed Schonberg  <schonberg@gnat.com>
      
      	* sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
      	and not a child unit.
      
      	* sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
      	appear in a with_clause.
      
      	* decl.c (gnat_to_gnu_type): If entity is a generic type, which can
      	only happen in type_annotate mode, do not try to elaborate it.
      
      	* exp_util.adb (Force_Evaluation): If expression is a selected
      	component on the left of an assignment, use a renaming rather than a
      	temporary to remove side effects.
      
      	* freeze.adb (Freeze_Entity): Do not freeze a global entity within an
      	inlined instance body, which is analyzed before the end of the
      	enclosing scope.
      
      2004-03-02  Robert Dewar  <dewar@gnat.com>
      
      	* par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
      	sem_ch4.adb: Use new feature for substitution of keywords in VMS
      
      	* errout.ads, errout.adb: Implement new circuit for substitution of
      	keywords in VMS.
      
      	* sem_case.adb (Analyze_Choices): Place message properly when case is
      	a subtype reference rather than an explicit range.
      
      	* sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
      
      2004-03-02  Doug Rupp  <rupp@gnat.com>
      
      	* init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
      
      2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
      
      	* s-tporft.adb: Add missing locking around call to Initialize_ATCB.
      
      2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
      
      	* utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
      	BLKmode bitfield.
      
      From-SVN: r78758
      Arnaud Charlet committed
    • * rtl.def (define_combine): Remove. · c24938d4
      From-SVN: r78755
      Kazu Hirata committed
    • * config/h8300/h8300.md: Tweak formatting. · ba29f5de
      From-SVN: r78753
      Kazu Hirata committed
    • h8300.md (*cmphi_h8300): Rename to *cmphi_h8300_znvc. · a5a0ab45
      	* config/h8300/h8300.md (*cmphi_h8300): Rename to
      	*cmphi_h8300_znvc.
      	(*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
      
      From-SVN: r78752
      Kazu Hirata committed
    • re PR bootstrap/14356 (gcc.c:3661: error: assignment of read-only location) · e451301f
      	PR bootstrap/14356
      	* gcc.c (process_command): Remove const-qualification from argv.
      	(main): Likewise.
      
      From-SVN: r78751
      Mark Mitchell committed
    • h8300.md (pushqi1_h8300hs): Rename to pushqi1_h8300hs_advanced. · b698e58b
      	* config/h8300/h8300.md (pushqi1_h8300hs): Rename to
      	pushqi1_h8300hs_advanced.  Adjust its caller.
      	(pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
      	Adjust its caller.
      
      From-SVN: r78749
      Kazu Hirata committed
    • Makefile.in (install-libgcc, [...]): Pass mkinstalldirs var to libgcc.mk. · 3a41db81
      2004-03-02  Roche Nicolas <roche@act-europe.fr>
      
      	* Makefile.in (install-libgcc, install-multilib): Pass
      	mkinstalldirs var to libgcc.mk.
      
      From-SVN: r78747
      Nicolas Roche committed
    • re PR c++/14369 (errenous reject of well-formed code) · 9b7be7b5
      	PR c++/14369
      	* pt.c (build_non_dependent_expr): Do not create a
      	NON_DEPENDENT_EXPR for a THROW_EXPR.
      
      	PR c++/14369
      	* g++.dg/template/cond4.C: New test.
      
      From-SVN: r78746
      Mark Mitchell committed
    • system.h (DBX_OUTPUT_STANDARD_TYPES): Poison. · fdf89bf5
      	* system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
      	* doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
      
      From-SVN: r78744
      Kazu Hirata committed
    • h8300.c (gtle_operator): Accept GT and LE. · 0e26895c
      	* config/h8300/h8300.c (gtle_operator): Accept GT and LE.
      	* config/h8300/h8300.md: Split several peephole2's, each into
      	two.
      
      From-SVN: r78741
      Kazu Hirata committed
    • re PR c++/14360 (Overeager argument dependent name lookup) · 676e33ca
      	PR c++/14360
      	* parser.c (cp_parser_postfix_expression): Do not perform Koenig
      	lookup if ordinary name-lookup finds a non-function.
      	* pt.c (tsubst_copy_and_build): Likewise.
      
      	PR c++/14361
      	* parser.c (cp_parser_late_parsing_default_args): Check that there
      	are no extra tokens after the end of the default-argument
      	expression.
      
      	PR c++/14360
      	* g++.old-deja/g++.ns/koenig5.C: Remove some error markers.
      
      	PR c++/14361
      	* g++.dg/parse/defarg7.C: New test.
      
      	PR c++/14359
      	* g++.dg/template/friend26.C: New test.
      
      From-SVN: r78739
      Mark Mitchell committed
    • * dominance.c (recount_dominator): Handle postdominators. · 738ed977
      From-SVN: r78734
      Zdenek Dvorak committed
    • Daily bump. · 27c10211
      From-SVN: r78730
      GCC Administrator committed
  2. 01 Mar, 2004 7 commits
    • * java/lang/natPosixProcess.cc (startProcess): Fix thinko. · dd341087
      From-SVN: r78725
      Per Bothner committed
    • re PR c++/14369 (errenous reject of well-formed code) · 1c09c5e5
              PR c++/14369
              * error.c (dump_expr): Handle THROW_EXPR.
      
      From-SVN: r78723
      Gabriel Dos Reis committed
    • re PR c++/14324 (Multiple static definitions are not unique) · ab73670a
      	PR c++/14324
      	* lex.c (retrofit_lang_decl): Treat entities with no linkage as
      	having C++ linkage for name-mangling purposes.
      
      	PR c++/14260
      	* parser.c (cp_parser_direct_declarator): Recognize constructor
      	declarators that use a template-id to name the class being
      	constructed.
      
      	PR c++/14337
      	* pt.c (tsubst_qualified_id): Handle dependent qualifying scopes.
      	(tsubst_expr): Do not call tsubst_copy, even when
      	processing_template_decl.
      
      	PR c++/14324
      	* g++.dg/abi/mangle21.C: New test.
      
      	PR c++/14260
      	* g++.dg/parse/constructor2.C: New test.
      
      	PR c++/14337
      	* g++.dg/template/sfinae1.C: New test.
      
      From-SVN: r78720
      Mark Mitchell committed
    • mips-protos.h (enum mips_symbol_type): Move from mips.h. · e245bd81
      	* config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
      	(NUM_SYMBOL_TYPES): Likewise.
      	(SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
      	(mips_unspec_address): Declare.
      	(mips_gotoff_page, mips_gotoff_global): Delete.
      	* config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
      	* config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
      	(mips_symbolic_constant_p, mips_symbolic_address_p)
      	(mips_symbol_insns): Handle new symbol types.
      	(general_symbolic_operand): New predicate.
      	(mips_unspec_address): Make extern.
      	(mips_gotoff_page, mips_gotoff_global): Delete.
      	(override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
      	Handle new symbol types.
      	* config/mips/mips.md (*lea_high64, *lea64): New patterns.
      	(*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
      	mips_unspec_address directly.
      	* doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
      	the documentation of -mexplicit-relocs.
      
      From-SVN: r78718
      Richard Sandiford committed
    • configure.in (mips64*-*-linux*): Override mips*-*-linux* case and disable libgcj. · d0fe5ad3
      	* configure.in (mips64*-*-linux*): Override mips*-*-linux* case
      	and disable libgcj.
      	* configure: Regenerated.
      
      From-SVN: r78717
      Richard Sandiford committed
    • acinclude.m4: Quote correctly. · f214923c
      
      2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* acinclude.m4: Quote correctly.
      	* aclocal.m4: Regenerate.
      	* linkage.m4: Same.
      
      From-SVN: r78715
      Benjamin Kosnik committed
    • fold-const.c (fold): An equality comparison of a non-weak object against zero has a known result. · 9bf793f9
      
      	* fold-const.c (fold): An equality comparison of a non-weak object
      	against zero has a known result.  Similarly an equality comparison
      	of the address of two non-weak, unaliased symbols has a known result.
      
      	* ggc-page.c (struct page_entry): New field PREV.
      	(ggc_alloc): Update PREV field appropriately.
      	(sweep_pages): Likewise.
      	(ggc_free): Likewise.  Use PREV field rather than loop to
      	improve ggc_free performance.
      
      cp/
      	* init.c (build_vec_delete_1): Convert 2nd argument to NE_EXPR to
      	the proper type.
      
      From-SVN: r78713
      Jeff Law committed