gcc.git
23 years agoBigInteger.java (setShiftRight): Only do negative shift if count != 0.
Hans Boehm [Wed, 17 Jan 2001 01:00:53 +0000 (01:00 +0000)]
BigInteger.java (setShiftRight): Only do negative shift if count != 0.

2001-01-16  Hans Boehm  <hans_boehm@hp.com>

* java/math/BigInteger.java (setShiftRight): Only do negative shift
if count != 0.

From-SVN: r39080

23 years agoexpr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after having called make_d...
Jeff Sturm [Wed, 17 Jan 2001 00:39:09 +0000 (00:39 +0000)]
expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after having called make_decl_rtl.

2001-01-16  Jeff Sturm  <jeff.sturm@appnet.com>

        * expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after
        having called make_decl_rtl.

(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01369.html)

From-SVN: r39079

23 years agoflow.c (propagate_on_insn): Make trying to delete a prologue or epilogue insn an...
Richard Kenner [Tue, 16 Jan 2001 23:10:36 +0000 (23:10 +0000)]
flow.c (propagate_on_insn): Make trying to delete a prologue or epilogue insn an ICE, not a warning.

* flow.c (propagate_on_insn): Make trying to delete a prologue
or epilogue insn an ICE, not a warning.  Allow doing this if
the current function returns with stack pointer depressed.

From-SVN: r39078

23 years agocombine.c (try_combine): If i3_subst_into_i2, properly check for I3 having more than...
Richard Kenner [Tue, 16 Jan 2001 22:21:16 +0000 (22:21 +0000)]
combine.c (try_combine): If i3_subst_into_i2, properly check for I3 having more than one SET.

* combine.c (try_combine): If i3_subst_into_i2, properly check for
I3 having more than one SET.

From-SVN: r39077

23 years ago* invoke.texi: Document IA-64 options.
Jim Wilson [Tue, 16 Jan 2001 21:45:34 +0000 (21:45 +0000)]
* invoke.texi: Document IA-64 options.

From-SVN: r39076

23 years agoDelete A step Itanium support.
Jim Wilson [Tue, 16 Jan 2001 21:37:08 +0000 (21:37 +0000)]
Delete A step Itanium support.

* config/ia64/ia64.c (ia64_print_operand_address): Delete 'B' support.
(fixup_errata): Delete TARGET_A_STEP use.
* config/ia64/ia64.h (MASK_A_STEP, TARGET_A_STEP): Delete.
(TARGET_SWITCHES): Delete -ma-step option.
* config/ia64/ia64.md (all FP patterns): Delete %B0.
(movqicc_astep, movqi_internal_astep, movhicc_astep,
movhi_internal_astep, movsicc_astep, movsi_internal_astep, movdi+1,
movdi_internal_astep, movsfcc_astep, movsf_internal_astep,
movdfcc_astep, movdf_internal_astep, movtfcc_astep,
movtf_internal_astep, cmovdi_internal_astep, cmovsi_internal_astep):
Delete.
(movqi_internal, movhi_internal, movsi_internal, movdi_internal,
movsf_internal, movdf_internal, movtf_internal, cmovdi_internal,
cmovsi_internal): Delete ! TARGET_A_STEP check.

From-SVN: r39075

23 years agogcc.texi (Bug Lists): Do not mention newsgroups nor the possibility to report bugs...
Gerald Pfeifer [Tue, 16 Jan 2001 19:33:50 +0000 (20:33 +0100)]
gcc.texi (Bug Lists): Do not mention newsgroups nor the possibility to report bugs via postal mail.

* gcc.texi (Bug Lists): Do not mention newsgroups nor the
possibility to report bugs via postal mail. Change a URL and
merge in a nearly duplicate statement...
(Bug Reporting): ...from here.
(Service): Refer to the Bug Reporting section instead of
duplicating an URL.
(Contributing): Remove trivial explanations concerning snapshots.

From-SVN: r39074

23 years ago* cppmain.c (general_init): Don't use ANSI prototype.
Alan Modra [Tue, 16 Jan 2001 18:40:56 +0000 (18:40 +0000)]
* cppmain.c (general_init): Don't use ANSI prototype.

From-SVN: r39073

23 years ago* gcc.c (cpp_options): Added `*' to specs for -MF, -MQ, and -MT.
Tom Tromey [Tue, 16 Jan 2001 18:02:01 +0000 (18:02 +0000)]
* gcc.c (cpp_options): Added `*' to specs for -MF, -MQ, and -MT.

From-SVN: r39072

23 years agocvt.c (ocp_convert): Handle vector type conversion
Daniel Berlin [Tue, 16 Jan 2001 17:57:34 +0000 (17:57 +0000)]
cvt.c (ocp_convert): Handle vector type conversion

2001-01-16 Daniel Berlin <dberlin@redhat.com>

* cvt.c (ocp_convert): Handle vector type conversion
* typeck2.c (digest_init): Handle vector type initializations

From-SVN: r39071

23 years agoi386.h: Fix comment typo.
Richard Henderson [Tue, 16 Jan 2001 17:32:26 +0000 (09:32 -0800)]
i386.h: Fix comment typo.

        * config/i386/i386.h: Fix comment typo.
        * config/i386/i386.md (shift+compare pattern names): s/cmpno/cmp/
        (ashr+compare patterns): Match CCGOCmode not CCNOmode.

From-SVN: r39070

23 years agog++spec.c: Don't add libraries needlessly if -fsyntax-only was given.
Phil Edwards [Tue, 16 Jan 2001 16:10:47 +0000 (16:10 +0000)]
g++spec.c: Don't add libraries needlessly if -fsyntax-only was given.

2001-01-16  Phil Edwards  <pme@sources.redhat.com>

* g++spec.c:  Don't add libraries needlessly if -fsyntax-only
  was given.

From-SVN: r39069

23 years agogcc.c: Revert previous -fsyntax-only-related change; move to cp/g++spec.c.
Phil Edwards [Tue, 16 Jan 2001 16:09:07 +0000 (16:09 +0000)]
gcc.c: Revert previous -fsyntax-only-related change; move to cp/g++spec.c.

2001-01-16  Phil Edwards  <pme@sources.redhat.com>

* gcc.c:  Revert previous -fsyntax-only-related change; move
  to cp/g++spec.c.

From-SVN: r39068

23 years agoi386.c (fcmov_comparison_operator): Only initialize inmode after checking GET_CODE...
Jakub Jelinek [Tue, 16 Jan 2001 15:57:00 +0000 (16:57 +0100)]
i386.c (fcmov_comparison_operator): Only initialize inmode after checking GET_CODE (op).

* config/i386/i386.c (fcmov_comparison_operator): Only initialize
inmode after checking GET_CODE (op).

From-SVN: r39067

23 years agoMinor whitespace changes
Richard Kenner [Tue, 16 Jan 2001 14:29:08 +0000 (09:29 -0500)]
Minor whitespace changes

From-SVN: r39066

23 years agoflow.c (struct propagate_block_info): Add mem_set_list_len.
Richard Henderson [Tue, 16 Jan 2001 13:57:17 +0000 (05:57 -0800)]
flow.c (struct propagate_block_info): Add mem_set_list_len.

        * flow.c (struct propagate_block_info): Add mem_set_list_len.
        (MAX_MEM_SET_LIST_LEN): New.
        (propagate_one_insn): Update mem_set_list_len.
        (invalidate_mems_from_autoinc): Likewise.
        (invalidate_mems_from_set): Likewise.
        (mark_used_regs): Likewise.
        (init_propagate_block_info): Likewise.  Stop collecting memories
        when we reach MAX_MEM_SET_LIST_LEN.
        (mark_set_1): Likewise.

From-SVN: r39065

23 years agounroll.c (precondition_loop_p): Fail if no iteration variable found.
Richard Henderson [Tue, 16 Jan 2001 11:15:49 +0000 (03:15 -0800)]
unroll.c (precondition_loop_p): Fail if no iteration variable found.

        * unroll.c (precondition_loop_p): Fail if no iteration
        variable found.

From-SVN: r39064

23 years agoexception_support.cc (__cp_pop_exception): Fix uninitialized thinko in last change.
Nathan Sidwell [Tue, 16 Jan 2001 09:45:03 +0000 (09:45 +0000)]
exception_support.cc (__cp_pop_exception): Fix uninitialized thinko in last change.

* libsupc++/exception_support.cc (__cp_pop_exception): Fix
uninitialized thinko in last change.

From-SVN: r39063

23 years agoDaily bump.
Jeff Law [Tue, 16 Jan 2001 08:45:08 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r39062

23 years agoexception_support.cc (__cp_pop_exception): Change prototype.
Mark Mitchell [Tue, 16 Jan 2001 08:30:20 +0000 (08:30 +0000)]
exception_support.cc (__cp_pop_exception): Change prototype.

* libsupc++/exception_support.cc (__cp_pop_exception): Change
prototype.

From-SVN: r39061

23 years agoC++STYLE (classname): Add more existing and stylish patterns.
Benjamin Kosnik [Tue, 16 Jan 2001 07:58:40 +0000 (07:58 +0000)]
C++STYLE (classname): Add more existing and stylish patterns.

2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>

* docs/html/17_intro/C++STYLE (classname): Add more existing
and stylish patterns.

libstdc++/944
* include/bits/istream.tcc (istream::sentry::sentry()): Set
failbit if the state of the stream is not good.
* testsuite/27_io/istream_sentry.cc (test02): Add test.
* testsuite/27_io/istream_manip.cc (test01): Modify.

libstdc++/1019
reported by Paolo Carlini <pcarlini@unitus.it>
* include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
* testsuite/21_strings/inserters_extractors.cc (test08): Add test.

libstdc++/1057
* include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
* include/bits/streambuf.tcc (xsputn): Remove outside if clause.
(xsgetn): Same. Simplify.
* testsuite/27_io/streambuf.cc (test04): Add testcases.

reported by Larry Evans <jcampbell3@prodigy.net>
* include/bits/streambuf.tcc (streambuf::xsputn): Just check for
equality with eof on returned value from overflow.

From-SVN: r39060

23 years agoC++STYLE (classname): Add more existing and stylish patterns.
Benjamin Kosnik [Tue, 16 Jan 2001 07:55:26 +0000 (07:55 +0000)]
C++STYLE (classname): Add more existing and stylish patterns.

2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>

* docs/html/17_intro/C++STYLE (classname): Add more existing
and stylish patterns.

libstdc++/944
* include/bits/istream.tcc (istream::sentry::sentry()): Set
failbit if the state of the stream is not good.
* testsuite/27_io/istream_sentry.cc (test02): Add test.
* testsuite/27_io/istream_manip.cc (test01): Modify.

libstdc++/1019
reported by Paolo Carlini <pcarlini@unitus.it>
* include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
* testsuite/21_strings/inserters_extractors.cc (test08): Add test.

libstdc++/1057
* include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
* include/bits/streambuf.tcc (xsputn): Remove outside if clause.
(xsgetn): Same. Simplify.
* testsuite/27_io/streambuf.cc (test04): Add testcases.

reported by Larry Evans <jcampbell3@prodigy.net>
* include/bits/streambuf.tcc (streambuf::xsputn): Just check for
equality with eof on returned value from overflow.

From-SVN: r39059

23 years agogcc.c: When -fsyntax-only is given, do not complain about unused libraries.
Phil Edwards [Tue, 16 Jan 2001 06:06:29 +0000 (06:06 +0000)]
gcc.c: When -fsyntax-only is given, do not complain about unused libraries.

2001-01-16  Phil Edwards  <pme@sources.redhat.com>

* gcc.c:  When -fsyntax-only is given, do not complain about
  unused libraries.

From-SVN: r39058

23 years agore PR fortran/1636 (Format strings with identical numbers cause assembler error)
Toon Moene [Mon, 15 Jan 2001 23:55:39 +0000 (00:55 +0100)]
re PR fortran/1636 (Format strings with identical numbers cause assembler error)

2001-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>

* g77.f-torture/execute/20010116.[fx]: New test,
XFAIL on i?86-*-*.
* g77.f-torture/compile/20010115.f: Indicate it's
a test for PR fortran/1636.

From-SVN: r39056

23 years agoi386.c (asm_output_function_prefix): Remove.
Richard Henderson [Mon, 15 Jan 2001 23:43:10 +0000 (15:43 -0800)]
i386.c (asm_output_function_prefix): Remove.

        * config/i386/i386.c (asm_output_function_prefix): Remove.
        (ix86_asm_file_end): New.
        (load_pic_register): Generate pic_label_name into a
        staticly allocated buffer.
        * config/i386/i386-protos.h: Update.
        * config/i386/i386.h (ASM_OUTPUT_FUNCTION_PREFIX): Remove.
        (ASM_FILE_END): New.
        * config/i386/i386afe.h: New file.
        * config.gcc (i?86-*-elf) [tm_file]: Use it.
        (i?86-*-{freebsd,linux*,moss*}): Likewise.
        * config/elfos.h (ASM_FILE_END): Undef before redefinition.
        * config/i386/cygwin.h (ASM_FILE_END): Likewise.
        * config/i386/osfrose.h (ASM_FILE_END): Invoke ix86_asm_file_end.
        * config/i386/sco5.h (ASM_FILE_END): Likewise.
        * config/i386/winnt.c (i386_pe_asm_file_end): Likewise.

From-SVN: r39055

23 years agoMakefile.in (install-man): Remove explicit dependency on $(srcdir)/gcc.1.
Joseph Myers [Mon, 15 Jan 2001 23:34:43 +0000 (23:34 +0000)]
Makefile.in (install-man): Remove explicit dependency on $(srcdir)/gcc.1.

* Makefile.in (install-man): Remove explicit dependency on
$(srcdir)/gcc.1.

From-SVN: r39054

23 years agotexi2pod.pl: Fix regular expression for @r to avoid exponential recursion.
Joseph Myers [Mon, 15 Jan 2001 23:32:25 +0000 (23:32 +0000)]
texi2pod.pl: Fix regular expression for @r to avoid exponential recursion.

contrib:
* texi2pod.pl: Fix regular expression for @r to avoid exponential
recursion.  From Russ Allbery <rra@stanford.edu>.  Remove perl
version check.

gcc:
* configure.in, configure: Revert previous patch requiring perl
5.6.0.

From-SVN: r39053

23 years agonew option to disable guessing of branch prediction
Aldy Hernandez [Mon, 15 Jan 2001 22:45:32 +0000 (22:45 +0000)]
new option to disable guessing of branch prediction

From-SVN: r39052

23 years agoFix garbled ChangeLog entry
Phil Blundell [Mon, 15 Jan 2001 22:35:15 +0000 (22:35 +0000)]
Fix garbled ChangeLog entry

From-SVN: r39051

23 years ago* gcc.texi (Makefile): Add documentation for Makefile targets.
DJ Delorie [Mon, 15 Jan 2001 21:12:14 +0000 (16:12 -0500)]
* gcc.texi (Makefile): Add documentation for Makefile targets.

From-SVN: r39050

23 years agoarm.c (arm_finalize_pic): New arg "prologue".
Philip Blundell [Mon, 15 Jan 2001 19:54:42 +0000 (19:54 +0000)]
arm.c (arm_finalize_pic): New arg "prologue".

2001-01-15  Philip Blundell  <philb@gnu.org>

* config/arm/arm.c (arm_finalize_pic): New arg "prologue".
(is_pic): Delete.
* config/arm/arm-protos.h (arm_finalize_pic): Update prototype.
(is_pic): Delete declaration.
* config/arm/arm.h (FINALIZE_PIC): Update call to above.
(OUTPUT_INT_ADDR_CONST): Remove special handling of PIC address.
* config/arm/arm.md (builtin_setjmp_receiver): Likewise.

From-SVN: r39049

23 years ago* MAINTAINERS: Add myself as vax port maintainer.
John David Anglin [Mon, 15 Jan 2001 18:36:00 +0000 (18:36 +0000)]
* MAINTAINERS: Add myself as vax port maintainer.

From-SVN: r39048

23 years ago* gcc.dg/c90-float-1.c, gcc.dg/c99-float-1.c: New tests.
Joseph Myers [Mon, 15 Jan 2001 18:22:31 +0000 (18:22 +0000)]
* gcc.dg/c90-float-1.c, gcc.dg/c99-float-1.c: New tests.

From-SVN: r39047

23 years agoarm.c (use_return_insn): Don't try to determine the function type until after reload...
Richard Earnshaw [Mon, 15 Jan 2001 18:13:26 +0000 (18:13 +0000)]
arm.c (use_return_insn): Don't try to determine the function type until after reload has completed.

* arm.c (use_return_insn): Don't try to determine the function type
until after reload has completed.
(arm_output_epilogue): Don't adjust the sp value recovered from the
stack.
(emit_multi_reg_push): Don't record dwarf information for the pc.
* arm.md (eh_epilogue): The function type may have changed, so it
needs to be recalculated.
* arm/netbsd.h (DWARF2_UNWIND_INFO): Can now use dwarf2 unwind tables
on arm/netbsd.

From-SVN: r39046

23 years agowarn_summary (stageNfilter): Update for recent changes in bootstrap logic.
Kaveh R. Ghazi [Mon, 15 Jan 2001 17:53:57 +0000 (17:53 +0000)]
warn_summary (stageNfilter): Update for recent changes in bootstrap logic.

* warn_summary (stageNfilter): Update for recent changes in
bootstrap logic.

From-SVN: r39045

23 years agocomment
Jason Merrill [Mon, 15 Jan 2001 17:06:49 +0000 (12:06 -0500)]
comment

From-SVN: r39044

23 years agocom.c (ffecom_lookup_label): Set DECL_CONTEXT for FORMAT label to current_function_decl.
Mark Mitchell [Mon, 15 Jan 2001 16:52:49 +0000 (16:52 +0000)]
com.c (ffecom_lookup_label): Set DECL_CONTEXT for FORMAT label to current_function_decl.

2001-01-15  Mark Mitchell  <mark@codesourcery.com>

* com.c (ffecom_lookup_label): Set DECL_CONTEXT for FORMAT
label to current_function_decl.

From-SVN: r39042

23 years ago20010115.f: New test.
Toon Moene [Mon, 15 Jan 2001 16:48:35 +0000 (17:48 +0100)]
20010115.f: New test.

2001-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>

* g77.f-torture/compile/20010115.f: New test.

From-SVN: r39041

23 years agopt.c (check_nontype_parm): Rename to ...
Nathan Sidwell [Mon, 15 Jan 2001 16:18:43 +0000 (16:18 +0000)]
pt.c (check_nontype_parm): Rename to ...

* pt.c (check_nontype_parm): Rename to ...
(invalid_nontype_parm_type_p): ... here.
(process_template_parm): Adjust.
(convert_template_argument): Adjust.

From-SVN: r39040

23 years agoarm.md (cbranchsi4): Correct calculation of branch ranges.
Richard Earnshaw [Mon, 15 Jan 2001 16:17:08 +0000 (16:17 +0000)]
arm.md (cbranchsi4): Correct calculation of branch ranges.

* arm.md (cbranchsi4): Correct calculation of branch ranges.
(negated_cbranchsi4): Likewise.

From-SVN: r39039

23 years agoFix ommision from previous ChangeLog entry.
Richard Earnshaw [Mon, 15 Jan 2001 14:35:55 +0000 (14:35 +0000)]
Fix ommision from previous ChangeLog entry.

From-SVN: r39038

23 years agosemi.h (SUBTARGET_EXTRA_SPECS): Define.
Richard Earnshaw [Mon, 15 Jan 2001 14:30:38 +0000 (14:30 +0000)]
semi.h (SUBTARGET_EXTRA_SPECS): Define.

* config/arm/semi.h (SUBTARGET_EXTRA_SPECS): Define.
(SUBTARGET_EXTRA_ASM_SPEC): Define to empty string.
(ASM_SPEC): Call subtarget_extra_asm_spec.
* config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Define.
(SUBTARGET_EXTRA_ASM_SPEC): Define to empty string.
(ASM_SPEC): Call subtarget_extra_asm_spec.

From-SVN: r39037

23 years agoi386.c (ix86_init_builtins): Make i size_t to remove warnings.
Andreas Jaeger [Mon, 15 Jan 2001 13:19:31 +0000 (14:19 +0100)]
i386.c (ix86_init_builtins): Make i size_t to remove warnings.

2001-01-15  Andreas Jaeger  <aj@suse.de>

* config/i386/i386.c (ix86_init_builtins): Make i size_t to remove warnings.
(ix86_expand_builtin): Likewise.

* gencodes.c (output_predicate_decls): Make i size_t to avoid
warning about comparison between signed and unsigned.

From-SVN: r39036

23 years ago* expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
Geoffrey Keating [Mon, 15 Jan 2001 12:03:36 +0000 (12:03 +0000)]
* expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.

From-SVN: r39035

23 years agopt.c (check_nontype_parm): New function.
Nathan Sidwell [Mon, 15 Jan 2001 09:30:03 +0000 (09:30 +0000)]
pt.c (check_nontype_parm): New function.

cp:
* pt.c (check_nontype_parm): New function.
(process_template_parm): Use it.
(convert_template_argument): Use it.
(convert_nontype_argument, RECORD_TYPE): Assert it's a ptr to
member.
testsuite:
* g++.old-deja/g++.pt/nontype5.C: New test.

From-SVN: r39034

23 years agoDaily bump.
Jeff Law [Mon, 15 Jan 2001 08:45:17 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r39033

23 years agoAll files with updated copyright.
Alexandre Petit-Bianco [Mon, 15 Jan 2001 08:11:40 +0000 (08:11 +0000)]
All files with updated copyright.

2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

All files with updated copyright.
* prims.cc (class _Jv_PrimClass): Removed.
(init_prim_class): New function.
(DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
`_Jv_PrimClass' in primitive type declarations. Assign to the
value returned by `init_prim_class.'
* gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
primitive type declarations.
(JvPrimClass): Cast to `jclass' removed.
* java/lang/Class.h (Class): New constructor.
(Class): New copy constructor.
(initializePrim): New prototype.
(_Jv_PrimClass): Field removed.
* java/lang/Object.h (struct _JvObjectPrefix): New virtuals
nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
(class java::lang::Object): `finalize' moved up front.
* java/lang/natClass.cc
(isAssignableFrom): Turned outline.
(isInstance): Likewise.
(isInterface): Likewise, fixed indentation.
(initializePrim): New function.

(New C++ ABI compatibility patch:
 http://sources.redhat.com/ml/java-patches/2001-q1/msg00065.html)

From-SVN: r39032

23 years agoAll files with updated copyright when applicable.
Alexandre Petit-Bianco [Mon, 15 Jan 2001 08:01:22 +0000 (08:01 +0000)]
All files with updated copyright when applicable.

2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>

All files with updated copyright when applicable.
* Make-lang.in (JVGENMAIN_OBS): Removed java/mangle.o.
* class.c (mangle_class_field): Function removed.
(append_gpp_mangled_type, mangle_static_field, mangle_field): Likewise.
(utf8_cmp, cxx_keyword_p): Moved to lex.c.
(build_class_ref): Call `java_mangle_class_field' instead of
`mangle_class_field.'
(build_dtable_decl): Rewritten to call `java_mangle_vtable.'
(layout_class): Call `java_mangle_decl' instead of
`mangle_static_field.'
(cxx_keywords): Initialized static array moved to `lex.c.'
(layout_class_method): Changed leading comment. Simplified to
call `java_mangle_decl.' Local `ptr' moved in for loop body.
* decl.c (lang_mark_tree): Mark field `package_list.'
* java-tree.h (TYPE_PACKAGE_LIST): New macro.
(struct lang_type): New field `package_list.'
(unicode_mangling_length): Prototype removed.
(append_gpp_mangled_name, append_gpp_mangled_classtype,
emit_unicode_mangled_name): Likewise.
(cxx_keyword_p): New prototype.
(java_mangle_decl, java_mangle_class_field,
java_mangle_class_field_from_string, java_mangle_vtable): Likewise.
* jcf-parse.c (jcf_parse_source): Constify `file' argument to
`build_expr_wfl.'
* jvgenmain.c (main_method_prefix): Global variable removed.
(main_method_suffix): Likewise.
(do_mangle_classname): New function.
(main): Call it. Format changed to accomodate new mangling scheme.
* lex.c: (utf8_cmp): Conditionally prototyped.
(cxx_keywords): Moved from class.c, conditionally defined.
(utf8_cmp, cxx_keyword_p): Likewise.
* mangle.c (obstack.h, ggc.h): Included.
(mangle_field_decl): New function.
(mangle_method_decl, mangle_type, mangle_pointer_type,
mangle_array_type, mangle_record_type,
find_compression_pointer_match, find_compression_array_match,
find_compression_record_match,
find_compression_array_template_match, set_type_package_list,
entry_match_pointer_p, emit_compression_string, init_mangling,
finish_mangling, compression_table_add, mangle_member_name): Likewise.
(mangle_obstack): New global.
(MANGLE_RAW_STRING): New macro.
(unicode_mangling_length): Turned static.
(append_unicode_mangled_name): Renamed from
`emit_unicode_mangled_name.'  Turned static. `mangle_obstack'
replaces `obstack', removed from the parameter list.
(append_gpp_mangled_name): Turned static. `mangle_obstack'
replaces parameter `obstack', removed from the parameter list. Call
`append_unicode_mangled_name' instead of `emit_unicode_mangled_name.
(append_gpp_mangled_classtype): Removed.
(compression_table, compression_next): New static variables.
* parse.y (temporary_obstack): Extern declaration removed.

(This is the new C++ ABI compatibility patch:
  http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01225.html)

From-SVN: r39031

23 years agoURLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
Mark Wielaard [Mon, 15 Jan 2001 07:58:16 +0000 (07:58 +0000)]
URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)

   * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
   (decode): Merge comments with Classpath, don't throw Exception

From-SVN: r39030

23 years agoif-2.c: Comment out occasionally bogus test; we have an equivalent working one below it.
Neil Booth [Mon, 15 Jan 2001 07:51:18 +0000 (07:51 +0000)]
if-2.c: Comment out occasionally bogus test; we have an equivalent working one below it.

        * gcc.dg/cpp/if-2.c: Comment out occasionally bogus test; we
        have an equivalent working one below it.

From-SVN: r39029

23 years agolinux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change SUBTARGET_CPP_SPEC apropriatly.
Ralf Baechle [Mon, 15 Jan 2001 05:56:14 +0000 (06:56 +0100)]
linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change SUBTARGET_CPP_SPEC apropriatly.

        * config/mips/linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change
        SUBTARGET_CPP_SPEC apropriatly.

From-SVN: r39028

23 years agoinstantiate2.C: Add explanatory comment.
Jeffrey Oldham [Mon, 15 Jan 2001 04:30:35 +0000 (04:30 +0000)]
instantiate2.C: Add explanatory comment.

2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>

* g++.old-deja/g++.ext/instantiate2.C: Add explanatory comment.
* g++.old-deja/g++.ext/instantiate3.C: Likewise.

From-SVN: r39027

23 years ago* varasm.c (make_decl_rtl): Fix typo in last change.
Mark Mitchell [Mon, 15 Jan 2001 04:15:04 +0000 (04:15 +0000)]
* varasm.c (make_decl_rtl): Fix typo in last change.

From-SVN: r39026

23 years ago* MAINTAINERS: Add myself as Mercury front-end maintainer.
Fergus Henderson [Mon, 15 Jan 2001 04:00:09 +0000 (04:00 +0000)]
* MAINTAINERS: Add myself as Mercury front-end maintainer.

From-SVN: r39025

23 years agoecos.exp (conpr-1.C): XFAIL if compile emits message containing "init_priority".
Jeffrey Oldham [Mon, 15 Jan 2001 03:56:07 +0000 (03:56 +0000)]
ecos.exp (conpr-1.C): XFAIL if compile emits message containing "init_priority".

2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>

* g++.dg/special/ecos.exp (conpr-1.C): XFAIL if compile emits
message containing "init_priority".
(conpr-2.C): Likewise.
(conpr-3.C): Likewise.
* g++.old-deja/g++.ext/initp1.C: XFAIL for Irix.

From-SVN: r39024

23 years agodefaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the linker supports the...
Jeffrey Oldham [Mon, 15 Jan 2001 03:33:56 +0000 (03:33 +0000)]
defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the linker supports the init_priority C++ attribute.

gcc/ChangeLog:
2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>

* defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the
linker supports the init_priority C++ attribute.
* tm.texi (SUPPORTS_INIT_PRIORITY): Documentation for new macro.
* config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Indicate Irix
linker does not support init_priority C++ attribute.

gcc/cp/ChangeLog:
2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>

* tree.c: Add defaults.h
(cp_valid_lang_attribute): Incorporate SUPPORTS_INIT_PRIORITY.
* Make-lang.in (cp/tree.o): Add defaults.h.

From-SVN: r39023

23 years ago20010114-2.c: New test.
Franz Sirl [Mon, 15 Jan 2001 00:29:53 +0000 (00:29 +0000)]
20010114-2.c: New test.

2001-01-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

* gcc.c-torture/execute/20010114-2.c: New test.

From-SVN: r39022

23 years ago* Makefile.in (libgcc1-test.o): Depends on stmp-int-hdrs.
J"orn Rennecke [Sun, 14 Jan 2001 22:38:22 +0000 (22:38 +0000)]
* Makefile.in (libgcc1-test.o): Depends on stmp-int-hdrs.

From-SVN: r39021

23 years agoc-parse.in (finish_parse): Add comment about cpp_destroy.
Neil Booth [Sun, 14 Jan 2001 22:00:20 +0000 (22:00 +0000)]
c-parse.in (finish_parse): Add comment about cpp_destroy.

        * c-parse.in (finish_parse): Add comment about cpp_destroy.
        * cp/lex.c (finish_parse): Similarly.
        * cppinit.c (cpp_cleanup): Rename cpp_destroy for clarity.
        Return the number of errors encountered.
        * cpplib.h (cpp_cleanup): Rename cpp_destroy, return int.
        * cppmain.c (main): Don't call cpp_destroy.

From-SVN: r39020

23 years agoVarious patches to emit better messages on verification errors.
Per Bothner [Sun, 14 Jan 2001 21:48:10 +0000 (13:48 -0800)]
Various patches to emit better messages on verification errors.

From-SVN: r39019

23 years agotexi2pod.pl: Require at least perl 5.6.0.
Joseph Myers [Sun, 14 Jan 2001 21:47:19 +0000 (21:47 +0000)]
texi2pod.pl: Require at least perl 5.6.0.

contrib:
* texi2pod.pl: Require at least perl 5.6.0.

gcc:
* configure.in: Require at least perl 5.6.0 to regenerate
manpages.
* configure: Regenerate.

From-SVN: r39018

23 years agoparse.y (java_complete_lhs case EXPR_WITH_FILE_LOCATION): If body is constant, return...
Per Bothner [Sun, 14 Jan 2001 20:46:32 +0000 (12:46 -0800)]
parse.y (java_complete_lhs case EXPR_WITH_FILE_LOCATION): If body is constant, return body without wrapper.

* parse.y (java_complete_lhs case EXPR_WITH_FILE_LOCATION): If body is
constant, return body without wrapper.  (Improves constant folding.)
* lex.c (build_wfl_node):  Clear TREE_TYPE from returned node.

From-SVN: r39017

23 years agogenrecog.c (DT_veclen_ge): New.
Richard Henderson [Sun, 14 Jan 2001 20:35:06 +0000 (12:35 -0800)]
genrecog.c (DT_veclen_ge): New.

        * genrecog.c (DT_veclen_ge): New.
        (add_to_sequence) [MATCH_PARALLEL]: Generate one.
        (maybe_both_true_2): Simplify DT_veclen vs DT_veclen_ge.
        (nodes_identical_1): Handle DT_veclen_ge.
        (write_cond, debug_decision_2): Likewise.

From-SVN: r39016

23 years agoarm.md (ldmsi_postinc, [...]): Delete.
Richard Earnshaw [Sun, 14 Jan 2001 19:37:18 +0000 (19:37 +0000)]
arm.md (ldmsi_postinc, [...]): Delete.

* arm.md (ldmsi_postinc, ldmsi, stmsi_postinc, smsi): Delete.  Replace
with ...
(ldmsi_postinc[432], ldmsi[432], stmsi_postinc[432], stmsi[432]): New.

From-SVN: r39015

23 years ago* libio/libio.h: Add test for glibc 2.0.
Andreas Jaeger [Sun, 14 Jan 2001 19:12:23 +0000 (20:12 +0100)]
* libio/libio.h: Add test for glibc 2.0.

From-SVN: r39014

23 years agoexpr.c (expand_java_field_op): Assigning to a final field outside an initializer...
Per Bothner [Sun, 14 Jan 2001 17:37:09 +0000 (09:37 -0800)]
expr.c (expand_java_field_op): Assigning to a final field outside an initializer does not violate JVM spec...

* expr.c (expand_java_field_op):  Assigning to a final field outside
an initializer does not violate JVM spec, so should be warning, not
error.  (Sun's verifier does not complain - though MicroSoft's does.)

From-SVN: r39013

23 years agocppmain.c (do_preprocessing): New function; most of the old main.
Neil Booth [Sun, 14 Jan 2001 16:44:50 +0000 (16:44 +0000)]
cppmain.c (do_preprocessing): New function; most of the old main.

        * cppmain.c (do_preprocessing): New function; most of the old
        main.
        (main): Call it to do most of the work.
        (cb): Move from global scope to set_callbacks ().
        (setup_callbacks): Get the callback pointer.
        (general_init, printer_init): Clean up code and comments.

From-SVN: r39012

23 years agosemi.h (ASM_SPEC): Pass -k to the assembler when compiling PIC.
Richard Earnshaw [Sun, 14 Jan 2001 16:09:47 +0000 (16:09 +0000)]
semi.h (ASM_SPEC): Pass -k to the assembler when compiling PIC.

* config/arm/semi.h (ASM_SPEC): Pass -k to the assembler when
compiling PIC.

From-SVN: r39011

23 years agoh8300.c (get_shift_alg): Update comments.
Kazu Hirata [Sun, 14 Jan 2001 15:36:42 +0000 (15:36 +0000)]
h8300.c (get_shift_alg): Update comments.

2001-01-14  Kazu Hirata  <kazu@hxi.com>

* config/h8300/h8300.c (get_shift_alg): Update comments.

From-SVN: r39010

23 years ago20010114-1.c: New test.
Joseph Myers [Sun, 14 Jan 2001 11:38:49 +0000 (11:38 +0000)]
20010114-1.c: New test.

* gcc.c-torture/compile/20010114-1.c: New test.
* gcc.c-torture/compile/20010114-1.x: Xfail.
* gcc.c-torture/compile/20010114-2.c: New test.
* gcc.c-torture/execute/20010114-1.c: New test.
* gcc.dg/trunc-1.c: New test.
* gcc.dg/uninit-B.c: New test.

From-SVN: r39009

23 years agoggc-page.c (alloc_annon): Call perror and correctly call exit.
Richard Kenner [Sun, 14 Jan 2001 11:22:12 +0000 (11:22 +0000)]
ggc-page.c (alloc_annon): Call perror and correctly call exit.

* ggc-page.c (alloc_annon): Call perror and correctly call exit.
(alloc_page, ggc_alloc): Add casts to remove warnings.

From-SVN: r39008

23 years agocombine.c (simplify_comparison): Don't change `code' when can't reverse comparison.
Geoffrey Keating [Sun, 14 Jan 2001 10:39:49 +0000 (10:39 +0000)]
combine.c (simplify_comparison): Don't change `code' when can't reverse comparison.

* combine.c (simplify_comparison): Don't change `code' when
can't reverse comparison.

From-SVN: r39007

23 years agortlanal.c (computed_jump_p_1): Rename from jmp_uses_reg_or_mem; update all call sites.
Richard Henderson [Sun, 14 Jan 2001 10:19:01 +0000 (02:19 -0800)]
rtlanal.c (computed_jump_p_1): Rename from jmp_uses_reg_or_mem; update all call sites.

        * rtlanal.c (computed_jump_p_1): Rename from jmp_uses_reg_or_mem;
        update all call sites.  Return true for all non-label constants.

From-SVN: r39006

23 years agoi386.c (ix86_expand_compare): Add bypass_test and second_test parameters.
Jan Hubicka [Sun, 14 Jan 2001 09:14:03 +0000 (09:14 +0000)]
i386.c (ix86_expand_compare): Add bypass_test and second_test parameters.

* i386.c (ix86_expand_compare): Add bypass_test and second_test
parameters.
(ix86_expand_branch): Update.
(ix86_expand_setcc): Update to handle multiple test conditions.
(expand_int_movcc): Likewise.
(expand_fp_movcc): Likewise.
* i386-protos.h (ix86_expand_compare): New.
* i386.md (andqi_?_slp, orqi_?_slp): New.
(conditional trap expander): Update call to ix86_expand_compare.

From-SVN: r39005

23 years agovax.h (RETURN_POPS_ARGS): Max at 255 arguments.
Richard Henderson [Sun, 14 Jan 2001 09:08:51 +0000 (01:08 -0800)]
vax.h (RETURN_POPS_ARGS): Max at 255 arguments.

        * config/vax/vax.h (RETURN_POPS_ARGS): Max at 255 arguments.
        * config/vax/vax.md (call_pop): Turn into an expander.
        (call_value_pop): Likewise.
        (call, call_value): New.

From-SVN: r39004

23 years ago* config/vax/vax.md (indirect_jump): Use register_operand.
Richard Henderson [Sun, 14 Jan 2001 09:03:20 +0000 (01:03 -0800)]
* config/vax/vax.md (indirect_jump): Use register_operand.

From-SVN: r39003

23 years agovax.md: Use nonimmediate_operand instead of general_operand in destinations.
Richard Henderson [Sun, 14 Jan 2001 08:59:18 +0000 (00:59 -0800)]
vax.md: Use nonimmediate_operand instead of general_operand in destinations.

        * config/vax/vax.md: Use nonimmediate_operand instead of
        general_operand in destinations.

From-SVN: r39002

23 years agoDaily bump.
Jeff Law [Sun, 14 Jan 2001 08:45:10 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r39001

23 years agoi386.c (ix86_split_fp_branch): Remove unused variables.
Andreas Jaeger [Sun, 14 Jan 2001 07:30:29 +0000 (08:30 +0100)]
i386.c (ix86_split_fp_branch): Remove unused variables.

* config/i386/i386.c (ix86_split_fp_branch): Remove unused
variables.
(ix86_fp_compare_mode): Add unused attribute.
(ix86_expand_fp_movcc): Remove unused variable.
(ix86_expand_builtin): Make fcode unsigned.

* expr.c (MOVE_BY_PIECES_P): Cast MOVE_RATIO to unsigned.
(expand_expr): Add cast to avoid signed warning.
(store_field): Likewise.
(store_constructor_field): Likewise.
(store_constructor): Likewise.
(store_expr): Likewise.
(clear_storage): Likewise.
(emit_group_store): Likewise.
(emit_group_load): Likewise.

From-SVN: r39000

23 years agoExpext the bf64-1.c test to fail for the M*Core
Nick Clifton [Sun, 14 Jan 2001 00:28:08 +0000 (00:28 +0000)]
Expext the bf64-1.c test to fail for the M*Core

From-SVN: r38999

23 years agoc-common.c: Move format checking code to ...
Joseph Myers [Sat, 13 Jan 2001 23:30:02 +0000 (23:30 +0000)]
c-common.c: Move format checking code to ...

* c-common.c: Move format checking code to ...
* c-format.c: ... here.  New file.  Reorder some functions and
declarations.
(decl_handle_format_attribute, decl_handle_format_arg_attribute):
New functions.
* c-common.h (decl_handle_format_attribute,
decl_handle_format_arg_attribute): Declare.
* Makefile.in (C_AND_OBJC_OBJS): Add c-format.o.
(c-common.o): Adjust dependencies.
(c-format.o): New list of dependencies.

cp:
* Make-lang.in (CXX_C_OBJS): Add c-format.o.

From-SVN: r38998

23 years ago* gcc.c-torture/compile/20010113-1.c: New test.
Joseph Myers [Sat, 13 Jan 2001 23:27:06 +0000 (23:27 +0000)]
* gcc.c-torture/compile/20010113-1.c: New test.

From-SVN: r38997

23 years agounroll.c (loop_iterations): If we cannot prove iteration variable is set once in...
Jakub Jelinek [Sat, 13 Jan 2001 21:54:10 +0000 (22:54 +0100)]
unroll.c (loop_iterations): If we cannot prove iteration variable is set once in each iteration, punt.

* unroll.c (loop_iterations): If we cannot prove iteration variable
is set once in each iteration, punt.

From-SVN: r38996

23 years agoavr.md ("strlenhi"): Remove clobber of input address.
Denis Chertykov [Sat, 13 Jan 2001 21:42:07 +0000 (21:42 +0000)]
avr.md ("strlenhi"): Remove clobber of input address.

* config/avr/avr.md ("strlenhi"): Remove clobber of input address.
(*strlenhi): Remove clobber (which was buggy) of output address.

From-SVN: r38995

23 years ago* gcc.c-torture/compile/20001212-1.c: New test.
Jakub Jelinek [Sat, 13 Jan 2001 21:35:00 +0000 (22:35 +0100)]
* gcc.c-torture/compile/20001212-1.c: New test.

From-SVN: r38994

23 years agogcc_update: Add gcc/gcc.1 to generated files.
Joseph Myers [Sat, 13 Jan 2001 21:17:13 +0000 (21:17 +0000)]
gcc_update: Add gcc/gcc.1 to generated files.

contrib:
* gcc_update: Add gcc/gcc.1 to generated files.
* texi2pod.pl: Handle @r and @gccoptlist.  Handle @gol.  Handle
discarding to end of sentence with @xref where the sentence has an
interior "." in markup, and handle discarding parentheses around
such a sentence.

gcc:
* Makefile.in (generated-manpages): Add gcc.1
($(srcdir)/gcc.1): New target.
(maintainer-clean): Delete $(srcdir)/gcc.1.
* gcc.texi: Add macros @gccoptlist and @gol.
* invoke.texi: Include option summary in manpage.  Mark up option
summary with @gccoptlist and @gol.  Use @r in one place where
appropriate.
* texinfo.tex: Update to version 2000-12-11.07 from ftp.gnu.org.
* gcc.1: Generate from invoke.texi.

gcc/cp:
* g++.1: Change to be ".so man1/gcc.1".

From-SVN: r38993

23 years agoggc-page.c (USING_MALLOC_PAGE_GROUPS): New; set if not using mmap.
Richard Henderson [Sat, 13 Jan 2001 20:36:56 +0000 (12:36 -0800)]
ggc-page.c (USING_MALLOC_PAGE_GROUPS): New; set if not using mmap.

        * ggc-page.c (USING_MALLOC_PAGE_GROUPS): New; set if not using mmap.
        (struct page_entry): Add group member.
        (struct page_group): New.
        (struct globals): Add page_groups member.
        (alloc_anon): Only define for using mmap; remove valloc call.
        (page_group_index): New.
        (set_page_group_in_use): New.
        (clear_page_group_in_use): New.
        (alloc_page): Implement USING_MALLOC_PAGE_GROUPS.
        (free_page, release_pages): Likewise.
        * configure.in (with-gc): Default to ggc-page always.

From-SVN: r38992

23 years agoreload1.c (replace_pseudos_in_call_usage): Use reg_equiv_constant and reg_equiv_addre...
Alexandre Oliva [Sat, 13 Jan 2001 20:18:20 +0000 (20:18 +0000)]
reload1.c (replace_pseudos_in_call_usage): Use reg_equiv_constant and reg_equiv_address, and don't try regno_reg_rtx first.

* reload1.c (replace_pseudos_in_call_usage): Use
reg_equiv_constant and reg_equiv_address, and don't try
regno_reg_rtx first.

From-SVN: r38991

23 years agoggc-page.c (alloc_page): Round up allocation size to one page.
Richard Henderson [Sat, 13 Jan 2001 19:58:43 +0000 (11:58 -0800)]
ggc-page.c (alloc_page): Round up allocation size to one page.

        * ggc-page.c (alloc_page): Round up allocation size to one page.
        Set e->order on extra pages.

From-SVN: r38990

23 years agogenrecog.c (nodes_identical): Expand commentary.
Richard Henderson [Sat, 13 Jan 2001 19:31:07 +0000 (11:31 -0800)]
genrecog.c (nodes_identical): Expand commentary.

        * genrecog.c (nodes_identical): Expand commentary.
        (write_switch): Watch out for identical nodes.

From-SVN: r38989

23 years agowidestr1.c: Update.
Neil Booth [Sat, 13 Jan 2001 18:40:49 +0000 (18:40 +0000)]
widestr1.c: Update.

        * gcc.dg/cpp/widestr1.c: Update.
        * gcc.dg/cpp/prag-imp.c: Remove.

From-SVN: r38988

23 years agocppfiles.c (_cpp_fake_include): New function.
Neil Booth [Sat, 13 Jan 2001 18:39:26 +0000 (18:39 +0000)]
cppfiles.c (_cpp_fake_include): New function.

        * cppfiles.c (_cpp_fake_include): New function.
        * cpphash.h (_cpp_fake_include): New.
        * cpplib.c (do_line): Call _cpp_fake_include when entering
        header files in preprocessed input.
        * cppmain.c (cb_pragma_implementation): Remove handling.
(setup_callbacks): Don't register pragmas.

From-SVN: r38987

23 years ago* extend.texi: Update for CPP.
Neil Booth [Sat, 13 Jan 2001 16:59:42 +0000 (16:59 +0000)]
* extend.texi: Update for CPP.

From-SVN: r38986

23 years agoreload1.c: Add prototype for replace_pseudos_in_call_usage.
Andreas Jaeger [Sat, 13 Jan 2001 14:43:27 +0000 (15:43 +0100)]
reload1.c: Add prototype for replace_pseudos_in_call_usage.

* reload1.c: Add prototype for replace_pseudos_in_call_usage.

* regmove.c: Add prototype for replace_in_call_usage.

From-SVN: r38985

23 years agocpplib.h (cpp_pool, [...]): Move to cpphash.h (struct macro_args): Delete.
Neil Booth [Sat, 13 Jan 2001 14:32:59 +0000 (14:32 +0000)]
cpplib.h (cpp_pool, [...]): Move to cpphash.h (struct macro_args): Delete.

        * cpplib.h (cpp_pool, mi_state, mi_ind, struct cpp_macro,
        struct cpp_chunk, struct htab, struct toklist,
        struct cpp_context, CPP_STACK_MAX, struct lexer_state,
        struct spec_nodes, struct cpp_reader, CPP_OPTION, CPP_BUFFER,
        CPP_BUF_LINE, CPP_BUF_COL, CPP_BUF_COLUMN, U, ustrcmp, ustrncmp,
        ustrlen, uxstrdup, ustrchr, ufputs): Move to cpphash.h
        (struct macro_args): Delete.
        * cpphash.h: See above.

From-SVN: r38984

23 years agocppmain.c (struct printer): Remove no_line_dirs.
Neil Booth [Sat, 13 Jan 2001 14:24:34 +0000 (14:24 +0000)]
cppmain.c (struct printer): Remove no_line_dirs.

        * cppmain.c (struct printer): Remove no_line_dirs.
        (options, cb): New.
        (main, setup_callbacks, scan_buffer, printer_init, cb_define)
        : Use options rather than CPP_OPTION.
        (setup_callbacks): Use cb rather than pfile->cb.
        (main): No need to check for a buffer.  Use cpp_errors.
        (printer_init): Don't set no_line_dirs.
        (maybe_print_line): Use options not no_line_dirs.
        (cb_file_change): Don't call print_line if -P.

From-SVN: r38983

23 years agoc-lex.c (init_c_lex): Use cpp_get_callbacks to set callbacks.
Neil Booth [Sat, 13 Jan 2001 14:23:04 +0000 (14:23 +0000)]
c-lex.c (init_c_lex): Use cpp_get_callbacks to set callbacks.

        * c-lex.c (init_c_lex): Use cpp_get_callbacks to set
        callbacks.
        * c-parse.in (finish_parse): Use cpp_errors.
        (__yylex): Use return value of cpp_pop_buffer.
        * cp/lex.c (finish_parse): Use cpp_errors.
        * cp/spew.c (read_token): Use return value of cpp_pop_buffer.

From-SVN: r38982

23 years ago* README.AVR: URLs corrected.
Denis Chertykov [Sat, 13 Jan 2001 14:07:43 +0000 (14:07 +0000)]
* README.AVR: URLs corrected.

From-SVN: r38981

23 years agoc-decl.c (start_function): Don't warn if old prototype is builtin that's not in C...
Richard Kenner [Sat, 13 Jan 2001 12:34:02 +0000 (12:34 +0000)]
c-decl.c (start_function): Don't warn if old prototype is builtin that's not in C's namespace.

* c-decl.c (start_function): Don't warn if old prototype is builtin
that's not in C's namespace.
* libgcc2.c (_varargs): Update definition of __builtin_saveregs.
(_bb): Add prototype for ctime.
* config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Add missing protos.

From-SVN: r38980

23 years agoi386.c (ix86_fp_comparison_arithmetics_cost, [...]): New functions.
Jan Hubicka [Sat, 13 Jan 2001 08:57:29 +0000 (09:57 +0100)]
i386.c (ix86_fp_comparison_arithmetics_cost, [...]): New functions.

* i386.c (ix86_fp_comparison_arithmetics_cost,
ix86_fp_comparison_fcomi_cost, ix86_fp_comparison_sahf_cost,
ix86_fp_comparison_cost): New functions.
(ix86_expand_fp_compare): Use the costs to choose best bethod; add
two new parameters SECOND_TEST and BYPASS_TEST; allow generating
two-branch sequences; make static.
(ix86_use_fcomi_compare): Do decision according to the costs.
(split_fp_branch): New.
* i386.md (compare-and-branch patterns): Use split_fp_branch.
* i386-protos.h (ix86_expand_fp_compare): Remove
(ix86_split_fp_branch): Declare.

* i386.h (PREDICATE_CODES): Update codes from fcmov_comparison_operand
and ix86_comparison_operator.

* i386.c (ix86_prepare_fp_compare_args): Try to rearange the comparison
to make it cheaper.

* i386.c (put_condition_code): Output properly the unordered/ordered
compares in fp case.
(ix86_expand_fp_movcc): Use ix86_expand_compare infrastructure.

* tm.texi (REVERSE_CONDITION): Document.
* i386.c (ix86_fp_compare_mode): Simplify; return always CCFPmode
in -ffast-math mode.
* i386.h (REVERSE_CONDITION, REVERSIBLE_CC_MODE): New macro.

From-SVN: r38979