Tom Tromey [Fri, 4 Feb 2000 20:49:27 +0000 (20:49 +0000)]
defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase pointers.
* defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
pointers.
(handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
if the method is native.
* resolve.cc (ncode): Don't handle native methods.
(_Jv_JNIMethod::ncode): New method.
(_Jv_PrepareClass): Handle native methods.
* jni.cc (call): Renamed from _Jv_JNI_conversion_call.
Include AbstractMethodError.h.
(add_char): New function.
(mangled_name): Likewise.
* include/java-interp.h (class _Jv_JNIMethod): New class.
(class _Jv_MethodBase): New class.
(class _Jv_InterpMethod): Derive from _Jv_MethodBase.
(_Jv_InterpClass): Changed `interpreted_methods' field to type
`_Jv_MethodBase'.
* include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
* java/lang/natRuntime.cc (libraries_size, libraries_count,
libraries): New globals.
(add_library): New function.
(_Jv_FindSymbolInExecutable): New function.
* java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
Now static.
From-SVN: r31790
Hans-Peter Nilsson [Fri, 4 Feb 2000 19:51:57 +0000 (19:51 +0000)]
tm.texi (Values in Registers): Fix typo: "fo" "for".
* tm.texi (Values in Registers): Fix typo: "fo" "for".
(Misc): Say the scheduler, not the Haifa scheduler.
From-SVN: r31789
Clinton Popetz [Fri, 4 Feb 2000 17:51:11 +0000 (17:51 +0000)]
jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs when in_mem is set.
* jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
when in_mem is set. Update all callers.
From-SVN: r31787
Richard Henderson [Fri, 4 Feb 2000 17:48:50 +0000 (09:48 -0800)]
* i386/openbsd.h (INT_ASM_OP): Define.
From-SVN: r31786
Andrew Haley [Fri, 4 Feb 2000 16:59:35 +0000 (16:59 +0000)]
Throwable.java (CPlusPlusDemangler): New class.
2000-02-04 Andrew Haley <aph@cygnus.com>
* java/lang/Throwable.java (CPlusPlusDemangler): New class.
(printStackTrace): Use a CPlusPlusDemangler to demangle names.
* java/lang/natThrowable.cc (printRawStackTrace): Rename
printStackTrace to printRawStackTrace.
From-SVN: r31785
Hans-Peter Nilsson [Fri, 4 Feb 2000 10:30:26 +0000 (10:30 +0000)]
* tm.texi: Fix various typos.
From-SVN: r31784
Jeff Law [Fri, 4 Feb 2000 08:45:06 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31783
Steve Ellcey [Thu, 3 Feb 2000 23:15:43 +0000 (23:15 +0000)]
pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
* config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
(MD_STARTFILE_PREFIX_1): New macro.
From-SVN: r31780
Tom Tromey [Thu, 3 Feb 2000 19:09:54 +0000 (19:09 +0000)]
* jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.
From-SVN: r31779
Scott Bambrough [Thu, 3 Feb 2000 18:45:45 +0000 (18:45 +0000)]
javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to assemble doubles correctly when...
2000-01-31 Scott Bambrough <scottb@netwinder.org>
* gcc/java/javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to
assemble doubles correctly when HOST_FLOAT_WORDS_BIG_ENDIAN is
defined to be 1.
From-SVN: r31777
Tom Tromey [Thu, 3 Feb 2000 18:39:48 +0000 (18:39 +0000)]
Make-lang.in (java.mostlyclean): Remove executables in `mostlyclean'.
* Make-lang.in (java.mostlyclean): Remove executables in
`mostlyclean'.
From-SVN: r31776
Tom Tromey [Thu, 3 Feb 2000 18:26:51 +0000 (18:26 +0000)]
Calendar.java (toString): New method.
* java/util/Calendar.java (toString): New method.
* java/util/SimpleTimeZone.java (clone): New method.
(toString): New method.
* java/util/TimeZone.java (clone): New method.
* java/text/SimpleDateFormat.java (clone): New method.
* java/text/NumberFormat.java (clone): New method.
(equals): New method.
* java/text/Format.java (clone): New method.
* java/text/DateFormatSymbols.java (DateFormatSymbols): New
constructor.
(clone): New method.
* java/text/DateFormat.java (clone): New method.
* java/text/Collator.java (clone): New method.
From-SVN: r31775
Tom Tromey [Thu, 3 Feb 2000 17:17:26 +0000 (17:17 +0000)]
PipedOutputStream.java (write(byte[], int, int)): New method.
* java/io/PipedOutputStream.java (write(byte[], int, int)): New
method.
From-SVN: r31774
Jan Hubicka [Thu, 3 Feb 2000 14:10:02 +0000 (15:10 +0100)]
i386.md (movstrsi, clrstrsi): Support variable sized copies, align destination when needed.
* i386.md (movstrsi, clrstrsi): Support variable sized copies, align
destination when needed.
(strmovsi, strsetsi): New expander.
(strmovsi_1, strsetsi_1): New pattern.
* i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
(TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
* invoke.texi (align-stringops, inline-all-stringops): Document.
From-SVN: r31773
Nathan Sidwell [Thu, 3 Feb 2000 13:43:49 +0000 (13:43 +0000)]
cast3.C: Return void.
* g++.old-deja/g++.jason/cast3.C: Return void.
* g++.old-deja/g++.pt/dynarray.C: Don't be pedantic.
From-SVN: r31772
Jeff Law [Thu, 3 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31769
Scott Bambrough [Thu, 3 Feb 2000 06:46:30 +0000 (06:46 +0000)]
gjavah.c (D_NAN_MASK): Alternate definition required when HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1.
2000-01-31 Scott Bambrough <scottb@netwinder.org>
* gcc/java/gjavah.c (D_NAN_MASK): Alternate definition required when
HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1.
(java_float_finite): Convert to use union Word from javaop.h.
(java_double_finite): Convert to use union DWord from javaop.h.
From-SVN: r31768
Tom Tromey [Thu, 3 Feb 2000 06:13:46 +0000 (06:13 +0000)]
gjavah.c (options): Added `jni' entry.
* gjavah.c (options): Added `jni' entry.
(help): Document -jni.
(flag_jni): New global.
(process_file): Handle JNI output. Don't print text from
-prepend, -add, etc, when generating stubs. Only remove `.class'
suffix if it actually exists.
(main): Create a `.c' file when run with `--jni --stubs'. Create
correct output file name with `--jni'.
(print_include): Mangle header name differently in JNI case.
(HANDLE_METHOD): In JNI mode, call print_method_info to generate
method list.
(print_method_info): Handle JNI case. Put signature info into
method name. Handle case when STREAM is NULL.
(print_name_for_stub_or_jni): New function.
(print_stub_or_jni): Renamed from `print_stub'. Handle JNI.
(print_cxx_classname): Handle JNI.
(print_full_cxx_name): Likewise.
(decode_signature_piece): Likewise.
(overloaded_jni_method_exists_p): New function.
(struct method_name): Added `signature' and `sig_length' fields.
(HANDLE_END_FIELD): Do nothing in JNI mode.
From-SVN: r31767
Krister Walfridsson [Wed, 2 Feb 2000 23:27:03 +0000 (00:27 +0100)]
* i386/netbsd.h (INT_ASM_OP): Define.
From-SVN: r31766
Tom Tromey [Wed, 2 Feb 2000 21:55:39 +0000 (21:55 +0000)]
jv-scan.c: Include version.c, <getopt.h>.
* jv-scan.c: Include version.c, <getopt.h>.
(LONG_OPT, OPT_HELP, OPT_VERSION): New macros.
(options): New array.
(usage): New function.
(version): New function.
(main): Use getopt_long to parse command line.
* jcf-dump.c: Include version.c, <getopt.h>.
(LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_VERSION,
OPT_JAVAP): New macros.
(options): New array.
(usage): Return `void'. Changed message.
(help): New function.
(version): New function.
(main): Use getopt_long_only to parse command line.
* gjavah.c: Include <getopt.h>.
(LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_TEMP,
OPT_VERSION, OPT_PREPEND, OPT_FRIEND, OPT_ADD, OPT_APPEND, OPT_M,
OPT_MM, OPT_MG, OPT_MD, OPT_MMD): New macros.
(options): New array.
(java_no_argument): Removed.
(help): Updated with missing options.
(main): Use getopt_long_only to parse command line.
(usage): Changed message.
From-SVN: r31765
Zack Weinberg [Wed, 2 Feb 2000 21:43:17 +0000 (21:43 +0000)]
Add -Wunused to dg-options
From-SVN: r31764
Zack Weinberg [Wed, 2 Feb 2000 21:41:35 +0000 (21:41 +0000)]
cpplib.h (cpp_reader): Add new flag, no_directives.
* cpplib.h (cpp_reader): Add new flag, no_directives.
* cpphash.c (macarg): Set it.
* cpplib.c (handle_directive): If no_directives is on and we
find a directive, issue an error and discard the line.
From-SVN: r31763
Jim Wilson [Wed, 2 Feb 2000 21:08:47 +0000 (21:08 +0000)]
Fix sparc -msoft-float abort while compiling newlib.
* config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
FP constants. Add ! TARGET_FPU check for FP constants.
From-SVN: r31762
Clinton Popetz [Wed, 2 Feb 2000 13:56:01 +0000 (13:56 +0000)]
flow.c (find_basic_blocks): Don't kill label_value_list here.
* flow.c (find_basic_blocks): Don't kill label_value_list
here.
(cleanup_cfg): Kill it here.
From-SVN: r31760
Richard Kenner [Wed, 2 Feb 2000 13:04:50 +0000 (13:04 +0000)]
expr.c (store_field): Ensure ALIGN is no stricter than the alignment of EXP.
* expr.c (store_field): Ensure ALIGN is no stricter than the
alignment of EXP.
From-SVN: r31759
Richard Henderson [Wed, 2 Feb 2000 09:41:03 +0000 (01:41 -0800)]
jump.c (delete_insn): Partially revert 19 Jan change; don't convert unused code labels to notes at -O0.
* jump.c (delete_insn): Partially revert 19 Jan change;
don't convert unused code labels to notes at -O0.
From-SVN: r31758
Jeff Law [Wed, 2 Feb 2000 08:45:06 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31757
Herman A.J. ten Brugge [Wed, 2 Feb 2000 08:15:44 +0000 (09:15 +0100)]
toplev.c (rest_of_compilation): Run rebuild_jump_labels after split_all_insns to recreate REG_LABEL notes for...
* toplev.c (rest_of_compilation): Run rebuild_jump_labels after
split_all_insns to recreate REG_LABEL notes for flow2 pass.
From-SVN: r31756
Richard Henderson [Wed, 2 Feb 2000 07:50:21 +0000 (23:50 -0800)]
i386.c (general_no_elim_operand): New.
* i386.c (general_no_elim_operand): New.
(nonmemory_no_elim_operand): New.
(ix86_expand_move): Copy eliminable operands before a push.
* i386-protos.h: Declare new functions.
* i386.h (CAN_ELIMINATE): Simplify.
(PREDICATE_CODES): Update.
* i386.md (push insns): Don't allow eliminable register operands.
From-SVN: r31755
Richard Henderson [Wed, 2 Feb 2000 07:33:43 +0000 (23:33 -0800)]
flow.c (mark_regs_live_at_end): Follow expand_function_end and replace BLKmode with DECL_RTL's mode.
* flow.c (mark_regs_live_at_end): Follow expand_function_end and
replace BLKmode with DECL_RTL's mode.
From-SVN: r31754
Ulrich Drepper [Wed, 2 Feb 2000 06:30:44 +0000 (23:30 -0700)]
parse.y (simple_stmt): Allow :: token in asm parameter list.
* parse.y (simple_stmt): Allow :: token in asm parameter list.
* parse.c: Rebuilt.
From-SVN: r31753
Zack Weinberg [Wed, 2 Feb 2000 05:05:41 +0000 (05:05 +0000)]
argh, forgot to commit changelog
From-SVN: r31752
Alexandre Oliva [Wed, 2 Feb 2000 05:05:14 +0000 (05:05 +0000)]
* gcc.dg/unused-2.c: Use -Wreturn-type instead of -Wall.
From-SVN: r31751
Alexandre Oliva [Wed, 2 Feb 2000 05:02:47 +0000 (05:02 +0000)]
* gcc.dg/loop-1.c: New test.
From-SVN: r31750
Zack Weinberg [Wed, 2 Feb 2000 04:45:58 +0000 (04:45 +0000)]
Give test a better name, add some glue for the test harness
From-SVN: r31749
Richard Henderson [Wed, 2 Feb 2000 03:05:57 +0000 (19:05 -0800)]
sparc.c (fp_zero_operand): Turn into a normal predicate.
* sparc.c (fp_zero_operand): Turn into a normal predicate.
Use CONST0_RTX. Update all callers.
* sparc.h, sparc-protos.h: Update accordingly.
* sparc.md (fp mov insns): Use fp_zero_operand directly
where applicable.
From-SVN: r31748
Hans-Peter Nilsson [Wed, 2 Feb 2000 02:26:27 +0000 (02:26 +0000)]
tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS example.
* tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
example.
From-SVN: r31747
Tom Tromey [Wed, 2 Feb 2000 01:55:03 +0000 (01:55 +0000)]
java-interp.h (_Jv_JNI_conversion_call): Declare.
* include/java-interp.h (_Jv_JNI_conversion_call): Declare.
* resolve.cc (ncode): Use _Jv_JNI_conversion_call when
constructing the closure if the function is native.
* jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
a template function, #if'd out, or static.
Include <java-interp.h>.
From-SVN: r31746
Tom Tromey [Wed, 2 Feb 2000 01:47:01 +0000 (01:47 +0000)]
* include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
From-SVN: r31745
Zack Weinberg [Tue, 1 Feb 2000 23:51:38 +0000 (23:51 +0000)]
frame.c (find_fde): Convert for loop to do-while so compiler sees it's always executed at least once.
* frame.c (find_fde): Convert for loop to do-while so compiler
sees it's always executed at least once.
* libgcc2.c (BBINBUFSIZE): Kill.
(__bb_init_prg): Use fgets.
(__bb_exit_trace_func): Don't paste strings.
* unroll.c (unroll_loop): Initialize unroll_type, not
unroll_number, and tweak logic to match.
* i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
all failure paths.
(ix86_flags_dependant): Likewise. Disentangle control flow.
(ix86_sched_reorder): Break guts out to
ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
(ix86_sched_reorder_ppro): Initialize pair2 and insnp before
any possible use.
* i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
use string concatenation. Don't save and restore esi.
* fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
(machname.h): Remove script to separate file. Use two-step
sequence so target is not created if script fails.
* fixinc/gen-machname.h: New file. Handle case where no non-reserved
identifiers are defined.
* fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
an empty string, machine_name doesn't need to do anything at
all.
(is_cxx_header): Add more cases to regexp.
* fixinc/fixlib.h: Update prototype.
* fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
mn_get_regexps.
* fixinc/fixincl.c: Define NO_BOGOSITY.
* fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
(hp_sysfile): Add missing comma.
(math_exception): Put the wrapper ifdefs at the beginning and
the end of the file.
* fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
From-SVN: r31744
Kaveh R. Ghazi [Tue, 1 Feb 2000 22:30:35 +0000 (22:30 +0000)]
Makefile.in (specs.ready): New target.
* Makefile.in (specs.ready): New target.
(fixinc.sh): Depend on `specs.ready' instead of `specs'.
From-SVN: r31743
Kaveh R. Ghazi [Tue, 1 Feb 2000 21:42:05 +0000 (21:42 +0000)]
fixinc.irix: Use unique filenames for writing into /tmp,
* fixinc.irix: Use unique filenames for writing into /tmp,
* fixinc.ptx: Likewise.
* fixinc.sco: Likewise.
* fixinc.svr4: Likewise.
* fixinc.winnt: Likewise.
From-SVN: r31742
Kaveh R. Ghazi [Tue, 1 Feb 2000 21:30:52 +0000 (21:30 +0000)]
tsystem.h: New file.
* tsystem.h: New file.
* Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
s-crtS): Depend on tsystem.h.
* crtstuff.c: Include tsystem.h.
* frame.c: Likewise.
* libgcc2.c: Likewise.
From-SVN: r31741
Zack Weinberg [Tue, 1 Feb 2000 21:23:51 +0000 (21:23 +0000)]
New test culled from gcc-bugs
From-SVN: r31740
Tom Tromey [Tue, 1 Feb 2000 21:04:44 +0000 (21:04 +0000)]
* include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
From-SVN: r31739
Jan Hubicka [Tue, 1 Feb 2000 18:57:21 +0000 (19:57 +0100)]
builtins.c (expand_builtin_memset): Expand for variable sized lengths too.
* builtins.c (expand_builtin_memset): Expand for variable sized
lengths too.
From-SVN: r31738
Nick Clifton [Tue, 1 Feb 2000 18:18:10 +0000 (18:18 +0000)]
oops - omitted from previous delta fixing UNIQUE_SECTION
From-SVN: r31737
Tom Tromey [Tue, 1 Feb 2000 17:36:05 +0000 (17:36 +0000)]
jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
* jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
(_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
`locals == NULL'.
(wrap_value): New function.
(_Jv_JNI_CallAnyMethodV): Use it.
(_Jv_JNI_CallAnyMethodA): Likewise.
(_Jv_JNI_GetField): Use wrap_value; removed specialized version.
(_Jv_JNI_GetStaticField): Likewise.
From-SVN: r31736
Tom Tromey [Tue, 1 Feb 2000 16:32:21 +0000 (16:32 +0000)]
jni.cc (_Jv_JNI_GetField): Specialize for jobject.
* jni.cc (_Jv_JNI_GetField): Specialize for jobject.
(_Jv_JNI_GetStaticField): Likewise.
From-SVN: r31735
David Billinghurst [Tue, 1 Feb 2000 15:53:52 +0000 (15:53 +0000)]
(SUBTARGET_ASM_SPEC) : Default ISA based on ABI.
From-SVN: r31734
Hans-Peter Nilsson [Tue, 1 Feb 2000 11:00:43 +0000 (11:00 +0000)]
dwarfout.c (SHORT_TYPE_SIZE): Correct default.
* dwarfout.c (SHORT_TYPE_SIZE): Correct default.
* tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
From-SVN: r31733
Hans-Peter Nilsson [Tue, 1 Feb 2000 10:45:12 +0000 (10:45 +0000)]
* config.sub: Add mmix-knuth-mmixware.
From-SVN: r31732
Jeff Law [Tue, 1 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31731
Tom Tromey [Tue, 1 Feb 2000 06:14:26 +0000 (06:14 +0000)]
prims.cc (_Jv_MallocUnchecked): New function.
* prims.cc (_Jv_MallocUnchecked): New function.
(main_init): Call _Jv_JNI_Init.
* include/jvm.h (_Jv_MallocUnchecked): Declare.
(_Jv_JNI_Init): Declare.
* jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
<string.h>.
(_Jv_JNI_NewGlobalRef): New function.
(_Jv_JNI_DeleteGlobalRef): New function.
(_Jv_JNI_DeleteLocalRef): New function.
(_Jv_JNI_conversion_call): Initialize and clear local reference
frame.
(_Jv_JNI_NewLocalRef): New function.
(struct _Jv_JNI_LocalFrame): New structure.
(_Jv_JNI_PushLocalFrame): New function.
(_Jv_JNI_EnsureLocalCapacity): New function.
(FRAME_SIZE): New define.
(_Jv_JNI_GetStringChars): Mark string, not characters.
(_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
(_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
(_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
elements.
(_Jv_JNI_DefineClass): Make return value a local ref.
(_Jv_JNI_FindClass): Likewise.
(_Jv_JNI_GetSuperclass): Likewise.
(_Jv_JNI_ExceptionOccurred): Likewise.
(_Jv_JNI_AllocObject): Likewise.
(_Jv_JNI_GetObjectClass): Likewise.
(_Jv_JNI_CallAnyMethodV): Likewise.
(_Jv_JNI_NewString): Likewise.
(_Jv_JNI_NewStringUTF): Likewise.
(_Jv_JNI_NewObjectArray): Likewise.
(_Jv_JNI_GetObjectArrayElement): Likewise.
(_Jv_JNI_ToReflectedField): Likewise.
(_Jv_JNI_ToReflectedMethod): Likewise.
(_Jv_JNIFunctions): Updated table for new functions.
(_Jv_JNI_Init): New function.
(mark_for_gc): Wrote.
(unmark_for_gc): Wrote.
* include/jni.h (struct JNINativeInterface): Removed name from
PopLocalFrame parameter.
(class _Jv_JNIEnv): Added `locals' field.
From-SVN: r31730
Jim Wilson [Tue, 1 Feb 2000 02:17:06 +0000 (02:17 +0000)]
Fix gdb testsuite regressions.
* class.c (build_vtbl_or_vbase_field): New parameter fcontext.
Store it in DECL_FCONTEXT.
(build_vbase_pointer_fields, create_vtable_ptr): Fix callers.
From-SVN: r31729
Chandra Chavva [Mon, 31 Jan 2000 22:23:43 +0000 (22:23 +0000)]
combine.c (try_combine): Trying to check the missed case 3->2 combining (combining with splitting) in...
* combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
case 3->2 combining (combining with splitting) in which 2 is CC0
setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
checked at the begining of the function with the aid of calling
function 'can_combine_p'.
From-SVN: r31727
Dave Brolley [Mon, 31 Jan 2000 21:58:10 +0000 (16:58 -0500)]
cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
2000-01-31 Dave Brolley <brolley@redhat.com>
* cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
From-SVN: r31726
Jason Merrill [Mon, 31 Jan 2000 21:27:42 +0000 (21:27 +0000)]
tinfo.h (old abi): #include "tconfig.h".
* tinfo.h (old abi): #include "tconfig.h".
* tinfo.cc (convert_to_base): Move into old abi section.
From-SVN: r31725
Mark Mitchell [Mon, 31 Jan 2000 21:00:01 +0000 (21:00 +0000)]
cp-tree.h (BINFO_VIRTUALS): Tweak documentation.
* cp-tree.h (BINFO_VIRTUALS): Tweak documentation.
(CLASSTYPE_PRIMARY_BINFO): Use BINFO_PRIMARY_BINFO.
(BINFO_PRIMARY_BINFO): New macro.
(BF_DELTA): Rename to ...
(BV_DELTA): ... this.
(BF_VCALL_INDEX): Rename to ...
(BV_VCALL_INDEX): ... this.
(BF_FN): Rename to ...
(BV_FN): ... this.
* class.c (build_vbase_path): Adjust for changes to reverse_path.
(set_rtti_entry): Rename BF_ macros to BV_ variants.
(modify_vtable_entry): Simplify.
(add_virtual_function): Rename BF_ macros to BV_ variants.
(build_vtable_initializer): Likewise.
(get_class_offset_1): Remove.
(dfs_get_class_offset): Likewise.
(get_class_offset): Likewise.
(dfs_find_final_overrider): New function.
(find_final_overrider): Likewise.
(modify_one_vtable): Remove.
(dfs_find_base): New function.
(dfs_modify_vtables): Fold modify_one_vtable in here. Use
find_final_overrider.
(modify_all_vtables): Adjust. Set BV_VCALL_INDEX on new
virtuals.
(dfs_fixup_vtable_deltas): Remove.
(override_one_vtable): Remove.
(merge_overrides): Likewise.
(layout_virtual_bases): Make sure BINFO_OFFSET is set right for
unreal chilren of virtual bases.
(finish_struct_1): Don't use merge_overrides. Don't use
dfs_fixup_vtable_deltas.
* tree.c (reverse_path): Return a TREE_LIST, not a chain of
BINFOs.
From-SVN: r31724
Jason Merrill [Mon, 31 Jan 2000 18:52:34 +0000 (18:52 +0000)]
jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the new label.
* jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
new label.
From-SVN: r31721
Jason Merrill [Mon, 31 Jan 2000 17:20:39 +0000 (12:20 -0500)]
tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.
* tinfo.h: Rename USItype to myint32, depend on BITS_PER_UNIT.
* exception.cc (__throw_bad_typeid): Add missing std::.
From-SVN: r31718
Kaveh R. Ghazi [Mon, 31 Jan 2000 16:44:46 +0000 (16:44 +0000)]
* cp-tree.h (make_thunk): PROTO -> PARAMS.
From-SVN: r31717
Kaveh R. Ghazi [Mon, 31 Jan 2000 16:39:49 +0000 (16:39 +0000)]
gansidecl.h (PROTO, [...]): Delete macros.
* gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
* sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
PROTO -> PARAMS.
From-SVN: r31716
Kaveh R. Ghazi [Mon, 31 Jan 2000 16:13:45 +0000 (16:13 +0000)]
* MAINTAINERS: Pair cccp with cpplib maintainership.
From-SVN: r31715
Nathan Sidwell [Mon, 31 Jan 2000 10:21:47 +0000 (10:21 +0000)]
cp-tree.h (new_abi_rtti_p): Use flag_new_abi.
* cp-tree.h (new_abi_rtti_p): Use flag_new_abi.
Runtime support for new-abi rtti.
* inc/typeinfo (type_info::operator!=): Define in class.
(type_info::before, type_info::name, type_info::operator==,
type_info::operator!=): Define new ABI implementations.
(type_info::is_pointer_p, type_info::is_function_p): Declare
new virtual functions.
(type_info::do_catch, type_info::do_upcast): Likewise.
* tinfo.h (__base_class_info): Define new class.
(__class_type_info): Likewise.
(__si_class_type_info): Likewise.
(__vmi_class_type_info): Likewise.
(__dynamic_cast): Prototype.
* tinfo.cc: Conditionalize old and new rtti mechanisms.
(type_info::is_pointer_p): Define new function.
(type_info::is_function_p): Likewise.
(type_info::do_catch): Likewise.
(type_info::do_upcast): Likewise.
(vtable_prefix): New structure for vtable access.
(adjust_pointer): Define new template function.
(contained_p, public_p, virtual_p, contained_public_p,
contained_nonpublic_p, contained_nonvirtual_p): Define new
functions.
(nonvirtual_base_type): New local variable.
(__class_type_info::~__class_type_info): Define.
(__si_class_type_info::~__si_class_type_info): Likewise.
(__vmi_class_type_info::~__vmi_class_type_info): Likewise.
(__class_type_info::do_catch): Define new function.
(__class_type_info::do_upcast): Likewise.
(__class_type_info::find_public_src): Likewise.
(__class_type_info::do_find_public_src): Likewise.
(__si_class_type_info::do_find_public_src): Likewise.
(__vmi_class_type_info::do_find_public_src): Likewise.
(__class_type_info::do_dyncast): Likewise.
(__si_class_type_info::do_dyncast): Likewise.
(__vmi_class_type_info::do_dyncast): Likewise.
(__class_type_info::do_upcast): Likewise.
(__si_class_type_info::do_upcast): Likewise.
(__vmi_class_type_info::do_upcast): Likewise.
(__dynamic_cast): Likewise.
* tinfo2.cc (__fundamental_type_info): Define new class.
(__pointer_type_info): Likewise.
(__reference_type_info): Likewise.
(__array_type_info): Likewise.
(__function_type_info): Likewise.
(__enum_type_info): Likewise.
(__ptr_to_member_type_info): Likewise.
(__fundamental_type_info::~__fundamental_type_info): Define.
(__pointer_type_info::~__pointer_type_info): Likewise.
(__reference_type_info::~__reference_type_info): Likewise.
(__array_type_info::~__array_type_info): Likewise.
(__function_type_info::~__function_type_info): Likewise.
(__enum_type_info::~__enum_type_info): Likewise.
(__ptr_to_member_type_info::~__ptr_to_member_type_info): Likewise.
(__pointer_type_info::do_catch): Define new function.
(__ptr_to_member_type_info::do_catch): Define new function.
(__throw_type_match_rtti_2): Use new ABI interface, if enabled.
(__is_pointer): Likewise.
* exception.cc (__cplus_type_matcher): Deal with new-abi rtti.
From-SVN: r31713
Anthony Green [Mon, 31 Jan 2000 08:56:09 +0000 (08:56 +0000)]
natIconv.cc (read): Minor fixes.
* gnu/gcj/convert/natIconv.cc (read): Minor fixes.
(write): Ditto.
From-SVN: r31712
Jeff Law [Mon, 31 Jan 2000 08:45:06 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31711
Zack Weinberg [Mon, 31 Jan 2000 07:28:05 +0000 (07:28 +0000)]
386bsd.h, [...]: Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
* i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
i386/vxi386.h, i386/win-nt.h, i386/win32.h:
Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
* i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
Add %(cpp_cpu) to CPP_SPEC.
* i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
Add %(cc1_cpu) to CC1_SPEC.
From-SVN: r31710
Anthony Green [Mon, 31 Jan 2000 05:36:56 +0000 (05:36 +0000)]
jcf-write.c (generate_bytecode_insns): Use TYPE_IS_WIDE to determine how many stack slots to pop.
* jcf-write.c (generate_bytecode_insns): Use TYPE_IS_WIDE to
determine how many stack slots to pop.
From-SVN: r31709
Tom Tromey [Mon, 31 Jan 2000 04:53:47 +0000 (04:53 +0000)]
config.h.in: Rebuilt.
* include/config.h.in: Rebuilt.
* acconfig.h (HAVE_ICONV): Define.
* configure: Rebuilt.
* configure.in: Check for `iconv' function.
* gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
no specific encoder exists.
* gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
no specific encoder exists.
* Makefile.in: Rebuilt.
* Makefile.am (convert_source_files): Mention Input_iconv.java and
Output_iconv.java.
(nat_source_files): Added natIconv.cc.
* gnu/gcj/convert/natIconv.cc: New file.
* gnu/gcj/convert/Input_iconv.java: New file.
* gnu/gcj/convert/Output_iconv.java: New file.
From-SVN: r31708
Mark Mitchell [Mon, 31 Jan 2000 04:03:01 +0000 (04:03 +0000)]
class.c (build_vtable): Rename to build_primary_vtable.
* cp/class.c (build_vtable): Rename to build_primary_vtable.
(prepare_fresh_vtable): Rename to build_secondary_vtable.
(make_new_vtable): New function.
(modify_vtable_entry): Handle generation of new vtables correctly.
(modify_one_vtable): Remove unused parameter.
(dfs_fixup_vtable_deltas): Likewise.
(override_one_vtable): Use build_secondary_vtable.
(finish_struct_1): Use build_primary_vtable and
build_secondary_vtable.
From-SVN: r31707
Ulrich Drepper [Mon, 31 Jan 2000 03:31:26 +0000 (03:31 +0000)]
c-decl.c (c_decode_option): Accept optional numeric argument to -Wformat and set warn_format.
* c-decl.c (c_decode_option): Accept optional numeric argument to
-Wformat and set warn_format.
* c-common.c: Don't emit warning about non-constant printf format
string unless warn_format > 1.
From-SVN: r31706
Richard Henderson [Mon, 31 Jan 2000 01:16:21 +0000 (17:16 -0800)]
* alpha.md (return_internal): Allow after reload only.
From-SVN: r31705
Alexandre Petit-Bianco [Sun, 30 Jan 2000 22:08:32 +0000 (22:08 +0000)]
final_inner.java: New file.
* libjava.lang/final_inner.java: New file.
* libjava.lang/final_inner.out: Likewise.
From-SVN: r31704
Richard Henderson [Sun, 30 Jan 2000 21:27:22 +0000 (13:27 -0800)]
i386.c (ix86_compute_frame_size): Omit padding1 if the local frame size is zero.
* i386.c (ix86_compute_frame_size): Omit padding1 if the
local frame size is zero.
From-SVN: r31703
Richard Henderson [Sun, 30 Jan 2000 20:27:57 +0000 (12:27 -0800)]
alpha.c (alpha_expand_epilogue): Don't emit the return insn.
* alpha.c (alpha_expand_epilogue): Don't emit the return insn.
* alpha.h (EPILOGUE_USES): New. Mark $26 live.
* alpha.md (return): Turn into an expander.
(return_internal): Don't use $26.
(epilogue): Emit the return insn.
From-SVN: r31702
Richard Henderson [Sun, 30 Jan 2000 20:14:40 +0000 (12:14 -0800)]
alpha.md (negtf2, abstf2): Fix word order thinko.
* alpha.md (negtf2, abstf2): Fix word order thinko.
(extendsftf2): New.
(trunctfsf2): Avoid intermediate rounding errors.
From-SVN: r31701
Zack Weinberg [Sun, 30 Jan 2000 18:09:07 +0000 (18:09 +0000)]
cppfiles.c (find_position): Drop 'colp' argument, return the new line base.
* cppfiles.c (find_position): Drop 'colp' argument, return the
new line base.
(read_and_prescan): Adjust to match. Don't ever manipulate
line or line_base except via find_position.
From-SVN: r31700
Jeff Law [Sun, 30 Jan 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31699
Zack Weinberg [Sun, 30 Jan 2000 03:44:04 +0000 (03:44 +0000)]
c-parse.in: Apply Ulrich's changes from c-parse.y.
* c-parse.in: Apply Ulrich's changes from c-parse.y.
* c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
Regenerate.
From-SVN: r31698
Zack Weinberg [Sun, 30 Jan 2000 03:31:59 +0000 (03:31 +0000)]
cpperror.c (cpp_file_line_for_message): If 'line' is zero, just print "<command line>".
* cpperror.c (cpp_file_line_for_message): If 'line' is zero,
just print "<command line>". If 'filename' is null or an
empty string, print "<stdin>" for the filename.
* cpplib.c (do_define): Don't print the 'location of the
previous definition' message if we're still parsing the
command line.
(cpp_pedwarn_with_file_and_line): Always call
cpp_file_line_for_message.
From-SVN: r31697
Mark Mitchell [Sat, 29 Jan 2000 23:52:33 +0000 (23:52 +0000)]
* flow.c (mark_regs_live_at_end): Fix typo.
From-SVN: r31696
Alexandre Petit-Bianco [Sat, 29 Jan 2000 22:40:07 +0000 (22:40 +0000)]
[multiple changes]
2000-01-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (formal_parameter:): Set `$$' to NULL_TREE for better
error handling/recovery.
* java-tree.h (SYNCHRONIZED_EXPR): Fixed typo in comment.
Wed Jan 12 20:20:11 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-write.c (generate_bytecode_insns): binop: Change the type of
the shift value to int. Fixed typo in comment.
From-SVN: r31695
Ulrich Drepper [Sat, 29 Jan 2000 19:18:00 +0000 (19:18 +0000)]
Regenerated.
From-SVN: r31694
Ulrich Drepper [Sat, 29 Jan 2000 19:15:16 +0000 (19:15 +0000)]
Update.
From-SVN: r31693
Ulrich Drepper [Sat, 29 Jan 2000 19:10:00 +0000 (19:10 +0000)]
Adjust variable names, comments, help strings.
From-SVN: r31692
Ulrich Drepper [Sat, 29 Jan 2000 19:08:45 +0000 (19:08 +0000)]
Update.
From-SVN: r31691
Ulrich Drepper [Sat, 29 Jan 2000 19:00:43 +0000 (19:00 +0000)]
Adjust variable names, comments, help strings to c99.
Recognize options with names *99 as well.
From-SVN: r31690
Ulrich Drepper [Sat, 29 Jan 2000 18:59:40 +0000 (18:59 +0000)]
Adjust variable names, comments, help strings to c99.
From-SVN: r31689
Hans-Peter Nilsson [Sat, 29 Jan 2000 16:25:57 +0000 (16:25 +0000)]
Fix entry for ns32k change of 01-27 - no VOIDmode for load effective address
From-SVN: r31688
Nathan Sidwell [Sat, 29 Jan 2000 16:25:37 +0000 (16:25 +0000)]
new2.cc (operator delete[]): Use operator delete, don't assume implementation.
* new2.cc (operator delete[]): Use operator delete, don't assume
implementation.
From-SVN: r31687
Nathan Sidwell [Sat, 29 Jan 2000 15:47:14 +0000 (15:47 +0000)]
class.c (build_vtbl_initializer): Add argument to build_vtable_entry call.
* class.c (build_vtbl_initializer): Add argument to
build_vtable_entry call.
From-SVN: r31686
Jeff Law [Sat, 29 Jan 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31685
Mark Mitchell [Sat, 29 Jan 2000 03:59:09 +0000 (03:59 +0000)]
cp-tree.def (THUNK_DECL): Discuss vcall indices.
* cp-tree.def (THUNK_DECL): Discuss vcall indices.
* cp-tree.h (BINFO_VIRTUALS): Update documentation.
(BF_DELTA): New macro.
(BF_VCALL_INDEX): Likewise.
(BF_FN): Likewise.
(THUNK_VCALL_OFFSET): Likewise.
(make_thunk): Change prototype.
* class.c (build_vtable_entry): Integrate
build_vtable_entry_for_fn. Handle vcall indices.
(build_vtable_entry_for_fn): Remove.
(set_rtti_entry): Handle vcall indices. Use BF_DELTA,
BF_VCALL_INDEX, BF_FN.
(modify_vtable_entry): Integrate common code from
modify_one_vtable and dfs_fixup_vtable_deltas.
(add_virtual_function): Set BF_VCALL_INDEX.
(build_vtbl_initializer): Simplify. Use BF_DELTA, BF_VCALL_INDEX,
and BF_FN.
(modify_one_vtable): Simplify.
(dfs_fixup_vtable_deltas): Likewise.
(override_one_vtable): Use BF_DELTA, BF_VCALL_INDEX, BF_FN.
* method.c (make_thunk): Handle vcall indices.
From-SVN: r31684
Herman A.J. ten Brugge [Sat, 29 Jan 2000 03:11:21 +0000 (04:11 +0100)]
c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
* c4x.c: Define the optab rtx values.
(c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
(c4x_emit_libcall): Use new optab rtx values.
(c4x_emit_libcall3): Likewise.
(c4x_emit_libcall_mulhi): Likewise.
* c4x-protos.h: Add prototypes for optab rtx values and change
prototypes for above c4x_emit_libcall functions.
From-SVN: r31683
Herman A.J. ten Brugge [Sat, 29 Jan 2000 03:07:37 +0000 (04:07 +0100)]
c4x.c (c4x_output_ascii): Restrict line length of output when TI syntax is used.
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* c4x.c (c4x_output_ascii): Restrict line length of output when TI
syntax is used.
(c4x_function_prologue): Use regnames intead of float_reg_names when
TI syntax is used.
(c4x_function_epilogue): Likewise.
(c4x_print_operand): Likewise.
* c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
* c4x.md (set_high): Disable for TARGET_TI.
From-SVN: r31682
Herman A.J. ten Brugge [Sat, 29 Jan 2000 03:01:24 +0000 (04:01 +0100)]
c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading of framepointer + constant to ADDR_REGS class.
2000-01-27 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
of framepointer + constant to ADDR_REGS class.
* c4x.md (addqi3, addqi3_noclobber_reload): Update.
* c4x.c (std_or_reg_operand): New function.
* c4x-protos.h (std_or_reg_operand): Prototype it.
From-SVN: r31681
Herman A.J. ten Brugge [Sat, 29 Jan 2000 02:50:17 +0000 (03:50 +0100)]
t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same object names as libgcc2.c.
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
object names as libgcc2.c.
* libgcc.S: Use newly defined names.
From-SVN: r31680
Jason Eckhardt [Sat, 29 Jan 2000 01:41:22 +0000 (01:41 +0000)]
[multiple changes]
Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
* sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
function.
* sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
* basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
(FLOW_LOOP_LAST_BLOCK): Likewise.
2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* basic-block.h (struct loop): New fields 'first' and 'last'.
* flow.c (flow_loops_find): Compute loop->first and loop->last.
(flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
and loop->last to check for NOTE_INSN_LOOP_END.
Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
* predict.c (estimate_probability): Use the new FIRST and LAST fields
of the loop descriptor rather than HEADER and LATCH. Also added
missing break statements as well making some coding style modifications
as suggested by Michael Hayes.
From-SVN: r31679
Anthony Green [Sat, 29 Jan 2000 01:17:03 +0000 (01:17 +0000)]
gcconfig.h (DATASTART): Add missing extern declaration for data_start on powerpc.
* gcconfig.h (DATASTART): Add missing extern declaration
for data_start on powerpc.
From-SVN: r31677