1. 15 Nov, 2001 29 commits
    • avoid includes · 22f86c32
      From-SVN: r47064
      Jason Merrill committed
    • gensupport.c [...]: Change call to alloca to xmalloc. · 94414790
      
      2001-11-15  Alan Matsuoka  <alanm@redhat.com>
      
      	* gensupport.c	process_include : Change call to alloca to
      	xmalloc.
      
      From-SVN: r47062
      Alan Matsuoka committed
    • parse.y: Add ... · 8a2b77e7
              * parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions.
              * decl.c (make_typename_type): Handle getting a class template.
              * search.c (lookup_field_r): A class template is good enough for
              want_type.
      
              * call.c (convert_like_real): Only use cp_convert for the bad part.
              (standard_conversion): Also allow bad int->enum.
              * typeck.c (ptr_reasonably_similar): Also allow functions to
              interconvert.  Pointers to same-size integers are reasonably
              similar.
      
              * cvt.c (convert_to_void): If we build a new COND_EXPR, always
              give it void type.
      
      From-SVN: r47060
      Jason Merrill committed
    • rs6000.md: Use spaces instead of tabs in output templates. · 9bddde52
            * config/rs6000/rs6000.md: Use spaces instead of tabs in output
              templates.
      
      From-SVN: r47059
      Aldy Hernandez committed
    • final.c (alter_subreg): If simplify_subreg can't do anything, handle REG… · fea54805
      final.c (alter_subreg): If simplify_subreg can't do anything, handle REG ourselves and abort for others.
      
      	* final.c (alter_subreg): If simplify_subreg can't do anything,
      	handle REG ourselves and abort for others.
      
      From-SVN: r47058
      Richard Kenner committed
    • h8300.c (dosize): Avoid corrupting R3 in interrupt routines. · 768caa28
      	* config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
      	routines.
      
      From-SVN: r47057
      Richard Hodson committed
    • * fix-header.c (read_scan_file): Update. · 56c2b525
      From-SVN: r47055
      Neil Booth committed
    • toplev.c (toplev_main): Don't start timing until after command-line options are parsed. · a9915c78
      	* toplev.c (toplev_main): Don't start timing until after
      	command-line options are parsed.
      
      From-SVN: r47054
      Richard Kenner committed
    • config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target makefile frag... · fed7dc63
      	* config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
      	makefile frag, not host makefile frag.
      	(m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
      	(hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
      	used.
              (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
      	* config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
      	* config/m88k/t-dgux (STMP_FIXPROTO): Define.
      	* config/i386/t-cygwin (STMP_FIXPROTO): Define.
      	* config/i386/t-dgux (STMP_FIXPROTO): Define.
      	* config/x-interix: Don't define STMP_FIXPROTO and
      	FIXPROTO_DEFINES.
      	* config/t-interix: New file, define STMP_FIXPROTO.
      	* config/i386/x-beos (STMP_FIXPROTO): Don't define here.
      	* config/i386/t-beos (STMP_FIXPROTO): Define here instead.
      	* config/t-svr4 (FIXPROTO_DEFINES): Define.
      	* config/arm/t-riscix (FIXPROTO_DEFINES): Define.
      	* config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
      	* config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
      	* config/m68k/t-hp3200: Renamed from x-hp3200.
      	* config/i370/t-oe: Renamed from x-oe.
      	* config/mips/t-iris: Renamed from x-iris.
      	* config/pa/t-bsd: Renamed from x-pa.
      	* config/pa/t-pa-hpux: Renamed from x-pa-hpux.
      	* config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
      	config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
      	config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
      	config/rs6000/x-cygwin: Remove files.
      
      From-SVN: r47053
      Andreas Schwab committed
    • config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target makefile frag... · 14455c64
      	* config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
      	makefile frag, not host makefile frag.
      	(m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
      	(hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
      	used.
              (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
      	* config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
      	* config/m88k/t-dgux (STMP_FIXPROTO): Define.
      	* config/i386/t-cygwin (STMP_FIXPROTO): Define.
      	* config/i386/t-dgux (STMP_FIXPROTO): Define.
      	* config/x-interix: Don't define STMP_FIXPROTO and
      	FIXPROTO_DEFINES.
      	* config/t-interix: New file, define STMP_FIXPROTO.
      	* config/i386/x-beos (STMP_FIXPROTO): Don't define here.
      	* config/i386/t-beos (STMP_FIXPROTO): Define here instead.
      	* config/t-svr4 (FIXPROTO_DEFINES): Define.
      	* config/arm/t-riscix (FIXPROTO_DEFINES): Define.
      	* config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
      	* config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
      	* config/m68k/t-hp3200: Renamed from x-hp3200.
      	* config/i370/t-oe: Renamed from x-oe.
      	* config/mips/t-iris: Renamed from x-iris.
      	* config/pa/t-bsd: Renamed from x-pa.
      	* config/pa/t-pa-hpux: Renamed from x-pa-hpux.
      	* config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
      	config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
      	config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
      	config/rs6000/x-cygwin: Remove files.
      
      From-SVN: r47052
      Andreas Schwab committed
    • configure.in: Check for target objdump and use that in eh_frame optimization test. · 3cae5780
      	* configure.in: Check for target objdump and use that in eh_frame
      	optimization test.
      	* configure: Regenerated.
      
      From-SVN: r47051
      Andreas Schwab committed
    • cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized conditional jump... · feb265ab
      	* cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
      	conditional jump, request updating life into for the block
      	containing it.  Fix a typo which prevented life info update.
      	Clear blocks bitmap before using it.
      
      	* gcc.c-torture/compile/20011114-3.c: New test.
      
      From-SVN: r47050
      Jakub Jelinek committed
    • ia64.c (ia64_adjust_cost): Handle SUBREGs. · 8f5a5db8
      	* config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
      
      	* gcc.c-torture/compile/20011114-2.c: New test.
      
      From-SVN: r47049
      Jakub Jelinek committed
    • jump.c (squeeze_notes): Return true if no real insns were found. · 2b7d71b2
      	* jump.c (squeeze_notes): Return true if no real insns were found.
      	* rtl.h (squeeze_notes): Adjust prototype.
      	* cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
      	squeeze_notes finds no real instructions, abort.
      	(merge_blocks_move_successor_nojumps): Likewise.
      	* loop.c (find_and_verify_loops): Likewise.
      	* stmt.c (expand_end_case): Likewise.
      	* ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
      	find any real instructions.
      
      	* gcc.c-torture/compile/20011114-4.c: New test.
      
      From-SVN: r47048
      Jakub Jelinek committed
    • re PR c++/3154 (Tree check: expected class 't', have 'd' (type_decl) in… · 36a68fe7
      re PR c++/3154 (Tree check: expected class 't', have 'd' (type_decl) in is_aggr_type, at cp/init.c:1435)
      
      cp:
      	PR g++/3154
      	* init.c (sort_base_init): Remove unreachable code.
      	(expand_member_init): Adjust comment to reflect reality. Simplify
      	and remove unreachable code.
      testsuite:
      	* g++.dg/other/init1.C: New test.
      
      From-SVN: r47047
      Nathan Sidwell committed
    • c-common.c: Include c-lex.h. · f5e99456
      	* c-common.c: Include c-lex.h.
      	(c_common_lang_init): Change prototype.  Call init_c_lex and
      	init_pragma from here.
      	* c-common.h (c_common_lang_init): Change prototype.
      	* c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
      	* c-lang.c (c_init): Change prototype.  Update.
      	(c_init_options): Update.
      	* c-lex.c (cpp_filename): Remove.
      	(init_c_lex): Update.  Read the main file, and get the original
      	file name.
      	(yyparse): Finish the command line options.
      	* c-parse.in (c_parse_init): Call init_reswords here.
      	(init_parse): Remove.
      	* c-tree.h (c_init_decl_processing): New.
      	* cpphash.c (_cpp_init_hashtable): After initializing the hash
      	table, populate it.
      	* cppinit.c (read_original_filename, cpp_finish_options): New.
      	(cpp_create_reader): New prototype. Defer hash table initialization.
      	(cpp_start_read): Rename cpp_read_main_file.  Initialize the
      	hash table.  Get the original filename.
      	* cpplib.h (cpp_create_reader): Update.
      	(cpp_start_read): Remove.
      	(cpp_read_main_file, cpp_finish_options): New.
      	* cppmain.c (main, do_preprocessing): Update.
      	* langhooks.h (struct langhooks): Update init prototype.
      	* toplev.c (general_init, parse_options_and_default_flags,
      	process_options, lang_indpendent_init, lang_dependent_init,
      	init_asm_output): New; perform the bulk of initialization.
      	(compile_file): Move most of initialization to above functions.
      	(debug_hooks): Initialize statically.
      	(set_Wunused): Relocate.
      	(toplev_main): Move most of initialization to other init functions.
      	Have a clear logic flow.
      	* tree.h (init_parse, init_decl_processing): Remove.
      ada:
      	* misc.c (gnat_init): Change prototype.  Include the
      	functionality of the old init_parse and init_decl_processing.
      	(gnat_init_decl_processing): New prototype.
      	(init_parse): Remove.
      	* utils.c (init_decl_processing): Rename gnat_init_decl_processing.
      cp:	* cp-tree.h (init_reswords, cxx_init_decl_processing): New.
      	(cxx_init): Update prototype.
      	* decl.c (init_decl_processing): Rename.  Move null node init
      	to its creation time.
      	* lex.c (cxx_init_options): Update.
      	(cxx_init): Combine with old init_parse; also call
      	cxx_init_decl_processing.
      f:	* com.c (ffecom_init_decl_processing): Renamed from
      	init_decl_processing.
      	(init_parse): Move contents to ffe_init.
      	(ffe_init): Update prototype.
      java:	* decl.c (init_decl_processing): Rename java_init_decl_processing.
      	* java-tree.h: New prototype.
      	* lang.c (java_init): Update prototype.  Combine with old init_parse.
      objc:	* objc-act.c (objc_init): Update prototype, combine with old
      	init_parse.
      	(objc_init_options): Update.
      
      From-SVN: r47046
      Neil Booth committed
    • index.html (Is libstdc++-v3 thread-safe?): Clarify wording. · 87bc7fa6
              * docs/html/faq/index.html (Is libstdc++-v3 thread-safe?): Clarify
              wording.
      
      From-SVN: r47045
      Loren J. Rittle committed
    • stl_alloc.h (alloc): Update to use __mem_interface. · 2a692463
              libstc++/4219
              * include/bits/stl_alloc.h (alloc): Update to use __mem_interface.
              (single_client_alloc): Likewise.
      
      From-SVN: r47044
      Bjørn Wennberg committed
    • Daily bump. · ab3fdb7f
      From-SVN: r47042
      GCC Administrator committed
    • cfgrtl.c (purge_all_dead_edges): Use int as argument for portability. · 00baba68
      	* cfgrtl.c (purge_all_dead_edges): Use int as argument for
      	portability.
      	* basic-block.h: Adjust prototype.
      
      From-SVN: r47041
      Andreas Jaeger committed
    • aix31.h: Fix comment formatting. · 82e41834
      	* config/rs6000/aix31.h: Fix comment formatting.
      	* config/rs6000/beos.h: Likewise.
      	* config/rs6000/darwin.h: Likewise.
      	* config/rs6000/eabi.asm: Likewise.
      	* config/rs6000/linux.h: Likewise.
      	* config/rs6000/linux64.h: Likewise.
      	* config/rs6000/lynx.h: Likewise.
      	* config/rs6000/netbsd.h: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/rs6000/rs6000.h: Likewise.
      	* config/rs6000/rs6000.md: Likewise.
      	* config/rs6000/sol2.h: Likewise.
      	* config/rs6000/tramp.asm: Likewise.
      	* config/rs6000/xcoff.h: Likewise.
      	* config/rs6000/xm-beos.h: Likewise.
      
      From-SVN: r47040
      Kazu Hirata committed
    • ChangeLog entries for: · 7a0f9993
      2001-11-05  Alan Matsuoka  <alanm@redhat.com>
      
      	* rtl.def (INCLUDE) : Define.
      	* gensupport.c  (init_include_reader, process_include,
      	save_string) :  New functions to implement an include facility
      	in .md files.
      	* gensupport.h : Add prototype for init_md_reader_args.
      	* genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
      	genextract.c genflags.c genopinit.c genoutput.c
      	genpeep.c genrecog.c: Change call to init_md_reader to
      	init_md_reader_args.
      	* md.texi: Document (include "path") and -I directives for RTL
      	generation tools.
      
      From-SVN: r47039
      Alan Matsuoka committed
    • 920923-1.c: stormy16 produces an extra error message. · 7042d510
      	* gcc.dg/noncompile/920923-1.c: stormy16 produces an extra error
      	message.
      
      	* gcc.c-torture/execute/20011114-1.c: New testcase.
      
      From-SVN: r47038
      Geoffrey Keating committed
    • integrate.c (get_hard_reg_initial_reg): New. · 902197eb
      * integrate.c (get_hard_reg_initial_reg): New.
      * integrate.h (get_hard_reg_initial_reg): Prototype.
      * local-alloc.c (block_alloc): Don't tie pseudos that
      represent call-saved hard regs' initial values.
      
      From-SVN: r47037
      DJ Delorie committed
    • 20010327-1.c: Revert last change. · 6345b681
      	* gcc.c-torture/compile/20010327-1.c: Revert last change.
      	* gcc.c-torture/compile/20011114-1.c: New test, exactly
      	like the (before this change) version of 20010327-1.c.
      
      From-SVN: r47036
      Geoffrey Keating committed
    • natString.cc: correct argument order for _Jv_AllocPtrFreeObj · aa0149ff
      	* java/lang/natString.cc: correct argument order for
      	_Jv_AllocPtrFreeObj
      
      From-SVN: r47035
      Hans Boehm committed
    • g77.texi: Update to use `@command', `@option. · 49e19725
      2001-11-14  Toon Moene  <toon@moene.indiv.nluug.nl>
      
      	* g77.texi: Update to use `@command', `@option.
      	* invoke.texi: Ditto
      
      From-SVN: r47034
      Toon Moene committed
    • verify.cc (class _Jv_BytecodeVerifier): Fixed logic. · 6c5a8271
      	* verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
      	[op_dup_x2]: Likewise.
      	[op_dup2_x1]: Likewise.
      	[op_dup2_x2]: Likewise.
      	(branch_prepass): Added `op_newarray' case.  Updated unrecognized
      	instruction error.
      	(verify_instructions_0): Updated unrecognized instruction error.
      
      From-SVN: r47033
      Tom Tromey committed
  2. 14 Nov, 2001 11 commits
    • linux.h: Include <linux.h> not "linux.h" to avoid infinite recursion. · 9da85b16
      	* m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
      	recursion.
      
      From-SVN: r47032
      Kaveh R. Ghazi committed
    • Constructor.java (toString): Use more efficient form of Modifier.toString(). · 6d88e1c3
      	* java/lang/reflect/Constructor.java (toString): Use more
      	efficient form of Modifier.toString().
      
      From-SVN: r47031
      Tom Tromey committed
    • * gcc.c-torture/execute/string-opt-13.c: New testcase. · c1a7b241
      From-SVN: r47030
      Roger Sayle committed
    • Re-merges with Classpath, from various people: · 81bc01c2
      	* java/lang/reflect/Modifier.java: Reindented.
      	(toString): Only trim trailing space if text was added to
      	StringBuffer.
      	* java/lang/reflect/ReflectPermission: Reindented.
      
      From-SVN: r47028
      Tom Tromey committed
    • config.gcc (sparc64-wrs-vxworks*, [...]): Include various CPU headers via tm_file. · 0f7a7be7
      2001-11-14  David O'Brien  <obrien@FreeBSD.org>
      	* config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
      	sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
      	sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
      	sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
      	sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
      	sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
      	sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
      	Include various CPU headers via tm_file.  a.out based platforms now
      	properly include sparc/aout.h.  sol2.h usage now implies including
      	elfos.h, svr4.h, and sparc/sysv4.h.
      	* config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
      	Also define to '1'.
      	* sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
      	SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
      	DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
      	Remove.  They are a.out specific and belong in sparc/aout.h.
      	* sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
      	ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
      	DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
      	sparc/sparc.h.
      	* sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
      	TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
      	Moved here from sparc/sparc.h.
      	* config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
      	defining.
      	* config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
      	* config/sparc/lynx.h:  Don't include lynx.h.
      	(SELECT_SECTION): Do not undef.
      	* config/sparc/openbsd.h: Don't include sparc/sparc.h.
      	* config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
      	and sparc/sysv4.h.
      	* config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
      	* config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
      	sparc/aout.h now.
      	* config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
      	Don't undef, there is no need.
      	* config/sparc/splet.h (CPP_PREDEFINES): Define.
      	* config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
      	* config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
      	Don't include sparc/sparc.h.
      	* config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
      	SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
      	DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
      	elfos.h and svr4.h.
      	(TARGET_VERSION): Define.
      	* config/sparc/vxsim.h (TARGET_VERSION): Define.
      
      Approved by:  Richard Henderson <rth@redhat.com>
                    Message-ID: <20011114132416.B17112@redhat.com>
      
      From-SVN: r47023
      David O'Brien committed
    • configure.in (noconfigdirs): Disable libf2c. · 90a12988
      	* configure.in (noconfigdirs) [h8300*-*-*, h8500-*-*]: Disable
      	libf2c.
      
      From-SVN: r47022
      Hans-Peter Nilsson committed
    • encoding.c: Add target_flags. · d5114db1
      2001-11-14  Aldy Hernandez  <aldyh@redhat.com>
      
              * encoding.c: Add target_flags.
      
      From-SVN: r47021
      Aldy Hernandez committed
    • rtl.def (INCLUDE): Define. · 04d8aa70
      
      2001-11-05  Alan Matsuoka  <alanm@redhat.com>
      
      	* rtl.def (INCLUDE) : Define.
      	* gensupport.c  (init_include_reader, process_include,
      	save_string) :  New functions to implement an include facility
      	in .md files.
      	* gensupport.h : Add prototype for init_md_reader_args.  *
      	genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
      	genextract.c genflags.c genopinit.c genoutput.c
      	genpeep.c genrecog.c: Change call to init_md_reader to
      	init_md_reader_args.
      	* md.texi: Document (include "path") and -I directives for RTL
      	generation tools.
      
      From-SVN: r47020
      Alan Matsuoka committed
    • cfglayout.c (fixup_fallthru_exit_predecesor): New static function. · 49778644
      	* cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
      	(cfg_layout_finalize): Use it.
      	* bb-reorder.c (HAVE_epilogue): Remove.
      	(make_reorder_chain): Do not care special placement of
      	last basic block.
      
      	* predict.c (expected_value_to_br_prob): Delete the note
      	once transformed.
      
      	* c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
      	measure integration time separately.
      
      From-SVN: r47019
      Jan Hubicka committed
    • Re-merges with Classpath, from various people: · 852d3dad
      	* java/lang/Double.java (parseDouble): Fixed ordering of
      	modifiers.
      	* java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
      	* java/lang/reflect/Member.java: Reindented.
      	* java/lang/reflect/Modifier.java: Reindented.
      	(toString): Only trim trailing space if text was added to
      	StringBuffer.
      	* java/util/ConcurrentModificationException.java: Javadoc
      	updates.
      	* java/util/EmptyStackException.java: Likewise.
      	* java/util/NoSuchElementException.java: Likewise.
      
      From-SVN: r47018
      Tom Tromey committed