platform/upstream/gcc.git
24 years agotoplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
Jeff Law [Fri, 5 May 2000 16:37:01 +0000 (10:37 -0600)]
toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.

        * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
        (main): Likewise.

From-SVN: r33714

24 years ago* pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
Rodney Brown [Fri, 5 May 2000 16:34:06 +0000 (16:34 +0000)]
* pa.h (FUNCTION_ARG_ADVANCE): Warning removal.

From-SVN: r33713

24 years ago* g77.f-torture/execute/20000503-1.f: New test.
David Billinghurst [Fri, 5 May 2000 16:31:25 +0000 (10:31 -0600)]
* g77.f-torture/execute/20000503-1.f:  New test.

From-SVN: r33712

24 years agoopenbsd.h (LINK_SPEC): pass correct flags to ld to support -shared, on platforms...
Marc Espie [Fri, 5 May 2000 16:30:23 +0000 (16:30 +0000)]
openbsd.h (LINK_SPEC): pass correct flags to ld to support -shared, on platforms with dynamic libraries.

        * config/openbsd.h (LINK_SPEC): pass correct flags to ld
        to support -shared, on platforms with dynamic libraries.

From-SVN: r33711

24 years ago* system.h (S_ISBLK): Provide fallback definition.
Philippe De Muyter [Fri, 5 May 2000 16:27:45 +0000 (18:27 +0200)]
* system.h (S_ISBLK): Provide fallback definition.

From-SVN: r33710

24 years agoextend.texi (Extended Asm): Document inability to give asm statements access to condi...
Geoff Berry [Fri, 5 May 2000 16:26:12 +0000 (16:26 +0000)]
extend.texi (Extended Asm): Document inability to give asm statements access to condition codes.

        * extend.texi (Extended Asm): Document inability to give asm
        statements access to condition codes.

From-SVN: r33709

24 years agovarasm.c (asm_emit_uninitialised): Use 0, not NULL as arg 2 of UNIQUE_SECTION.
Marek Michalkiewicz [Fri, 5 May 2000 16:16:57 +0000 (18:16 +0200)]
varasm.c (asm_emit_uninitialised): Use 0, not NULL as arg 2 of UNIQUE_SECTION.

        * varasm.c (asm_emit_uninitialised): Use 0, not NULL
        as arg 2 of UNIQUE_SECTION.

From-SVN: r33708

24 years agopredict.c: Remove May 4 change.
Jeffrey A Law [Fri, 5 May 2000 16:13:46 +0000 (16:13 +0000)]
predict.c: Remove May 4 change.

        * predict.c: Remove May 4 change.
        * bb-reorder.c (make_reorder_chain): Do not perform block movement
        if we have predicted the branch at 50-50 probability.

From-SVN: r33707

24 years agore GNATS libgcj/220 (build fails with "only absolute run-paths are allowed" error...
Tom Tromey [Fri, 5 May 2000 16:11:36 +0000 (16:11 +0000)]
re GNATS libgcj/220 (build fails with "only absolute run-paths are allowed" error during linking)

Fix for PR libgcj/220:
* Makefile.in: Rebuilt.
* Makefile.am (gij_LDFLAGS): Don't use libstdc++.
(jv_convert_LDFLAGS): Likewise.
(libgcj_la_LDFLAGS): Likewise.
(GCJLINK): New macro.
(jv_convert_LINK): Use it.
(gij_LINK): Likewise.
(libgcj_la_LINK): New macro.
(libgcjawt_la_LINK): Likewise.

From-SVN: r33706

24 years agoflow.c (init_propagate_block_info): Fix merge error in HAVE_conditional_execution...
Richard Henderson [Fri, 5 May 2000 10:53:47 +0000 (03:53 -0700)]
flow.c (init_propagate_block_info): Fix merge error in HAVE_conditional_execution code.

        * flow.c (init_propagate_block_info): Fix merge error
        in HAVE_conditional_execution code.

From-SVN: r33705

24 years agonoreturn-2.c: New test.
Andreas Jaeger [Fri, 5 May 2000 08:44:09 +0000 (10:44 +0200)]
noreturn-2.c: New test.

2000-05-04  Andreas Jaeger  <aj@suse.de>

* gcc.dg/noreturn-2.c: New test.

From-SVN: r33704

24 years agoDaily bump.
Jeff Law [Fri, 5 May 2000 07:45:15 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r33703

24 years agofield.h (JvFieldIsRef): Return false for gnu.gcj.RawData field.
Tom Tromey [Fri, 5 May 2000 04:46:26 +0000 (04:46 +0000)]
field.h (JvFieldIsRef): Return false for gnu.gcj.RawData field.

* gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
field.
* boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
`0x0008'.
Include Modifier.h.

From-SVN: r33702

24 years agoboehm.c (mark_reference_fields): Don't mark RawData fields.
Tom Tromey [Fri, 5 May 2000 04:23:23 +0000 (04:23 +0000)]
boehm.c (mark_reference_fields): Don't mark RawData fields.

* boehm.c (mark_reference_fields): Don't mark RawData fields.
Keep track of when we've seen a reference field after a
non-reference field.
(get_boehm_type_descriptor): Handle case where we see
non-reference fields but no trailing reference field.
* decl.c (rawdata_ptr_type_node): Define.
(init_decl_processing): Initialize rawdata_ptr_type_node.
* java-tree.h (rawdata_ptr_type_node): Declare.

From-SVN: r33701

24 years agoavr.c (out_shift_with_cnt): Genetare a more optimal shift cycle for unknown shift...
Denis Chertykov [Fri, 5 May 2000 04:00:51 +0000 (08:00 +0400)]
avr.c (out_shift_with_cnt): Genetare a more optimal shift cycle for unknown shift count.

* config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
shift cycle for unknown shift count. Also generates dec + brpl.
(ashlqi3_out): Don't generate dec + brpl which now generates by
`out_shift_with_cnt'.
(ashlhi3_out): Likewise.
(ashlsi3_out): Likewise.
(ashrqi3_out): Likewise.
(ashrhi3_out): Likewise.
(ashrsi3_out): Likewise.
(lshrqi3_out): Likewise.
(lshrhi3_out): Likewise.
(lshrsi3_out): Likewise.

From-SVN: r33700

24 years agocp-tree.h (DELTA_FROM_VTABLE_ENTRY): Remove.
Mark Mitchell [Fri, 5 May 2000 03:10:42 +0000 (03:10 +0000)]
cp-tree.h (DELTA_FROM_VTABLE_ENTRY): Remove.

* cp-tree.h (DELTA_FROM_VTABLE_ENTRY): Remove.
(SET_FNADDR_FROM_VTABLE_ENTRY): Likewise.
(lang_decl_flags): Add vcall_offset.
(THUNK_VCALL_OFFSET): Use it.
* decl.c (lang_mark_tree): Don't mark DECL_ACCESS for a thunk.
* method.c (make_thunk): Create the lang_decl here, not in
emit_thunk.
(emit_thunk): Make generic thunks into ordinary functions once
they have been fed to expand_body.
* semantics.c (expand_body): Set current_function_is_thunk here.

From-SVN: r33699

24 years agonatClass.cc (isInstance): Use __builtin_expect.
Bryce McKinlay [Fri, 5 May 2000 02:56:14 +0000 (02:56 +0000)]
natClass.cc (isInstance): Use __builtin_expect.

2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>

* java/lang/natClass.cc (isInstance): Use __builtin_expect.
(_Jv_IsAssignableFrom): Ditto.
(_Jv_IsInstanceOf): Ditto.
(_Jv_CheckCast): Ditto.
(_Jv_CheckArrayStore): Ditto.
* java/lang/Class.h (_Jv_InitClass): Ditto.
* java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
not `0'.
(notify): Ditto.
(notifyAll): Ditto.
(wait): Ditto.
(_Jv_MonitorExit): Ditto.
* boehm.cc (_Jv_MarkObj): Ditto.
(_Jv_MarkObj): Ditto.
(_Jv_MarkArray): Ditto.
* prims.cc (_Jv_AllocObject): Ditto.
(_Jv_NewObjectArray): Ditto.
(_Jv_NewPrimArray): Ditto.
(_Jv_Malloc): Ditto.
(_Jv_Realloc): Ditto.
(_Jv_MallocUnchecked): Ditto.
(_Jv_divI): Ditto.
(_Jv_remI): Ditto.
(_Jv_divJ): Ditto.
(_Jv_remJ): Ditto.

From-SVN: r33698

24 years ago*** empty log message ***
Neil Booth [Fri, 5 May 2000 02:50:47 +0000 (02:50 +0000)]
*** empty log message ***

From-SVN: r33697

24 years agoMove old ChangeLog out of the way.
Richard Henderson [Fri, 5 May 2000 02:06:33 +0000 (19:06 -0700)]
Move old ChangeLog out of the way.

From-SVN: r33696

24 years ago* gcc.c-torture/execute/20000503-1.c: Fix typo.
Richard Henderson [Fri, 5 May 2000 02:05:56 +0000 (19:05 -0700)]
* gcc.c-torture/execute/20000503-1.c: Fix typo.

From-SVN: r33695

24 years agoMerge all post c-torture-1.45 entries to the main testsuite ChangeLog.
Richard Henderson [Fri, 5 May 2000 01:56:18 +0000 (18:56 -0700)]
Merge all post c-torture-1.45 entries to the main testsuite ChangeLog.

From-SVN: r33694

24 years agogcc.c (free_split_directories): Correct typo in explanation of make_relative_prefix.
Mark Elbrecht [Fri, 5 May 2000 00:15:02 +0000 (00:15 +0000)]
gcc.c (free_split_directories): Correct typo in explanation of make_relative_prefix.

        * gcc.c (free_split_directories): Correct typo in explanation
        of make_relative_prefix.

From-SVN: r33693

24 years agors6000.h (PREDICATE_CODES): Add floating-point comparison codes to branch_comparison_...
Geoff Keating [Fri, 5 May 2000 00:06:34 +0000 (00:06 +0000)]
rs6000.h (PREDICATE_CODES): Add floating-point comparison codes to branch_comparison_operator.

* config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
comparison codes to branch_comparison_operator.

From-SVN: r33692

24 years ago20000504-1.c: New test.
Richard Henderson [Thu, 4 May 2000 23:27:15 +0000 (16:27 -0700)]
20000504-1.c: New test.

        * gcc.c-torture/compile/20000504-1.c: New test.  Derived from
        OpenSSL by Jason R Thorpe.

From-SVN: r33691

24 years ago* ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
Richard Henderson [Thu, 4 May 2000 23:23:45 +0000 (16:23 -0700)]
* ifcvt.c (noce_process_if_block): Always reset X in the A == B case.

From-SVN: r33690

24 years agoifcvt.c (noce_process_if_block): Fail if A or B modified between condition and jump.
Richard Henderson [Thu, 4 May 2000 23:22:26 +0000 (16:22 -0700)]
ifcvt.c (noce_process_if_block): Fail if A or B modified between condition and jump.

        * ifcvt.c (noce_process_if_block): Fail if A or B modified
        between condition and jump.

From-SVN: r33689

24 years agoMakefile.in (FPBIT_FUNCS): Remove _df_to_usi.
Richard Henderson [Thu, 4 May 2000 23:21:48 +0000 (16:21 -0700)]
Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.

        * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
        (DPBIT_FUNCS): Remove _sf_to_usi.
        (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.

From-SVN: r33688

24 years agolibgcc2.c (near eh_context_specific): Comment #endif string.
Richard Henderson [Thu, 4 May 2000 23:21:33 +0000 (16:21 -0700)]
libgcc2.c (near eh_context_specific): Comment #endif string.

        * libgcc2.c (near eh_context_specific): Comment #endif string.
        * longlong.h: Don't use strings with embedded newlines.

From-SVN: r33687

24 years agors6000-protos.h: Add output_cbranch.
Geoff Keating [Thu, 4 May 2000 22:15:23 +0000 (22:15 +0000)]
rs6000-protos.h: Add output_cbranch.

* config/rs6000/rs6000-protos.h: Add output_cbranch.
* config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
(print_operand): Delete %t and %T codes.
(output_cbranch): New function.  Support branch prediction.
* config/rs6000/rs6000.md: Use output_cbranch for
conditional branches and returns.

From-SVN: r33686

24 years agoremove accidental -pipe checkin
Jason Merrill [Thu, 4 May 2000 21:17:57 +0000 (17:17 -0400)]
remove accidental -pipe checkin

From-SVN: r33685

24 years agosimplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
Jason Merrill [Thu, 4 May 2000 21:15:05 +0000 (21:15 +0000)]
simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.

        * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
        * stor-layout.c (place_field): Likewise.
        * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
        * expr.c (store_expr): Make align unsigned.
        * explow.c (plus_constant_wide): Make low words unsigned.
        * expmed.c (choose_multiplier): Likewise.
        * fold-const.c (fold):  Likewise.
        * tree.h (build_int_2): Likewise.
        * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
        * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
        (init_emit): Change cast to unsigned char*.
        * varasm.c (compare_constant_1): Add cast to char*.
        * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
        * reload1.c (reload): Likewise.

        * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).

From-SVN: r33684

24 years agopredict.c (estimate_probability): If no prediction was found...
Jeffrey A Law [Thu, 4 May 2000 20:40:17 +0000 (20:40 +0000)]
predict.c (estimate_probability): If no prediction was found...

        * predict.c (estimate_probability): If no prediction was found, then
        predict the successor that is the next physical block (if such a
        successor exists).

From-SVN: r33683

24 years ago* config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
Richard Henderson [Thu, 4 May 2000 20:14:20 +0000 (13:14 -0700)]
* config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.

From-SVN: r33682

24 years ago* system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
Kaveh R. Ghazi [Thu, 4 May 2000 19:16:21 +0000 (19:16 +0000)]
* system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.

From-SVN: r33681

24 years agojcf-dump.c (SPECIAL_IINC): Ensure arguments match format specifiers in calls to fprintf.
Kaveh R. Ghazi [Thu, 4 May 2000 18:30:09 +0000 (18:30 +0000)]
jcf-dump.c (SPECIAL_IINC): Ensure arguments match format specifiers in calls to fprintf.

* jcf-dump.c (SPECIAL_IINC): Ensure arguments match format
specifiers in calls to fprintf.

From-SVN: r33680

24 years agodemangle.h (demangler_engine): Constify.
Kaveh R. Ghazi [Thu, 4 May 2000 18:21:03 +0000 (18:21 +0000)]
demangle.h (demangler_engine): Constify.

include:
* demangle.h (demangler_engine): Constify.

libiberty:
* cplus-dem.c (cplus_demangle_opname, demangle_function_name):
Cast the arguments to `islower' to `unsigned char'.
(print_demangler_list): Prototype.

From-SVN: r33679

24 years agoclass.c (update_vtable_entry_for_fn): Prototype.
Kaveh R. Ghazi [Thu, 4 May 2000 18:15:24 +0000 (18:15 +0000)]
class.c (update_vtable_entry_for_fn): Prototype.

* class.c (update_vtable_entry_for_fn): Prototype.

* pt.c (tsubst_decl): Initialize variables `argvec', `gen_tmpl'
and `tmpl'.

* search.c (dfs_build_inheritance_graph_order): Prototype.

From-SVN: r33678

24 years agocygwin.h (CPP_PREDEFINES): Don't define __STDC__.
Mumit Khan [Thu, 4 May 2000 18:15:08 +0000 (18:15 +0000)]
cygwin.h (CPP_PREDEFINES): Don't define __STDC__.

2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>

* i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
attribute macros from here ...
(CPP_SPEC): to here.
* i386/mingw32.h (CPP_PREDEFINES): Likewise.
(CPP_SPEC): Likewise.
* i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.

From-SVN: r33677

24 years agoMakefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
Mumit Khan [Thu, 4 May 2000 18:13:14 +0000 (18:13 +0000)]
Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.

2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>

* Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
(libgcc.a): Pass LIB1ASMSRC to libgcc.mk.

From-SVN: r33676

24 years agobb-reorder.c (get_next_bb_note, [...]): Prototype.
Kaveh R. Ghazi [Thu, 4 May 2000 17:58:40 +0000 (17:58 +0000)]
bb-reorder.c (get_next_bb_note, [...]): Prototype.

* bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.

* diagnostic (vbuild_message_string, build_message_string,
build_location_prefix, output_get_prefix, init_output_buffer,
output_notice, vline_wrapper_message_with_location,
v_message_with_decl, default_print_error_function): De-constify.
(set_real_maximum_length): Prototype.

* diagnostic.h (struct output_buffer, init_output_buffer,
output_get_prefix, output_set_prefix): De-constify.

* function.c (init_function_start): Constify.

* gensupport.c (remove_constraints, process_rtx): Prototype.

* gthr-posix.h: Indent uses of #pragma.

* objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
Prototype.

* predict.c (find_expected_value): Delete prototype.
(expected_value_to_br_prob): Initialize variable `ev_reg'.

* sbitmap.h (debug_sbitmap): Prototype.

* ssa.c (compute_coalesced_reg_partition): Prototype.

* stor-layout.c (debug_rli): Prototype.

* tree.h (round_down): Prototype.
(init_function_start): Constify.

ch:
* ch-tree.h (init_function_start): Constify.

From-SVN: r33675

24 years agocpphash.h: #define __extension__ away if GCC_VERSION < 2095 (overly conservative).
Zack Weinberg [Thu, 4 May 2000 16:21:29 +0000 (16:21 +0000)]
cpphash.h: #define __extension__ away if GCC_VERSION < 2095 (overly conservative).

* cpphash.h: #define __extension__ away if GCC_VERSION < 2095
(overly conservative).  Change extern inline wrappers to
static inline, define them always, use PARAMS properly.
* cpplex.c (_cpp_get_directive_token): Don't issue pedantic
whitespace warnings for \f and \v at the beginning of a line.

From-SVN: r33674

24 years agohaifa-sched.c (schedule_insns): Free the flow edge list when it is no longer needed
Jeffrey A Law [Thu, 4 May 2000 16:04:44 +0000 (16:04 +0000)]
haifa-sched.c (schedule_insns): Free the flow edge list when it is no longer needed

        * haifa-sched.c (schedule_insns): Free the flow edge list when it
        is no longer needed

From-SVN: r33673

24 years agoRemoved erroneous ChangeLog entry
Tom Tromey [Thu, 4 May 2000 15:51:47 +0000 (15:51 +0000)]
Removed erroneous ChangeLog entry

From-SVN: r33672

24 years agoLocale.java (Locale): Don't explicitly check for null.
Tom Tromey [Thu, 4 May 2000 15:50:34 +0000 (15:50 +0000)]
Locale.java (Locale): Don't explicitly check for null.

* java/util/Locale.java (Locale): Don't explicitly check for
null.
* java/util/Hashtable.java (containsKey): Don't explicitly check
for null.
(get): Likewise.
* java/util/BitSet.java (and, or, xor): Don't explicitly check for
null.
* java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
for null.
* java/text/StringCharacterIterator.java
(StringCharacterIterator): Don't check for null.
* java/text/ChoiceFormat.java (setChoices): Don't explicitly check
for null pointer.
* java/net/MulticastSocket.java (joinGroup): Don't explicitly
check for null pointer.
(leaveGroup): Likewise.
* java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
comment.
(setData): Likewise.
* java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
for `p==null'.

From-SVN: r33671

24 years agosort.h (sys/types.h): File included unconditionnaly.
Philippe De Muyter [Thu, 4 May 2000 15:40:25 +0000 (17:40 +0200)]
sort.h (sys/types.h): File included unconditionnaly.

* sort.h (sys/types.h): File included unconditionnaly.
(stddef.h): File include only #ifdef __STDC__.

* sort.c (UCHAR_MAX): Provide fallback definition.

From-SVN: r33670

24 years agoRemove BOGOSITY code, and Remove code for installing "shell" version
Bruce Korb [Thu, 4 May 2000 14:55:00 +0000 (14:55 +0000)]
Remove BOGOSITY code, and Remove code for installing "shell" version

From-SVN: r33669

24 years agocp-tree.h (special_function_kind): Add various kinds of destructors.
Mark Mitchell [Thu, 4 May 2000 14:54:18 +0000 (14:54 +0000)]
cp-tree.h (special_function_kind): Add various kinds of destructors.

* cp-tree.h (special_function_kind): Add various kinds of
destructors.
(special_function_p): New function.
* class.c (overrides): Don't let one kind of destructor override
another.
* decl2.c (mark_used): Use DECL_NON_THUNK_FUNCTION_P when deciding
whether or not to instantiate a template.
* tree.c (special_function_p): Define.

From-SVN: r33668

24 years agoRemove `extern double cabs' declarations from math.h
Bruce Korb [Thu, 4 May 2000 14:50:14 +0000 (14:50 +0000)]
Remove `extern double cabs' declarations from math.h

From-SVN: r33667

24 years agoconfigure: Rebuilt.
Tom Tromey [Thu, 4 May 2000 14:33:15 +0000 (14:33 +0000)]
configure: Rebuilt.

* configure: Rebuilt.
* configure.in: Match `arm*-*-linux-*'.
From Chris Dornan <cdornan@arm.com>.

From-SVN: r33666

24 years agortl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and MEM_ALIAS_SET.
Richard Kenner [Thu, 4 May 2000 13:49:50 +0000 (13:49 +0000)]
rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and MEM_ALIAS_SET.

* rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
MEM_ALIAS_SET.
* alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
when calling MEM_COPY_ATTRIBUTES.
* emit-rtl.c (operand_subword, change_address): Likewise.
* explow.c (stabilize): Likewise.
* expr.c (protect_from_queue, emit_move_insn_1): Likewise.
* integrate.c (copy_rtx_and_substitute): Likewise.
* combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
when calling MEM_COPY_ATTRIBUTES.
(make_extraction, simplify_shift_const, gen_lowpart_for_combine):
Likewise.
* cse.c (gen_lowpart_if_possible): Likewise.
* function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
* optabs.c (gen_move_insn): Likewise.
* recog.c (validate_replace_rtx_1): Likewise.
* simplify-rtx.c (add_mem_for_addr): Likewise.
* stmt.c (expand_anon_union_decl): Likewise.
* config/arm/arm.md: Likewise.
* config/h8300/h7300.c (fix_bit_operand): Likewise.
* config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
(block_move_no_loop, block_move_sequence): Likewise.
* config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
* config/alpha/alpha.c (get_aligned_mem): Likewise.
Clear MEM_ALIAS_SET.
* final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
MEM_COPY_ATTRIBUTES.

From-SVN: r33665

24 years agoconfigure.in (i[34567]86-*-isc*): Add t-i386bare to suppress libgcc1.
Robert Lipe [Thu, 4 May 2000 12:59:23 +0000 (12:59 +0000)]
configure.in (i[34567]86-*-isc*): Add t-i386bare to suppress libgcc1.

2000-05-03  Robert Lipe <robertlipe@usa.net>

        * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
        to suppress libgcc1.
        (i[34567]86-*-sco3.2v5*) Likewise.
        (i[34567]86-*-sco3.2v4*) Likewise.
        (i[34567]86-*-sco) Likewise.
        (i[34567]86-*-solaris2) Likewise.
        (i[34567]86-*-sysv5*) Likewise.
        (i[34567]86-*-sysv4*) Likewise.
        (i[34567]86-*-udk*) Likewise.
        (i[34567]86-*-sysv*) Likewise.

From-SVN: r33664

24 years agoUndo my accidental checkin.
Jan Hubicka [Thu, 4 May 2000 12:16:27 +0000 (12:16 +0000)]
Undo my accidental checkin.

From-SVN: r33663

24 years agoDaily bump.
Jeff Law [Thu, 4 May 2000 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r33662

24 years agotry to fix cvsweb
Jeff Law [Thu, 4 May 2000 05:30:36 +0000 (23:30 -0600)]
try to fix cvsweb

From-SVN: r33661

24 years agocpphash.h (U): New define, to correct type of string constants.
Zack Weinberg [Thu, 4 May 2000 04:38:01 +0000 (04:38 +0000)]
cpphash.h (U): New define, to correct type of string constants.

gcc:
* cpphash.h (U): New define, to correct type of string constants.
(ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
routines, to do casts when passing unsigned strings to libc.
* cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.

* cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
* cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
* cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
* cpplex.c (parse_ifdef, parse_include, validate_else): Make
second argument an U_CHAR *.

* cppinit.c (builtin_array): Make name and value U_CHAR *, add
length field, clean up initializer.
(ISTABLE): Add __extension__ to designated-
initializers version.
* cpplex.c (CHARTAB): Likewise.

* mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
case so the file won't be empty.

include:
* symcat.h: Remove #endif label.

From-SVN: r33657

24 years ago* gcc.dg/20000503-1.c: New test.
Robert Lipe [Thu, 4 May 2000 03:02:24 +0000 (03:02 +0000)]
* gcc.dg/20000503-1.c: New test.

From-SVN: r33656

24 years agobb-reorder.c (struct reorder_block_def): Member succ removed.
Jason Eckhardt [Thu, 4 May 2000 02:37:49 +0000 (02:37 +0000)]
bb-reorder.c (struct reorder_block_def): Member succ removed.

Wed May  3 21:01:46 2000  Jason Eckhardt  <jle@cygnus.com>

        * bb-reorder.c (struct reorder_block_def): Member succ removed.
        (REORDER_BLOCK_SUCC): Removed.
        (enum reorder_skip_type): Removed.
        (skip_insns_between_block): Renamed to skip_insns_after_block.
        Removed second argument. Removed dead code and cleaned up.
        (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
        (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
        second parameter to skip_insns_after_block.

From-SVN: r33655

24 years agoconfigure.in (i[34567]86-*-isc*): Add t-i386bare to suppress libgcc1.
Robert Lipe [Thu, 4 May 2000 02:26:11 +0000 (02:26 +0000)]
configure.in (i[34567]86-*-isc*): Add t-i386bare to suppress libgcc1.

Regenerate:

        * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
        to suppress libgcc1.
        (i[34567]86-*-sco3.2v5*) Likewise.
        (i[34567]86-*-sco3.2v4*) Likewise.
        (i[34567]86-*-sco) Likewise.
        (i[34567]86-*-solaris2) Likewise.
        (i[34567]86-*-sysv5*) Likewise.
        (i[34567]86-*-sysv4*) Likewise.
        (i[34567]86-*-udk*) Likewise.
        (i[34567]86-*-sysv*) Likewise.

From-SVN: r33654

24 years agoconfigure.in (i[34567]86-*-isc*): Add t-i386bare to suppress libgcc1.
Robert Lipe [Thu, 4 May 2000 02:25:32 +0000 (02:25 +0000)]
configure.in (i[34567]86-*-isc*): Add t-i386bare to suppress libgcc1.

        * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
        to suppress libgcc1.
        (i[34567]86-*-sco3.2v5*) Likewise.
        (i[34567]86-*-sco3.2v4*) Likewise.
        (i[34567]86-*-sco) Likewise.
        (i[34567]86-*-solaris2) Likewise.
        (i[34567]86-*-sysv5*) Likewise.
        (i[34567]86-*-sysv4*) Likewise.
        (i[34567]86-*-udk*) Likewise.
        (i[34567]86-*-sysv*) Likewise.

From-SVN: r33653

24 years agoRemove conflict indicator
Richard Kenner [Thu, 4 May 2000 00:38:04 +0000 (20:38 -0400)]
Remove conflict indicator

From-SVN: r33652

24 years ago* tree.c (staticp, case LABEL_DECL): New case.
Richard Kenner [Thu, 4 May 2000 00:36:20 +0000 (20:36 -0400)]
* tree.c (staticp, case LABEL_DECL): New case.

From-SVN: r33651

24 years ago* mklibgcc1.in: Fix typo last change.
Richard Henderson [Wed, 3 May 2000 23:56:03 +0000 (16:56 -0700)]
* mklibgcc1.in: Fix typo last change.

From-SVN: r33650

24 years ago* Makefile.in (start.encap): Do not depend on LIBGCC1.
Richard Henderson [Wed, 3 May 2000 23:18:47 +0000 (16:18 -0700)]
* Makefile.in (start.encap): Do not depend on LIBGCC1.

From-SVN: r33649

24 years agoMakefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
Jason Merrill [Wed, 3 May 2000 22:45:31 +0000 (22:45 +0000)]
Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.

        * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
        (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
        (GCC_CFLAGS): Use it.
        (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
        * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
        objc/Make-lang.in: Use it.

From-SVN: r33648

24 years agocp-tree.def (THUNK_DECL): Remove.
Mark Mitchell [Wed, 3 May 2000 22:25:21 +0000 (22:25 +0000)]
cp-tree.def (THUNK_DECL): Remove.

* cp-tree.def (THUNK_DECL): Remove.
* cp-tree.h (DECL_THUNK_P): New macro.
(DECL_NON_THUNK_FUNCTION_P): Likewise.
(DECL_EXTERN_C_FUNCTION_P): Likewise.
(SET_DECL_THUNK_P): Likewise.
(DELTA_FROM_VTABLE_ENTRY): Use DECL_THUNK_P.
(FNADDR_FROM_VTABLE_ENTRY): Likewise.
(DECL_MAIN_P): Use DECL_EXTERN_C_FUNCTION_P.
* decl.c (decls_match): Use DECL_EXTERN_C_P.
(duplicate_decls): Likewise.
(pushdecl): Likewise.  Adjust thunk handling.
(grokfndecl): Use DECL_EXTERN_C_P.
* decl2.c (mark_vtable_entries): Use DECL_THUNK_P.
* dump.c (dequeue_and_dump): Remove THUNK_DECL handling.
* except.c (nothrow_libfn_p): Use DECL_EXTERN_C_P.
* expr.c (cplus_expand_expr): Remove THUNK_DECL handling.
* method.c (make_thunk): Use SET_DECL_THUNK_P.  Set
DECL_NO_STATIC_CHAIN.
(emit_thunk): Don't play games with TREE_CODE on thunks.  Don't
set DECL_DESTRUCTOR_P or DECL_CONSTRUCTOR_P on a thunk.
* search.c (covariant_return_p): Remove THUNK_DECL handling.
* ir.texi: Update.

From-SVN: r33647

24 years agoFix typo
Mark Mitchell [Wed, 3 May 2000 22:19:14 +0000 (22:19 +0000)]
Fix typo

From-SVN: r33646

24 years ago* config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
Jason R Thorpe [Wed, 3 May 2000 21:17:35 +0000 (21:17 +0000)]
* config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.

From-SVN: r33645

24 years agomklibgcc.in: Restrict OLDCC=GCC test to native.
Richard Henderson [Wed, 3 May 2000 21:00:49 +0000 (14:00 -0700)]
mklibgcc.in: Restrict OLDCC=GCC test to native.

        * mklibgcc.in: Restrict OLDCC=GCC test to native.  Equate
        LIBGCC1 empty with libgcc1.null.

From-SVN: r33644

24 years agoFix for ia64-linux misoptimization.
Jim Wilson [Wed, 3 May 2000 20:04:31 +0000 (20:04 +0000)]
Fix for ia64-linux misoptimization.

* fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
change.

From-SVN: r33643

24 years agoTestcase for ia64-linux extract_muldiv bug.
Jim Wilson [Wed, 3 May 2000 20:03:21 +0000 (20:03 +0000)]
Testcase for ia64-linux extract_muldiv bug.

* execute/20000503-1.c: New test for extract_muldiv bug.

From-SVN: r33642

24 years agotree.h (tree_common): Add bounded_flag member.
Greg McGary [Wed, 3 May 2000 19:58:42 +0000 (19:58 +0000)]
tree.h (tree_common): Add bounded_flag member.

* tree.h (tree_common): Add bounded_flag member.  Remove
inaccurate comment about number of remaining bits.
(BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
(TYPE_QUAL_BOUNDED): New constant.
(TYPE_QUALS): Handle bounded qualifier.
(TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
(TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
TYPE_AMBIENT_BOUNDEDNESS): New macros.
(MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
(tree_type): Add pointer_depth member.  Remove
inaccurate comment about number of remaining bits.
(DECL_POINTER_DEPTH): Add macro.
(tree_decl): Add pointer_depth member.

From-SVN: r33641

24 years agoavr-protos.h (test_hard_reg_class): Declared.
Denis Chertykov [Wed, 3 May 2000 19:20:09 +0000 (19:20 +0000)]
avr-protos.h (test_hard_reg_class): Declared.

* config/avr/avr-protos.h (test_hard_reg_class): Declared.
* config/avr/avr.c (ashrhi3_out): optimized shift by 15.
(lshrhi3_out): Likewise.
(ashrsi3_out): bugfix in shift by 8.
(test_hard_reg_class): New function.
* config/avr/avr.md: Bugfix inside conditions in peepholes.
(ashlhi3): removed define_expand of this pattern.
(*ashlhi3_insn): renamed to ashlhi3.
(ashlsi3): removed define_expand of this pattern.
(*ashlsi3_insn): renamed to ashlsi3.
(ashrqi3): removed define_expand of this pattern.
(*ashrqi3_insn): renamed to ashrqi3.
(ashrhi3): removed define_expand of this pattern.
(*ashrhi3_insn): renamed to ashrhi3.
(ashrsi3): removed define_expand of this pattern.
(*ashrsi3_insn): renamed to ashrsi3.
(lshrhi3): removed define_expand of this pattern.
(*lshrhi3_insn): renamed to lshrhi3.
(lshrsi3): removed define_expand of this pattern.
(*lshrsi3_insn): renamed to lshrsi3.

From-SVN: r33640

24 years agoReplace inclusion of <stdio.h> with "system.h"
Rodney Brown [Wed, 3 May 2000 18:49:17 +0000 (18:49 +0000)]
Replace inclusion of <stdio.h> with "system.h"

From-SVN: r33639

24 years agoPatches from David Mosberger, and a patch to make bootstrap work.
Jim Wilson [Wed, 3 May 2000 18:46:05 +0000 (11:46 -0700)]
Patches from David Mosberger, and a patch to make bootstrap work.

* config/ia64/ia64.c (ia64_encode_section_info): Add check for
TREE_ASM_WRITTEN.
* config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
if -mauto-pic is on.
...

From-SVN: r33638

24 years agoMakefile.in (STAGESTUFF): Add libgcc libgcc.mk.
Richard Henderson [Wed, 3 May 2000 18:21:49 +0000 (11:21 -0700)]
Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.

        * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
        (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
        (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
        (mklibgcc, libgcc.mk): New targets.
        (libgcc.a): Use libgcc.mk.
        (stmp-multilib): Likewise.
        (stmp-multilib-sub): Remove.
        (mostlyclean): Don't delete libgcc2 temp files.
        * configure.in (AC_PROG_CC_C_O): Add.
        (NO_MINUS_C_MINUS_O): Substitute it.
        (all_outputs): Add mklibgcc.
        * mklibgcc.in: New file.

From-SVN: r33637

24 years agoexpr.c (build_java_jsr): Use emit_jump, not expand_goto.
Tom Tromey [Wed, 3 May 2000 18:09:27 +0000 (18:09 +0000)]
expr.c (build_java_jsr): Use emit_jump, not expand_goto.

* expr.c (build_java_jsr): Use emit_jump, not expand_goto.

* javaop.h (WORD_TO_INT): New function.
(IMMEDIATE_s4): Use WORD_TO_INT.
* jcf.h (JPOOL_INT): Ditto.

* gjavah.c (decode_signature_piece): Don't treat `$' as namespace
separator.

From-SVN: r33636

24 years agocppexp.c (op_t): Make an int.
Jason Merrill [Wed, 3 May 2000 18:06:26 +0000 (18:06 +0000)]
cppexp.c (op_t): Make an int.

        * cppexp.c (op_t): Make an int.

        * rtlanal.c (dead_or_set_regno_p): Remove unused variable.

        * varasm.c (initializer_constant_valid_p): Fix parenthesis.

        * gensupport.c (process_rtx): Fix macros used.

From-SVN: r33635

24 years agoflow.c (propagate_one_insn): Also don't PROP_REG_INFO for call-clobbered registers...
Richard Henderson [Wed, 3 May 2000 17:59:25 +0000 (10:59 -0700)]
flow.c (propagate_one_insn): Also don't PROP_REG_INFO for call-clobbered registers of a call.

        * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
        call-clobbered registers of a call.

From-SVN: r33634

24 years agogensupport.c: New file.
Clinton Popetz [Wed, 3 May 2000 17:45:26 +0000 (17:45 +0000)]
gensupport.c: New file.

* gensupport.c: New file.
* gensupport.h: New file.
* Makefile.in (HOST_RTL): Depend on gensupport.
(gensupport.o) New rule.
* genattr.c: Use gensupport for reading .md files.
* genattrtab.c: Ditto.
* gencodes.c: Ditto.
* genconfig.c: Ditto.
* genemit.c: Ditto.
* genextract.c: Ditto.
* genflags.c: Ditto.
* genopinit.c: Ditto.
* genoutput.c: Ditto.
* genpeep.c: Ditto.
* genrecog.c: Ditto.
* rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
* md.texi (Insn Splitting): Document define_insn_and_split.

From-SVN: r33633

24 years agoflow.c (verify_flow_info): Added two more sanity checks.
Jason Eckhardt [Wed, 3 May 2000 16:39:55 +0000 (16:39 +0000)]
flow.c (verify_flow_info): Added two more sanity checks.

Tue May  2 00:20:30 2000  Jason Eckhardt  <jle@cygnus.com>

        * flow.c (verify_flow_info): Added two more sanity checks. The
        first checks that the blocks are numbered consecutively. The second
        checks that n_basic_blocks is actually equal to the number of
        basic blocks in the insn chain.

From-SVN: r33632

24 years agofooter.html: Update to see if it takes effect.
Phil Edwards [Wed, 3 May 2000 16:11:03 +0000 (16:11 +0000)]
footer.html: Update to see if it takes effect.

2000-05-03  Phil Edwards  <pme@sourceware.cygnus.com>
            Felix Natter <fnatter@gmx.net>

* docs/footer.html:  Update to see if it takes effect.
* docs/thanks.html:  More people.
* docs/17_intro/headers_cc.txt:  Copy from testsuite, since that can't
  be seen from the web pages.  Rename for browser-friendliness...
* docs/17_intro/howto.html:  ...and update here.
* docs/17_intro/porting-howto.html:  Changes from Felix.
* docs/gccrebuild.html:  Mention v3->egcs move.
* docs/faq/index.html:  Ditto.  Also misc tweaks and URL updates.
* docs/faq/index.txt:  Regenerate.

Co-Authored-By: Felix Natter <fnatter@gmx.net>
From-SVN: r33631

24 years agocpplib.h: Add accessor macros for token lists.
Zack Weinberg [Wed, 3 May 2000 15:35:47 +0000 (15:35 +0000)]
cpplib.h: Add accessor macros for token lists.

* cpplib.h: Add accessor macros for token lists.
* cpplib.c, cpphash.c, cpplex.c: Use them.

From-SVN: r33630

24 years agoexpr.c (expand_expr, [...]): Don't check for checking memory usage if not in a function.
Richard Kenner [Wed, 3 May 2000 13:20:48 +0000 (13:20 +0000)]
expr.c (expand_expr, [...]): Don't check for checking memory usage if not in a function.

* expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
memory usage if not in a function.
* varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
return address if static.

From-SVN: r33629

24 years agoAdd missing blank
Richard Kenner [Wed, 3 May 2000 13:17:29 +0000 (09:17 -0400)]
Add missing blank

From-SVN: r33628

24 years agoifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest whether address may trap.
Jan Hubicka [Wed, 3 May 2000 11:16:35 +0000 (11:16 +0000)]
ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest whether address may trap.

* ifcvt.c (noce_try_cmove_arith):  Use may_trap_p to thest
whether address may trap.

From-SVN: r33627

24 years agoDaily bump.
Jeff Law [Wed, 3 May 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r33624

24 years agobb-reorder (chain_reorder_blocks): Changed code to test for EDGE_FALLTHRU rather...
Jason Eckhardt [Wed, 3 May 2000 04:41:04 +0000 (04:41 +0000)]
bb-reorder (chain_reorder_blocks): Changed code to test for EDGE_FALLTHRU rather than making erroneous assumption...

Tue May  2 23:38:37 2000  Jason Eckhardt  <jle@cygnus.com>

* bb-reorder (chain_reorder_blocks): Changed code to test for
EDGE_FALLTHRU rather than making erroneous assumption that the
first outgoing edge is the fall-through edge.

From-SVN: r33623

24 years agospelling tweak
Jason Merrill [Wed, 3 May 2000 01:35:11 +0000 (21:35 -0400)]
spelling tweak

From-SVN: r33622

24 years agochange MIPS varargs ABI in config/mips/mips.c
Donald Lindsay [Wed, 3 May 2000 01:22:38 +0000 (01:22 +0000)]
change MIPS varargs ABI in config/mips/mips.c

From-SVN: r33621

24 years agobb-reorder.c (struct reorder_block_def): Remove members end, block_begin, and block_end.
Jason Eckhardt [Wed, 3 May 2000 00:20:24 +0000 (00:20 +0000)]
bb-reorder.c (struct reorder_block_def): Remove members end, block_begin, and block_end.

Tue May  2 19:18:43 2000  Jason Eckhardt  <jle@cygnus.com>

        * bb-reorder.c (struct reorder_block_def): Remove members end,
        block_begin, and block_end.
        (REORDER_BLOCK_OLD_END): Delete.
        (REORDER_BLOCK_BEGIN): Delete.
        (REORDER_BLOCK_END): Delete.
        (chain_reorder_blocks): Remove dead code.

From-SVN: r33620

24 years agobb-reorder.c (remove_scope_notes): Check for both types of scope notes as the end...
Jason Eckhardt [Tue, 2 May 2000 22:05:06 +0000 (22:05 +0000)]
bb-reorder.c (remove_scope_notes): Check for both types of scope notes as the end of a basic block before deleting.

Tue May  2 17:06:53 2000  Jason Eckhardt  <jle@cygnus.com>

* bb-reorder.c (remove_scope_notes): Check for both types of scope
notes as the end of a basic block before deleting.

From-SVN: r33619

24 years agooops
Jason Merrill [Tue, 2 May 2000 22:04:16 +0000 (18:04 -0400)]
oops

From-SVN: r33618

24 years agofinal.c (final_start_function): Fix spelling of "necessary".
Mumit Khan [Tue, 2 May 2000 21:52:27 +0000 (21:52 +0000)]
final.c (final_start_function): Fix spelling of "necessary".

2000-05-02  Mumit Khan  <khan@xraylith.wisc.edu>

* final.c (final_start_function): Fix spelling of "necessary".

From-SVN: r33617

24 years agotoplev.c (debug_ignore_block): Return int.
Jason Merrill [Tue, 2 May 2000 20:43:24 +0000 (20:43 +0000)]
toplev.c (debug_ignore_block): Return int.

        * toplev.c (debug_ignore_block): Return int.
        * dwarf2out.c (dwarf2out_ignore_block): Likewise.
        * toplev.h, dwarf2out.h: Adjust.
        * emit-rtl.c (remove_unnecessary_notes): Test return value.

        * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
        * toplev.c, final.c, rtl.h: Adjust.

From-SVN: r33616

24 years agoclass.c (add_method_1): Set both DECL_EXTERNAL and METHOD_NATIVE on native function.
Tom Tromey [Tue, 2 May 2000 20:32:31 +0000 (20:32 +0000)]
class.c (add_method_1): Set both DECL_EXTERNAL and METHOD_NATIVE on native function.

* class.c (add_method_1): Set both DECL_EXTERNAL and METHOD_NATIVE
on native function.
* jcf-parse.c (parse_class_file): Call build_jni_stub for native
JNI methods.
* expr.c (build_jni_stub): New function.
* lang-specs.h: -fjni and -femit-class-file are incompatible.
* parse.c: Rebuilt.
* parse.y (java_complete_expand_methods): Expand a native method
and call build_jni_stub if -fjni given.
* lang-options.h: Document -fjni.
* lang.c (flag_jni): New global.
(lang_f_options): Added `jni' entry.
* java-tree.h (soft_lookupjnimethod_node,
soft_getjnienvnewframe_node, soft_jnipopsystemframe_node):
Declare.
(flag_jni): Declare.
(build_jni_stub): Declare.
(struct lang_decl): Added `native' flag.
(METHOD_NATIVE): Redefined to use `native' field of lang specific
structure.
* decl.c (soft_lookupjnimethod_node, soft_getjnienvnewframe_node,
soft_jnipopsystemframe_node): New globals.
(init_decl_processing): Set them.  _Jv_InitClass only takes one
argument.

* java-tree.def: Put into `C' mode.

From-SVN: r33615

24 years agoaclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
Zack Weinberg [Tue, 2 May 2000 19:09:24 +0000 (19:09 +0000)]
aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.

* aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
* configure.in: Look for makeinfo in the unified tree, then
for a system makeinfo which is sufficiently new.
* Makefile.in: If configure says makeinfo is too old, don't
build or install Info documentation.

From-SVN: r33614

24 years agocpphash.c (collect_params): Fix off-by-one error.
Zack Weinberg [Tue, 2 May 2000 18:10:52 +0000 (18:10 +0000)]
cpphash.c (collect_params): Fix off-by-one error.

* cpphash.c (collect_params): Fix off-by-one error.
(dump_hash_helper): Dump all four macro nodetypes.

From-SVN: r33613

24 years agocpphash.c (trad_stringify): Adjust p after stringification as well.
Jakub Jelinek [Tue, 2 May 2000 16:33:44 +0000 (18:33 +0200)]
cpphash.c (trad_stringify): Adjust p after stringification as well.

* cpphash.c (trad_stringify): Adjust p after stringification as
well.

* gcc.dg/cpp-tradstringify.c: New test.

From-SVN: r33612

24 years agocpplib.h (CPP_POP, [...]): Delete.
Zack Weinberg [Tue, 2 May 2000 16:09:12 +0000 (16:09 +0000)]
cpplib.h (CPP_POP, [...]): Delete.

* cpplib.h (CPP_POP, parse_cleanup_t): Delete.
(cpp_buffer): Remove cleanup, seen_eof, manual_pop members.

* cppfiles.c (file_cleanup): Delete.
* cpphash.c (macro_cleanup): Delete.
(collect_objlike_expansion, collect_funlike_expansion,
macarg, scan_arguments): Remove CPP_POP case.

* cpplex.c (null_cleanup): Delete.
(cpp_pop_buffer): Do the work that was done in the cleanups
here.  Call _cpp_unwind_if_stack from here.
(_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
cpp_scan_buffer): Run until we see CPP_EOF and the top of
stack is the buffer _below_ the one we stacked.
(cpp_get_token): Always pop an exhausted buffer.  Return
CPP_EOF unless it's a macro buffer.  Don't call _cpp_handle_eof.
* cpplib.c (skip_if_group): Don't call cpp_get_token to
increment the line number.
(_cpp_handle_eof): Rename to _cpp_unwind_if_stack.

* fix-header.c (read_scan_file) [parsing getchar()]: Run until
we see CPP_EOF and the top of stack is the buffer _below_ the
one we stacked.
* scan-decls.c: Likewise.

From-SVN: r33611

24 years ago20000502-1.c: New test.
Jakub Jelinek [Tue, 2 May 2000 15:17:08 +0000 (17:17 +0200)]
20000502-1.c: New test.

* gcc.c-torture/compile/20000502-1.c: New test.
* g++.old-deja/g++.other/align.C: New test.

From-SVN: r33610