Bryce McKinlay [Mon, 2 Oct 2000 05:14:25 +0000 (06:14 +0100)]
prims.cc (_Jv_argv, _Jv_argc): New fields.
2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
* prims.cc (_Jv_argv, _Jv_argc): New fields.
(JvRunMain): Set _Jv_argv and _Jv_argc.
* java/awt/Component.java: Minor fixes.
* java/awt/Image.java (UndefinedProperty): Initialize final field.
* java/awt/Toolkit.java (systemEventQueue): Removed.
(getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
* java/awt/Window.java (getToolkit): Don't call super.
* java/awt/image/BufferedImage.java: Fix definate assignment errors.
* java/awt/peer/ContainerPeer.java (insets): Remove unused method.
* gnu/awt/gtk/GtkComponentPeer.java: New file.
* gnu/awt/gtk/GtkContainerPeer.java: New file.
* gnu/awt/gtk/GtkFramePeer.java: New file.
* gnu/awt/gtk/GtkMainThread.java: New file.
* gnu/awt/gtk/GtkToolkit.java: New file.
* gnu/awt/gtk/GtkWindowPeer.java: New file.
* gnu/awt/gtk/gtkcommon.cc: New file.
* gnu/awt/gtk/gtkcommon.h: New file.
* gnu/awt/gtk/natGtkComponentPeer.cc: New file.
* gnu/awt/gtk/natGtkContainerPeer.cc: New file.
* gnu/awt/gtk/natGtkFramePeer.cc: New file.
* gnu/awt/gtk/natGtkMainThread.cc: New file.
* gnu/awt/gtk/natGtkToolkit.cc: New file.
* gnu/awt/gtk/natGtkWindowPeer.cc: New file.
From-SVN: r36688
Mark Mitchell [Sun, 1 Oct 2000 19:19:30 +0000 (19:19 +0000)]
c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
* c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
(lang_mark_false_label_stack): Remove.
* c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
<top level> string in GC area.
(mark_splay_tree_node): New function.
(mark_splay_tree): Likewise.
* except.c (mark_eh_status): Only call lang_mark_false_label_stack
if it exists.
* ggc-callbacks.c (lang_mark_false_label_stack): Remove.
* ggc-common.c (lang_mark_false_label_stack): Change type.
* ggc.h (ggc_alloc_string): Add comment.
(ggc_strdup): New function.
* decl.c (lang_mark_false_label_stack): Remove.
* lex.c (cp_mang_lang_type): Use ggc_alloc_cleared.
* com.c (lang_mark_false_label_stack): Remove.
Convert to GC.
* Make-lang.in (s-java): Don't depend on ggc-callbacks.o.
* Makefile.in (BACKEND): Don't include ggc-callbacks.o.
(typeck.o): Depend on ggc.h.
* class.c (add_method_1): Use GC functions for allocation.
(init_class_processing): Register roots.
* decl.c (ggc_p): Set to 1.
(pending_local_decls): Make it static.
(push_jvm_slot): Use GC functions for allocation.
(init_decl_processing): Register roots.
(give_name_to_locals): Use GC functions for allocation.
(lang_mark_tree): New function.
* java-tree.h (MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Use GC
functions for allocation.
* jcf-parse.c (jcf_parse_source): Use ggc_strdup.
* lex.c (java_lex): Use build_string, rather than replicating it
inline.
* parse.y (goal): Add more roots.
(mark_parser_ctxt): New function.
* typeck.c: Include ggc.h.
* splay-tree.c (splay_tree_insert): Fix formatting.
From-SVN: r36687
Denis Chertykov [Sun, 1 Oct 2000 15:29:06 +0000 (15:29 +0000)]
avr.h (BRANCH_COST): Define as 0.
* config/avr/avr.h (BRANCH_COST): Define as 0.
* config/pdp11/pdp11.c: #include "tree.h" added.
From-SVN: r36686
Marek Michalkiewicz [Sun, 1 Oct 2000 14:59:35 +0000 (16:59 +0200)]
avr.c (ashlhi3_out, [...]): Optimize more cases with known shift count.
* config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
with known shift count.
* config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
New alternative for shift count 2 with no scratch register.
(ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
"set_n" for shift counts 1 and 2.
From-SVN: r36685
Jeff Law [Sun, 1 Oct 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r36684
Geoff Keating [Sun, 1 Oct 2000 05:29:14 +0000 (05:29 +0000)]
rs6000.md (movsi_to_cr): Remove the USE.
* config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
the mask value from the individual SET operations.
(return_internal_si): Move the USE after the RETURN.
(return_internal_di): Likewise.
(return_and_restore_fpregs_si): Likewise.
(return_and_restore_fpregs_di): Likewise.
(return_eh_si): Likewise.
(return_eh_di): Likewise.
* config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
or check, the USE.
(rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
Don't generate a PARALLEL around a single operation movsi_to_cr.
Generate the RETURN first in any PARALLELs.
* rtlanal.c (single_set_1): Use fatal_insn to display the
invalid insn. Check for more cases when a USE or CLOBBER occurs
before a SET.
* Makefile.in: Update dependencies for rtlanal.o.
From-SVN: r36683
Zack Weinberg [Sun, 1 Oct 2000 01:24:02 +0000 (01:24 +0000)]
New test
From-SVN: r36682
Tom Tromey [Sat, 30 Sep 2000 10:01:04 +0000 (10:01 +0000)]
posix-threads.cc (_Jv_CondWait): Check to see if we are interrupted before modifying the cv's wait set.
2000-09-30 Tom Tromey <tromey@cygnus.com>
* posix-threads.cc (_Jv_CondWait): Check to see if we are
interrupted before modifying the cv's wait set.
From-SVN: r36680
Hans Boehm [Sat, 30 Sep 2000 09:56:58 +0000 (09:56 +0000)]
Implement bitmap descriptor based marking for Boehm GC.
2000-09-30 Hans Boehm <boehm@acm.org>
Bryce McKinlay <bryce@albatross.co.nz>
Implement bitmap descriptor based marking for Boehm GC.
* configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
* configure: Rebuilt.
* libgcj.spec.in: Pass JC1GCSPEC to jc1.
* include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
method get_finalizer().
(struct _Jv_ArrayVTable): Ditto. Declare method array with
NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
(_Jv_AllocObj): Add new jclass parameter.
(_Jv_AllocArray): Ditto.
(_Jv_BuildGCDescr): New prototype.
* prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
`klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
get_finalizer() instead of direct finalizer vtable offset.
(_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
`klass' to _Jv_AllocArray. Don't set the new array's vtable.
(_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj.
Pass `klass' to _Jv_AllocObj. Don't set the new array's vtable.
* resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
(_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
(_Jv_DetermineVTableIndex): Ditto.
(_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
calculations to account for new gc_descr field.
* boehm.cc: #include gc_gcj.h.
(obj_kind_x, obj_free_list): `#if 0'-ed away.
(_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
New commentary from HB. Mark the classes vtable.
(_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
(GC_DEFAULT_DESCR): New #define.
(_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
(_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
(_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
scan conservativly if size is less than min_heap_addr. Set vtable
pointer of new object before returning.
(_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
(_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
allocation for obj_kind_x.
* nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
(_Jv_AllocObj): Set vtable on returned object.
(_Jv_AllocArray): Ditto.
* java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
(_Jv_NewPrimArray): Ditto.
(_Jv_AllocObj): Declare as a friend.
(_Jv_AllocArray): Ditto.
* java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
from &ObjectClass into new array class. Remove offset-by-one
adjustments from `method' size calculations to account for gc_descr
field.
Co-Authored-By: Bryce McKinlay <bryce@albatross.co.nz>
From-SVN: r36679
Bryce McKinlay [Sat, 30 Sep 2000 09:54:21 +0000 (09:54 +0000)]
configure.in: Define GC_GCJ_SUPPORT.
2000-09-30 Bryce McKinlay <bryce@albatross.co.nz>
* configure.in: Define GC_GCJ_SUPPORT. Define NO_DEBUGGING in
cross-compile configuration only.
* Makefile.am: Build gcj_mlc.c.
* configure, Makefile.in: Rebuilt.
From-SVN: r36678
Joseph Myers [Sat, 30 Sep 2000 08:05:55 +0000 (09:05 +0100)]
* i386.c: Move include of "config.h" to before that of <setjmp.h>.
From-SVN: r36677
Joseph Myers [Sat, 30 Sep 2000 08:04:01 +0000 (09:04 +0100)]
c-tree.texi, [...]: Consistently use @email for formatting email addresses.
* c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
Consistently use @email for formatting email addresses.
cp:
* gxxint.texi: Use @email for formatting email addresses.
From-SVN: r36676
Jeff Law [Sat, 30 Sep 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r36675
Alexandre Oliva [Sat, 30 Sep 2000 06:20:24 +0000 (06:20 +0000)]
Makefile.in (DEVO_SUPPORT): Added gettext.m4, libtool.m4, ltcf-c.sh, ltcf-cxx.sh and ltcf-gcj.sh.
* Makefile.in (DEVO_SUPPORT): Added gettext.m4, libtool.m4,
ltcf-c.sh, ltcf-cxx.sh and ltcf-gcj.sh.
From-SVN: r36674
Alexandre Oliva [Sat, 30 Sep 2000 06:11:54 +0000 (06:11 +0000)]
ltconfig, [...]: Updated from libtool multi-language branch, to work around Solaris' /bin/sh bug.
* ltconfig, ltmain.sh, libtool.m4: Updated from libtool
multi-language branch, to work around Solaris' /bin/sh bug. Rebuilt
all affected `configure' scripts.
From-SVN: r36673
Alexandre Oliva [Sat, 30 Sep 2000 06:02:57 +0000 (06:02 +0000)]
ltconfig, [...]: Updated from libtool multi-language branch, to work around Solaris' /bin/sh bug.
* ltconfig, ltmain.sh, libtool.m4, ltcf-cxx.sh: Updated from libtool
multi-language branch, to work around Solaris' /bin/sh bug. Rebuilt
all affected `configure' scripts.
From-SVN: r36672
Richard Henderson [Fri, 29 Sep 2000 23:22:20 +0000 (16:22 -0700)]
cse.c (notreg_cost): New argument outer.
* cse.c (notreg_cost): New argument outer.
(COST): Pass in SET to notreg_cost
(COST_IN): New.
(fold_rtx): Use COST_IN. Prefer constants when costs
are the same.
From-SVN: r36671
Alexandre Petit-Bianco [Fri, 29 Sep 2000 20:14:53 +0000 (20:14 +0000)]
parse.y (maybe_yank_clinit): Also keep <clinit> if its body contains something else than MODIFY_EXPR.
2000-09-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (maybe_yank_clinit): Also keep <clinit> if its body
contains something else than MODIFY_EXPR.
(http://gcc.gnu.org/ml/gcc-patches/2000-09/msg01141.html)
From-SVN: r36670
David Edelsohn [Fri, 29 Sep 2000 17:47:32 +0000 (17:47 +0000)]
inclhack.def (broken_cabs): Generalize regex.
* fixinc/inclhack.def (broken_cabs): Generalize regex.
* fixinc/fixincl.x: Regenerate.
From-SVN: r36669
Franz Sirl [Fri, 29 Sep 2000 17:38:25 +0000 (17:38 +0000)]
loop.c (check_final_value): A GIV is not replaceable if used before set.
2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* loop.c (check_final_value): A GIV is not replaceable if used
before set.
From-SVN: r36668
Jeffrey A Law [Fri, 29 Sep 2000 16:03:36 +0000 (16:03 +0000)]
* version.c: Bump to gcc-2.97.
From-SVN: r36667
Gabriel Dos Reis [Fri, 29 Sep 2000 11:50:32 +0000 (11:50 +0000)]
error.c: Remove direct obstack manipulation.
cp/
* error.c: Remove direct obstack manipulation. Replace with
output_buffer-based formatting. Adjust calls to removed macros.
(obstack_chunk_alloc, obstack_chunk_free): Remove.
(OB_INIT, OB_PUTC, OB_PUTC2, OB_PUTS, OB_PUTID, OB_PUTCP,
OB_FINISH, OB_PUTI, OB_END_TEMPLATE): Likewise.
testsuite/
* g++.old-deja/g++.ext/pretty3.C: Fix comparison with
__PRETTY_FUNCTION__.
* g++.old-deja/g++.ext/pretty2.C: Likewise.
From-SVN: r36666
Jan Hubicka [Fri, 29 Sep 2000 11:40:24 +0000 (11:40 +0000)]
final.c (final_scan_insn): Remove extra extract_insn call; Use caching for constrain_operands.
* final.c (final_scan_insn): Remove extra extract_insn call;
Use caching for constrain_operands.
(cleanup_subreg_operands): Use caching for extract_insn.
* recog.c (constrain_operands_cached): New.
* recog.h (constrain_operands_cached): Declare.
* i386.c (ix86_attr_length_immediate_default,
ix86_attr_length_address_default, ix86_agi_dependant): Cache
extract_insn call.
* recog.c (asm_noperands): Tweak.
(extract_insn): Do not call asm_noperads for non-asm instructions.
From-SVN: r36665
Jan Hubicka [Fri, 29 Sep 2000 11:24:13 +0000 (11:24 +0000)]
recog.c (recog_memoized): Rename to recog_memoized_1.
* recog.c (recog_memoized): Rename to recog_memoized_1.
* recog.h (recog_memoized): Rename to recog_memoized_1.
(recog_memoized): New macro.
* rtl.h (single_set): Rename to single_set_1
(single_set): New macro.
* rtlanal.c (single_set): Rename to single_set_1; expect clobbers
to be last.
* i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
Do not use match_dup of input operands at outputs.
Use register_operand for memory expression.
(rep_movsi): Put use last, canonicalize.
Use register_operand for memory expression.
(rep_movqi): Put use last.
Use register_operand for memory expression.
(strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
of input operands at outputs. Use register_operand for memory
expression.
(rep_stossi): Put use last; canonicalize; fix match_dup in
the address expression
(rep_stosqi): Likewise.
(memcmp expander): Update calls.
(cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
the clobbers.
* i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
VOIDmode.
(fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
From-SVN: r36664
Jeff Law [Fri, 29 Sep 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r36663
David O'Brien [Fri, 29 Sep 2000 01:56:02 +0000 (01:56 +0000)]
freebsd-aout.h: New, FreeBSD a.out config file.
2000-09-28 David O'Brien <obrien@FreeBSD.org>
* config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
Contains the old contents of config/i386/freebsd.h
* config/i386/freebsd.h: Now the ELF rather than a.out config file.
Contains the old contents of config/i386/freebsd-elf.h
* config/i386/freebsd-elf.h: Retire this file -- contents moved to
config/i386/freebsd.h.
* configure.in: Adjust for above changes.
* po/POTFILES.in: Likewise.
* po/en_GB.po: Likewise.
* po/gcc.pot: Likewise.
* configure: Rebuilt.
Approved by: Richard Henderson <rth@cygnus.com>
Message-ID: <
20000927093029.A30906@cygnus.com>
From-SVN: r36662
Franz Sirl [Thu, 28 Sep 2000 22:36:49 +0000 (22:36 +0000)]
doloop.c (doloop_modify): Prevent delete_insn() from deleting too much.
2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* doloop.c (doloop_modify): Prevent delete_insn() from
deleting too much. Prefer loop->top over loop->start as
target for the new JUMP insn.
(doloop_valid_p): Ignore loop with exit_count != 0.
From-SVN: r36661
Kaveh R. Ghazi [Thu, 28 Sep 2000 14:48:40 +0000 (14:48 +0000)]
* gcc.dg/wtr-int-type-1.c: Don't expect a warning from system headers.
From-SVN: r36660
Philipp Thomas [Thu, 28 Sep 2000 13:57:20 +0000 (13:57 +0000)]
invoke.texi (i386 Options): Add athlon to table of possible choices for -mcpu=.
2000-09-28 Philipp Thomas <pthomas@suse.de>
* invoke.texi (i386 Options): Add athlon to table of possible
choices for -mcpu=.
From-SVN: r36659
Gabriel Dos Reis [Thu, 28 Sep 2000 12:50:37 +0000 (12:50 +0000)]
diagnostic.h (output_clear_message_text): New function.
* diagnostic.h (output_clear_message_text): New function.
(output_message_text): New macro.
* diagnostic.c (clear_text_info): Rename to
output_clear_message_text.
(output_clear): Adjust.
(output_finish): Rename to output_finalize_message. Tweek.
(output_to_stream): Adjust.
From-SVN: r36658
Gerald Pfeifer [Thu, 28 Sep 2000 11:24:18 +0000 (13:24 +0200)]
gcc_update (touch_files): Add some informative output.
From-SVN: r36657
Jeff Law [Thu, 28 Sep 2000 07:45:10 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r36656
Neil Booth [Thu, 28 Sep 2000 05:55:22 +0000 (05:55 +0000)]
cpperror.c (_cpp_begin_message): Do the test for suppression of warnings and pedantic warnings before the "is a...
* cpperror.c (_cpp_begin_message): Do the test for suppression
of warnings and pedantic warnings before the "is a warning an
error" tests.
* cppinit.c (cpp_handle_option): Remove surplus \n.
* cpplex.c (ON_REST_ARG): Delete.
(skip_block_comment): Initialise prevc.
(parse_args): Improve error messages.
(maybe_paste_with_next): Use CONTEXT_VARARGS rather
than ON_REST_ARG.
* cpplib.c (cpp_push_buffer): Fix grammar in message.
* cppmain.c (main): Set callbacks for #ident and #pragma
only if no_output option is false.
(do_pragma_implementation): Only call the #pragma handler
if it is set in the cpp_reader structure.
From-SVN: r36655
Donald Lindsay [Wed, 27 Sep 2000 21:08:33 +0000 (21:08 +0000)]
Patch by rth to fix inline-of-an-inline return-value bug.
From-SVN: r36654
Joseph Myers [Wed, 27 Sep 2000 17:52:56 +0000 (18:52 +0100)]
extend.texi, [...]: Consistently use @uref for formatting URLs.
* extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
use @uref for formatting URLs.
From-SVN: r36653
Jeff Law [Wed, 27 Sep 2000 07:45:10 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r36652
Mark Elbrecht [Wed, 27 Sep 2000 04:54:34 +0000 (04:54 +0000)]
djgpp.h (UNIQUE_SECTION): Constify the variables name and prefix.
* config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
name and prefix.
From-SVN: r36651
Tom Tromey [Tue, 26 Sep 2000 23:46:09 +0000 (23:46 +0000)]
Scrollbar.java (removeAdjustmentListener): Use `remove', not `add'.
* java/awt/Scrollbar.java (removeAdjustmentListener): Use
`remove', not `add'.
From-SVN: r36650
Zack Weinberg [Tue, 26 Sep 2000 22:41:53 +0000 (22:41 +0000)]
Remove stray whitespace on blank line
From-SVN: r36649
David Edelsohn [Tue, 26 Sep 2000 19:57:08 +0000 (19:57 +0000)]
* config/mt-aix43 (NM_FOR_TARGET): Add -B bsd-style flag.
From-SVN: r36648
Alexandre Petit-Bianco [Tue, 26 Sep 2000 19:00:28 +0000 (19:00 +0000)]
natSystem.cc (file_encoding): Added return statement.
2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java/lang/natSystem.cc (file_encoding): Added return statement.
From-SVN: r36647
Neil Booth [Tue, 26 Sep 2000 17:28:07 +0000 (17:28 +0000)]
gcc.c (cpp_options): Add spec for -ftabstop=.
* gcc.c (cpp_options): Add spec for -ftabstop=.
(invoke_as): New spec that handles invoking as.
Update specs to handle -save-temps and -traditional.
* ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
Use invoke_as.
* cp/lang-specs.h, objc/lang-specs.h: Update to use
invoke_as, and handle -save-temps and -traditional (if
appropriate).
From-SVN: r36646
Jakub Jelinek [Tue, 26 Sep 2000 14:14:34 +0000 (16:14 +0200)]
sparc.c (sparc_emit_set_const64): Don't abort when op0 is a SUBREG.
* config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
op0 is a SUBREG.
(function_arg_slotno): Accept TImode/CTImode.
* config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
to UNITS_PER_WORD.
* gcc.c-torture/compile/
20000923-1.c: New test.
From-SVN: r36645
Michael Hayes [Tue, 26 Sep 2000 10:03:47 +0000 (10:03 +0000)]
flow.c (flow_loop_pre_header_scan): Punt if loop enters from entry block.
* flow.c (flow_loop_pre_header_scan): Punt if loop enters
from entry block.
From-SVN: r36644
Jeff Law [Tue, 26 Sep 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r36643
Jim Wilson [Tue, 26 Sep 2000 00:40:42 +0000 (00:40 +0000)]
Fix bad use of FP reg in post-modify address.
* config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
(REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
(LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
(REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
From-SVN: r36640
Neil Booth [Mon, 25 Sep 2000 23:35:10 +0000 (23:35 +0000)]
cpplex.c (parse_args): Don't set VOID_REST flag.
* cpplex.c (parse_args): Don't set VOID_REST flag.
(Fix diagnostic merge problem).
(CONTEXT_VARARGS): New flag.
(maybe_paste_with_next): Set context earlier in loop. Use
it. Do varargs test with CONTEXT_VARARGS flag.
(push_arg_context): Set CONTEXT_VARARGS flag if we're
pushing an argument context for a varargs argument.
* cpplib.h (VOID_REST): Delete.
* gcc.dg/cpp/vararg1.c: Add test case.
From-SVN: r36638
Philipp Thomas [Mon, 25 Sep 2000 23:29:38 +0000 (23:29 +0000)]
Makefile.in.in: Remove stamp-check-pot from list of default targets as checks are only possible...
2000-09-26 Philipp Thomas <pthomas@suse.de>
* Makefile.in.in: Remove stamp-check-pot from list
of default targets as checks are only possible in a
complete source tree and all languages configured.
From-SVN: r36637
Branko Cibej [Mon, 25 Sep 2000 22:54:04 +0000 (00:54 +0200)]
flags.h: Declare warning flag warn_system_headers.
2000-09-25 Branko Cibej <branko.cibej@hermes.si>
* flags.h: Declare warning flag warn_system_headers.
* toplev.c: Define it.
(W_options): Add option -Wsystem-headers.
* diagnostic.c (count_error): Test warn_system_headers.
* invoke.texi: Add description for -Wsystem-headers.
* cpplib.h (cpp_options): New member warn_system_headers.
* cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
CPP_IN_SYSTEM_HEADER.
* cpplib.c (do_import, do_pragma_once): Likewise.
* cpperror.c (_cpp_begin_message): Test warn_system_headers
and CPP_IN_SYSTEM_HEADER.
* cppinit.c (handle_option): Recognize -Wsystem_headers.
(print_help): Describe -Wsystem_headers.
* cpplex.c (lex_line): Reorganize condition so that warnings
about C++ comments in system headers can be enabled. Remove
label do_line_comment.
From-SVN: r36636
Neil Booth [Mon, 25 Sep 2000 22:39:51 +0000 (22:39 +0000)]
cpplex.c (save_comment): Only store the initial '/' now.
* cpplex.c (save_comment): Only store the initial '/'
now.
(lex_token): Combine handling of the two comment types.
Pass everything but the initial '/' to save_comment.
From-SVN: r36635
Neil Booth [Mon, 25 Sep 2000 22:34:53 +0000 (22:34 +0000)]
cpphash.h (_cpp_digraph_spellings, [...]): New library-internal prototypes.
* cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
_cpp_can_paste): New library-internal prototypes.
* cpplex.c (dump_param_spelling, output_line_command,
output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
cpp_printf, cpp_output_list): Move to cppoutput.c.
(process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
* cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
cppoutput.c.
* cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
dump_param_spelling, output_line_command, cpp_scan_buffer,
cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
from elsewhere.
* Makefile.in: Add cppoutput.c.
* po/POTFILES.in: Add cppoutput.c.
From-SVN: r36634
Theodore Papadopoulo [Mon, 25 Sep 2000 22:06:30 +0000 (00:06 +0200)]
crash20.C: Make ready for libstdc++-v3.
2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* g++.old-deja/g++.other/crash20.C: Make ready for libstdc++-v3.
* g++.old-deja/g++.pt/ttp62.C: Same.
* g++.old-deja/g++.other/inline14.C: Same.
From-SVN: r36633
Richard Henderson [Mon, 25 Sep 2000 22:06:29 +0000 (15:06 -0700)]
ia64.c (ia64_print_operand): Define 'e' as 64-n.
* config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
* config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
split until after reload.
(rotlsi3, rotldi3): New.
From-SVN: r36632
Phil Edwards [Mon, 25 Sep 2000 21:42:14 +0000 (21:42 +0000)]
documentation.html: Add link to...
2000-09-25 Phil Edwards <pme@sources.redhat.com>
* docs/documentation.html: Add link to...
* docs/ext/howto.html: ...this. New dir/file, describing library
extensions (both ours and SGI's).
* docs/faq/index.html: Small updates.
* docs/faq/index.txt: Regenerate.
From-SVN: r36631
Phil Edwards [Mon, 25 Sep 2000 21:34:45 +0000 (21:34 +0000)]
New-date checkin of footer.html to force yadda yadda yadda.
From-SVN: r36630
Gabriel Dos Reis [Mon, 25 Sep 2000 21:20:19 +0000 (21:20 +0000)]
diagnostic.c (output_last_position): Define.
* diagnostic.c (output_last_position): Define.
(set_real_maximum_length): Tweek.
* diagnostic.h (output_last_position): Declare.
From-SVN: r36629
Kazu Hirata [Mon, 25 Sep 2000 19:17:24 +0000 (19:17 +0000)]
i386.c: Fix formatting.
2000-09-25 Kazu Hirata <kazu@hxi.com>
* config/i386/i386.c: Fix formatting.
From-SVN: r36628
Neil Booth [Mon, 25 Sep 2000 18:48:45 +0000 (18:48 +0000)]
* MAINTAINERS: Add self as cpplib co-maintainer.
From-SVN: r36627
Theodore Papadopoulo [Mon, 25 Sep 2000 18:00:16 +0000 (20:00 +0200)]
basic_file.h (_M_open_mode): Remove extra qualifier.
2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* bits/basic_file.h (_M_open_mode): Remove extra qualifier.
From-SVN: r36626
Alan Lehotsky [Mon, 25 Sep 2000 17:44:09 +0000 (17:44 +0000)]
emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when UNITS_PER_WORD is small.
* emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
UNITS_PER_WORD is small.
From-SVN: r36625
Levente Farkas [Mon, 25 Sep 2000 17:33:35 +0000 (17:33 +0000)]
stl_hashtable.h (_M_copy_from): Change __copy to __local_copy.
2000-09-25 Levente Farkas <lfarkas@mindmaker.hu>
* ext/stl_hashtable.h (_M_copy_from): Change __copy to __local_copy.
From-SVN: r36624
Joseph Myers [Mon, 25 Sep 2000 17:04:45 +0000 (18:04 +0100)]
c-common.c (format_char_info): Add flags2; update comments.
* c-common.c (format_char_info): Add flags2; update comments.
(print_char_table, scan_char_table, time_char_table): Split some
flags out into flags2.
(check_format_info): Use flags2 for those flags, for identifying
the initial character of a scanf scanset, and for identifying
printf formats where the '0' flag is ignored with precision.
From-SVN: r36623
Hans-Peter Nilsson [Mon, 25 Sep 2000 13:50:51 +0000 (13:50 +0000)]
tm.texi: Make documented *_ASM.*_OP:s include spacing.
* tm.texi: Make documented *_ASM.*_OP:s include spacing.
Fix typos in description for LONG_LONG_TYPE_SIZE and
FINI_SECTION_ASM_OP.
From-SVN: r36622
Hans-Peter Nilsson [Mon, 25 Sep 2000 13:39:45 +0000 (13:39 +0000)]
Change callers in config/[n-z]*/ (the rest) to match:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36621
Hans-Peter Nilsson [Mon, 25 Sep 2000 13:22:47 +0000 (13:22 +0000)]
Change callers in config/m*/ to match:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36620
Hans-Peter Nilsson [Mon, 25 Sep 2000 13:03:20 +0000 (13:03 +0000)]
Change callers in config/[h-l]*/ to match:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36619
Hans-Peter Nilsson [Mon, 25 Sep 2000 13:00:22 +0000 (13:00 +0000)]
Fix BSS_SECTION_ASM_OP typo introduced and covered by todays ASM.*_OP changelog entry.
From-SVN: r36618
Hans-Peter Nilsson [Mon, 25 Sep 2000 12:36:01 +0000 (12:36 +0000)]
Change callers in config/[b-g]*/ to match:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36617
Hans-Peter Nilsson [Mon, 25 Sep 2000 12:08:02 +0000 (12:08 +0000)]
Change callers in config/a*/ to match:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36616
Hans-Peter Nilsson [Mon, 25 Sep 2000 11:45:51 +0000 (11:45 +0000)]
Change callers in config/* to match:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36615
Hans-Peter Nilsson [Mon, 25 Sep 2000 11:23:45 +0000 (11:23 +0000)]
Callers gcc-toplev:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36614
Hans-Peter Nilsson [Mon, 25 Sep 2000 10:33:57 +0000 (10:33 +0000)]
definitions in config/alpha/alpha.h config/arm/aout.h (oops, missed):
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36613
Hans-Peter Nilsson [Mon, 25 Sep 2000 10:24:23 +0000 (10:24 +0000)]
definitions in config/[s-w]* (rest):
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36612
Hans-Peter Nilsson [Mon, 25 Sep 2000 10:11:22 +0000 (10:11 +0000)]
definitions in config/[npr]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36611
Hans-Peter Nilsson [Mon, 25 Sep 2000 10:01:10 +0000 (10:01 +0000)]
definitions in config/m[ci]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36610
Hans-Peter Nilsson [Mon, 25 Sep 2000 09:49:20 +0000 (09:49 +0000)]
definitions in config/m[368]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36609
Hans-Peter Nilsson [Mon, 25 Sep 2000 09:32:58 +0000 (09:32 +0000)]
definitions in config/i[89a]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36608
Hans-Peter Nilsson [Mon, 25 Sep 2000 09:16:37 +0000 (09:16 +0000)]
definitions in config/i3*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36607
Hans-Peter Nilsson [Mon, 25 Sep 2000 08:54:42 +0000 (08:54 +0000)]
definitions in config/[c-h]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36606
Hans-Peter Nilsson [Mon, 25 Sep 2000 08:42:10 +0000 (08:42 +0000)]
definitions in config/a*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36605
Hans-Peter Nilsson [Mon, 25 Sep 2000 08:23:05 +0000 (08:23 +0000)]
config:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36604
Hans-Peter Nilsson [Mon, 25 Sep 2000 08:08:58 +0000 (08:08 +0000)]
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.
From-SVN: r36603
Jeff Law [Mon, 25 Sep 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r36602
Richard Henderson [Mon, 25 Sep 2000 07:07:33 +0000 (00:07 -0700)]
expmed.c (store_bit_field): Adjust last change to not consider any word-sized field naturally aligned.
* expmed.c (store_bit_field): Adjust last change to not consider
any word-sized field naturally aligned.
From-SVN: r36601
Richard Henderson [Mon, 25 Sep 2000 07:04:55 +0000 (00:04 -0700)]
New test.
From-SVN: r36600
Richard Henderson [Mon, 25 Sep 2000 04:05:37 +0000 (21:05 -0700)]
* gcc.c-torture/execute/
20000914-1.c: Declare malloc.
From-SVN: r36599
Richard Henderson [Mon, 25 Sep 2000 04:02:20 +0000 (21:02 -0700)]
alpha.c (alpha_emit_conditional_branch): Handle TFmode unordered compares properly.
* config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
TFmode unordered compares properly. Revalidate integer compare
operands.
(alpha_emit_setcc): New.
(alpha_emit_conditional_move): Revalidate integer compare operands.
* config/alpha/alpha-protos.h: Update.
* config/alpha/alpha.md (cmpdi): Allow general operands.
(sne): Use alpha_emit_setcc.
(seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
(sunordered, sordered): New.
From-SVN: r36598
Richard Henderson [Sun, 24 Sep 2000 23:58:24 +0000 (16:58 -0700)]
ia64-protos.h: Update.
* config/ia64/ia64-protos.h: Update.
* config/ia64/ia64.c (call_multiple_values_operation): Remove.
(ia64_expand_call): New.
(ia64_expand_prologue): Emit an alloc if we need extra input
registers.
(ia64_expand_epilogue): New arg sibcall_p; don't emit the return
instruction if true.
(struct reg_flags): Add is_sibcall.
(rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
(emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
* config/ia64/ia64.h (PREDICATE_CODES): Update.
* config/ia64/ia64.md (call): Use ia64_expand_call.
(call_value): Likewise.
(sibcall, sibcall_value): New.
(call patterns): Remove extra expanders; tidy.
(sibcall_epilogue): New.
(set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
From-SVN: r36597
Richard Henderson [Sun, 24 Sep 2000 23:49:22 +0000 (16:49 -0700)]
sibcall.c (skip_pic_restore): New.
* sibcall.c (skip_pic_restore): New.
(identify_call_return_value): Use it.
From-SVN: r36596
Richard Henderson [Sun, 24 Sep 2000 23:46:46 +0000 (16:46 -0700)]
* emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
From-SVN: r36595
Mark Mitchell [Sun, 24 Sep 2000 21:47:45 +0000 (21:47 +0000)]
c-tree.texi: Moved here from cp/ir.texi.
* c-tree.texi: Moved here from cp/ir.texi. Documented nested
functions. Generalize to handle both C and C++.
* Makefile.in (c-tree.info): New target.
(info): Add c-tree.info.
* ir.texi: Move to ../c-tree.texi.
From-SVN: r36592
Aldy Hernandez [Sun, 24 Sep 2000 20:52:25 +0000 (20:52 +0000)]
add self to maintainers list
From-SVN: r36589
Richard Kenner [Sun, 24 Sep 2000 15:35:44 +0000 (15:35 +0000)]
expr.c (store_field): If BITSIZE is negative, use size of type.
* expr.c (store_field): If BITSIZE is negative, use size of type.
(expand_expr, case COMPONENT_EXPR): Likewise.
From-SVN: r36588
Neil Booth [Sun, 24 Sep 2000 10:42:09 +0000 (10:42 +0000)]
cpplex.c: Update TODO comment.
* cpplex.c: Update TODO comment.
* cpplib.c (do_error, do_warning): Merge common code of
do_error and do_warning into do_diagnostic. Use it.
(do_diagnostic): New function.
* cpplib.h: Fix comment typo.
From-SVN: r36587
Joseph Myers [Sun, 24 Sep 2000 09:52:53 +0000 (10:52 +0100)]
c-common.c (check_format_info): Warn for a wide character string used as a non-wide format argument.
* c-common.c (check_format_info): Warn for a wide character string
used as a non-wide format argument.
testsuite:
* gcc.dg/c90-printf-1.c: Add test for wide string format.
From-SVN: r36586
Joseph Myers [Sun, 24 Sep 2000 09:50:30 +0000 (10:50 +0100)]
builtins.def (BUILT_IN_LLABS): Add.
* builtins.def (BUILT_IN_LLABS): Add.
* builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
* c-common.c (c_common_nodes_builtins): Create builtin functions
__builtin_llabs, and plain llabs unless no_nonansi_builtins
outside of C99 mode.
(expand_tree_builtin): Handle BUILT_IN_LLABS.
From-SVN: r36585
Jeff Law [Sun, 24 Sep 2000 07:45:11 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r36584
Neil Booth [Sat, 23 Sep 2000 21:41:41 +0000 (21:41 +0000)]
cpphash.h (CPP_RESERVE, [...]): Delete.
* cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
* cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
_cpp_free_toklist): No need to worry about extra dummy token
at the start of token lists any more.
(trigraph_ok): Only warn outside comments.
(skip_block_comment): Set and clear lexing_comment.
(skip_line_comment): Take a cpp_reader not cpp_buffer.
Set and clear lexing_comment.
(parse_number): Handle leading '.' indicated by pfile->seen_dot.
(check_long_token): Delete.
(lex_percent, lex_dot): New subroutines of lex_token to
handle lexing of '.' and '%' without lookback.
(lex_token): Use lex_dot and lex_percent.
(lex_line): Don't check for LIST_OFFSET.
(_cpp_init_input_buffer): Update for new _cpp_init_toklist.
* cpplib.c (_cpp_parse_assertion): Similarly.
(cpp_push_buffer): Initialize extra_char.
* cpplib.h (LIST_OFFSET): Delete.
(struct cpp_buffer): New member extra_char.
(struct lexer_state): New members lexing_comment and seen_dot.
From-SVN: r36582
Mark Mitchell [Sat, 23 Sep 2000 17:09:39 +0000 (17:09 +0000)]
Make-lang.in (JAVA_SRCS): Include java-tree.h.
* Make-lang.in (JAVA_SRCS): Include java-tree.h.
* Makefile.in (parse.o): Depend on ggc.h.
(class.o): Likewise.
(constants.o): Likewise.
(decl.o): Likewise.
(expr.o): Likewise.
(jcf-parse.o): Likewise.
(jcf-write.o): Likewise.
(mangle.o): Likewise.
* class.c: Include ggc.h.
(build_static_field_ref): Register GC roots.
(layout_class): Likewise.
(init_class_processing): Likewise.
* constants.c: Include ggc.h.
(current_constant_pool_data_ref): Remove.
(tag_nodes): Move it to ...
(get_tag_node): ... here. Register GC roots.
* decl.c: Include ggc.h. Remove many global tree definitions.
(throw_node): Define.
(java_global_trees): Likewise.
(predef_filenames): Make the size a constant.
(init_decl_processing): Adjust accordingly.
(init_decl_processing): Call init_jcf_parse. Register GC roots.
* expr.c: Include ggc.h.
(init_expr_processing): Register GC roots.
(build_invokeinterface): Likewise.
* java-tree.h: Replace extern tree declarations with macros.
(java_global_trees): New variable.
(java_tree_index): New enumeration.
(init_jcf_parse): Declare.
* jcf-parse.c: Include ggc.h.
(current_class): Remove declaration.
(main_class): Likewise.
(all_class_list): Likewise.
(predefined_filename_p): Adjust for constant size of
predef_filenames.
(init_jcf_parse): New function.
* jcf-write.c: Include ggc.h.
(generate_classfile): Register GC roots.
(append_synthetic_attribute): Likewise.
(append_innerclass_attribute_entry): Likewise.
* lang.c: Include ggc.h.
(lang_print_error): Register GC roots.
* parse.h (struct parser_ctxt): Rename fields to avoid conflicts
with macros.
* parse.y: Include ggc.h.
(wfl_operator): Remove.
(goal): Register GC roots.
(java_pop_parser_context): Adjust for new field names.
(java_parser_context_save_global): Likewse.
(java_parser_context_restore_global): Likewise.
(java_parser_context_suspend): Likewise.
(java_parser_context_resume): Likewise.
(verify_constructor_circularity): Register GC roots.
(lookup_cl): Likewise.
(java_reorder_fields): Likewise.
(build_current_this): Likewise.
(class_in_current_package): Likewise.
(argument_types_convertible): Likewise.
(patch_cast): Rename wfl_op parameter to avoid macro conflicts.
From-SVN: r36581
Franz Sirl [Sat, 23 Sep 2000 17:01:47 +0000 (17:01 +0000)]
stdstreams.cc: Include <libio.h>, not "libio.h".
2000-09-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* stdstreams.cc: Include <libio.h>, not "libio.h".
* iolibio.h: Likewise.
(_IO_pos_BAD): Use _IO_off_t instead of _IO_fpos_t.
* libio.h (_IO_USER_LOCK): Define.
From-SVN: r36580