Commit Graph

18516 Commits

Author SHA1 Message Date
Kamil Iskra
b0e982be47 m68k.c (output_function_prologue): Reverse NO_ADDSUB_Q condition, fix format strings.
* m68k/m68k.c (output_function_prologue): Reverse NO_ADDSUB_Q
        condition, fix format strings.
        (output_function_epilogue): Likewise.

From-SVN: r22445
1998-09-15 18:13:43 -06:00
Kamil Iskra
3dbf3a22df * m68k/m68k.c: Don't include <stdlib.h> directly.
From-SVN: r22444
1998-09-15 18:10:19 -06:00
Jeffrey A Law
6f573ff96a * rs6000.c (output_epilogue): Handle Chill.
From-SVN: r22443
1998-09-15 18:01:28 -06:00
Jeff Law
e7d99f1e82 Fix out of date comments after previous change.
From-SVN: r22442
1998-09-15 17:43:50 -06:00
Geoff Keating
b86ba9c89d gcse.c: New definition NEVER_SET for reg_first_set...
* gcse.c: New definition NEVER_SET for reg_first_set, reg_last_set,
        mem_first_set, mem_last_set; because 0 can be a CUID.
        (oprs_unchanged_p): Use new definition.
        (record_last_reg_set_info): Likewise.
        (record_last_mem_set_info): Likewise.
        (compute_hash_table): Likewise.

From-SVN: r22441
1998-09-15 17:32:22 -06:00
Jeffrey A Law
fa88e837bf mn10200.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
* mn10200.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
        * mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.

From-SVN: r22440
1998-09-15 17:04:54 -06:00
Jeffrey A Law
0d8e55d8cd combine.c (make_extraction): If no mode is specified for an operand of insv...
* combine.c (make_extraction): If no mode is specified for
        an operand of insv, extv, or extzv, default it to word_mode.
        (simplify_comparison): Similarly.
        * expmed.c (store_bit_field): Similarly.
        (extract_bit_field): Similarly.
        * function.c (fixup_var_regs_1): Similarly.
        * recog.c (validate_replace_rtx_1): Similarly.
        * mips.md (extv, extzv, insv expanders): Default modes for most
        operands.  Handle TARGET_64BIT.
        (movdi_uld, movdi_usd): New patterns.

From-SVN: r22439
1998-09-15 16:47:10 -06:00
Jeffrey A Law
54d6591877 pa.c (emit_move_sequence): Do not replace a pseudo with its equivalent memory location unless...
�
        * pa.c (emit_move_sequence): Do not replace a pseudo with its
        equivalent memory location unless we have been provided a scratch
        register.  Similarly do not call find_replacement unless a
        scratch register has been provided.

From-SVN: r22438
1998-09-15 16:01:08 -06:00
Bernd Schmidt
c09a3c2e15 i386.h (PREFERRED_RELOAD_CLASS): For standard 387 constants, return FLOAT_REGS.
* i386.h (PREFERRED_RELOAD_CLASS): For standard 387 constants,
        return FLOAT_REGS.

From-SVN: r22437
1998-09-15 12:23:31 -07:00
Richard Henderson
710384268d tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused.
* tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused.  Kill.
	(BUILT_IN_FP, BUILT_IN_SP, BUILT_IN_SET_RETURN_ADDR_REG): Kill.
	(BUILT_IN_EH_STUB_OLD, BUILT_IN_EH_STUB, BUILT_IN_SET_EH_REGS): Kill.
	(BUILT_IN_EH_RETURN, BUILT_IN_DWARF_CFA): New.
	* c-decl.c (init_decl_processing): Update accordingly.
	* expr.c (expand_builtin): Likewise.
	* cp/decl.c (init_decl_processing): Likewise.
	* rtl.h (global_rtl): Add cfa entry.
	(virtual_cfa_rtx, VIRTUAL_CFA_REGNUM): New.
	(LAST_VIRTUAL_REGISTER): Update.
	* emit-rtl.c (global_rtl): Add cfa entry.
	(init_emit): Initialize it.
	* function.c (cfa_offset): New.
	(instantiate_virtual_regs): Initialize it.
	(instantiate_virtual_regs_1): Instantiate virtual_cfa_rtx.
	(expand_function_end): Call expand_eh_return.
	* tm.texi (ARG_POINTER_CFA_OFFSET): New.
	* except.c (current_function_eh_stub_label): Kill.
	(current_function_eh_old_stub_label): Likwise; update all references.
	(expand_builtin_set_return_addr_reg): Kill.
	(expand_builtin_eh_stub_old, expand_builtin_eh_stub): Kill.
	(expand_builtin_set_eh_regs): Kill.
	(eh_regs): Produce a third reg for the actual handler address.
	(eh_return_context, eh_return_stack_adjust): New.
	(eh_return_handler, eh_return_stub_label): New.
	(init_eh_for_function): Initialize them.
	(expand_builtin_eh_return, expand_eh_return): New.
	* except.h: Update prototypes.
	* flow.c (find_basic_blocks_1): Update references to the stub label.
	* function.h (struct function): Kill stub label elements.
	* libgcc2.c (in_reg_window): For REG_SAVED_REG, check that the
	register number is one that would be in the previous window.
	Provide a dummy definition for non-windowed targets.
	(get_reg_addr): New function.
	(get_reg, put_reg, copy_reg): Use it.
	(__throw): Rely on in_reg_window, not INCOMING_REGNO.  Kill stub
	generating code and use __builtin_eh_return.  Use __builtin_dwarf_cfa.
	* alpha.c (alpha_eh_epilogue_sp_ofs): New.
	(alpha_init_expanders): Initialize it.
	(alpha_expand_epilogue): Use it.
	* alpha.h: Declare it.
	* alpha.md (eh_epilogue): New.
	* m68h.h (ARG_POINTER_CFA_OFFSET): New.
	* sparc.h (ARG_POINTER_CFA_OFFSET): New.

From-SVN: r22436
1998-09-15 12:19:12 -07:00
Richard Henderson
dfb16e8307 array1.C: Size array via arithmetic based on the native word size instead of an integer...
* g++.old-deja/g++.brendan/array1.C: Size array via arithmetic based
        on the native word size instead of an integer literal.

From-SVN: r22435
1998-09-15 12:17:46 -07:00
Alexandre Oliva
c9f81ec25b static2.C: invocation of static data member of type pointer-to-function denoted as...
* g++.old-deja/g++.other/static2.C: invocation of static data
 	member of type pointer-to-function denoted as non-static member

From-SVN: r22434
1998-09-15 17:05:28 +00:00
Alexandre Oliva
e1b81ca4fd * call.c (build_field_call): handle static data members too
From-SVN: r22433
1998-09-15 17:04:53 +00:00
Michael Meissner
bb210aafb4 Fix thinko
From-SVN: r22432
1998-09-15 16:32:49 +00:00
Ken Raeburn
5376a30c4d Add stack alignment descriptions to comments describing stack layouts.
Also describe which layouts are used for EABI.

From-SVN: r22431
1998-09-15 15:49:37 +00:00
Alexandre Oliva
cc5c4e2fd7 typedef5.C: add some more tests involving checks involving function types and aliases
* g++.old-deja/g++.other/typedef5.C: add some more tests involving
	checks involving function types and aliases

From-SVN: r22430
1998-09-15 14:36:22 +00:00
Alexandre Oliva
b6bee398d7 typeck.c (comptypes): when comparing pointer types...
* typeck.c (comptypes): when comparing pointer types, check
	whether referred types match even in strictest modes

From-SVN: r22429
1998-09-15 14:28:07 +00:00
Jason Merrill
3d821ea145 tweak
From-SVN: r22428
1998-09-15 09:43:59 -04:00
Jason Merrill
9d07bfaf50 tweak
From-SVN: r22427
1998-09-15 09:43:48 -04:00
Mark Mitchell
b0e0b31f6f cp-tree.h: Revert previous change.
* cp-tree.h: Revert previous change.
	(finish_struct_methods): Remove declaration.
	* class.c: Revert previous change.
	(maybe_warn_about_overly_private_class): New function.
	(finish_struct_methods): Declare here, and make static.  Remove
	unnecessary parameters.  Tidy slightly.  Use
	maybe_warn_about_overly_private_class.
	(finish_struct_1): Adjust.  Remove check for private constructors,
	now done elsewhere.
	(finish_struct): Adjust.

From-SVN: r22426
1998-09-15 11:43:54 +00:00
Andrew MacLeod
bf71cd2eaa [multiple changes]
Tue Sep 15 14:10:54 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
        * except.h (struct eh_entry): Add false_label field.
        (end_catch_handler): Add prototype.
        * except.c (push_eh_entry): Set false_label field to NULL_RTX.
        (start_catch_handler): When using old style exceptions, issue
        runtime typematch code before continuing with the handler.
        (end_catch_handler): New function, generates label after handler
        if needed by older style exceptions.
        (expand_start_all_catch): No need to check for new style exceptions.
        (output_exception_table_entry): Only output the first handler label
        for old style exceptions.
        * libgcc2.c (__eh_rtime_match): New routine to lump runtime matching
        mechanism into one function, if a runtime matcher is provided.
1998-09-15  Andrew MacLeod  <amacleod@cygnus.com>
        * cp/except.c (expand_start_catch_block): No need to check for new
        exception model.
        (process_start_catch_block_old): Deleted.
        (process_start_catch_block): Add call to start_decl_1().
        (expand_end_catch_block): Add call to end_catch_handler().
        * cp/exception.cc (__cplus_type_matcher): Only check the exception
        language if there is an exception table.

From-SVN: r22425
1998-09-15 11:20:52 +00:00
Andrew MacLeod
8a21007c94 [multiple changes]
Tue Sep 15 13:53:59 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
	* config/i960/i960.h (SLOW_BYTE_ACCESS): Change definition to 1.
1998-09-15  Andrew MacLeod  <amacleod@cygnus.com>
	* cp/search.c (expand_indirect_vtbls_init): Mark temporary stack slots
	as used to prevent conflicts with virtual function tables.

From-SVN: r22424
1998-09-15 11:03:03 +00:00
Mark Mitchell
11d09c08aa * integrate.c (copy_decl_list): Fix typo.
From-SVN: r22423
1998-09-15 10:03:15 +00:00
David S. Miller
2d81c9bfe7 sparc.md (movdf_const_intreg_sp32): Fix length attribute.
* config/sparc/sparc.md (movdf_const_intreg_sp32): Fix length
	attribute.

From-SVN: r22422
1998-09-14 22:26:00 -07:00
Jeff Law
a9c17941be Daily bump.
From-SVN: r22421
1998-09-14 18:45:02 -06:00
Dave Brolley
20aa9a3576 typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the domain type of the array.
Mon Sep 14 16:46:36 1998  Dave Brolley  <brolley@cygnus.com>
	* typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
	domain type of the array.

From-SVN: r22420
1998-09-14 10:55:10 -04:00
Jeffrey A Law
e12994aba3 Bump for snapshot
From-SVN: r22418
1998-09-14 08:04:01 -06:00
Dave Brolley
13aa1501c0 expr.c (build_chill_function_call): Remove redundant call to chill_convert_to_assignment
Mon Sep 14 16:46:36 1998  Dave Brolley  <brolley@cygnus.com>
	* expr.c (build_chill_function_call): Remove redundant call to
 	chill_convert_to_assignment

From-SVN: r22417
1998-09-14 09:50:41 -04:00
David Edelsohn
8f6854597b - update listing of rs6000-specific constraints
From-SVN: r22416
1998-09-14 07:11:07 -04:00
Mark Mitchell
aed7b2a6e2 cp-tree.h (lang_type): Add has_non_private_static_mem_fn.
* cp-tree.h (lang_type): Add has_non_private_static_mem_fn.
	(CLASSTYPE_HAS_NON_PRIVATE_STATIC_MEM_FN): New macro, to access it.
	* class.c (maybe_class_too_private_p): New function.
	(finish_struct_methods): Use it.
	(finish_struct_1): Likewise.
	(finish_struct): Set CLASSTYPE_HAS_NON_PRIVATE_STATIC_MEM_FN if
	appropriate.

From-SVN: r22415
1998-09-14 11:09:07 +00:00
Mark Mitchell
fd4de5ff4a pt.c (check_specialization_scope): Fix spelling error.
* pt.c (check_specialization_scope): Fix spelling error.
	(check_explicit_specialization): Remove code to handle explicit
	specializations in class scope; they are now correctly diagnosed
	as errors.

From-SVN: r22414
1998-09-14 11:05:47 +00:00
Jeffrey A Law
028d0b2aaf Bump for snapshot
From-SVN: r22413
1998-09-14 04:34:00 -06:00
Jeff Law
7fb54db594 Fix typos/thinkos in previous change.
From-SVN: r22412
1998-09-14 04:32:46 -06:00
Jeffrey A Law
466973eda8 Bump for snapshot
From-SVN: r22411
1998-09-14 03:51:08 -06:00
Jeffrey A Law
1f43f4b493 Makefile.in: Add many missing dependencies.
* Makefile.in: Add many missing dependencies.
        * buffer.c, class.c, constants.c, decl.c: Use system.h and toplev.h
        as appropriate.
        * except.c, expr.c, jcf-io.c jcf-parse.c, jcf-write.c: Likewise.
        * jvgenmain.c lang.c mangle.c typeck.c verify.c: Likewise.

From-SVN: r22410
1998-09-14 03:42:24 -06:00
Jeff Law
edfc5c062e Daily bump.
From-SVN: r22409
1998-09-13 18:45:01 -06:00
David S. Miller
ad299d9bc8 * invoke.texi (C Dialect Options): Put back missing @end itemize.
From-SVN: r22408
1998-09-13 16:15:59 -07:00
Alexandre Oliva
1b015bec9d configure.in: remove usage of `!' to negate the result of a command...
* configure.in: remove usage of `!' to negate the result of a
	command; some common shells do not support it

From-SVN: r22407
1998-09-13 22:37:15 +00:00
David S. Miller
073149a276 Fix non-local goto testsuite failures on sparc64.
* config/sparc/sparc.md (goto_handler_and_restore): Allow any mode
	for operand zero.

From-SVN: r22406
1998-09-13 14:22:53 -07:00
Jeff Law
51568a9c4c Revert previous patch.
From-SVN: r22405
1998-09-13 15:12:44 -06:00
David S. Miller
d7496fbb76 We now fully bootstrap on solaris-2.7 sparcv9.
toplevel:
	* config.sub: Recognize sparcv9 just like sparc64.
	gcc/ChangeLog:
	* configure.in: in sparc9-sol2 config, use 'if test' not
	brackets.
	* configure: Rebuilt.
	* config/sparc/sol2-sld-64.h (SPARC_DEFAULT_CMODEL): Change to
	CM_MEDANY.
	(CPP_CPU_SPEC): Do not define _LP64, header files do this.
	(CPP_CPU_DEFAULT_SPEC): Likewise.
	* config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Get the names right
	for arch64 libfuncs.
	gcc/java/ChangeLog:
	* jcf-io.c: Include string.h.
	libchill/ChangeLog:
	* configure.in: Use 'if test' not brackets.
	* configure: Rebuilt.

From-SVN: r22404
1998-09-13 13:37:17 -07:00
Kaveh R. Ghazi
007e8d2a78 Add support for strsignal, for platforms which have it but don't have sys_siglist (like Solaris 2.7.)
Add support for strsignal, for platforms which have it but don't have
sys_siglist (like Solaris 2.7.)
        * acconfig.h (NEED_DECLARATION_STRSIGNAL): Provide a stub.
        * collect2.c: Don't declare `sys_siglist' here.
        (my_strsignal): Prototype and define new function.  Use it in
        place of `sys_siglist' hacks.
        * mips_tfile.c:  Likewise.
        * configure.in (AC_CHECK_FUNCS): Check for strsignal.
        (GCC_NEED_DECLARATIONS): Likewise.
        * system.h (strsignal): Prototype it, if necessary.
        (sys_siglist): Declare it, if necessary.

From-SVN: r22403
1998-09-13 06:17:31 +00:00
David S. Miller
9655bf953a loop.c (move_movables): While removing insn sequences...
* loop.c (move_movables): While removing insn sequences, preserve
	the next pointer of the most recently deleted insn when we skip
	over a NOTE.

From-SVN: r22402
1998-09-12 22:44:40 -07:00
Kamil Iskra
50a029fdcc Makefile.in (install): Add missing "else true;".
Thu Sep 10 14:57:25 1998  Kamil Iskra  <iskra@student.uci.agh.edu.pl>
	* Makefile.in (install): Add missing "else true;".

From-SVN: r22401
1998-09-13 04:19:15 +00:00
Kamil Iskra
8d1fb67716 Make-lang.in (f77.install-common): Add missing "else true;".
Thu Sep 10 14:55:44 1998  Kamil Iskra  <iskra@student.uci.agh.edu.pl>
	* Make-lang.in (f77.install-common): Add missing "else true;".

From-SVN: r22400
1998-09-13 04:16:22 +00:00
Jeff Law
6f161ac4ed Daily bump.
From-SVN: r22399
1998-09-12 18:45:32 -06:00
Jason Merrill
1dc5fc4b35 update
From-SVN: r22398
1998-09-12 20:12:17 -04:00
Michael Meissner
b91d2c1041 Pass appropriate switches to cpp/asm if -mcpu={401,603e,604e,ec603e,823}
From-SVN: r22397
1998-09-12 08:40:02 +00:00
David S. Miller
c0222c217b More multi-register structure return recognition fixes and:
* config/sparc/sparc.md (movdf_const_intreg_sp64): Disable.

From-SVN: r22396
1998-09-11 20:45:22 -07:00
David S. Miller
86465af734 flow.c (mark_set_1): Recognize multi-register structure return values in CALL insns.
* flow.c (mark_set_1): Recognize multi-register structure return
	values in CALL insns.
	(mark_used_regs): Likewise.
	(count_reg_sets_1): Likewise.
	(count_reg_references):	Likewise.
	* rtlanal.c (note_stores): Likewise.

From-SVN: r22395
1998-09-11 18:03:36 -07:00