Commit Graph

19194 Commits

Author SHA1 Message Date
Jason Merrill a321c3844f tinfo2.cc (fast_compare): Remove.
* tinfo2.cc (fast_compare): Remove.
	(before): Just use strcmp.
	* tinfo.cc (operator==): Just use strcmp.
	* decl.c (grokfndecl): Don't check for linkage in `extern "C"'
	declarations.

From-SVN: r23057
1998-10-13 14:29:36 -04:00
Jim Wilson 619aeb9611 Fix for m68k -O0 libstdc++ compiler abort.
* config/m68k/m68k.h (HARD_REGNO_MODE_OK): For FP regs, add REGNO >= 16
	check.  Add comment to document problems with TARGET_SUN_FPA version
	of this macro.
	* config/m68k/m68k.md (movxf+1): Support 'r'/'r' moves.

From-SVN: r23056
1998-10-13 10:52:36 -07:00
Jeffrey A Law 160a655e21 * mn10200.md (addsi3, subsi3, negsi2): Only allow register operands.
From-SVN: r23055
1998-10-13 10:11:24 -06:00
Kaveh R. Ghazi c84e271261 Warning fixes:
* Makefile.in (gencheck.o): Depend on gansidecl.h.
	* c-common.c (print_char_table): Add missing initializers.
	(scan_char_table): Likewise.
	(time_char_table): Likewise.
	* c-decl.c (c_decode_option): Mark parameter `argc' with
	ATTRIBUTE_UNUSED.
	(declare_parm_level): Mark parameter `definition_flag' with
	ATTRIBUTE_UNUSED.
	* c-lex.c (readescape): Use `(unsigned)1' in shift.
	(yylex): Likewise.  Cast `sizeof' to an (int) when comparing
	against one.
	* calls.c (store_one_arg): Remove unused parameter `fndecl'.  All
	callers changed.
	(emit_call_1): Mark parameters `fndecl' and `funtype' with
	ATTRIBUTE_UNUSED.
	(expand_call): Cast result of MIN() to (unsigned int) when
	comparing against an unsigned value.
	* cccp.c (pcfinclude): Remove unused parameter `limit'.  All
	callers changed.
	(make_definition): Remove unused parameter `op'.  All callers
	changed.
	(create_definition): Cast REST_EXTENSION_LENGTH to (long) when
	comparing against the result of pointer arithmetic.
	* config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Cast to (unsigned)
	when comparing against one.
	* dwarf2out.c (dwarf2out_frame_debug): Cast REGNO() and
 	HARD_FRAME_POINTER_REGNUM to (unsigned) when comparing against
 	one.
	(output_die): Move variable `i' into the scope in which it is
	used.  Change its type to `unsigned'.
	(output_die): Cast the result of `strlen' to (int) when passing it
	to ASM_OUTPUT_ASCII().
	(output_pubnames): Likewise.
	(output_line_info): Likewise.
	* emit-rtl.c (global_rtl): Add missing initializers.
	* explow.c (promote_mode): Mark parameter `for_call' with
	ATTRIBUTE_UNUSED.
	* expmed.c (expand_shift): Cast the result of GET_MODE_BITSIZE to
 	`unsigned HOST_WIDE_INT' when comparing against one.
	(synth_mult): Change type of variable `cost' to int.
	(emit_store_flag): Use `(unsigned HOST_WIDE_INT) 1' in shift.
	* expr.c (copy_blkmode_from_reg): Cast BITS_PER_WORD to (unsigned)
	when comparing against one.
	(get_inner_reference): Change variable `alignment' to unsigned.
	(expand_expr): Cast the result of GET_MODE_ALIGNMENT to (unsigned
	int) when comparing against one.
	(expand_builtin_setjmp): Change type of variable `i' to size_t.
	* fold-const.c (div_and_round_double): Cast BASE to
	(HOST_WIDE_INT) when comparing against one.
	* gencheck.c: Include gansidecl.h.
	(main): Mark parameter `argv' with ATTRIBUTE_UNUSED.
	* optabs.c (gen_cond_trap): Mark parameters `code', `op2' and
	`tcode' with ATTRIBUTE_UNUSED.
	* real.c (edivm): Cast constant value to (unsigned long) in
	expression compared against an unsigned value.
	* stmt.c (expand_return): Cast BITS_PER_WORD to (unsigned) when
	comparing against one.
	(expand_end_case): Cast CASE_VALUES_THRESHOLD to (unsigned int)
	when comparing against one.
	* stor-layout.c (mode_for_size): Cast MAX_FIXED_MODE_SIZE to
	(unsigned int) when comparing against one.  Likewise for
	GET_MODE_BITSIZE.
	(smallest_mode_for_size): Likewise.
	(save_storage_status): Mark parameter `p' with ATTRIBUTE_UNUSED.
	(restore_storage_status): Likewise.
	* toplev.c (debug_args): Add missing initializer.
	(f_options): Spelling correction.  Add missing initializers.
	(documented_lang_options): Likewise.
	(debug_end_source_file): Mark parameter `lineno' with
	ATTRIBUTE_UNUSED.
	* tree.c (valid_machine_attribute): Mark parameters `attr_args',
	`decl' and `type' with ATTRIBUTE_UNUSED.
	* varasm.c (decode_reg_name): Cast `sizeof' expression to (int)
	when comparing against one.
	(assemble_variable): Mark parameter `top_level' with
	ATTRIBUTE_UNUSED.
	(assemble_external_libcall): Mark parameter `fun' with
	ATTRIBUTE_UNUSED.
	(output_constant_pool): Mark parameters `fnname' and `fndecl' with
	ATTRIBUTE_UNUSED.

From-SVN: r23054
1998-10-13 15:25:25 +00:00
Mark Mitchell 9fbf56f7a1 cp-tree.h (specializations_of_same_template_p): Remove.
* cp-tree.h (specializations_of_same_template_p): Remove.
	* search.c (get_template_base): Don't use it.
	(get_template_base_recursive): Likewise.
	* pt.c (specializations_of_same_template_p): Remove.
	(unify): Don't use it.
	(lookup_template_class): Find the correct parent when setting
	CLASSTYPE_TI_TEMPLATE.

From-SVN: r23053
1998-10-13 14:34:26 +00:00
Nick Clifton 29a65e3dd4 Fix discrepancies between devo and egcs.
From-SVN: r23052
1998-10-13 12:57:14 +00:00
Jason Merrill 48ad5afd7d iris6.h (ASM_OUTPUT_WEAK_ALIAS): Call ASM_GLOBALIZE_LABEL.
* mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS): Call ASM_GLOBALIZE_LABEL.
	* varasm.c (assemble_start_function et al): Don't call
	ASM_GLOBALIZE_LABEL for weak symbols.

From-SVN: r23051
1998-10-13 07:50:20 -04:00
Tom Tromey 0a65887a38 jcf-dump.c (process_class): Use FATAL_EXIT_CODE, not -1.
* jcf-dump.c (process_class): Use FATAL_EXIT_CODE, not -1.
	(main): Likewise.  Exit with SUCCESS_EXIT_CODE at end of
	function.
	Include <config.h> and "system.h".
	(disassemble_method): Undefine RET to avoid clash with
	config/i386/i386.h.

From-SVN: r23050
1998-10-13 11:49:26 +00:00
Nick Clifton 2ce5e1b422 Check for NULL return from gen_lowpart_if_possible().
From-SVN: r23049
1998-10-13 11:39:26 +00:00
Manfred Hollstein 38ada91eef configure: Add pattern to replace "build_tooldir"'s definition in the generated Makefile...
* configure: Add pattern to replace "build_tooldir"'s
	definition in the generated Makefile with "tooldir"'s
	actual value.

From-SVN: r23048
1998-10-13 10:48:25 +00:00
Jeffrey A Law fb0b29adb8 * collect2.c (main): Pass -EL/-EB through to the compiler.
From-SVN: r23047
1998-10-13 04:26:28 -06:00
Herman A.J. ten Brugge e1a9b2ab4f expr.c (push_block): Handle targets where the stack grows to higher addresses...
* expr.c (push_block): Handle targets where the stack grows
        to higher addresses, but args grow to lower addresses and
        ACCUMULATE_OUTGOING_ARGS is not defined.

From-SVN: r23046
1998-10-13 04:08:10 -06:00
Dave Love ce43588feb Makefile.in (.SUFFIXES): Don't use any.
1998-10-12  Dave Love  <fx@gnu.org>
	* Makefile.in (.SUFFIXES): Don't use any.
	(all-unilib): New target, like old all.
	(all): Use it.
	(.PHONY): Add all-unilib.

From-SVN: r23045
1998-10-13 08:51:49 +00:00
Dave Love c007ef468c Regenerated.
From-SVN: r23044
1998-10-13 08:50:24 +00:00
Dave Love 7982430b57 Revert bogus previous checkin.
From-SVN: r23043
1998-10-13 08:49:54 +00:00
Jeff Law 21f86272fd
Doh!

From-SVN: r23042
1998-10-13 02:39:01 -06:00
Jeffrey A Law 56a8387f0b * config.sub: Bring back lost sparcv9.
From-SVN: r23041
1998-10-13 02:37:39 -06:00
Jeffrey A Law e44e84daea * Makefile.in (all-snvavigator): Remove all-flexlm dependency.
From-SVN: r23040
1998-10-13 02:19:08 -06:00
Alexandre Oliva 11f5a9a0fa * lib/old-dejagnu.exp (old-dejagnu): support `Additional sources:'
From-SVN: r23039
1998-10-13 07:52:27 +00:00
Catherine Moore 5ca2111fc2 Extend meaning of 'c' operands to support .vtinherit.
From-SVN: r23038
1998-10-13 02:05:23 -04:00
Michael Hayes d5e4ff4814 c4x.c: Convert to gen_rtx_FOO.
* config/c4x/c4x.c:  Convert to gen_rtx_FOO.
	Added ATTRIBUTE_UNUSED to unused function arguments.
	(rc_reg_operand): New predicate.
	(c4x_rptb_insert): New function.
	(c4x_rptb_nop_p): Recognize modified rptb_top pattern.
	(c4x_optimization_options): New function.
	* config/c4x/c4x.md: Convert to gen_rtx_FOO.
	 (decrement_and_branch_on_count): New pattern.
	 (rptb_top): Modified pattern to work with BCT optimization.
	* config/c4x/c4x.h (RC_REG): New register class.
	(rc_reg_operand): Define prototype.
	(IS_RC_REG): New macro.
	(IS_RC_OR_PSEUDO_REG): New macro.
	(IS_RC_OR_PSEUDO_REGNO): New macro.
	(OPTIMIZATION_OPTIONS): Define.

From-SVN: r23037
1998-10-13 03:04:59 +00:00
Jeff Law df3f6b6df4 Daily bump.
From-SVN: r23036
1998-10-12 18:45:02 -06:00
Jason Merrill 8e93124d31 * i386/t-cygwin32 (TARGET_LIBGCC2_CFLAGS): Don't define.
From-SVN: r23035
1998-10-12 16:09:48 -04:00
Jason Merrill 1873d7691d * tinfo.cc (operator==): Always compare names.
From-SVN: r23034
1998-10-12 16:08:54 -04:00
Jason Merrill 6f87c7d816 * collect2.c (extract_init_priority): No priority is 65535.
From-SVN: r23033
1998-10-12 16:08:10 -04:00
Robert Lipe c98e175c2d typo fix in Jeff's Monday Morning fix. delte -> delete.
From-SVN: r23032
1998-10-12 19:58:23 +00:00
Herman ten Brugge 76fb7947e6 * decl.c (start_function): Fix cut-and-paste error.
From-SVN: r23031
1998-10-12 15:34:12 -04:00
Kaveh R. Ghazi 0816ebdd9b Warning fixes:
* bad.c (ffebad_finish): Change type of variable `c' to unsigned
        char, change type of variable `s' to unsigned char *.
        * com.c (ffecom_symbol_null_): Add missing initializers.
        * fini.c (MAXNAMELEN): Undef it before defining.
        * implic.c (ffeimplic_lookup_): Change type of parameter `c' to
        unsigned char.
        * intrin.c (ffeintrin_init_0): Cast the argument of ctype macros
        to (unsigned char).
        * lex.c (ffelex_splice_tokens): Change type of variable `p' to
        unsigned char *.
        (ffelex_token_name_from_names): Cast the argument of
        `ffelex_is_firstnamechar' to (unsigned char).
        (ffelex_token_names_from_names): Likewise.
        (ffelex_token_new_name): Likewise.
        (ffelex_token_new_names): Likewise.
        * malloc.c (malloc_root_): Add missing initializer.
        * stb.c (ffestb_do): Change type of variable `p' to unsigned char *.
        (ffestb_else) Likewise.
        (ffestb_else3_) Likewise.
        (ffestb_endxyz) Likewise.
        (ffestb_goto) Likewise.
        (ffestb_let) Likewise.
        (ffestb_varlist) Likewise.
        (ffestb_R522) Likewise.
        (ffestb_R528) Likewise.
        (ffestb_R834) Likewise.
        (ffestb_R835) Likewise.
        (ffestb_R838) Likewise.
        (ffestb_R1102) Likewise.
        (ffestb_blockdata) Likewise.
        (ffestb_R1212) Likewise.
        (ffestb_R810) Likewise.
        (ffestb_R10014_): Cast the argument of `ffelex_is_firstnamechar'
        to (unsigned char).
        (ffestb_V014): Change type of variable `p' to unsigned char *.
        (ffestb_dummy) Likewise.
        (ffestb_R524) Likewise.
        (ffestb_R547) Likewise.
        (ffestb_decl_chartype) Likewise.
        (ffestb_decl_dbltype) Likewise.
        (ffestb_decl_gentype) Likewise.
        (ffestb_decl_entsp_2_) Likewise.
        (ffestb_V027) Likewise.
        (ffestb_decl_R539) Likewise.
        * top.c (ffe_decode_option): Mark parameter `argc' with
        ATTRIBUTE_UNUSED.
        * where.c (ffewhere_unknown_line_): Add missing initializers.

From-SVN: r23030
1998-10-12 17:54:46 +00:00
Michael Tiemann f77d841359 Fix parallel make problem.
* Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.

From-SVN: r23029
1998-10-12 10:45:24 -07:00
Nick Clifton bfca295ff1 Replace (reg 24) with (reg:CC 24)
From-SVN: r23028
1998-10-12 15:58:14 +00:00
Mark Mitchell 1b06d1bb8d Install ChangeLog entry that got left out
From-SVN: r23027
1998-10-12 14:07:55 +00:00
Michael Meissner 2595d66b99 update copyright
From-SVN: r23026
1998-10-12 13:51:07 +00:00
Per Bothner e4de5a1022
Merge from Cygnus internal source tree.

From-SVN: r23025
1998-10-12 05:43:53 -07:00
Per Bothner 8376a32eb1
Merge from Cygnus internal source tree.

From-SVN: r23024
1998-10-12 05:43:52 -07:00
Per Bothner b67d701b4f Merge from Cygnus internal source tree.
From-SVN: r23023
1998-10-12 05:43:51 -07:00
Per Bothner 7e673abacc Merge from Cygnus internal source tree.
From-SVN: r23022
1998-10-12 05:43:48 -07:00
Per Bothner 1595a3297b
Merge from Cygnus internal source tree.

From-SVN: r23021
1998-10-12 05:43:39 -07:00
Per Bothner 9d45bec23d 8
Merge from Cygnus internal source tree.

From-SVN: r23020
1998-10-12 05:43:33 -07:00
Per Bothner a7303141b4 *** empty log message ***
From-SVN: r23019
1998-10-12 05:43:32 -07:00
Per Bothner 6d6044b0e6 Merge from Cygnus internal source tree.
From-SVN: r23018
1998-10-12 05:43:28 -07:00
Alexandre Oliva 6f144c9cf5 Makefile.in (build_tooldir): new variable...
* Makefile.in (build_tooldir): new variable, same as old
	$(tooldir), but without depending on $(libdir)/$(unlibsubdir)
	(GCC_FOR_TARGET): add -B$(build_tooldir)/bin/
	(bootstrap, bootstrap2, bootstrap3, bootstrap4): ditto
	* configure.in (gxx_include_dir): set default based on unlibsubdir
	* Makefile.in (tooldir): ditto
	(cccp.o, cpplib.o): use unlibsubdir implicitly through
	gxx_include_dir, includedir and tooldir
	(protoize.o, unprotoize.o): ditto

From-SVN: r23017
1998-10-12 05:14:11 -06:00
Jeff Law 5cb95c7ac4 Makefile.in (CHILL_FOR_TARGET): Mirror recent changes to CC_FOR_TARGET and friends.
* Makefile.in (CHILL_FOR_TARGET): Mirror recent changes to
        CC_FOR_TARGET and friends.
Mon Oct 12 12:09:30 1998  Alexandre Oliva  <oliva@dcc.unicamp.br>
        * Makefile.in (build_tooldir): new variable, same as tooldir
        (CC_FOR_TARGET, GCC_FOR_TARGET, CXX_FOR_TARGET): add
        -B$(build_tooldir)/bin/
        (BASE_FLAGS_TO_PASS): pass build_tooldir down

From-SVN: r23016
1998-10-12 05:11:16 -06:00
Dave Love 5ddbf40f38 open.c (_XOPEN_SOURCE): Define.
1998-10-12  Dave Love  <fx@gnu.org>
	* libI77/open.c (_XOPEN_SOURCE): Define.

From-SVN: r23015
1998-10-12 11:09:53 +00:00
Dave Love 724f93e7c0 Makefile.in (.SUFFIXES): Don't use any.
1998-10-12  Dave Love  <fx@gnu.org>
	* Makefile.in (.SUFFIXES): Don't use any.
	(all-unilib): New target, like old all.
	(all): Use it.
	(.PHONY): Add all-unilib.

From-SVN: r23014
1998-10-12 11:08:12 +00:00
Nick Clifton 25b1c156df thumb.c - add warning about PIC code not being supported just yet.
arm.c - synchronised with devo
arm.md - synchronised with devo
README-interworking - sychronised with devo.

From-SVN: r23013
1998-10-12 10:53:08 +00:00
Jeff Law 5d4a5ee6d9 Final changes from devo<->egcs merge.
Final changes from devo<->egcs merge.  Ugh, a year of configury/Makefile
hacking.

From-SVN: r23012
1998-10-12 04:44:57 -06:00
John Wehle fdb8a883a4 flow.c: Update comment.
* flow.c: Update comment.
        (notice_stack_pointer_modification): New static function.
        (record_volatile_insns): Use it.
        (mark_regs_live_at_end): Mark the stack pointer as alive
        at the end of the function if current_function_sp_is_unchanging
        is set.
        (life_analysis_1): Set current_function_sp_is_unchanging.
        * function.c: Define it.
        (init_function_start): Initialize it.
        * output.h: Declare it.
        * reorg.c (fill_simple_delay_slots, dbr_schedule): Mark
        the stack pointer as alive at the end of the function if
        current_function_sp_is_unchanging is set.
        * i386.c (ix86_epilogue): Optimize the restoring
        of the stack pointer.

From-SVN: r23009
1998-10-12 04:06:49 -06:00
Alexandre Oliva 3babe36c37 config.shared (depend.new): delete libc-lock.h from dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule
* config.shared (depend.new): delete libc-lock.h from
	dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule
	* depend: Rebuilt.

From-SVN: r23008
1998-10-12 09:28:02 +00:00
Alexandre Oliva a5703c818f instantiate5.C: New test.
* g++.old-deja/g++.pt/instantiate5.C: New test.  `global
	constructors' name is not unique
	* g++.old-deja/g++.pt/instantiate5.cc: ditto
	* g++.old-deja/g++.pt/instantiate5-main.cc: ditto

From-SVN: r23007
1998-10-12 09:25:50 +00:00
Alexandre Oliva ba5494e3bc explicit74.C: New test.
* g++.old-deja/g++.pt/explicit74.C: New test.  Explicit
 	instantiation of template produces incorrect code for delete
 	expression.

From-SVN: r23006
1998-10-12 05:12:44 +00:00