Commit Graph

17127 Commits

Author SHA1 Message Date
Jim Wilson
243e7835fb Fix cygwin32 hosted dwarf2 target problem with line number info.
* dwarf2out.c (size_of_string): Do count backslashes.

From-SVN: r20562
1998-06-18 11:19:08 -07:00
Michael Meissner
ce56e6ed02 Add bugs corresponding to PRs 16243 and 16245
From-SVN: r20561
1998-06-18 12:13:20 +00:00
Nick Clifton
bf3ad13976 Imported fixes for testsuite failures from psion branch.
From-SVN: r20560
1998-06-18 11:44:52 +00:00
J"orn Rennecke
f9df0a1d52 reload.c (find_reloads): Don't narrow scope of RELOAD_OTHER to RELOAD_FOR_INSN.
* reload.c (find_reloads): Don't narrow scope of RELOAD_OTHER to
	RELOAD_FOR_INSN.

From-SVN: r20559
1998-06-18 10:33:39 +01:00
Robert Lipe
276d5ee0ca * config.guess: Detection of Pentium II for *-sco-3.2v5*.
From-SVN: r20558
1998-06-18 09:30:03 +00:00
Robert Lipe
025b3f1485 New case from Klaus-Georg Adams.
From-SVN: r20557
1998-06-18 08:31:29 +00:00
Kaveh R. Ghazi
cab634f2e9 Warning fixes:
* Makefile.in (c-lang.o): Depend on output.h.
        * c-lang.c: Include output.h.
        * sparc.c (sparc_builtin_saveregs): Remove unused variable `fntype'.
        * except.c (expand_builtin_eh_stub): Likewise for variable `jump_to'.
        * genrecog.c (write_subroutine): When writing insn-recog.c, mark
        variables `insn', `pnum_clobbers', `x[0 .. max_depth]' and `tem'
        with ATTRIBUTE_UNUSED.
        * regmove.c (copy_src_to_dest): Make function static to match its
        prototype.
        * reload1.c Include hard-reg-set.h before rtl.h to get macro
        HARD_CONST.  Include machmode.h before hard-reg-set.h.
        * rtl.h: Prototype `retry_global_alloc' and wrap with macro
        HARD_CONST to protect usage of typedef HARD_REG_SET.
        * tree.c: Prototype `_obstack_allocated_p'.
        * varasm.c: Wrap prototype of `asm_output_aligned_bss' in macro
        BSS_SECTION_ASM_OP.

From-SVN: r20556
1998-06-18 06:46:35 +00:00
Kaveh R. Ghazi
264a8100d1 Warning fix:
* cp-tree.h: Prototype function `check_java_method'.

From-SVN: r20555
1998-06-18 06:34:50 +00:00
Kaveh R. Ghazi
0b17dd9857 PA warning fixes:
* pa.c: Include system.h and toplev.h.  Remove redundant code.
        (call_operand_address): Mark parameter `mode' with ATTRIBUTE_UNUSED.
        (symbolic_operand): Likewise.
        (symbolic_memory_operand): Likewise.
        (pic_label_operand): Likewise.
        (fp_reg_operand): Likewise.
        (pre_cint_operand): Likewise.
        (post_cint_operand): Likewise.
        (ireg_or_int5_operand): Likewise.
        (int5_operand): Likewise.
        (uint5_operand): Likewise.
        (int11_operand): Likewise.
        (uint32_operand): Likewise.
        (ior_operand): Likewise.
        (lhs_lshift_cint_operand): Likewise.
        (pc_or_label_operand): Likewise.
        (legitimize_pic_address): Likewise.
        (hppa_legitimize_address): Likewise for parameter `old'.
        (output_block_move): Likewise for parameter `size_is_constant'.
        (output_function_prologue): Likewise for parameter `size'.
        (output_function_epilogue): Likewise.
        (return_addr_rtx): Likewise for parameter `count'.
        (output_mul_insn): Likewise for parameter `unsignedp'.
        (hppa_builtin_saveregs): Likewise for parameter `arglist'.
        (output_bb): Likewise for parameter `operands'.
        (output_bvb): Likewise.
        (function_label_operand): Likewise for parameter `mode'.
        (plus_xor_ior_operator): Likewise.
        (shadd_operand): Likewise.
        (non_hard_reg_operand): Likewise.
        (eq_neq_comparison_operator): Likewise.
        (movb_comparison_operator): Likewise.
        (pa_combine_instructions): Likewise for parameter `insns'.
        * pa.h: Add prototypes for functions `output_deferred_plabels',
        `override_options', `output_ascii', `output_function_prologue',
        `output_function_epilogue', `print_operand',
        `symbolic_expression_p', `reloc_needed', `compute_frame_size',
        `hppa_address_cost', `and_mask_p', `symbolic_memory_operand',
        `pa_adjust_cost', `pa_adjust_insn_length' and
        `secondary_reload_class'.

From-SVN: r20554
1998-06-18 06:27:09 +00:00
Jeff Law
df16ddd55e Daily bump.
From-SVN: r20553
1998-06-17 18:45:02 -06:00
Jason Merrill
57f01f4575 class.c (finish_struct): Make conflicting use of id a pedwarn.
* class.c (finish_struct): Make conflicting use of id a pedwarn.
	* decl.c (pushdecl_class_level): Likewise.

From-SVN: r20552
1998-06-17 19:51:41 -04:00
Jason Merrill
ca8c3b3712 * configure.in: Don't turn on collect2 unconditionally.
From-SVN: r20551
1998-06-17 18:32:50 -04:00
Mark Mitchell
db02b6b9b0 pt.c (convert_nontype_argument): Issue an error when presented with an integer (real) constant that cannot be...
* pt.c (convert_nontype_argument): Issue an error when presented
	with an integer (real) constant that cannot be simplified to an
	INT_CST (REAL_CST).

From-SVN: r20550
1998-06-17 21:52:30 +00:00
Mark Mitchell
8fa8d8c5c7 cp-tree.h (c_get_alias_set): Remove declaration added in 1998-06-13 change that should never have been...
* cp-tree.h (c_get_alias_set): Remove declaration added in
	1998-06-13 change that should never have been checked in.

From-SVN: r20549
1998-06-17 20:46:12 +00:00
Mark Mitchell
1d22a2c164 cse.c (cse_basic_block): Don't include NOTE insns in the count that is used to decide whether or not it...
* cse.c (cse_basic_block): Don't include NOTE insns in the count
	that is used to decide whether or not it is time to erase the
	equivalence table.

From-SVN: r20548
1998-06-17 20:20:21 +00:00
Jason Merrill
316d4b547e typeck.c (build_binary_op_nodefault): Change % in format strings to %%.
* typeck.c (build_binary_op_nodefault): Change % in format strings
	to %%.
	* decl.c (grokvardecl): Don't build_static_name for decls that
	aren't at namespace scope.
	* init.c (perform_member_init): Catch default-initialization of
	references.

From-SVN: r20547
1998-06-17 14:52:18 -04:00
Jeffrey A Law
77f194c299 * gcc.c-torture/execute/980617-1.c: New test.
From-SVN: r20546
1998-06-17 11:56:02 -06:00
Jeffrey A Law
7d12cee1f1 * fold-const.c (make_range): Do not widen the type of the expression.
From-SVN: r20545
1998-06-17 11:54:27 -06:00
Franz Sirl
b74390dec9 * rs6000/linux.h (JUMP_TABLES_IN_TEXT_SECTION): Define to zero.
From-SVN: r20544
1998-06-17 11:33:40 -06:00
John Carr
e0cd077072 haifa-sched.c (haifa_classify_insn): TRAP_IF is risky.
* haifa-sched.c (haifa_classify_insn): TRAP_IF is risky.
	(sched_analyze_2): Allow scheduling TRAP_IF.
	* reorg.c (mark_referenced_resources): Examine operands of TRAP_IF.
	* rtl.h (TRAP_CODE): New macro.
	* rtl.def (TRAP_IF): Change second operand type to rtx.
	* optabs.c (gen_cond_trap): New function.
	(init_traps): New function.
	(init_optabs): Call init_traps.
	* expr.h: Declare gen_cond_trap.
	* jump.c (jump_optimize): Optimize jumps to and around traps.
	* sparc.md: Define trap instructions.
	* rs6000.md: Define trap instructions.
	* rs6000.c (print_operand): New code 'V' for trap condition.
	(trap_comparison_operator): New function.
	* m88k.md: Update use of TRAP_IF.
	* tree.h (enum built_in_function): New function code BUILT_IN_TRAP.
	* c-decl.c (init_decl_processing): New builtin __builtin_trap.
	* expr.c (expand_builtin): Handle BUILT_IN_TRAP.
	* expr.c (expand_builtin): Error if __builtin_longjmp second argument
	is not 1.

From-SVN: r20543
1998-06-17 16:14:09 +00:00
Catherine Moore
4fdf79cb67 reload1.c (spill_hard_reg): Check mode of register when spilling from scratch_list.
Wed Jun 17 15:20:00 PDT 1998  Catherine Moore  <clm@cygnus.com>
         * reload1.c (spill_hard_reg):  Check mode of register when
         spilling from scratch_list.

From-SVN: r20542
1998-06-17 11:46:25 -04:00
Andrew MacLeod
d7e7852964 except.c (add_new_handler): fix bug in finding last region handler.
Wed Jun 17 16:25:38 EDT 1998  Andrew MacLeod  (amacleod@cygnus.com)
      * except.c (add_new_handler): fix bug in finding last region handler.
      * libgcc2.c (find_exception_handler): Pass exception table pointer
      to runtime type matcher, not the match info field.

From-SVN: r20541
1998-06-17 13:29:22 +00:00
Andrew MacLeod
3301dc5191 eh-common.h (struct eh_context): Add comment for hidden use of field dynamic_handler_chain.
* eh-common.h (struct eh_context): Add comment for hidden use of
        field dynamic_handler_chain.
        * except.c (get_dynamic_handler_chain): Comment on, and use the
        correct offset of the dynamic_handler_chain field.

From-SVN: r20540
1998-06-17 13:05:54 +00:00
Jim Wilson
33f264afda Disable annoying linker warning that occurs when templates are used.
* mips/iris6.h (LINK_SPEC): Add -woff 131.

From-SVN: r20539
1998-06-17 05:48:25 -07:00
Jeffrey A Law
dbecbbe48a expr.c (check_max_integer_computation_mode): New function.
* expr.c (check_max_integer_computation_mode): New function.
        (expand_expr): Avoid integer computations in modes wider than
        MAX_INTEGER_COMPUTATION_MODE.
        * fold-const.c (fold): Likewise.
        * tree.h (check_max_integer_computation_mode): Declare.
        * tm.texi (MAX_INTEGER_COMPUTATION_MODE): Document it.

From-SVN: r20538
1998-06-17 05:44:02 -06:00
Mark Mitchell
a5b8127eb1 * errfn.c (cp_thing): Handle the `%%' formatting sequence.
From-SVN: r20537
1998-06-17 10:40:49 +00:00
Jason Merrill
d460fb3cdd dwarf2out.c: Disable EH_FRAME_SECTION if we don't have .init.
* dwarf2out.c: Disable EH_FRAME_SECTION if we don't have .init.
        * configure.in: Don't disable collect2 when we have GNU ld.

From-SVN: r20536
1998-06-17 04:31:24 -06:00
Jeffrey A Law
4b95eb496d * configure.in (nm): Make a link to "nm" in the build tree too.
From-SVN: r20535
1998-06-17 02:13:23 -06:00
Jeff Law
1b357872d7 mn10300.md (andsi3): Fix typo.
�
        * mn10300.md (andsi3): Fix typo.

From-SVN: r20534
1998-06-17 01:42:35 -06:00
Jeff Law
4c738570e1 mn10300.md (andsi3): Fix typo.
�
        * mn10300.md (andsi3): Fix typo.

From-SVN: r20533
1998-06-17 01:42:33 -06:00
Jason Merrill
0e607f3473 method.c (hack_identifier): Complain about getting a namespace or class template.
* method.c (hack_identifier): Complain about getting a namespace
	or class template.
	* typeck.c (decay_conversion): Remove check for namespaces.
	* typeck2.c (incomplete_type_error): Likewise.
	* parse.y (template_arg): Add PTYPENAME expansion.

From-SVN: r20532
1998-06-16 22:07:29 -04:00
Jeff Law
e4d4bdf2a9 Daily bump.
From-SVN: r20531
1998-06-16 18:45:02 -06:00
Richard Henderson
33ab8de00e * reload1.c (reload_cse_regs): Call bzero instead of looping.
From-SVN: r20530
1998-06-16 16:00:29 -07:00
Jim Wilson
bf20f3410f Fix bug reported by tege. section names wrong if USER_LABEL_PREFIX non-null.
* dwarf2out.c (stripattributes): Prepend '*' to the section name.

From-SVN: r20529
1998-06-16 11:33:00 -07:00
Richard Henderson
9c0e94a5e4 alpha.c (alpha_expand_prologue, [...]): New fns.
* alpha.c (alpha_expand_prologue, alpha_expand_epilogue): New fns.
        (output_prologue, output_epilogue): Merge VMS and OSF versions;
        Remove anything related to the actual code generation.
        (output_end_prologue): New function.
        (alpha_sa_mask, alpha_sa_size): Merge VMS and OSF versions.
        (alpha_does_function_need_gp): Return false for VMS.
        (alpha_function_needs_gp): Make static.
        (add_long_const): Delete.
        (summarize_insn): Don't assume a SUBREG is of a REG.
        Prototype all static functions.  Rename VMS-specific global
        variables vms_*.
        * alpha.h (TARGET_CAN_FAULT_IN_PROLOGUE): Default to 0.
        (FUNCTION_BOUNDARY): Align to cache line.
        (LOOP_ALIGN, ALIGN_LABEL_AFTER_BARRIER): Align to octaword.
        (FUNCTION_END_PROLOGUE): New macro.
        * alpha.md (attribute length): New.  Mark all insns.
        (return_internal, prologue_stack_probe_loop) New patterns.
        (prologue, init_fp, epilogue): New patterns.
        Disable peepholes.
        * linux.h (TARGET_CAN_FAULT_IN_PROLOGUE): Define.

From-SVN: r20528
1998-06-16 10:08:48 -07:00
Dave Brolley
ad1da1de8c toplev.c (lang_options): Add -trigraphs option for cpplib.
Tue Jun 16 17:36:35 1998  Dave Brolley  <brolley@cygnus.com>
	* toplev.c (lang_options): Add -trigraphs option for cpplib.

From-SVN: r20527
1998-06-16 11:48:14 -04:00
J"orn Rennecke
75528b80dc reload1.c (reload_reg_free_before_p): RELOAD_FOR_OUTADDR_ADDRESS is earlier than RELOAD_FOR_OUTPUT_ADDRESS...
* reload1.c (reload_reg_free_before_p): RELOAD_FOR_OUTADDR_ADDRESS
	is earlier than RELOAD_FOR_OUTPUT_ADDRESS; RELOAD_FOR_INPADDR_ADDRESS
	is earlier than RELOAD_FOR_INPUT_ADDRESS.

From-SVN: r20526
1998-06-16 16:35:50 +01:00
Jim Wilson
42b82dd3b2 Fix v850 build failure.
* libgcc1-test.c (memcpy): Define.

From-SVN: r20525
1998-06-16 06:17:14 -07:00
Andrew MacLeod
741f283993 decl.c (grokvardecl): Don't build external assembler names for TYPENAMEs in other namespaces as there...
1998-06-16  Andrew MacLeod  <amacleod@cygnus.com>
	* decl.c (grokvardecl): Don't build external assembler names for
	TYPENAMEs in other namespaces as there is no declarator.
	* error.c (cp_file_of, cp_line_of): Don't extract file or line number
	info from DECL_CONTEXT if it is NULL.

From-SVN: r20524
1998-06-16 12:36:14 +00:00
Michael Meissner
6f6074ea6f Print constants for function_units_used and *_blockage_range more human friendly
From-SVN: r20523
1998-06-16 10:48:57 +00:00
Jason Merrill
56c5997c8e revert
From-SVN: r20522
1998-06-15 23:18:08 -04:00
Jason Merrill
1c2c08a553 method.c (hack_identifier): Don't let a class template out.
* method.c (hack_identifier): Don't let a class template out.
	* call.c (check_dtor_name): Split out.
	(build_scoped_method_call): Use it.
	(build_method_call): Use it.
	* init.c (build_offset_ref): Use it.
	* typeck.c (build_static_cast): Fix handling of pointers to members.
	* decl.c (finish_function): Just return nothing from a constructor.
	* typeck.c (c_expand_return): Complain about returning a void
	expression from a destructor.

From-SVN: r20521
1998-06-15 22:51:01 -04:00
Craig Burley
8b45da67d0 Cutover to system.h:
Mon Jun 15 22:21:57 1998  Craig Burley  <burley@gnu.org>
	Cutover to system.h:
	* Make-lang.in:
	* Makefile.in:
	* ansify.c:
	* bad.c:
	* bld.c:
	* com.c:
	* com.h:
	* expr.c:
	* fini.c:
	* g77spec.c:
	* implic.c:
	* intdoc.c:
	* intrin.c:
	* lex.c:
	* lex.h:
	* parse.c:
	* proj.c:
	* proj.h:
	* src.c:
	* src.h:
	* stb.c:
	* ste.c:
	* target.c:
	* top.c:
	* system.j: New file.
	Use toplev.h where appropriate:
	* Make-lang.in:
	* Makefile.in:
	* bad.c:
	* bld.c:
	* com.c:
	* lex.c:
	* ste.c:
	* top.c:
	* toplev.j: New file.
	Conditionalize all dumping/reporting routines so they don't
	get built for gcc/egcs:
	* bld.c:
	* bld.h:
	* com.c:
	* equiv.c:
	* equiv.h:
	* sta.c:
	* stt.c:
	* stt.h:
	* symbol.c:
	* symbol.h:
	Use hconfig.h instead of config.h where appropriate:
	* Makefile.in (proj-h.o): Compile with -DUSE_HCONFIG.
	* fini.c: Define USE_HCONFIG before including proj.h.
	* Makefile.in (deps-kinda): Redirect stderr to stdout,
	to eliminate diagnostics vis-a-vis g77spec.c.
	* Makefile.in: Regenerate dependencies via deps-kinda.
	* lex.c (ffelex_file_fixed, ffelex_file_free): Eliminate
	apparently spurious warnings about uninitialized variables
	`c', `column', and so on.

From-SVN: r20520
1998-06-16 02:23:44 +00:00
Jeff Law
92a3a8d00d Daily bump.
From-SVN: r20517
1998-06-15 18:45:03 -06:00
Jason Merrill
9e30c37826 update
From-SVN: r20516
1998-06-15 19:51:13 -04:00
Michael Meissner
3ac3da71e2 Reorder tests in last change for speed
From-SVN: r20513
1998-06-15 16:32:00 +00:00
Michael Meissner
ddc8bed248 Do not do src->dest copy if register would not be allocated a normal register
Co-Authored-By: Jim Wilson <wilson@cygnus.com>

From-SVN: r20512
1998-06-15 14:28:02 +00:00
Jim Wilson
3bd89472d1 Fix merging error with formerly cygnus local change.
* c-decl.c (shadow_tag_warned): Use specs not declspecs in for loop.

From-SVN: r20511
1998-06-15 06:22:59 -07:00
Michael Meissner
a7db2896a5 Undo June 11th change
From-SVN: r20510
1998-06-15 12:33:51 +00:00
Dave Love
63393d8cc7 Update versions to 0.5.23.
From-SVN: r20509
1998-06-15 07:57:08 +00:00