Commit Graph

20012 Commits

Author SHA1 Message Date
Gerald Pfeifer
c2a2650529 gcc.texi (Non-bugs): ``Empty'' loops will be optimized away in the future...
* gcc.texi (Non-bugs): ``Empty'' loops will be optimized away in
	the future; indeed that already happens in some cases.

From-SVN: r24442
1998-12-30 05:28:05 +00:00
Richard Henderson
30dfe54ae2 * rtl.h (CONSTANT_P): Remove CONSTANT_P_RTX.
From-SVN: r24441
1998-12-29 04:03:36 -08:00
Richard Henderson
11301057f6 sparc.c (input_operand): Recognize (const (constant_p_rtx)).
* sparc.c (input_operand): Recognize (const (constant_p_rtx)).
        (arith_operand): Remove constant_p_rtx handling.
        (const64_operand, const64_high_operand): Likewise.
        (arith11_operand, arith10_operand, arith_double_operand): Likewise.
        (arith11_double_operand, arith10_double_operand, small_int): Likewise.
        (small_int_or_double, uns_small_int, zero_operand): Likewise.
        * sparc.h (PREDICATE_CODES): Likewise.

From-SVN: r24440
1998-12-29 04:02:15 -08:00
Richard Henderson
185ebd6c71 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>:
* rtl.def (CONSTANT_P_RTX): Clarify commentary.
        * expr.c (expand_builtin, case BUILT_IN_CONSTANT_P): Rework to
        consider constant CONSTRUCTOR constant and to defer some cases
        to cse.
        * cse.c (fold_rtx, case CONST): Add handling for CONSTANT_P_RTX.
        * regclass.c (reg_scan_mark_refs, case CONST): Likewise.
Richard Henderson  <rth@cygnus.com>
        * expr.c (init_expr_once): Kill can_handle_constant_p recognition.
        * cse.c (fold_rtx, case 'x'): Remove standalone CONSTANT_P_RTX code.

From-SVN: r24439
1998-12-29 03:36:22 -08:00
Richard Henderson
eb8da8684c alpha.c (reg_or_6bit_operand): Remove CONSTANT_P_RTX handling.
* alpha.c (reg_or_6bit_operand): Remove CONSTANT_P_RTX handling.
        (reg_or_8bit_operand, cint8_operand, add_operand): Likewise.
        (sext_add_operand, and_operand, or_operand): Likewise.
        (reg_or_cint_operand, some_operand, input_operand): Likewise.
        * alpha.h (PREDICATE_CODES): Likewise.

From-SVN: r24438
1998-12-29 03:35:34 -08:00
Richard Henderson
8f8e7de31b bcp-1.c (bad10): Rename from opt3.
* gcc.c-torture/execute/bcp-1.c (bad10): Rename from opt3.
        (opt3): Rename from opt4 and disable.

From-SVN: r24437
1998-12-29 03:35:06 -08:00
Jeff Law
67211fa1fc Daily bump.
From-SVN: r24436
1998-12-28 17:45:02 -07:00
Jeff Law
5369e4df0f Daily bump.
From-SVN: r24434
1998-12-27 17:45:02 -07:00
Jeff Law
212c6d304e Daily bump.
From-SVN: r24433
1998-12-26 17:45:02 -07:00
Jeffrey A Law
081f12b3ab Bump for snapshot
From-SVN: r24431
1998-12-26 16:26:30 -07:00
Jeffrey A Law
ba476f7531 gengenrtl.c (gencode): Always use bzero to clear memory instead of dangerous casts and stores.
* gengenrtl.c (gencode): Always use bzero to clear memory instead
        of dangerous casts and stores.
Fixes alpha & sparc -O3 bootstrap problems.

From-SVN: r24420
1998-12-26 02:31:42 -07:00
Jeffrey A Law
7ce1e6c85d * Makefile.in (compare, gnucompare): Add missing else true clauses.
From-SVN: r24419
1998-12-26 01:19:18 -07:00
Jeff Law
b9e5045ea4 Daily bump.
From-SVN: r24418
1998-12-25 17:45:02 -07:00
Jeffrey A Law
4b8557677e alpha.md (builtin_longjmp): Add missing "DONE".
* alpha.md (builtin_longjmp): Add missing "DONE".
alpha -O0 bootstrap bugfix.

From-SVN: r24417
1998-12-25 15:08:13 -07:00
Jeff Law
52f322dab9 Daily bump.
From-SVN: r24416
1998-12-24 17:45:03 -07:00
Brendan Kehoe
08c5b6e887 fix minor typo
From-SVN: r24415
1998-12-24 05:52:44 -05:00
Stan Cox
6405c0eca8 * gcc.c (execute): Enable -pipe with win32.
From-SVN: r24414
1998-12-24 10:30:08 +00:00
Jeff Law
05b3fb45b8 Daily bump.
From-SVN: r24413
1998-12-23 17:45:03 -07:00
Brendan Kehoe
90352f7294 fix placement of the errors
From-SVN: r24412
1998-12-23 12:02:02 -05:00
Nick Clifton
a1e27b76d4 Enable -fleading-underscore for arm-elf builds.
From-SVN: r24409
1998-12-23 14:34:18 +00:00
Per Bothner
5a005d9ead expr.c (process_jvm_instruction): Do load_type_state after JSR.
d
	* expr.c (process_jvm_instruction):  Do load_type_state after JSR.
	* verify.c (verify_jvm_instructions):  Fix off-by-one error.
	* jcf-write.c (CHECK_PUT):  Add (void) cast to avoid -Wall warnings.
	(localvar_alloc):  Change return type to void,
	(emit_unop):  Remove unused variable size.
	* jcf-write.c (struct jcf_block):  Add new union.
	(PENDING_CLEANUP_PC, PENDING_EXIT_PC, UNDEFINED_PC):  New macros.
	(call_cleanups):  New functions.
	(struct jcf_partial):  New fields num_finalizers and return_value_decl.
	(generate_bytecode_insns):  Support CLEANUP_POINT_EXPR and
	WITH_CLEANUP_EXPR.  Handle cleanups in RETURN_EXPR and EXIT_BLOCK_EXPR.
	* lang.c (lang_init):  Call using_eh_for_cleanups.
	* parse.y (java_complete_lhs):  For SYNCHRONIZED_EXPR, defer
	completing operands to patch_synchronized_statement.
	Support CLEANUP_POINT_EXPR, WITH_CLEANUP_EXPR.
	(patch_synchronized_statement): Re-write suing CLEANUP_POINT_EXPR and
	WITH_CLEANUP_EXPR instead of TRY_EXPR.

From-SVN: r24406
1998-12-23 02:46:45 -08:00
Per Bothner
e402ca989b expr.c (process_jvm_instruction): Do load_type_state after JSR.
* expr.c (process_jvm_instruction):  Do load_type_state after JSR.
	* verify.c (verify_jvm_instructions):  Fix off-by-one error.
	* jcf-write.c (CHECK_PUT):  Add (void) cast to avoid -Wall warnings.
	(localvar_alloc):  Change return type to void,
	(emit_unop):  Remove unused variable size.
	* jcf-write.c (struct jcf_block):  Add new union.
	(PENDING_CLEANUP_PC, PENDING_EXIT_PC, UNDEFINED_PC):  New macros.
	(call_cleanups):  New functions.
	(struct jcf_partial):  New fields num_finalizers and return_value_decl.
	(generate_bytecode_insns):  Support CLEANUP_POINT_EXPR and
	WITH_CLEANUP_EXPR.  Handle cleanups in RETURN_EXPR and EXIT_BLOCK_EXPR.
	* lang.c (lang_init):  Call using_eh_for_cleanups.
	* parse.y (java_complete_lhs):  For SYNCHRONIZED_EXPR, defer
	completing operands to patch_synchronized_statement.
	Support CLEANUP_POINT_EXPR, WITH_CLEANUP_EXPR.
	(patch_synchronized_statement): Re-write suing CLEANUP_POINT_EXPR and
	WITH_CLEANUP_EXPR instead of TRY_EXPR.

From-SVN: r24405
1998-12-23 02:46:40 -08:00
Per Bothner
45b44fbed7 expr.c (process_jvm_instruction): Do load_type_state after JSR.
a
	* expr.c (process_jvm_instruction):  Do load_type_state after JSR.
	* verify.c (verify_jvm_instructions):  Fix off-by-one error.
	* jcf-write.c (CHECK_PUT):  Add (void) cast to avoid -Wall warnings.
	(localvar_alloc):  Change return type to void,
	(emit_unop):  Remove unused variable size.
	* jcf-write.c (struct jcf_block):  Add new union.
	(PENDING_CLEANUP_PC, PENDING_EXIT_PC, UNDEFINED_PC):  New macros.
	(call_cleanups):  New functions.
	(struct jcf_partial):  New fields num_finalizers and return_value_decl.
	(generate_bytecode_insns):  Support CLEANUP_POINT_EXPR and
	WITH_CLEANUP_EXPR.  Handle cleanups in RETURN_EXPR and EXIT_BLOCK_EXPR.
	* lang.c (lang_init):  Call using_eh_for_cleanups.
	* parse.y (java_complete_lhs):  For SYNCHRONIZED_EXPR, defer
	completing operands to patch_synchronized_statement.
	Support CLEANUP_POINT_EXPR, WITH_CLEANUP_EXPR.
	(patch_synchronized_statement): Re-write suing CLEANUP_POINT_EXPR and
	WITH_CLEANUP_EXPR instead of TRY_EXPR.

From-SVN: r24404
1998-12-23 02:46:39 -08:00
Kaveh R. Ghazi
973838fdb3 Warning fixes:
* alias.c (record_alias_subset): Remove ignored `&'.
        (init_alias_once): Likewise.
        * c-lex.c (UNGETC): Cast first argument of comma expression to void.
        * config/mips/mips.c (mips_asm_file_end): Cast the result of
        fwrite to `int' when comparing against one.
        * config/mips/mips.h (CAN_ELIMINATE): Add parens around && within ||.
        (INITIAL_ELIMINATION_OFFSET): Add braces to avoid ambiguous `else'.
        * cse.c (rehash_using_reg): Change type of variable `i' to
        unsigned int.
        * dwarf2out.c (initial_return_save): Cast -1 to unsigned before
        assigning it to one.
        * except.c (duplicate_eh_handlers): Remove unused variable `tmp'.
        * final.c (final_scan_insn): Likewise for variable `i'.
        (output_asm_insn): Cast a char to unsigned char when used as an
        array index.
        * gcse.c (compute_pre_ppinout): Cast -1 to SBITMAP_ELT_TYPE when
        assigning it to one.
        * loop.c (strength_reduce): Remove unused variables `count' and `temp'.
        * recog.c (preprocess_constraints): Cast a char to unsigned char
        when used as an array index.
        * regmove.c (find_matches): Likewise.
        * reload1.c (calculate_needs): Add default case in switch.
        (eliminate_regs_in_insn): Initialize variable `offset'.
        (set_offsets_for_label): Change type of variable `i' to unsigned.
        (reload_as_needed): Wrap variable `i' in macro check on
        AUTO_INC_DEC || INSN_CLOBBERS_REGNO_P.
        * scan-decls.c (scan_decls): Mark parameters `argc' and `argv'
        with ATTRIBUTE_UNUSED.  Cast variable `start_written' to size_t
        when comparing against one.
        * stor-layout.c (layout_decl): Cast maximum_field_alignment to
        unsigned when comparing against one.  Likewise for
        GET_MODE_ALIGNMENT().
        (layout_record): Cast record_align to int when comparing against a
        signed value.
        (layout_type): Cast TYPE_ALIGN() to int when comparing against a
        signed value.
        * tree.c (get_identifier): Cast variable `len' to unsigned when
        comparing against one.
        (maybe_get_identifier): Likewise

From-SVN: r24403
1998-12-23 07:09:01 +00:00
Jeff Law
2b4c075ca1 Daily bump.
From-SVN: r24402
1998-12-22 17:45:02 -07:00
Jeffrey A Law
ebe1232579 * config.sub: Clean up handling of hppa2.0.
From-SVN: r24401
1998-12-22 16:23:33 -07:00
Jeffrey A Law
2ae7465155 toplev.c (rest_of_compilation): Do not set reload_completed.
Wed Dec 23 00:10:01 1998  Jeffrey A Law  (law@cygnus.com)
        * toplev.c (rest_of_compilation): Do not set reload_completed.
        * reload1.c (reload): Set reload_completed before calling
        cleanup_subreg_operands.

From-SVN: r24400
1998-12-22 16:13:41 -07:00
Richard Henderson
3d0ec3b37c * reload1.c (emit_reload_insns): Check `set' not null before use.
From-SVN: r24399
1998-12-22 16:00:27 -07:00
Rodney Brown
57057b677c * config.guess: Use C code to identify more HP machines.
From-SVN: r24398
1998-12-22 15:58:25 -07:00
Nick Clifton
cae8acdde0 Fix obvious typo that produced compile time warning.
From-SVN: r24397
1998-12-22 15:17:13 +00:00
Theodore Papadopoulo
34fadae065 * halfpic.c (half_pic_encode): Delete redundant code.
From-SVN: r24396
1998-12-22 05:57:58 -07:00
Kaveh R. Ghazi
e833cb112c Warning fixes:
* Makefile.in (cvt.o): Depend on toplev.h.
        * cp-tree.h (check_template_shadow, pod_type_p): Add prototypes.
        * cvt.c: Include toplev.h.
        * except.c (get_eh_caught, get_eh_handlers): Hide prototypes and
        definitions.
        * init.c (expand_vec_init): Initialize variable `itype'.
        * lex.c (yyerror): Cast the argument passed to a ctype function to
        an unsigned char.
        * method.c (build_mangled_C9x_name): Wrap prototype and definition
        in "HOST_BITS_PER_WIDE_INT >= 64".
        * typeck.c (build_binary_op): Mark parameter `convert_p' with
        ATTRIBUTE_UNUSED.

From-SVN: r24395
1998-12-22 12:18:17 +00:00
Mark Mitchell
193306f7fd cp-tree.h (TYPE_RAISES_EXCEPTIONS): Improve documentation.
1998-12-22  Mark Mitchell  <mark@markmitchell.com>
	* cp-tree.h (TYPE_RAISES_EXCEPTIONS): Improve documentation.
	* tree.c (build_exception_variant): Don't crash on empty throw
	specs.

From-SVN: r24394
1998-12-22 10:33:17 +00:00
Michael Meissner
2f0d2c99e2 Delete handling of -dM as a preprocessor option
From-SVN: r24393
1998-12-22 10:03:17 +00:00
Kaveh R. Ghazi
087aa39894 Warning fixes:
* argv.c (buildargv): Cast the result of alloca in assignment.
        * choose-temp.c: Include stdlib.h.
        * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
        (snarf_numeric_literal): Constify first parameter.
        (code_for_qualifier): Avoid a gcc extension, make the parameter an
        int, not a char.
        (demangle_qualifier): Likewise.
        (demangle_signature): Cast the argument of a ctype function to
        unsigned char.
        (arm_pt): Add parens around assignment used as truth value.
        (demangle_arm_hp_template): Constify variable `args'.
        (do_hpacc_template_const_value): Cast the argument of a ctype
        function to unsigned char.
        (do_hpacc_template_literal): Remove unused variable `i'.
        (snarf_numeric_literal): Constify parameter `args'.
        Cast the argument of a ctype function to unsigned char.
        * floatformat.c (floatformat_to_double): Add explicit braces to
        avoid ambiguous `else'.
        * fnmatch.c (fnmatch): Change type of variables `c', `c1',
        `cstart' and `cend' to unsigned char.  Cast the argument of macro
        `FOLD', which uses ctype functions, to unsigned char.
        * objalloc.c (free): Add prototype.

From-SVN: r24392
1998-12-22 06:57:17 +00:00
Jeff Law
4510c86d24 Daily bump.
From-SVN: r24391
1998-12-21 17:45:03 -07:00
Michael Meissner
b5c7059ba4 Do not give a warning for -dD, -dI, or -dM
From-SVN: r24390
1998-12-21 14:42:07 +00:00
Alexandre Oliva
ebc9d4b79c require diagnostic even without -pedantic
From-SVN: r24389
1998-12-21 10:39:08 +00:00
Hans-Peter Nilsson
21f2174d55 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
From-SVN: r24388
1998-12-20 22:57:18 -07:00
Jeff Law
c6085c1d68 Daily bump.
From-SVN: r24387
1998-12-20 17:45:03 -07:00
John F. Carr
6248134869 configure.in: Handle Digital UNIX 5.x the same as 4.x.
* configure.in: Handle Digital UNIX 5.x the same as 4.x.
	* i386/sol2.h: Define LOCAL_LABEL_PREFIX as ".".
	* java/Make-lang.in: Comment out control-Ls.

From-SVN: r24386
1998-12-20 13:24:18 +00:00
Alexandre Oliva
7162b45d19 * g++.old-deja/g++.pt/ptrmem5.C: New test.
From-SVN: r24385
1998-12-20 07:45:13 +00:00
Jeffrey A Law
1ead53b31e Bump for snapshot
From-SVN: r24383
1998-12-20 00:39:56 -07:00
Jeff Law
d55cd6f8d1 Daily bump.
From-SVN: r24382
1998-12-19 17:45:02 -07:00
Jeffrey A Law
24ccb0328f Bump for snapshot
From-SVN: r24380
1998-12-19 15:24:26 -07:00
Jeffrey A Law
a5e3973fb5 Bump for snapshot
From-SVN: r24379
1998-12-19 14:41:36 -07:00
Bernd Schmidt
8f904e4d39 Added myself to "Write after approval" section in MAINTAINERS.
From-SVN: r24378
1998-12-19 12:10:51 +00:00
Kaveh R. Ghazi
85fda1eb7d genattr.c (fatal): Qualify a char* with the `const' keyword.
* genattr.c (fatal): Qualify a char* with the `const' keyword.
        * genattrtab.c (fatal, attr_printf, attr_string, write_attr_set,
        write_unit_name, write_eligible_delay, expand_units,
        make_length_attrs, write_attr_case, find_attr,
        make_internal_attr): Likewise.
        * gencheck.c (tree_codes): Likewise.
        * gencodes.c (fatal): Likewise.
        * genconfig.c (fatal): Likewise.
        * genemit.c (fatal): Likewise.
        * genextract.c (fatal, walk_rtx, copystr): Likewise.
        * genflags.c (fatal): Likewise.
        * genopinit.c (fatal, optabs, gen_insn): Likewise.
        * genoutput.c (fatal, error, predicates): Likewise.
        * genpeep.c (fatal): Likewise.
        * genrecog.c (fatal, decision, pred_table, add_to_sequence,
        write_tree_1, write_tree, change_state, copystr, indents): Likewise.

From-SVN: r24377
1998-12-19 07:04:42 +00:00
Jeff Law
2069dfd8d9 Daily bump.
From-SVN: r24376
1998-12-18 17:45:02 -07:00
Gerald Pfeifer
d2237b4f9b Add new entry regarding Pentium optimizations.
From-SVN: r24375
1998-12-18 14:43:01 +00:00