platform/upstream/gcc.git
26 years ago* i386.md (adddi3): Add =!r,0,0,X alternative.
J"orn Rennecke [Tue, 17 Feb 1998 02:23:03 +0000 (02:23 +0000)]
* i386.md (adddi3): Add =!r,0,0,X alternative.

From-SVN: r18030

26 years agoUpdate documentation for builtin_setjmp related patterns.
Richard Henderson [Mon, 16 Feb 1998 17:19:13 +0000 (09:19 -0800)]
Update documentation for builtin_setjmp related patterns.

From-SVN: r18029

26 years agobump copyright date
David Edelsohn [Mon, 16 Feb 1998 13:20:12 +0000 (08:20 -0500)]
bump copyright date

From-SVN: r18028

26 years agors6000.h (MY_ISCOFF): Add numeric value of U803XTOCMAGIC.
David Edelsohn [Mon, 16 Feb 1998 13:17:50 +0000 (13:17 +0000)]
rs6000.h (MY_ISCOFF): Add numeric value of U803XTOCMAGIC.

        * rs6000.h (MY_ISCOFF): Add numeric value of U803XTOCMAGIC.
        * x-aix31 (INSTALL): Delete.

From-SVN: r18027

26 years agomips.c (mips_expand_epilogue): Update tsize_rtx if tsize changes to something other...
Gavin Koch [Mon, 16 Feb 1998 06:26:59 +0000 (06:26 +0000)]
mips.c (mips_expand_epilogue): Update tsize_rtx if tsize changes to something other than zero.

* mips/mips.c (mips_expand_epilogue): Update tsize_rtx if
tsize changes to something other than zero.

From-SVN: r18026

26 years agova-mips.h: Replace casts of pointers to int with casts of pointers to __PTRDIFF_TYPE__.
Gavin Koch [Mon, 16 Feb 1998 06:14:01 +0000 (06:14 +0000)]
va-mips.h: Replace casts of pointers to int with casts of pointers to __PTRDIFF_TYPE__.

* ginclude/va-mips.h: Replace casts of pointers to int with
casts of pointers to __PTRDIFF_TYPE__.

From-SVN: r18025

26 years agoloop.c (strength_reduce, [...]): Use HOST_WIDE_INT_PRINT_DEC to print CONST_INT values.
John Carr [Mon, 16 Feb 1998 05:26:05 +0000 (05:26 +0000)]
loop.c (strength_reduce, [...]): Use HOST_WIDE_INT_PRINT_DEC to print CONST_INT values.

* loop.c (strength_reduce, record_biv, record_giv): Use
        HOST_WIDE_INT_PRINT_DEC to print CONST_INT values.

From-SVN: r18024

26 years agotree.c (first_rtl_op): New fn.
Jason Merrill [Mon, 16 Feb 1998 04:52:31 +0000 (04:52 +0000)]
tree.c (first_rtl_op): New fn.

* tree.c (first_rtl_op): New fn.
(unsave_expr_now): Use it.
* print-tree.c (print_node): Likewise.
* tree.c (has_cleanups): New fn.
* fold-const.c (fold, case CLEANUP_POINT_EXPR): Use it.  Be more
conservative about pushing the cleanup point down.
* tree.h: Declare them.

From-SVN: r18023

26 years agoMakefile.in (BASE_FLAGS_TO_PASS, [...]): Really add this change to sync Makefile...
Manfred Hollstein [Mon, 16 Feb 1998 04:20:13 +0000 (04:20 +0000)]
Makefile.in (BASE_FLAGS_TO_PASS, [...]): Really add this change to sync Makefile.in with its ChangeLog entries.

8
* Makefile.in (BASE_FLAGS_TO_PASS, EXTRA_TARGET_FLAGS): Really add
this change to sync Makefile.in with its ChangeLog entries.

From-SVN: r18022

26 years agoMakefile.in (BASE_FLAGS_TO_PASS, [...]): Really add this change to sync Makefile...
Manfred Hollstein [Mon, 16 Feb 1998 04:20:12 +0000 (04:20 +0000)]
Makefile.in (BASE_FLAGS_TO_PASS, [...]): Really add this change to sync Makefile.in with its ChangeLog entries.


* Makefile.in (BASE_FLAGS_TO_PASS, EXTRA_TARGET_FLAGS): Really add
this change to sync Makefile.in with its ChangeLog entries.

From-SVN: r18021

26 years agotoplev.c (flag_schedule_reverse_before_reload): Delete variable.
Jeffrey A Law [Sun, 15 Feb 1998 22:28:33 +0000 (22:28 +0000)]
toplev.c (flag_schedule_reverse_before_reload): Delete variable.

        * toplev.c (flag_schedule_reverse_before_reload): Delete variable.
        (flag_schedule_reverse_after_reload): Likewise.
        (f_options): Remove reverse scheduling support.
        * flags.h (flag_schedule_reverse_before_reload): Delete declaration.
        (flag_schedule_reverse_after_reload): Likewise.
        * haifa-sched.c (rank_for_schedule): Remove support for reverse
        scheduling.
Trivial cleanup.

From-SVN: r18020

26 years agogcc.c: Get system includes...
Kaveh R. Ghazi [Sun, 15 Feb 1998 20:41:09 +0000 (20:41 +0000)]
gcc.c: Get system includes...

        * gcc.c: Get system includes, prototypes and macros via "system.h"
        instead of doing it manually.  Change all calls of the ctype
        macros to custom versions defined in "system.h".

From-SVN: r18019

26 years agosystem.h: Fix return type of bcmp prototype from `void' to `int'.
Kaveh R. Ghazi [Sun, 15 Feb 1998 20:36:23 +0000 (20:36 +0000)]
system.h: Fix return type of bcmp prototype from `void' to `int'.

        * system.h: Fix return type of bcmp prototype from `void' to `int'.
        Make bcopy, bcmp and bzero prototypes explicitly `extern'.
        Add a prototype for getenv.

From-SVN: r18018

26 years agoFix Irix6 EH failures, was broken by mips16 patch.
Jim Wilson [Sun, 15 Feb 1998 17:07:31 +0000 (17:07 +0000)]
Fix Irix6 EH failures, was broken by mips16 patch.

* mips/mips.h (INITIAL_ELIMINATION_OFFSET): Readd Jun 6 change.

From-SVN: r18013

26 years agoalias.c: Include <stdlib.h> and <string.h>.
John Carr [Sun, 15 Feb 1998 12:26:06 +0000 (12:26 +0000)]
alias.c: Include <stdlib.h> and <string.h>.

* alias.c: Include <stdlib.h> and <string.h>.
(init_alias_analysis): Pass NULL_RTX instead of 0 to record_set.

From-SVN: r18011

26 years agoMake-lang.in (DEMANGLER_INSTALL_NAME, [...]): New macros.
Manfred Hollstein [Sat, 14 Feb 1998 15:56:38 +0000 (15:56 +0000)]
Make-lang.in (DEMANGLER_INSTALL_NAME, [...]): New macros.

* Make-lang.in (DEMANGLER_INSTALL_NAME, DEMANGLER_CROSS_NAME): New
macros.
(c++.install-common): Install c++filt properly as native or as cross
variant.
(c++.uninstall): Add c++filt.

From-SVN: r18000

26 years ago* call.c (standard_conversion): Fix multi-level ptr conversions.
Jason Merrill [Sat, 14 Feb 1998 15:49:20 +0000 (15:49 +0000)]
* call.c (standard_conversion): Fix multi-level ptr conversions.

From-SVN: r17999

26 years agoBump for snapshot
Jeffrey A Law [Sat, 14 Feb 1998 11:23:14 +0000 (04:23 -0700)]
Bump for snapshot

From-SVN: r17976

26 years agot-semi (STMP_FIXPROTO): Define to nothing.
Richard Earnshaw [Sat, 14 Feb 1998 05:16:58 +0000 (05:16 +0000)]
t-semi (STMP_FIXPROTO): Define to nothing.

* arm/t-semi (STMP_FIXPROTO): Define to nothing.
* arm/t-semiaof (STMP_FIXPROTO): Likewise.

From-SVN: r17975

26 years agoarm.md (movsfcc): Also validate operands[3] when compiling hard float.
Richard Earnshaw [Sat, 14 Feb 1998 05:14:13 +0000 (05:14 +0000)]
arm.md (movsfcc): Also validate operands[3] when compiling hard float.

* arm.md (movsfcc): Also validate operands[3] when compiling hard float.
(movdfcc): Only accept fpu_add_operand for operands[3].

From-SVN: r17974

26 years agovarasm.c (output_constant_pool): Bring back 'done' label inside an appropriate #ifdef.
Jeffrey A Law [Sat, 14 Feb 1998 01:13:58 +0000 (01:13 +0000)]
varasm.c (output_constant_pool): Bring back 'done' label inside an appropriate #ifdef.

        * varasm.c (output_constant_pool): Bring back 'done' label inside
        an appropriate #ifdef.
        * bitmap.c (bitmap_element_allocate): Wrap variable 'i' in an
        appropriate #ifdef.
        (bitmap_copy, bitmap_operation): Likewise.
        * combine.c (combinable_i3pat): Similarly for 'src'.
        * function.c (fixup_var_refs_1): Similarly for 'outerdest'.
        (locate_and_pad_parm): Similarly for 'reg_parm_stack_space'.
        * regclass.c (copy_cost): Similarly for 'secondary_class'.
        * reload.c (make_memloc): Simliarly for 'i'.
        (find_reloads_address_1): Similarly for 'link'.
        * reload1.c (reload): Similarly for 'previous_frame_pointer_needed'.
        (emit_reload_insns): Similarly for 'second_reloadreg'.
        * unroll.c (iteration_info): Similarly for 'v'.
        * caller-save.c (insert_save_restore): Remove unused variable 'i'.
        * calls.c (expand_call): Similarly for 'i'.
        (emit_library_call, emit_library_call_value): Similarly for 'mode'.
        * fold-const.c (strip_compund_expr): Similarly for 'type'.
        * function.c (fixup_var_refs_1): Similarly  for 'width'.
        (fixup_memory_subreg): Similarly for 'saved'.
        (locate_and_pad_parm): Similarly for 'boundary_in_bytes.'
        (setjmp_protect): Similarly for 'sub'.
        (thread_prologue_and_epilogue_insns): Similarly for 'insn'.
        * loop.c (record_giv): Similarly for 'p'.
        (combine_givs): Similarly for 'temp_iv'.
        (indirect_jump_in_function_p): Similarly for 'is_indirect_jump'.
        * recog.c (validate_replace_rtx_1): Similarly for 'width'.
        * tree.c (get_set_constructor_bytes): Similarly for 'vals'.
        * unroll.c (unroll_loop): Similarly for 'copy'.
        (iteration_info): Similarly for 'b'.
        * varasm.c (assemble_string): Similarly for 'i'.
        * i386.h (LEGITIMIZE_ADDRESS): Similarly for 'orig_x'.

From-SVN: r17973

26 years agodisable
Jason Merrill [Fri, 13 Feb 1998 17:53:55 +0000 (12:53 -0500)]
disable

From-SVN: r17972

26 years ago* pt.c (determine_specialization): Give better errors.
Jason Merrill [Fri, 13 Feb 1998 14:44:00 +0000 (14:44 +0000)]
* pt.c (determine_specialization): Give better errors.

From-SVN: r17970

26 years agoFix C++ irix6 -g compiler abort.
Jim Wilson [Fri, 13 Feb 1998 14:40:09 +0000 (14:40 +0000)]
Fix C++ irix6 -g compiler abort.

* dwarf2out.c (decl_scope_node): New type.
(decl_scope_table): Change type to use it.
(decl_scope_table_allocated, decl_scope_depth): Change type to int.
(push_decl_scope): Use new type.  New locals containing_scope, i.
Add code to handle setting previous field.
(scope_die_for): Change type of local i to int.  Add code to use
previous field.
(dwarf2out_init): Use new type.

From-SVN: r17969

26 years ago* init.c (build_new): Propagate error_mark_node up.
Mike Stump [Fri, 13 Feb 1998 14:07:32 +0000 (14:07 +0000)]
* init.c (build_new): Propagate error_mark_node up.

From-SVN: r17968

26 years agoparse.y (simple_stmt): If the condition isn't a declaration, start the controlled...
Jason Merrill [Fri, 13 Feb 1998 13:59:10 +0000 (13:59 +0000)]
parse.y (simple_stmt): If the condition isn't a declaration, start the controlled block after the test.

* parse.y (simple_stmt): If the condition isn't a declaration,
start the controlled block after the test.

From-SVN: r17967

26 years ago* except.c (emit_throw): Lose throw_used.
Jason Merrill [Fri, 13 Feb 1998 13:44:12 +0000 (13:44 +0000)]
* except.c (emit_throw): Lose throw_used.

From-SVN: r17966

26 years agotweak message
Jason Merrill [Fri, 13 Feb 1998 13:35:02 +0000 (08:35 -0500)]
tweak message

From-SVN: r17965

26 years agotweak comments
Jason Merrill [Fri, 13 Feb 1998 13:34:53 +0000 (08:34 -0500)]
tweak comments

From-SVN: r17964

26 years agosched.c (update_flow_info, REG_WAS_0): Ignore if setting insn was deleted.
J"orn Rennecke [Fri, 13 Feb 1998 12:40:29 +0000 (12:40 +0000)]
sched.c (update_flow_info, REG_WAS_0): Ignore if setting insn was deleted.

* sched.c (update_flow_info, REG_WAS_0): Ignore if setting insn
was deleted.
* haifa-sched.c (update_flow_info, REG_WAS_0): Likewise.

From-SVN: r17963

26 years ago* genextract.c (main): Fix typo.
Jeffrey A Law [Fri, 13 Feb 1998 11:17:14 +0000 (11:17 +0000)]
* genextract.c (main): Fix typo.

From-SVN: r17904

26 years agoChange timestamp of my last entry to reflect checkin time, not submission
Robert Lipe [Fri, 13 Feb 1998 06:43:13 +0000 (06:43 +0000)]
Change timestamp of my last entry to reflect checkin time, not submission
time.

From-SVN: r17903

26 years agoRats. Forgot to change copyrights on the first commit.
Robert Lipe [Fri, 13 Feb 1998 05:40:34 +0000 (05:40 +0000)]
Rats.   Forgot to change copyrights on the first commit.

From-SVN: r17902

26 years agoc-lang.c (finish_file): Bracket declaration of static_ctors, static_dtors.
Robert Lipe [Fri, 13 Feb 1998 05:30:56 +0000 (05:30 +0000)]
c-lang.c (finish_file): Bracket declaration of static_ctors, static_dtors.

* c-lang.c (finish_file): Bracket declaration of static_ctors,
static_dtors.
* calls.c (expand_call): Bracket declaration of 'rtx_before_call',
'old_stack_arg_under_construction'
(emit_library_call): Bracket declaration of 'upper_bound',
'lower_bound', 'i', 'reg_parm_stack_space'
(emit_library_call_value): Likewise.
(store_one_arg):
* collect2.c: include <unistd.h> when appropriate.
Bracket declaration of 'exportf' and 'full_real_ld_suffix'.
* emit-rtl.c (prev_cc0_setter): Remove unused variable 'link'.
* explow.c (plus_constant_for_output_wide): Remove unused variable
'code'.
(memory_address): Remove unused variable 'orig_x'.
* genattrtab.c (make_canonical): Remove unreferenced label 'cond:'.
(write_const_num_delay_slots): Remove unused variable 'i'.
* genopinit.c (main): Remove unused variables 'dummy', 'insn_ptr'.
(gen_insn): Remove unused variable 'obstack_ptr'.
        * libgcc2.c (__bb_exit_func): Remove unused variables 'ret',
        'j', 'tmp', 'i'.
(__bb_exit_trace_func): Remove unused variable 'e'.
* optabs.c (expand_binop): remove unused variables 'lhs', 'rhs',
'funexp'.
(expand_unop): Remove unused variable 'funexp'.
(expand_complex_abs): Remove unused variable 'funexp'.
(init_optabs): Bracket declaration of 'j'.
(init_complex_libfuncs): Deleted.  Dead static function.
* profile.c (branch_prob): Remove unused variables 'insn', 'dest'.
* reg-stack.c: Fix typo in proto for 'get_asm_operand_lengths'
(reg_to_stack): 'initialized', 'before_function_beg'
explictly type as ints instead of defaulting.
(emit_swap_insn): Remove unused variable 'i2'.
(compare_for_stack_reg): Remove unused variable 'src_note'.
* rtlanal.c (computed_jump_p): Remove unused variable 'computed_jump'.
* sched.c (actual_hazard): Bracket declaration of 'this_cost'.
* stmt.c (add_case_node): Add parens for assignment used as truth.
(all_cases_count):  Remove unused variable 'count_high'.
(mark_seen_cases): Remove unused variable 'i'.
(check_for_full_enumeration_handling): Remove unused variable 't'.
Bracket declaration of  'all_values', 'l'.
* tlink.c: Include <stdlib.h>, <unistd.h>, <string.h>/<strings.h>.
* varasm.c (assemble_string): Remove unused variable 'i'.
(immed_double_const): Remove unused variable 'in_current_obstack'.
(immed_real_const_1): Likewise.
(output_constant_pool): Remove unreferenced label 'done'.
(output_constant): Remove unused variable 'x'.
        * i386/i386.h (ENCODE_SECTION_INFO): TREE_PUBLIC is an int, not
        a string.
        * i386/sco5.h (ASM_OUTPUT_ASCII): Add parens for assignment used
        as truth.

From-SVN: r17901

26 years agocall.c (build_over_call): Convert builtin abs, labs and fabs to tree-codes.
Andreas Schwab [Fri, 13 Feb 1998 02:26:35 +0000 (02:26 +0000)]
call.c (build_over_call): Convert builtin abs, labs and fabs to tree-codes.

* call.c (build_over_call): Convert builtin abs, labs and fabs to
tree-codes.
* decl.c (init_decl_processing): Reenable abs, labs and fabs as
builtins.

From-SVN: r17900

26 years ago* combine.c (can_combine_p): Handle USEs in PARALLELs.
J"orn Rennecke [Fri, 13 Feb 1998 02:26:25 +0000 (02:26 +0000)]
* combine.c (can_combine_p): Handle USEs in PARALLELs.

From-SVN: r17899

26 years ago* call.c (standard_conversion): A BASE_CONV replaces an RVALUE_CONV.
Jason Merrill [Fri, 13 Feb 1998 01:37:30 +0000 (01:37 +0000)]
* call.c (standard_conversion): A BASE_CONV replaces an RVALUE_CONV.

From-SVN: r17898

26 years agolinux.h (LIB_SPEC): Add -lc for -shared if USE_GNULIBC_1 is not defined.
H.J. Lu [Fri, 13 Feb 1998 00:33:05 +0000 (00:33 +0000)]
linux.h (LIB_SPEC): Add -lc for -shared if USE_GNULIBC_1 is not defined.

        * config/linux.h (LIB_SPEC): Add -lc for -shared if
        USE_GNULIBC_1 is not defined.
        * config/sparc/linux.h; Ditto.
        * config/sparc/linux64.h (LIB_SPEC): Add -lc for -shared.
        * config/alpha/linux-elf.h (LIB_SPEC): New. Defined if
        USE_GNULIBC_1 is not defined.

From-SVN: r17895

26 years agocp-tree.h: Add access_protected_virtual_node.
Jason Merrill [Fri, 13 Feb 1998 00:30:37 +0000 (00:30 +0000)]
cp-tree.h: Add access_protected_virtual_node.

* cp-tree.h: Add access_protected_virtual_node.
* class.c (init_class_processing): Initialize it.
* decl.c (xref_basetypes): Use it.
* parse.y (base_class_access_list): Likewise.
* Make-lang.in (DEMANGLER_PROG): Add $(exeext).
(c++.install-common): Install c++filt.

From-SVN: r17894

26 years agosysv4.h (ENDFILE_SPEC): add missing %(endfile_linux) for -mcall-linux
Franz Sirl [Fri, 13 Feb 1998 00:28:23 +0000 (17:28 -0700)]
sysv4.h (ENDFILE_SPEC): add missing %(endfile_linux) for -mcall-linux

        * rs6000/sysv4.h (ENDFILE_SPEC): add missing %(endfile_linux)
        for -mcall-linux

From-SVN: r17892

26 years agosystem.h: New file to get common systems includes and various definitions and...
Kaveh R. Ghazi [Fri, 13 Feb 1998 00:22:24 +0000 (00:22 +0000)]
system.h: New file to get common systems includes and various definitions and...

* system.h: New file to get common systems includes and various
definitions and declarations based on autoconf macros.

From-SVN: r17891

26 years agofileops.c: #include <unistd.h>.
Jeff Law [Thu, 12 Feb 1998 23:56:20 +0000 (16:56 -0700)]
fileops.c: #include <unistd.h>.

        * fileops.c: #include <unistd.h>.
        * ioprims.c: Likewise.

From-SVN: r17890

26 years agofileops.c: #include <unistd.h>.
Krister Walfridsson [Thu, 12 Feb 1998 23:56:19 +0000 (16:56 -0700)]
fileops.c: #include <unistd.h>.

(
        * fileops.c: #include <unistd.h>.
        * ioprims.c: Likewise.

From-SVN: r17889

26 years agofileops.c: #include <unistd.h>.
Krister Walfridsson [Thu, 12 Feb 1998 23:56:18 +0000 (16:56 -0700)]
fileops.c: #include <unistd.h>.

f
        * fileops.c: #include <unistd.h>.
        * ioprims.c: Likewise.

From-SVN: r17888

26 years ago* cccp.c (new_include_prefix): Correctly handle -I./.
Jeffrey A Law [Thu, 12 Feb 1998 23:45:20 +0000 (23:45 +0000)]
* cccp.c (new_include_prefix): Correctly handle -I./.

From-SVN: r17886

26 years ago* gcc.dg/ifelse-1.c: New test.
Jeffrey A Law [Thu, 12 Feb 1998 23:34:52 +0000 (23:34 +0000)]
* gcc.dg/ifelse-1.c: New test.

From-SVN: r17885

26 years agocom.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.
Kaveh R. Ghazi [Thu, 12 Feb 1998 23:18:26 +0000 (23:18 +0000)]
com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.

        * com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.
        * expr.c (ffeexpr_type_combine): Likewise.
        (ffeexpr_reduce_): Likewise.
        (ffeexpr_declare_parenthesized_): Likewise.
        * src.c (ffesrc_strcmp_1ns2i): Likewise.
        (ffesrc_strcmp_2c): Likewise.
        (ffesrc_strncmp_2c): Likewise.
        * stb.c (ffestb_halt1_): Likewise.
        (ffestb_R90910_): Likewise.
        (ffestb_R9109_): Likewise.
        * stc.c (ffestc_R544_equiv_): Likewise.
        * std.c (ffestd_subr_copy_easy_): Likewise.
        (ffestd_R1001dump_): Likewise.
        (ffestd_R1001dump_1005_1_): Likewise.
        (ffestd_R1001dump_1005_2_): Likewise.
        (ffestd_R1001dump_1005_3_): Likewise.
        (ffestd_R1001dump_1005_4_): Likewise.
        (ffestd_R1001dump_1005_5_): Likewise.
        (ffestd_R1001dump_1010_2_): Likewise.
        * ste.c (ffeste_R840): Likewise.
        * sts.c (ffests_puttext): Likewise.
        * symbol.c (ffesymbol_check_token_): Likewise.
        * target.c (ffetarget_real1): Likewise.
        (ffetarget_real2): Likewise.

From-SVN: r17884

26 years ago
Benjamin Kosnik [Thu, 12 Feb 1998 18:20:08 +0000 (18:20 +0000)]

testcase for g++/14837

From-SVN: r17882

26 years agodecl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837
Benjamin Kosnik [Thu, 12 Feb 1998 18:18:51 +0000 (18:18 +0000)]
decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837

d
Thu Feb 12 12:46:51 1998  Benjamin Kosnik  <bkoz@rhino.cygnus.com>
* decl.c (shadow_tag): Give error for typedef-ing built-in types
Fixes g++/14837

From-SVN: r17881

26 years agodecl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837
Benjamin Kosnik [Thu, 12 Feb 1998 18:18:49 +0000 (18:18 +0000)]
decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837

a
Thu Feb 12 12:46:51 1998  Benjamin Kosnik  <bkoz@rhino.cygnus.com>
* decl.c (shadow_tag): Give error for typedef-ing built-in types
Fixes g++/14837

From-SVN: r17880

26 years agoReplace gen_rtx (CONST_INT...) calls with GEN_INT calls
Michael Meissner [Thu, 12 Feb 1998 17:18:51 +0000 (17:18 +0000)]
Replace gen_rtx (CONST_INT...) calls with GEN_INT calls

From-SVN: r17879

26 years agoexpr.c (expand_assignment): Correct typo exposed by -Wall.
Robert Lipe [Thu, 12 Feb 1998 14:59:57 +0000 (14:59 +0000)]
expr.c (expand_assignment): Correct typo exposed by -Wall.

        * expr.c (expand_assignment):  Correct typo exposed by -Wall.
        offset should have been a truth value, not an assignment.

From-SVN: r17876

26 years agocall.c (reference_binding): Use comptypes when comparing TYPE_MAIN_VARIANTS to handle...
Mark Mitchell [Thu, 12 Feb 1998 14:55:02 +0000 (14:55 +0000)]
call.c (reference_binding): Use comptypes when comparing TYPE_MAIN_VARIANTS to handle non-canonical...

* call.c (reference_binding): Use comptypes when comparing
TYPE_MAIN_VARIANTS to handle non-canonical array/index types.

From-SVN: r17875

26 years agotypeck.c (build_ptrmemfunc): Typecheck pointer-to-member conversions.
Mark Mitchell [Thu, 12 Feb 1998 14:51:57 +0000 (14:51 +0000)]
typeck.c (build_ptrmemfunc): Typecheck pointer-to-member conversions.

* typeck.c (build_ptrmemfunc): Typecheck pointer-to-member
conversions.

From-SVN: r17874

26 years agocse.c (delete_dead_from_cse): If a libcall produces a constant result and that result...
Jeffrey A Law [Thu, 12 Feb 1998 14:26:47 +0000 (14:26 +0000)]
cse.c (delete_dead_from_cse): If a libcall produces a constant result and that result can be substituted into...

        * cse.c (delete_dead_from_cse): If a libcall produces a constant
        result and that result can be substituted into SET_SRC of the
        insn with the REG_RETVAL note, then perform the substitution
        and delete the libcall.

From-SVN: r17871

26 years agomips.md (trucndihi2,truncdiqi2): Change these to support mips16.
Gavin Koch [Thu, 12 Feb 1998 11:06:08 +0000 (11:06 +0000)]
mips.md (trucndihi2,truncdiqi2): Change these to support mips16.

* mips.md (trucndihi2,truncdiqi2): Change these to support
mips16.

From-SVN: r17868

26 years agomips.c (movdi_operand): Direct referances to symbols that arn't mips16 consts in...
Gavin Koch [Thu, 12 Feb 1998 08:37:06 +0000 (08:37 +0000)]
mips.c (movdi_operand): Direct referances to symbols that arn't mips16 consts in mips16 mode arn't...

* mips/mips.c (movdi_operand): Direct referances to symbols
that arn't mips16 consts in mips16 mode arn't valid operands.
* mips/mips.c (mips_move_2words): Add gprel handling.

From-SVN: r17867

26 years agomips.md (extendsidi2): Allow extension to/from a non-mips16 register.
Gavin Koch [Thu, 12 Feb 1998 08:21:38 +0000 (08:21 +0000)]
mips.md (extendsidi2): Allow extension to/from a non-mips16 register.

* mips.md (extendsidi2): Allow extension to/from a non-mips16
register.

From-SVN: r17866

26 years agoAdd documentation for OpenServer patch required for static [cd]tors
Robert Lipe [Wed, 11 Feb 1998 23:17:04 +0000 (23:17 +0000)]
Add documentation for OpenServer patch required for static [cd]tors
to work right.

From-SVN: r17865

26 years agoi386.c: Conditionally include <stdlib.h>, <string.h>, and <strings.h>.
Marc Lehmann [Wed, 11 Feb 1998 23:03:32 +0000 (23:03 +0000)]
i386.c: Conditionally include <stdlib.h>, <string.h>, and <strings.h>.

        * i386.c: Conditionally include <stdlib.h>, <string.h>, and
        <strings.h>.

From-SVN: r17864

26 years agotree.c (is_overloaded_fn): Use really_overloaded_fn.
Mark Mitchell [Wed, 11 Feb 1998 22:47:30 +0000 (22:47 +0000)]
tree.c (is_overloaded_fn): Use really_overloaded_fn.

* tree.c (is_overloaded_fn): Use really_overloaded_fn.
(really_overloaded_fn): Move check here from is_overloaded_fn.
(get_first_fn): Use really_overloaded_fn and is_overloaded_fn.

From-SVN: r17863

26 years agoMakefile.in (WARN_CFLAGS): New variable.
Kaveh R. Ghazi [Wed, 11 Feb 1998 22:26:23 +0000 (22:26 +0000)]
Makefile.in (WARN_CFLAGS): New variable.

* Makefile.in (WARN_CFLAGS): New variable.
(bootstrap, bootstrap2, bootstrap3, bootstrap4): Use it.

From-SVN: r17862

26 years agoi386.c (reg_mentioned_in_mem): Don't abort when falling through default case in switch.
Mark Mitchell [Wed, 11 Feb 1998 15:09:17 +0000 (15:09 +0000)]
i386.c (reg_mentioned_in_mem): Don't abort when falling through default case in switch.

* config/i386/i386.c (reg_mentioned_in_mem): Don't abort when
falling through default case in switch.
(i386_aligned_p): Likewise.

From-SVN: r17860

26 years agoPatch from Lee Iverson.
Lee Iverson [Wed, 11 Feb 1998 13:04:01 +0000 (13:04 +0000)]
Patch from Lee Iverson.

* mips/mips.h (mips_abi_string): Correct typo in comment.

From-SVN: r17858

26 years agoMore updates...
Jeff Law [Wed, 11 Feb 1998 12:25:38 +0000 (05:25 -0700)]
More updates...

From-SVN: r17857

26 years ago* mips/mips.md (movdi): These PLUS's need to be Pmode.
Gavin Koch [Wed, 11 Feb 1998 05:32:24 +0000 (05:32 +0000)]
* mips/mips.md (movdi): These PLUS's need to be Pmode.

From-SVN: r17855

26 years agoAdd more folks.
Jeff Law [Wed, 11 Feb 1998 01:57:57 +0000 (18:57 -0700)]
Add more folks.

From-SVN: r17854

26 years agonew
Jason Merrill [Wed, 11 Feb 1998 01:30:13 +0000 (20:30 -0500)]
new

From-SVN: r17853

26 years agocp-tree.h (push_template_decl): Return the decl passed in, or an equivalent duplicate.
Mark Mitchell [Wed, 11 Feb 1998 01:22:36 +0000 (01:22 +0000)]
cp-tree.h (push_template_decl): Return the decl passed in, or an equivalent duplicate.

* cp-tree.h (push_template_decl): Return the decl passed in, or an
equivalent duplicate.
* decl.c (pushtag): Use the return value from push_template_decl.
(duplicate_decls): When duplicating a template declaration, merge
the DECL_TEMPLATE_RESULTs as well.
(make_implicit_typename): Don't try to dive into typename types to
find a context for making a new implicit typename.
(start_decl): Use the return value from push_template_decl.
(grokdeclarator): Complain about declarations list `const operator
int'.  Since we don't correctly handle in-class initializations of
non-static data members, complain about this (now illegal)
practice.  Issue an error for initializations of non-const statics
since that is illegal as well, and since we don't handle that case
correctly either.
(start_function): Use the return value from push_template_decl.
(start_method): Likewise.
* decl2.c (grokfield): Likewise.  Since the change to
grokdeclarator ensures that all initialized fields are in fact
static, remove a redundant test for TREE_PUBLIC.
* parse.y (initlist): Disable labeled initializers since they do
not work as per the documentation, and since they do not use the
same syntax as the C front end.
* pt.c (push_template_decl): Return the decl passed in, or an
equivalent duplicate.
(lookup_template_class): When searching in a nested context,
use the right arguments.
(uses_template_parms): Handle the DECL_INITIAL for a CONST_DECL.
* typeck.c (build_component_ref): Assign the correct type to the
result of build_vfn_ref.

From-SVN: r17852

26 years agoCopy comment to go with the subtraction patch.
Richard Henderson [Wed, 11 Feb 1998 00:54:15 +0000 (16:54 -0800)]
Copy comment to go with the subtraction patch.

From-SVN: r17850

26 years agoMakefile.in (dwarf2out.o, [...]): Depend on insn-codes.h, it gets included indirectly...
Kaveh R. Ghazi [Wed, 11 Feb 1998 00:46:41 +0000 (00:46 +0000)]
Makefile.in (dwarf2out.o, [...]): Depend on insn-codes.h, it gets included indirectly via expr.h.

        * Makefile.in (dwarf2out.o, emit-rtl.o, jump.o, cse.o, unroll.o,
        reorg.o, regmove.o): Depend on insn-codes.h, it gets included
        indirectly via expr.h.

From-SVN: r17849

26 years agoMakefile.in ($(lib)): Call $(AR) repeatedly to avoid overflowing argument size limit...
Manfred Hollstein [Wed, 11 Feb 1998 00:44:50 +0000 (00:44 +0000)]
Makefile.in ($(lib)): Call $(AR) repeatedly to avoid overflowing argument size limit on ancious System V.

        * Makefile.in ($(lib)): Call $(AR) repeatedly to avoid overflowing
        argument size limit on ancious System V.

From-SVN: r17848

26 years agocom.c (ffecom_ptr_to_expr): Do upper - lower in the native type, so as to properly...
Richard Henderson [Wed, 11 Feb 1998 00:44:03 +0000 (16:44 -0800)]
com.c (ffecom_ptr_to_expr): Do upper - lower in the native type, so as to properly handle negative indices.

        * com.c (ffecom_ptr_to_expr) [FFEBLD_opARRAYREF]:  Do upper - lower
        in the native type, so as to properly handle negative indices.

From-SVN: r17847

26 years agostor-layout.c (layout_type): Do upper - lower in the native type, so as to properly...
Richard Henderson [Wed, 11 Feb 1998 00:43:32 +0000 (16:43 -0800)]
stor-layout.c (layout_type): Do upper - lower in the native type, so as to properly handle negative indices.

        * stor-layout.c (layout_type): Do upper - lower in the native type,
        so as to properly handle negative indices.

From-SVN: r17846

26 years agoexcept.c (start_dynamic_cleanup): Remove unused variable 'dhc'.
Robert Lipe [Wed, 11 Feb 1998 00:35:13 +0000 (00:35 +0000)]
except.c (start_dynamic_cleanup): Remove unused variable 'dhc'.

        * except.c (start_dynamic_cleanup): Remove unused variable 'dhc'.
        (expand_eh_region_start_tree): Remove unused variable 'note'.
        (exception_optimize): Remove unused variable 'regions'.
        (expand_builtin_eh_stub):  Remove unused variable 'temp'.
        (copy_eh_entry): Deleted.   Dead function.
        * expr.c (move_block_to_reg) Bracket declaration of 'pat' and
        'last' with same #if HAVE_load_multiple as use of it.
        (move_block_from_reg): Likewise.
        (emit_move_insn_1): Remove unused variable 'insns'.
        (store_constructor): Bracket declaration of startb, endb with
        #if TARGET_MEMFUNCTIONS.  Remove unused variables 'set_word_size'
        'target', and 'xtarget'.
        (expand_builtin_setjmp): Remove unused variables 'op0',
        'next_arg_reg', 'old_inhibit_defer_pop'.
        (expand_builtin): Remove unused variable 'offset'.
        (do_store_flag): Remove unused variables 'pattern', 'jump_pat'.
        (emit_queue): Add parens for assignment used as conditional.
        (expand_expr): case TARGET_EXPR: Remove unused variable 'temp'.

From-SVN: r17843

26 years agoiostream.cc (ostream::operator<<(long double)): Don't use labeled initializers.
Mark Mitchell [Wed, 11 Feb 1998 00:35:01 +0000 (00:35 +0000)]
iostream.cc (ostream::operator<<(long double)): Don't use labeled initializers.

* iostream.cc (ostream::operator<<(long double)): Don't use
labeled initializers.

From-SVN: r17842

26 years agoi386.c: Added include for recog.h.
Marc Lehmann [Wed, 11 Feb 1998 00:29:57 +0000 (00:29 +0000)]
i386.c: Added include for recog.h.

        * i386.c: Added include for recog.h.
        (override_options): Removed unused variable p. Initialized regno to
        avoid warning.
        (order_regs_for_local_alloc): Initialized regno to avoid warning.
        (legitimize_address): Likewise for 'other'.
        (i386_aligned_reg_p): Added default case with abort ().
        (print_operand): Likewise.
        (reg_mentioned_in_mem): Likewise.
        (ix86_expand_binary_operator): Removed unused variables i & insn.
        (ix86_expand_unary_operator): Removed unused variable insn.
        (output_fp_cc0_set): Removed unused variable unordered_label.

From-SVN: r17841

26 years agoi386.c, [...]: Change gen_rtx (X, ...) to gen_rtx_X (...).
John F. Carr [Wed, 11 Feb 1998 00:25:43 +0000 (00:25 +0000)]
i386.c, [...]: Change gen_rtx (X, ...) to gen_rtx_X (...).

        * i386.c, i386.h, i386.md: Change gen_rtx (X, ...) to gen_rtx_X (...).
        Use GEN_INT instead of gen_rtx (CONST_INT). Make printf arguments
        and format string match.

From-SVN: r17840

26 years agoflow.c (life_analysis): Do not conside the stack pointer live at the end of a functio...
Jeffrey A Law [Wed, 11 Feb 1998 00:18:51 +0000 (00:18 +0000)]
flow.c (life_analysis): Do not conside the stack pointer live at the end of a function if...

        * flow.c (life_analysis): Do not conside the stack pointer live at
        the end of a function if the fucntio ncalls alloca.
        (mark_used_regs): Similarly.

From-SVN: r17839

26 years ago* pt.c (convert_nontype_argument): Fix typo.
Jason Merrill [Tue, 10 Feb 1998 23:58:19 +0000 (23:58 +0000)]
* pt.c (convert_nontype_argument): Fix typo.

From-SVN: r17838

26 years agoUpdate autoconf/autoheader generated files.
Jeff Law [Tue, 10 Feb 1998 23:51:52 +0000 (16:51 -0700)]
Update autoconf/autoheader generated files.

From-SVN: r17837

26 years agopt.c (check_explicit_specialization): Allow old-style specialization of class templat...
Jason Merrill [Tue, 10 Feb 1998 23:42:31 +0000 (23:42 +0000)]
pt.c (check_explicit_specialization): Allow old-style specialization of class template members.

* pt.c (check_explicit_specialization): Allow old-style specialization
of class template members.

From-SVN: r17836

26 years agodecl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead when deciding to override...
Jason Merrill [Tue, 10 Feb 1998 20:37:18 +0000 (20:37 +0000)]
decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead when deciding to override DECL_ASSEMBLER_NAME.

* decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead
when deciding to override DECL_ASSEMBLER_NAME.

Co-Authored-By: Manfred Hollstein <manfred@s-direktnet.de>
From-SVN: r17835

26 years agoFor movdi_v8plus pattern, output stx on alternative 1 and fzero on alternative 8.
John F. Carr [Tue, 10 Feb 1998 15:25:50 +0000 (07:25 -0800)]
For movdi_v8plus pattern, output stx on alternative 1 and fzero on alternative 8.

For movdi_v8plus pattern, output stx on alternative 1 and
fzero on alternative 8.  Fix from John Carr (jfc@mit.edu)

From-SVN: r17834

26 years agoAdd support for squangling.
Andrew Macleod [Tue, 10 Feb 1998 12:32:21 +0000 (12:32 +0000)]
Add support for squangling.

From-SVN: r17832

26 years agoAdd -fsquangle and -fno-squangle.
Andrew Macleod [Tue, 10 Feb 1998 12:32:03 +0000 (12:32 +0000)]
Add -fsquangle and -fno-squangle.

From-SVN: r17831

26 years agoAdd declaration for flag_do_squangling.
Andrew Macleod [Tue, 10 Feb 1998 12:31:55 +0000 (12:31 +0000)]
Add declaration for flag_do_squangling.

From-SVN: r17830

26 years agoAdd -fsquangle to option processing list.
Andrew Macleod [Tue, 10 Feb 1998 12:31:27 +0000 (12:31 +0000)]
Add -fsquangle to option processing list.

From-SVN: r17829

26 years agoAdd squangling support. (First cut at improved Name mangling)
Andrew Macleod [Tue, 10 Feb 1998 12:31:01 +0000 (12:31 +0000)]
Add squangling support. (First cut at improved Name mangling)

From-SVN: r17828

26 years agoPatch from jfc to fix printf format problems.
John Carr [Tue, 10 Feb 1998 11:47:01 +0000 (03:47 -0800)]
Patch from jfc to fix printf format problems.

From-SVN: r17827

26 years agors6000.c (setup_incoming_varargs): Always set rs6000_sysv_varargs_p.
Richard Kenner [Tue, 10 Feb 1998 09:05:42 +0000 (09:05 +0000)]
rs6000.c (setup_incoming_varargs): Always set rs6000_sysv_varargs_p.

From-SVN: r17825

26 years ago* lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.
H.J. Lu [Mon, 9 Feb 1998 22:54:34 +0000 (22:54 +0000)]
* lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.

From-SVN: r17818

26 years agoreload.c (find_reloads_toplev): Handle arbitrary non-paradoxical SUBREGs of CONST_INTs.
J"orn Rennecke [Mon, 9 Feb 1998 19:39:35 +0000 (19:39 +0000)]
reload.c (find_reloads_toplev): Handle arbitrary non-paradoxical SUBREGs of CONST_INTs.

* reload.c (find_reloads_toplev): Handle arbitrary non-paradoxical
SUBREGs of CONST_INTs.

From-SVN: r17809

26 years agoPatch from jfc to fix printf format problems.
John Carr [Mon, 9 Feb 1998 17:53:56 +0000 (09:53 -0800)]
Patch from jfc to fix printf format problems.

* mips.c (print_operand, function_prologue): Make printf format
match argument type.

From-SVN: r17808

26 years agoAdd Tege & Kate as maintainers of c-torture and f-torture respectively.
Jeff Law [Mon, 9 Feb 1998 14:22:47 +0000 (07:22 -0700)]
Add Tege & Kate as maintainers of c-torture and f-torture respectively.

From-SVN: r17804

26 years agoalpha.c (alpha_return_addr): Remove unused variable `first'.
Kaveh R. Ghazi [Mon, 9 Feb 1998 01:36:08 +0000 (01:36 +0000)]
alpha.c (alpha_return_addr): Remove unused variable `first'.

        * alpha.c (alpha_return_addr): Remove unused variable `first'.
        (alpha_ra_ever_killed): Remove unused variables `ra' and `i'.
        (output_epilog): Remove unused variable `frame_size_from_reg_save'.

From-SVN: r17799

26 years agoold-dejagnu.exp (old-dejagnu): Added the "execution test - XFAIL *-*-*" handling...
H.J. Lu [Mon, 9 Feb 1998 01:07:31 +0000 (01:07 +0000)]
old-dejagnu.exp (old-dejagnu): Added the "execution test - XFAIL *-*-*" handling in the spirit of "excess...

        * lib/old-dejagnu.exp (old-dejagnu): Added the
        "execution test - XFAIL *-*-*" handling in the spirit of
        "excess errors test -". Changed the "execution test fails"
        handling to be like "excess errors test fails".
        * Update various tests accordingly.

From-SVN: r17798

26 years agoFix -fpedantic combined with `F()' invocation,
Craig Burley [Sun, 8 Feb 1998 23:55:11 +0000 (18:55 -0500)]
Fix -fpedantic combined with `F()' invocation,

        also -fugly-comma combined with `IARGC()' invocation:
        * bad.def (FFEBAD_NULL_ARGUMENT_W): New diagnostic.
        * expr.c (ffeexpr_finished_): Don't reject null expressions
        in the argument-expression context -- let outer context
        handle that.
        (ffeexpr_token_arguments_): Warn about null expressions
        here if -fpedantic (as appropriate).
        Obey -fugly-comma for only external-procedure invocations.

From-SVN: r17793

26 years ago* method.c (make_thunk): Avoid name buffer overflow.
Scott Snyder [Sun, 8 Feb 1998 22:46:23 +0000 (15:46 -0700)]
* method.c (make_thunk): Avoid name buffer overflow.

From-SVN: r17784

26 years agoDocument unique_id variable.
John Carr [Sun, 8 Feb 1998 15:53:23 +0000 (15:53 +0000)]
Document unique_id variable.

From-SVN: r17783