platform/upstream/gcc.git
20 years agotree.c (get_callee_fndecl): Call lang_hooks.lang_get_callee_fndecl.
Andrew Haley [Mon, 6 Oct 2003 13:50:41 +0000 (13:50 +0000)]
tree.c (get_callee_fndecl): Call lang_hooks.lang_get_callee_fndecl.

2003-10-06  Andrew Haley  <aph@redhat.com>

* tree.c (get_callee_fndecl): Call
lang_hooks.lang_get_callee_fndecl.
* langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
(lhd_get_callee_fndecl): New.

From-SVN: r72150

20 years ago+2003-10-06 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...
Andrew Pinski [Mon, 6 Oct 2003 13:35:36 +0000 (13:35 +0000)]
+2003-10-06 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...

+2003-10-06  Andrew Pinski  <apinski@apple.com>
+
+ * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
+ error in calculating the length of the string.
+ (machopic_stub_name): Likewise.

From-SVN: r72149

20 years agooptabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note describing the return value...
Roger Sayle [Mon, 6 Oct 2003 12:48:49 +0000 (12:48 +0000)]
optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note describing the return value of the comparison libcall...

* optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
describing the return value of the comparison libcall to the
REG_RETVAL instruction of the emitted sequence.

From-SVN: r72148

20 years agore PR rtl-optimization/12215 (ICE in make_label_edge with -fnon-call-exceptions ...
Eric Botcazou [Mon, 6 Oct 2003 09:18:01 +0000 (09:18 +0000)]
re PR rtl-optimization/12215 (ICE in make_label_edge with -fnon-call-exceptions -fno-gcse -O2)

PR optimization/12215
* cse.c (cse_set_around_loop): Emit the move at the beginning
of the next basic block for trapping sets.

From-SVN: r72141

20 years agore PR rtl-optimization/11637 (g++ invalid assembly with -fnon-call-exceptions)
Eric Botcazou [Mon, 6 Oct 2003 08:52:23 +0000 (10:52 +0200)]
re PR rtl-optimization/11637 (g++ invalid assembly with -fnon-call-exceptions)

2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>

PR optimization/11637
* combine.c (adjust_for_new_dest): New function to adjust the
notes and LOG_LINKS when the dest of an insn has changed.
(try_combine): Use it when deleting the first insn of a two-insn
parallel or splitting a two-load parallel.

From-SVN: r72138

20 years agomips.c (mips_classify_constant): Only allow UNSPECs if TARGET_EXPLICIT_RELOCS.
Richard Sandiford [Mon, 6 Oct 2003 08:02:54 +0000 (08:02 +0000)]
mips.c (mips_classify_constant): Only allow UNSPECs if TARGET_EXPLICIT_RELOCS.

* config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
if TARGET_EXPLICIT_RELOCS.

From-SVN: r72137

20 years agofix off one error for one for all.
Andrew Pinski [Mon, 6 Oct 2003 07:56:37 +0000 (00:56 -0700)]
fix off one error for one for all.

From-SVN: r72136

20 years agore PR bootstrap/12512 (Pattern rule for %.dvi breaks make dvi in objc)
Mark Mitchell [Mon, 6 Oct 2003 07:56:16 +0000 (07:56 +0000)]
re PR bootstrap/12512 (Pattern rule for %.dvi breaks make dvi in objc)

PR bootstrap/12512
* Makefile.in (info): Use double-colon rules.
(dvi): Likewise.
(generated-manpages): Likewise.
* configure.in: Do not create lang.info, lang.dvi, or
lang.generated-manpages hooks.
* configure: Regenerated.
* objc/Make-lang.in (objc.info): Remove.
(objc.dvi): Remove.
(objc.generated-manpages): Remove.
* doc/sourcebuild.texi: Update description of info, dvi, and
generated-manpages hooks.

* Make-lang.in (ada.info): Replace with ...
(info): ... this.
(ada.dvi): Replace with ...
(dvi): ... this.

* Make-lang.in (c++.info): Remove.
(c++.dvi): Remove.
(c++.generated-manpages): Replace with ...
(generated-manpages): ... this.

* Make-lang.in (f77.info): Replace with ...
(info): ... this.
(f77.dvi): Replace with ...
(dvi): ... this.
(f77.generated-manpages): Replace with ...
(generated-manpages): ... this.

* Make-lang.in (java.info): Replace with ...
(info): ... this.
(java.dvi): Replace with ...
(dvi): ... this.
(java.generated-manpages): Replace with ...

* Make-lang.in (treelang.info): Replace with ...
(info): ... this.
* Make-lang.in (treelang.dvi): Replace with ...
(dvi): ... this.

From-SVN: r72135

20 years ago* config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter
Richard Sandiford [Mon, 6 Oct 2003 07:53:16 +0000 (07:53 +0000)]
* config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter

From-SVN: r72134

20 years agoone more off by one error.
Andrew Pinski [Mon, 6 Oct 2003 06:38:04 +0000 (23:38 -0700)]
one more off by one error.

From-SVN: r72133

20 years agodarwin.c (machopic_non_lazy_ptr_name): Fix off by one errors in memcpy destinations.
Andrew Pinski [Mon, 6 Oct 2003 06:11:14 +0000 (06:11 +0000)]
darwin.c (machopic_non_lazy_ptr_name): Fix off by one errors in memcpy destinations.

2003-10-05  Andrew Pinski  <apinski@apple.com>
        * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
        errors in memcpy destinations.
        (machopic_stub_name): Likewise.

From-SVN: r72132

20 years agoconfigure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
Mohan Embar [Mon, 6 Oct 2003 03:40:08 +0000 (03:40 +0000)]
configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.

* configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
* configure: Rebuilt
* Makefile.tpl: Use CFLAGS_FOR_BUILD computed by configure
* Makefile.in: Rebuilt

From-SVN: r72130

20 years agodarwin.c (machopic_non_lazy_ptr_name): Change strcat to memcpy and add length together.
Andrew Pinski [Mon, 6 Oct 2003 01:36:13 +0000 (01:36 +0000)]
darwin.c (machopic_non_lazy_ptr_name): Change strcat to memcpy and add length together.

* config/darwin.c (machopic_non_lazy_ptr_name):
Change strcat to memcpy and add length together.
(machopic_stub_name): Likewise.

From-SVN: r72129

20 years agolinux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new signal trampoline codes.
Kaz Kojima [Mon, 6 Oct 2003 01:24:53 +0000 (01:24 +0000)]
linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new signal trampoline codes.

* config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
signal trampoline codes.

From-SVN: r72128

20 years agoDaily bump.
GCC Administrator [Mon, 6 Oct 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72125

20 years agomips.md (*divsf3): Move description of SB-1 F2 erratum from here to...
Chris Demetriou [Sun, 5 Oct 2003 23:57:56 +0000 (23:57 +0000)]
mips.md (*divsf3): Move description of SB-1 F2 erratum from here to...

2003-10-05  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (*divsf3): Move description of
        SB-1 F2 erratum from here to...
        (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
        flag_unsafe_math_optimizations is not.

From-SVN: r72123

20 years agolinuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE, TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
Aldy Hernandez [Sun, 5 Oct 2003 22:49:29 +0000 (22:49 +0000)]
linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE, TARGET_E500, TARGET_ISEL, and TARGET_FPRS.

2003-10-05  Aldy Hernandez  <aldyh@redhat.com>

* config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
TARGET_E500, TARGET_ISEL, and TARGET_FPRS.

From-SVN: r72121

20 years agoc-pretty-print.c: Fix comment typos.
Kazu Hirata [Sun, 5 Oct 2003 19:50:56 +0000 (19:50 +0000)]
c-pretty-print.c: Fix comment typos.

* c-pretty-print.c: Fix comment typos.
* c-pretty-print.h: Likewise.
* calls.c: Likewise.
* cfgloopmanip.c: Likewise.
* cgraphunit.c: Likewise.
* cppfiles.c: Likewise.
* final.c: Likewise.
* function.c: Likewise.
* gcov-io.h: Likewise.
* gcse.c: Likewise.
* genoutput.c: Likewise.
* loop.c: Likewise.
* postreload.c: Likewise.
* reg-stack.c: Likewise.
* regmove.c: Likewise.
* sched-int.h: Likewise.
* sched-rgn.c: Likewise.
* simplify-rtx.c: Likewise.
* tree-inline.c: Likewise.
* config/m68hc11/m68hc11.h: Likewise.
* config/mmix/mmix.c: Likewise.
* config/mn10300/mn10300.md: Likewise.
* config/sh/sh.h: Likewise.

From-SVN: r72118

20 years agotree-inline.c (remap_type): New.
Richard Henderson [Sun, 5 Oct 2003 19:07:47 +0000 (12:07 -0700)]
tree-inline.c (remap_type): New.

        * tree-inline.c (remap_type): New.
        (remap_decl): Use it.  Remap DECL_SIZE*.
        (copy_body_r): Use it.
        (walk_tree): Walk TREE_TYPE too.
        (copy_tree_r): Don't walk subtrees of types.
        * tree.c (variably_modified_type_p): Restructure.  Consider integer
        types with non-const bounds variably modified.

From-SVN: r72114

20 years ago* doc/invoke.texi: Fix typos.
Kazu Hirata [Sun, 5 Oct 2003 18:51:41 +0000 (18:51 +0000)]
* doc/invoke.texi: Fix typos.

From-SVN: r72113

20 years ago2003-10-05 Paolo Carlini <pcarlini@unitus.it>
Paolo Carlini [Sun, 5 Oct 2003 15:08:46 +0000 (17:08 +0200)]
2003-10-05  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc
(num_put::do_put(..., bool)): Prefer ?: to if-else.
(time_get::_M_extract_name): Qualify min with std::.
(__pad<>::_S_pad): Constify two variables; simplify an
if-else statement factoring out some code.

* include/bits/locale_facets.tcc: Minor cosmetic changes.

From-SVN: r72112

20 years agofold-const.c: Follow spelling conventions.
Kazu Hirata [Sun, 5 Oct 2003 13:34:45 +0000 (13:34 +0000)]
fold-const.c: Follow spelling conventions.

* fold-const.c: Follow spelling conventions.
* function.c: Likewise.
* config/c4x/c4x.h: Likewise.
* config/c4x/c4x.md: Likewise.
* config/frv/frv.md: Likewise.
* config/rs6000/aix.h: Likewise.
* config/rs6000/linux64.h: Likewise.
* config/xtensa/xtensa.c: Likewise.

From-SVN: r72111

20 years agoc-pretty-print.c: Fix comment formatting.
Kazu Hirata [Sun, 5 Oct 2003 13:09:48 +0000 (13:09 +0000)]
c-pretty-print.c: Fix comment formatting.

* c-pretty-print.c: Fix comment formatting.
* cfglayout.c: Likewise.
* cfgloopanal.c: Likewise.
* cppcharset.c: Likewise.
* dbxout.c: Likewise.
* ggc-page.c: Likewise.
* ggc.h: Likewise.
* target.h: Likewise.

From-SVN: r72110

20 years ago* builtins.c, jcf.h, jvspec.c: Remove PARAMS macros.
Kelley Cook [Sun, 5 Oct 2003 02:52:33 +0000 (02:52 +0000)]
* builtins.c, jcf.h, jvspec.c: Remove PARAMS macros.

From-SVN: r72107

20 years ago* gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
Kelley Cook [Sun, 5 Oct 2003 02:49:20 +0000 (02:49 +0000)]
* gengtype-lex.l: Recognize typedef of functions without PARAMS macro.

From-SVN: r72106

20 years agoDaily bump.
GCC Administrator [Sun, 5 Oct 2003 00:16:05 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72104

20 years agov850-c.c, [...]: Convert to ISO C90 function declarations and definitions.
Nathanael Nerode [Sat, 4 Oct 2003 23:28:57 +0000 (23:28 +0000)]
v850-c.c, [...]: Convert to ISO C90 function declarations and definitions.

* config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
Convert to ISO C90 function declarations and definitions.

From-SVN: r72102

20 years ago* libfuncs.h
Zack Weinberg [Sat, 4 Oct 2003 21:36:08 +0000 (21:36 +0000)]
* libfuncs.h
(LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
(LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
(LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
(LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
(LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
(LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
(LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
(eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
(lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
(nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
(lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
(gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
(unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
(gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
(eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
(lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
Delete.
* optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
(OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
(le_optab, unord_optab): New.

* optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
from the code_to_optab table, not a giant switch; use
swap_condition; do widening only if a comparison function that
we can call exists in a wider mode, not if a cmp_optab insn or
libfunc exists in a wider mode; call protect_from_queue
exactly once on each operand.
(init_optabs): Initialize the new optabs, not the deleted libfuncs.

* config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
* config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
Set floating point comparison libfuncs using set_optab_libfunc
on the appropriate optab.

* config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
* config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
selector conditionals.

From-SVN: r72101

20 years agot-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is identical to m68hc12 as far as librarie...
Stephane Carrez [Sat, 4 Oct 2003 19:47:04 +0000 (21:47 +0200)]
t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is identical to m68hc12 as far as libraries are concerned.

* config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
identical to m68hc12 as far as libraries are concerned.

From-SVN: r72100

20 years agore PR c/12446 (ICE in emit_move_insn on complicated array reference)
Eric Botcazou [Sat, 4 Oct 2003 18:02:32 +0000 (20:02 +0200)]
re PR c/12446 (ICE in emit_move_insn on complicated array reference)

PR c/12446
* c-typeck.c (convert_for_assignment): Issue an error for
array to pointer assignment after default conversion.
(digest_init): Likewise.

From-SVN: r72096

20 years agoTest for testing a global followed by extern declaration.
Fariborz Jahanian [Sat, 4 Oct 2003 16:53:19 +0000 (16:53 +0000)]
Test for testing a global followed by extern declaration.

From-SVN: r72095

20 years agoretain DECL_COMMON of old declaration
Fariborz Jahanian [Sat, 4 Oct 2003 16:49:26 +0000 (16:49 +0000)]
retain DECL_COMMON of old declaration
Reviewed by Geoffrey Keating.

From-SVN: r72094

20 years agolocale_facets.tcc (num_get::_M_extract_float): Constify a couple of variables.
Paolo Carlini [Sat, 4 Oct 2003 14:59:32 +0000 (16:59 +0200)]
locale_facets.tcc (num_get::_M_extract_float): Constify a couple of variables.

2003-10-04  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (num_get::_M_extract_float):
Constify a couple of variables.
(num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
++__beg to *__beg++.

From-SVN: r72093

20 years agoextend.texi (Function Attributes): Fix title of GNU C Preprocessor manual.
Gerald Pfeifer [Sat, 4 Oct 2003 10:53:09 +0000 (10:53 +0000)]
extend.texi (Function Attributes): Fix title of GNU C Preprocessor manual.

* doc/extend.texi (Function Attributes): Fix title of GNU C
Preprocessor manual.
(C++ Extensions): Fix reference to "Predefined Macros" in the
GNU C Preprocessor manual.

From-SVN: r72091

20 years agostdio_sync_filebuf.h: Don't include the whole <fstream>, only <streambuf> and <cstdio>.
Paolo Carlini [Sat, 4 Oct 2003 10:51:34 +0000 (12:51 +0200)]
stdio_sync_filebuf.h: Don't include the whole <fstream>, only <streambuf> and <cstdio>.

2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
    Petur Runolfsson  <peturr02@ru.is>

* include/ext/stdio_sync_filebuf.h: Don't include the whole
<fstream>, only <streambuf> and <cstdio>.

Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
From-SVN: r72090

20 years agoextend.texi: Document how GCC estimates and relies on the size of an asm.
Richard Earnshaw [Sat, 4 Oct 2003 10:18:33 +0000 (10:18 +0000)]
extend.texi: Document how GCC estimates and relies on the size of an asm.

* doc/extend.texi: Document how GCC estimates and relies on the size
of an asm.

From-SVN: r72089

20 years agomips.c (mips_pad_arg_upward): Pad floating-point arguments downward for big-endian...
Richard Sandiford [Sat, 4 Oct 2003 08:11:06 +0000 (08:11 +0000)]
mips.c (mips_pad_arg_upward): Pad floating-point arguments downward for big-endian o64.

* config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
arguments downward for big-endian o64.

From-SVN: r72088

20 years agore PR libstdc++/12206 (Segmentation fault in basic_filebuf::seekoff)
Paolo Carlini [Sat, 4 Oct 2003 07:52:02 +0000 (09:52 +0200)]
re PR libstdc++/12206 (Segmentation fault in basic_filebuf::seekoff)

2003-10-04  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/12206
* include/bits/fstream.tcc (imbue): In case a codecvt facet
is not available, set _M_codecvt = 0.
* testsuite/27_io/basic_filebuf/imbue/12206.cc: New.

From-SVN: r72087

20 years agoltconfig (sys_lib_search_path_spec): Fix a typo for HPUX.
H.J. Lu [Sat, 4 Oct 2003 04:54:17 +0000 (04:54 +0000)]
ltconfig (sys_lib_search_path_spec): Fix a typo for HPUX.

2003-10-03  H.J. Lu  <hongjiu.lu@intel.com>

* ltconfig (sys_lib_search_path_spec): Fix a typo for HPUX.

From-SVN: r72086

20 years agoggc-page.c: (ggc_pch_write_object) replace fseek() with fwrite() in PCH generation...
Robert Bowdidge [Sat, 4 Oct 2003 01:45:51 +0000 (18:45 -0700)]
ggc-page.c: (ggc_pch_write_object) replace fseek() with fwrite() in PCH generation...

* ggc-page.c: (ggc_pch_write_object) replace fseek() with fwrite()
  in PCH generation, avoiding
  too-frequent flushes when writing to NFS file system

From-SVN: r72085

20 years agoDaily bump.
GCC Administrator [Sat, 4 Oct 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72083

20 years agoobjc-act.c (lookup_category): Mark as 'inline'.
Ziemowit Laski [Fri, 3 Oct 2003 22:49:54 +0000 (22:49 +0000)]
objc-act.c (lookup_category): Mark as 'inline'.

2003-10-03  Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-act.c (lookup_category): Mark as 'inline'.

From-SVN: r72081

20 years agoobjc-act.c (add_method_to_hash_list, [...]): New functions.
Alexander Malmberg [Fri, 3 Oct 2003 22:24:03 +0000 (22:24 +0000)]
objc-act.c (add_method_to_hash_list, [...]): New functions.

[gcc]
2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
            Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-act.c (add_method_to_hash_list, lookup_category):
        New functions.
        (lookup_method_in_hash_lists): New parameter indicating whether
        we are messaging 'Class' or 'id'.
        (check_duplicates): Likewise; do not assume all methods will
        be either class or instance methods.
        (generate_category, finish_class): Use lookup_category().
        (add_method): Use add_method_to_hash_list(); insert instance
        methods of root classes into the global class method hash table.
        (add_category): Use lookup_category(); avoid constructing
        duplicate categories.
        (really_start_method): Add method to corresponding @interface,
        if not already there (and if the @interface exists).
        (finish_message_expr, finish_objc): Adjust calls to
        check_duplicates().

[gcc/testsuite]
2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
            Ziemowit Laski  <zlaski@apple.com>

        * objc.dg/method-6.m ('starboard'): Move prototype from 'Base' to
        'Derived', so that it is never considered a class method; add
        new warning for '+port' method ambiguity.
        * objc.dg/method-12.m: Include <objc/objc.h> instead of
        <objc/objc-api.h> (needed on Mac OS X).
        * objc.dg/method-13.m: New test.

Co-Authored-By: Ziemowit Laski <zlaski@apple.com>
From-SVN: r72080

20 years agoPR optimization/9325, PR java/6391
Roger Sayle [Fri, 3 Oct 2003 21:33:57 +0000 (21:33 +0000)]
PR optimization/9325, PR java/6391

PR optimization/9325, PR java/6391
* fold-const.c (fold_convert): For floating point to integer
conversions, return the maximum/minimum representable integer
value if the real constant overflows the destination type.
* tree.c (real_value_from_int_cst): Allow the type to be NULL,
meaning don't truncate the result to a floating point mode.
Simplify the logic by calling real_from_integer directly.
* simplify-rtx.c (simplify_unary_operation):  Implement the
same semantics for folding floating point to integer conversions
in RTL.

* gcc.c-torture/execute/20031003-1.c: New test case.

From-SVN: r72079

20 years agomips.c (mips_emit_prefetch): Restructure to avoid use of arrays, handle indexed prefetch.
Chris Demetriou [Fri, 3 Oct 2003 21:13:13 +0000 (21:13 +0000)]
mips.c (mips_emit_prefetch): Restructure to avoid use of arrays, handle indexed prefetch.

2003-10-03  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (mips_emit_prefetch): Restructure
        to avoid use of arrays, handle indexed prefetch.
        * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
        (ISA_HAS_PREFETCHX): New deffine.
        * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
        update comments.
        (prefetch_indexed_di, prefetch_indexed_si): New insns.

From-SVN: r72077

20 years agodecl.c (struct cp_binding_level): Move to name-lookup.h
Gabriel Dos Reis [Fri, 3 Oct 2003 20:27:05 +0000 (20:27 +0000)]
decl.c (struct cp_binding_level): Move to name-lookup.h

* decl.c (struct cp_binding_level): Move to name-lookup.h
(current_binding_level): Likewise.
(class_binding_level): Likewise.
* cp-tree.h (enum scope_kind): Likewise.

From-SVN: r72076

20 years ago* configure: Rebuild.
Jeff Sturm [Fri, 3 Oct 2003 19:38:05 +0000 (19:38 +0000)]
* configure: Rebuild.

From-SVN: r72075

20 years agoconfigure.in: Remove NO_GETENV definition for win32.
Hans Boehm [Fri, 3 Oct 2003 18:43:06 +0000 (18:43 +0000)]
configure.in: Remove NO_GETENV definition for win32.

* configure.in: Remove NO_GETENV definition for win32.
* mach_dep.c (GC_generic_push_regs): Prevent tail call optimization.
* misc.c (GC_init_inner): Call GC_thr_init for win32.
  (GC_set_warn_proc): Add assertion.
* win32_threads.c: Import 6.3alpha2 version.
* include/private/gc_priv.h: Add support for EMPTY_GETENV_RESULTS.

From-SVN: r72074

20 years agore PR rtl-optimization/12289 (Solaris 9/Intel bootstrap failure: ICE in expand_call...
Jeff Sturm [Fri, 3 Oct 2003 17:59:37 +0000 (17:59 +0000)]
re PR rtl-optimization/12289 (Solaris 9/Intel bootstrap failure: ICE in expand_call compiling java/io/ObjectInputStream.java)

PR optimization/12289
* calls.c (emit_call_1): Pretend to have popped the arguments
to noreturn and longjmp functions instead of ignoring them.
(expand_call): Don't adjust stack_pointer_dela while
inhibit_defer_pop is set.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>
From-SVN: r72073

20 years agore PR bootstrap/12276 (Configure check for libunwind does not work with cross)
Andreas Schwab [Fri, 3 Oct 2003 17:49:39 +0000 (17:49 +0000)]
re PR bootstrap/12276 (Configure check for libunwind does not work with cross)

PR bootstrap/12276
* configure.in: Check for libunwind on the host only if building
a native compiler.
* configure: Regenerated.

From-SVN: r72072

20 years agounwind-pe.h (read_encoded_value_with_base): Constify u and its inizialization cast.
Paolo Carlini [Fri, 3 Oct 2003 15:42:08 +0000 (17:42 +0200)]
unwind-pe.h (read_encoded_value_with_base): Constify u and its inizialization cast.

2003-10-03  Paolo Carlini  <pcarlini@unitus.it>

* unwind-pe.h (read_encoded_value_with_base): Constify u and
its inizialization cast.

From-SVN: r72071

20 years agoname-lookup.c (binding_entry_free): Nullify name and type fields.
Gabriel Dos Reis [Fri, 3 Oct 2003 10:59:52 +0000 (10:59 +0000)]
name-lookup.c (binding_entry_free): Nullify name and type fields.

        * name-lookup.c (binding_entry_free): Nullify name and type
        fields.

From-SVN: r72069

20 years agoAdded a missing ChangeLog Entry:
Andrew Haley [Fri, 3 Oct 2003 10:04:40 +0000 (10:04 +0000)]
Added a missing ChangeLog Entry:

2003-08-20  Andrew Haley  <aph@redhat.com>

        * except.c (prepare_eh_table_type): Use new encoding for exception
        handlers when using -fno-assume-compiled.

From-SVN: r72068

20 years agore PR target/12485 (MIPS -mxgot causes "bad" exception handling code.)
Richard Sandiford [Fri, 3 Oct 2003 06:55:02 +0000 (06:55 +0000)]
re PR target/12485 (MIPS -mxgot causes "bad" exception handling code.)

PR target/12485
* config/mips/mips.c (mips_load_got): GOT accesses can't trap.

From-SVN: r72066

20 years agoFix typo
Mark Mitchell [Fri, 3 Oct 2003 01:22:58 +0000 (01:22 +0000)]
Fix typo

From-SVN: r72064

20 years agore PR libstdc++/12451 (missing(late) class forward declaration in cxxabi.h)
Harald Boehme [Fri, 3 Oct 2003 00:36:45 +0000 (00:36 +0000)]
re PR libstdc++/12451 (missing(late) class forward declaration in cxxabi.h)

2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>

PR libstdc++/12451
* libsupc++/cxxabi.h: Move forward declaration of __class_type_info.

From-SVN: r72059

20 years agoFix typo
Mark Mitchell [Fri, 3 Oct 2003 00:28:52 +0000 (00:28 +0000)]
Fix typo

From-SVN: r72058

20 years agore PR rtl-optimization/12180 (Inline optimization fails for variadic function)
Mark Mitchell [Fri, 3 Oct 2003 00:23:30 +0000 (00:23 +0000)]
re PR rtl-optimization/12180 (Inline optimization fails for variadic function)

PR optimization/12180
* tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
functions containing calls to

PR optimization/12180
* gcc.dg/20031002-1.c: New test.

From-SVN: r72057

20 years agoDaily bump.
GCC Administrator [Fri, 3 Oct 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72055

20 years agomips.c (mips_emit_prefetch): Use operand 3 in instructions being output.
Chris Demetriou [Thu, 2 Oct 2003 23:45:05 +0000 (23:45 +0000)]
mips.c (mips_emit_prefetch): Use operand 3 in instructions being output.

2003-10-02  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (mips_emit_prefetch): Use operand 3
        in instructions being output.
        * config/mips/mips.md (prefetch_si_address): Change third
        operand's constraint letter to 'I'.
        (prefetch_di_address): Likewise.
        (prefetch_si, prefetch_di): Set third operand to const0_rtx.

From-SVN: r72053

20 years agore PR c++/12486 (Accepts IMHO invalid C++ code)
Mark Mitchell [Thu, 2 Oct 2003 23:14:01 +0000 (23:14 +0000)]
re PR c++/12486 (Accepts IMHO invalid C++ code)

PR c++/12486
* typeck.c (finish_class_member_access_expr): Issue diagnostic
on erroneous use of qualified name.

PR c++/12486
* g++.dg/inherit/error1.C: New test.

From-SVN: r72052

20 years agolocale_classes.h (locale::facet::_S_get_c_name): Add.
Benjamin Kosnik [Thu, 2 Oct 2003 23:06:13 +0000 (23:06 +0000)]
locale_classes.h (locale::facet::_S_get_c_name): Add.

2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
* src/locale.cc: Define.
* src/localename.cc: Use it.
* config/locale/generic/time_members.h: Same.
* config/locale/gnu/messages_members.h: Same.
* config/locale/gnu/time_members.h: Same.

From-SVN: r72050

20 years agore PR libstdc++/12232 (Incorrect handling of openmode argument in filebuf::seekoff...
Paolo Carlini [Thu, 2 Oct 2003 20:37:06 +0000 (22:37 +0200)]
re PR libstdc++/12232 (Incorrect handling of openmode argument in filebuf::seekoff and seekpos)

2003-10-02  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/12232
* include/bits/fstream.tcc (seekoff): Ignore the openmode
argument; simplify.
* config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
seekpos): Remove the openmode argument.
* config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
seekpos): Remove redundant placeholder for the openmode argument.
* testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
* testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
* testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.

From-SVN: r72048

20 years ago2003-10-02 Guilhem Lavaux <guilhem@kaffe.org>
Guilhem Lavaux [Thu, 2 Oct 2003 19:29:31 +0000 (19:29 +0000)]
2003-10-02  Guilhem Lavaux  <guilhem@kaffe.org>

* java/net/InetSocketAddress.java
(InetSocketAddress): Made exception more clear.
(equals): Handle case when addr is null.
(toString): Likewise.
* java/net/NetworkInterface.java
(static): Load native library.
(getNetworkInterfaces): Rewritten.

From-SVN: r72047

20 years agostrerror.c: Revert last change.
Daniel Jacobowitz [Thu, 2 Oct 2003 19:06:29 +0000 (19:06 +0000)]
strerror.c: Revert last change.

* strerror.c: Revert last change.  Declare static sys_nerr
and sys_errlist using different names.

From-SVN: r72046

20 years agolocale.cc (locale::_S_initialize): Use __gthread_active_p.
Benjamin Kosnik [Thu, 2 Oct 2003 19:02:58 +0000 (19:02 +0000)]
locale.cc (locale::_S_initialize): Use __gthread_active_p.

2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>

* src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
(locale::facet::_S_get_c_locale): Same.

From-SVN: r72045

20 years agoGtkComponentPeer.java (insets): New field.
Thomas Fitzsimmons [Thu, 2 Oct 2003 18:34:56 +0000 (18:34 +0000)]
GtkComponentPeer.java (insets): New field.

2003-10-02  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkComponentPeer.java (insets): New
field.
(initializeInsets): New method.
(GtkComponentPeer): Call initializeInsets.  Call setCursor and
setBounds unconditionally.
(setBounds): Convert coordinates if parent is a Window.
* gnu/java/awt/peer/gtk/GtkContainerPeer.java (insets): Move
field to GtkComponentPeer.
(GtkContainerPeer): Don't initialize insets.
* gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
New method.
(create): Call new GtkWindowPeer create method.
* gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
New method.
(create): Call new GtkWindowPeer create method.
(setBounds): Remove method.
(postConfigureEvent): Likewise.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java: Replace GTK window
type constants with GDK window type constants.
(create(int,boolean,int,int,GtkWindowPeer)): New method.
(create(int,boolean)): Likewise.
(create()): Call create(int,boolean).
(nativeSetBounds): New native method declaration.
(setBounds): Call native method declaration.
(setSize): New native method declaration.
(setBoundsCallback): Likewise.
(postConfigureEvent): Handle change in insets.  Call setSize and
setBoundsCallback methods.
* java/awt/Window.java (Window): Set visible to false.
(setBoundsCallback): New method.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(gtkWidgetGetLocationOnScreen): If this component is not a
container, adjust the location returned based on the peer's
allocation.
(set(String,boolean)): Revert change from 2003-09-19.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(awt_event_handler): Fix inset calculation.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Add JNI
glue for Window.setBoundsCallback.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
Set up stacking order, window decorations and window manager
hints.
(setBoundsCallback): New method.
(setSize): New method.
(nativeSetBounds): New method.
* jni/gtk-peer/gtkpeer.h: Declare setBoundsCallbackID.

From-SVN: r72043

20 years agocorrect comment
Jason Merrill [Thu, 2 Oct 2003 17:43:57 +0000 (13:43 -0400)]
correct comment

From-SVN: r72042

20 years agosystem.h: Poison macros obsoleted by earlier patch.
Zack Weinberg [Thu, 2 Oct 2003 17:22:57 +0000 (17:22 +0000)]
system.h: Poison macros obsoleted by earlier patch.

* system.h: Poison macros obsoleted by earlier patch.
* config/cris/cris.c: C90-ify a function definition.

From-SVN: r72041

20 years ago[multiple changes]
Benjamin Kosnik [Thu, 2 Oct 2003 16:56:39 +0000 (16:56 +0000)]
[multiple changes]

2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>

* config/linker-map.gnu: Export _S_get_c_locale instead of
_S_c_locale object.

2003-10-02  Petur Runolfsson  <peturr02@ru.is>

* config/locale/generic/c_locale.cc
(category_names, locale::_S_categories): Const qualify.
* config/locale/gnu/c_locale.cc: Same.
* config/locale/generic/time_members.h (__timepunct::__timepunct):
Copy string contents before assigning to _M_name_timepunct,
qualify strcpy and strlen with std::.
* config/locale/gnu/time_members.h: Same.
* config/locale/gnu/messages_members.h (messages::messages):
Copy string contents before assigning to _M_name_messages,
qualify strcpy and strlen with std::.
* config/os/gnu-linux/ctype_noninline.h
(ctype<char>::classic_table()): Don't call locale::classic().
* include/bits/locale_classes.h
(locale::_S_categories): Const qualify.
(locale::_S_once, locale::_S_initialize_once,
locale::facet::_S_once, locale::facet::_S_initialize_once,
locale::facet::_S_get_c_locale): Declare.
(locale::_S_initialize): Don't define.
(locale::facet::_S_c_locale): Make private.
(locale::facet::_S_c_name): Same, const qualify.
(locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
parameters, add throw() specifier.
* include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
messages::_M_name_messages): Const qualify.
* src/locale.cc
(locale::_S_once, locale::facet::_S_once): Define.
(locale::classic): Move initialization code...
(locale::_S_initialize_once): ...here.
(locale::_S_initialize): Call _S_initialize_once through
__gthread_once.
(locale::facet::_S_initialize_once): Initialize _S_c_locale.
(locale::facet::_S_get_c_locale): Call _S_initialize_once through
__gthread_once before returning _S_c_locale.
* src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
Drop unused parameters, add throw() specifier, don't initialize
locale::facet::_S_c_locale and _S_c_name.

* config/locale/generic/messages_members.h:
Replace _S_c_locale with _S_get_c_locale().
* config/locale/gnu/c_locale.cc: Same.
* config/locale/gnu/messages_members.h: Same.
* config/locale/gnu/numeric_members.cc: Same.
* config/locale/gnu/time_members.cc: Same.
* config/os/gnu-linux/ctype_noninline.h: Same.
* include/bits/locale_facets.h: Same.
* include/bits/locale_facets.tcc: Same.
* src/codecvt.cc: Same.
* src/ctype.cc: Same.

From-SVN: r72040

20 years agof-torture.exp (search_for): Rename to...
Chris Demetriou [Thu, 2 Oct 2003 15:57:58 +0000 (15:57 +0000)]
f-torture.exp (search_for): Rename to...

2003-10-02  Chris Demetriou  <cgd@broadcom.com>

        * lib/f-torture.exp (search_for): Rename to...
        (search_for_re): This.  Also, clean up comments and the
        "regexp" invocation.

From-SVN: r72039

20 years agoVMClassLoader.java (loadClass): Now native.
Tom Tromey [Thu, 2 Oct 2003 15:34:28 +0000 (15:34 +0000)]
VMClassLoader.java (loadClass): Now native.

* java/lang/VMClassLoader.java (loadClass): Now native.
* java/lang/natClassLoader.cc (loadClass): Implement.
* prims.cc (_Jv_RunMain): Initialize ClassLoader.

From-SVN: r72038

20 years ago* gcc.c-torture/compile/20031002-1.c: New test.
Josef Zlomek [Thu, 2 Oct 2003 15:26:33 +0000 (17:26 +0200)]
* gcc.c-torture/compile/20031002-1.c: New test.

From-SVN: r72035

20 years agocombine.c (make_field_assignment): Check whether rtx's code is CONST_INT before using...
Josef Zlomek [Thu, 2 Oct 2003 15:17:34 +0000 (17:17 +0200)]
combine.c (make_field_assignment): Check whether rtx's code is CONST_INT before using INTVAL.

PR/12292
* combine.c (make_field_assignment): Check whether rtx's code
is CONST_INT before using INTVAL.

From-SVN: r72033

20 years ago2003-10-02 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 2 Oct 2003 15:17:13 +0000 (15:17 +0000)]
2003-10-02  Michael Koch  <konqueror@gmx.de>

* java/net/InetAddress.java
(zeros): Removed.
(ANY_IF): Initalizie in static block.
(static): Load library with native methods here and initialize ANY_IF.
(isAnyLocalAddress): Check if equal to ANY_IF.
(equals): Use addr directly instead of addr1. Simplify for loop.
(toString): Rename "result" to "host" and add IP address allways.
(getLocalHost): Merged documentation from classpath.
* java/net/ServerSocket.java
(ServerSocket): New package-private constructor used by java.nio.
* java/net/URLConnection.java
(getRequestProperties): Check if already connected.

From-SVN: r72032

20 years agocgraph.c (cgraph_node): Use INSERT instead of 1 in htab_find_slot_with_hash.
Josef Zlomek [Thu, 2 Oct 2003 15:11:40 +0000 (17:11 +0200)]
cgraph.c (cgraph_node): Use INSERT instead of 1 in htab_find_slot_with_hash.

* cgraph.c (cgraph_node): Use INSERT instead of 1 in
htab_find_slot_with_hash.
(cgraph_node_for_identifier): Use NO_INSERT.
(cgraph_remove_node): Use NO_INSERT.
(cgraph_varpool_node): Use INSERT.
(cgraph_varpool_node_for_identifier): Use NO_INSERT.

From-SVN: r72031

20 years agoByteBufferHelper.java: Rewrote all methods by suggestions from Eric Blake.
Michael Koch [Thu, 2 Oct 2003 15:02:32 +0000 (15:02 +0000)]
ByteBufferHelper.java: Rewrote all methods by suggestions from Eric Blake.

2003-10-02  Michael Koch  <konqueror@gmx.de>

* java/nio/ByteBufferHelper.java:
Rewrote all methods by suggestions from Eric Blake.

From-SVN: r72030

20 years agoWaldek Hebisch <hebisch@math.uni.wroc.pl> PR/12072
Josef Zlomek [Thu, 2 Oct 2003 14:47:51 +0000 (16:47 +0200)]
Waldek Hebisch <hebisch@math.uni.wroc.pl> PR/12072

Waldek Hebisch <hebisch@math.uni.wroc.pl>
PR/12072
* varasm.c (compare_constant): Fix thinko.

From-SVN: r72028

20 years agodemangle.h (demangle<Allocator>::symbol(char const*)): Decode symbols that start...
Carlo Wood [Thu, 2 Oct 2003 14:29:26 +0000 (14:29 +0000)]
demangle.h (demangle<Allocator>::symbol(char const*)): Decode symbols that start with _GLOBAL_[ID]_ differently...

* include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
Decode symbols that start with _GLOBAL_[ID]_ differently: the
trailing part ends with a terminating zero and is not necessarily an
encoding.
* src/demangle.cc (): Same.
* testsuite/demangle/regression/cw-13.cc: Adjust for new output.

From-SVN: r72027

20 years agofrv.c (frv_issue_rate): New function.
Richard Sandiford [Thu, 2 Oct 2003 12:26:39 +0000 (12:26 +0000)]
frv.c (frv_issue_rate): New function.

* config/frv/frv.c (frv_issue_rate): New function.
(frv_pack_insns): Use it.
(TARGET_SCHED_ISSUE_RATE): Define.

From-SVN: r72026

20 years agoFixed a little mistake that got into last commit.
Michael Koch [Thu, 2 Oct 2003 12:16:52 +0000 (12:16 +0000)]
Fixed a little mistake that got into last commit.

From-SVN: r72025

20 years ago12438.cc: Use __gnu_test::try_named_locale("").
Paolo Carlini [Thu, 2 Oct 2003 12:16:31 +0000 (14:16 +0200)]
12438.cc: Use __gnu_test::try_named_locale("").

2003-10-02  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/22_locale/locale/cons/12438.cc: Use
__gnu_test::try_named_locale("").

From-SVN: r72024

20 years ago2003-10-02 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 2 Oct 2003 12:14:44 +0000 (12:14 +0000)]
2003-10-02  Michael Koch  <konqueror@gmx.de>

* java/net/URL.java
(DEFAULT_SEARCH_PATH): New static variable.
(ph_cache): Made it a HashMap.
(getURLStreamHandler): Rename propVal to ph_search_path and use
DEFAULT_SEARCH_PATH.

From-SVN: r72023

20 years ago* g++.dg/opt/cond1.C: New test.
Jakub Jelinek [Thu, 2 Oct 2003 12:11:45 +0000 (14:11 +0200)]
* g++.dg/opt/cond1.C: New test.

From-SVN: r72022

20 years agomcore.c: Convert to ISO C90 function declarations and definitions.
Steven Bosscher [Thu, 2 Oct 2003 10:48:54 +0000 (12:48 +0200)]
mcore.c: Convert to ISO C90 function declarations and definitions.

* config/mcore/mcore.c: Convert to ISO C90 function declarations and definitions.
* config/mcore/mcore.h: Likewise.
* config/mcore/mcore-protos.h: Likewise.

From-SVN: r72020

20 years ago2003-10-02 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 2 Oct 2003 09:37:04 +0000 (09:37 +0000)]
2003-10-02  Michael Koch  <konqueror@gmx.de>

* javax/swing/table/AbstractTableModel.java
(findColumnName): Prevent from NullPointerException if argument
columnName is null.

2003-10-02  Michael Koch  <konqueror@gmx.de>

* javax/swing/table/AbstractTableModel.java:
This patch is based on a patch done by Arnaud Vandyck
<arnaud.vandyck@ulg.ac.be>.
(getColumnName): Fixed method documentation.
(findColumn): Likewise.
(getColumnClass): Likewise.
(isCellEditable): Likewise.
(setValueAt): Likewise.
(addTableModelListener): Likewise.
(removeTableModelListener): Likewise.
(getTableModelListeners): New method.

2003-10-02  Michael Koch  <konqueror@gmx.de>

* javax/swing/table/AbstractTableModel.java:
Reformated.

From-SVN: r72019

20 years agofrv.c (frv_use_dfa_pipeline_interface): New function.
Richard Sandiford [Thu, 2 Oct 2003 08:22:02 +0000 (08:22 +0000)]
frv.c (frv_use_dfa_pipeline_interface): New function.

* config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
(TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.

From-SVN: r72018

20 years agocpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change callback even when...
Per Bothner [Thu, 2 Oct 2003 07:30:34 +0000 (07:30 +0000)]
cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change callback even when popping the main file.

* cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
callback even when popping the main file.

* cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
remove the unused return_at_eof parameter.
* cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
Update callers of cpp_push_buffer.

From-SVN: r72016

20 years agoc-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
Per Bothner [Thu, 2 Oct 2003 07:25:03 +0000 (07:25 +0000)]
c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.

* c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
(c_common_parse_file):  No longer need to call cpp_read_main_file
when file_index > 0 (as in multi-file or server compiation).
(finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
as this now happens before cpp_push_main_file.
(push_command_line_include):  When done with options, pass LC_LEAVE
instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
(fe_file_change):  Handle NULL new_map, and simplify.

From-SVN: r72015

20 years agocppinit.c (cpp_read_main_file): Split into two functions: Distribute _cpp_stack_file...
Per Bothner [Thu, 2 Oct 2003 07:23:27 +0000 (07:23 +0000)]
cppinit.c (cpp_read_main_file): Split into two functions: Distribute _cpp_stack_file call over the two functions.

* cppinit.c (cpp_read_main_file):  Split into two functions:
Distribute _cpp_stack_file call over the two functions.
(cpp_find_main_file):  New function.
Don't call _cpp_do_file_change even if working_directory flag set.
(cpp_push_main_file):  New function.
* cppfiles.c (_cpp_find_failed):  New helper function.
(find_file):  Made non-static and renamed to _cpp_find_file.
(_cpp_stack_file):  No longer needed.  But note the following.
(stack_file):  Made non-static and renamed to _cpp_stack_file.
* fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
call with calls to cpp_find_main_file and cpp_push_main_file.
(search_path_head):  If there is no current buffer, use main_file.
* cpphash.h:  Update function declarations.
* cpplib.h:  Update function declarations.

From-SVN: r72014

20 years agocpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed 08-28 change...
Per Bothner [Thu, 2 Oct 2003 07:20:38 +0000 (07:20 +0000)]
cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed 08-28 change...

* cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
08-28 change, since we're never called with a NULL buffer.
(_cpp_lex_direct):  Likewise.
* cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
Return false if buffer is NULL at end.

* cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
whether pfile->buffer is NULL after pop, ignoring return_at_eof.

From-SVN: r72013

20 years agore PR libgcj/12475 (Stack traces leak memory)
Bryce McKinlay [Thu, 2 Oct 2003 07:10:34 +0000 (07:10 +0000)]
re PR libgcj/12475 (Stack traces leak memory)

Fix PR libgcj/12475
* gnu/gcj/runtime/StackTrace.java (finalize): Declare.
* gnu/gcj/runtime/natStackTrace.cc (finalize): New. Free "addrs".

From-SVN: r72012

20 years agoc-lex.c (fe_file_change): Handle a NULL new_map.
Per Bothner [Thu, 2 Oct 2003 07:03:42 +0000 (07:03 +0000)]
c-lex.c (fe_file_change): Handle a NULL new_map.

* c-lex.c (fe_file_change):  Handle a NULL new_map.
* fix-header.c (cb_file_change):  Likewise.
* c-ppoutput.c (pp_file_change):  Likewise.

From-SVN: r72011

20 years agoc-lex.c (src_line): Remove unneeded static variable.
Per Bothner [Thu, 2 Oct 2003 06:54:46 +0000 (06:54 +0000)]
c-lex.c (src_line): Remove unneeded static variable.

* c-lex.c (src_line):   Remove unneeded static variable.
(cb_line_change):  Set input_line directly, instead of src_line.
(get_non_padding_token):  We no longer need to compensate for the
"horrible things" the C++ front-end does with the current line number,

From-SVN: r72010

20 years agotarget.h (init_libfuncs): New hook.
Zack Weinberg [Thu, 2 Oct 2003 00:44:29 +0000 (00:44 +0000)]
target.h (init_libfuncs): New hook.

* target.h (init_libfuncs): New hook.
* target-def.h: Default TARGET_INIT_BUILTINS and
TARGET_INIT_LIBFUNCS to hook_void_void.  Add
TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
* builtins.c (default_init_builtins): Delete.
* expr.h (default_init_builtins): Delete prototype.
* doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
and UMODDI3_LIBCALL,

* Makefile.in (optabs.o): Depends on target.h.
* defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
* optabs.c: Include target.h.
(prepare_float_lib_cmp): No need for #ifdef around use of
FLOAT_LIB_COMPARE_RETURNS_BOOL.
(set_optab_libfunc): New function.
(init_optabs): Delete use of all *_LIBCALL defines.
Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
* optabs.h: Prototype set_optab_libfunc.

* config.gcc: Remove all references to pa/long_double.h,
ia64/hpux_longdouble.h, and gofast.h.
(mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.

* config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
* config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
* config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
* config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
* config/sparc/sparc.c, config/vax/vax.c:
Provide a definition for TARGET_INIT_LIBFUNCS.  Where
necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.

* config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
* config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
* config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
* config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
* config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
* config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
* config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
* config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.

* config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
* config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
* config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.

* config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
* config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 0.
* config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 1.
* config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
SUN_INTEGER_MULTIPLY_64 to 0.
* config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
Define US_SOFTWARE_GOFAST.
* config/vax/vax.h: Default TARGET_ELF to 0.
* config/vax/elf.h: Redefine TARGET_ELF to 1.

* config/gofast.h: Don't define any macros here.  Provide one
static function, gofast_maybe_init_libfuncs, which does what
INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
is already defined.  Do not clear negation libfuncs.  Do
not mess with HFmode, XFmode, or TFmode libfuncs.

* config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.

From-SVN: r72009

20 years agoDaily bump.
GCC Administrator [Thu, 2 Oct 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72007

20 years ago/tmp/cvs001644
Kelley Cook [Thu, 2 Oct 2003 00:07:50 +0000 (00:07 +0000)]
/tmp/cvs001644

From-SVN: r72005

20 years agoxm-iris5.h: Remove, unnecessary.
Rainer Orth [Wed, 1 Oct 2003 23:51:10 +0000 (23:51 +0000)]
xm-iris5.h: Remove, unnecessary.

* config/mips/xm-iris5.h: Remove, unnecessary.
* config.build (mips-sgi-irix5*): Remove.
(mips-sgi-irix6*o32): Likewise.
* config.gcc (mips-sgi-irix6*o32): Remove xm_file.
(mips-sgi-irix5cross64): Likewise.
(mips-sgi-irix5*): Likewise.
* config.host (mips-sgi-irix5*): Remove.
(mips-sgi-irix6*o32): Likewise.

From-SVN: r72003

20 years agodbxout.c (dbxout_fptype_value): Delete.
Zack Weinberg [Wed, 1 Oct 2003 23:37:30 +0000 (23:37 +0000)]
dbxout.c (dbxout_fptype_value): Delete.

* dbxout.c (dbxout_fptype_value): Delete.
(dbxout_type): Emit R3 for all COMPLEX_TYPEs.

From-SVN: r72002

20 years agostrerror.c: Don't provide or reference sys_errlist if strerror is available.
Daniel Jacobowitz [Wed, 1 Oct 2003 23:12:37 +0000 (23:12 +0000)]
strerror.c: Don't provide or reference sys_errlist if strerror is available.

* strerror.c: Don't provide or reference sys_errlist if
strerror is available.

From-SVN: r72001