gcc.git
24 years agoCopyright fixes.
Jeff Law [Sat, 26 Feb 2000 05:45:17 +0000 (22:45 -0700)]
Copyright fixes.

From-SVN: r32171

24 years agoprotoize.c: (AUX_INFO_SUFFIX): New macro.
Mumit Khan [Sat, 26 Feb 2000 05:39:13 +0000 (05:39 +0000)]
protoize.c: (AUX_INFO_SUFFIX): New macro.

        * protoize.c: (AUX_INFO_SUFFIX): New macro.
        (aux_info_suffix): Use.
        (SAVE_SUFFIX): New macro.
        (save_suffix): Use.
        (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
        (gen_aux_info_file): Use aux_info_suffix instead of ".X".
        (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.

        * invoke.texi (Running Protoize): Update documentation.

From-SVN: r32170

24 years agoFix 3 ia64 g++ testsuite failures, and groff miscompilation.
Jim Wilson [Sat, 26 Feb 2000 05:32:24 +0000 (05:32 +0000)]
Fix 3 ia64 g++ testsuite failures, and groff miscompilation.

* optimize.c (expand_call_inline): Emit the return label before
evaluating the return value.

From-SVN: r32169

24 years ago* i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
Mark Elbrecht [Sat, 26 Feb 2000 05:23:20 +0000 (05:23 +0000)]
* i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.

From-SVN: r32168

24 years agoresource.c (mark_referenced_resources): Changed use SET_DEST (...) to XEXP (......
Graham Stott [Sat, 26 Feb 2000 05:19:35 +0000 (05:19 +0000)]
resource.c (mark_referenced_resources): Changed use SET_DEST (...) to XEXP (......

        * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
        to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.

From-SVN: r32167

24 years agoexpr.c (build_class_init): Mark the decl to be ignored by check_init.
Anthony Green [Sat, 26 Feb 2000 05:12:27 +0000 (05:12 +0000)]
expr.c (build_class_init): Mark the decl to be ignored by check_init.

2000-02-25  Anthony Green  <green@cygnus.com>

* expr.c (build_class_init): Mark the decl to be ignored by
check_init.
* java-tree.h (DECL_BIT_INDEX): Move definition from check-init.c
* check-init.c: Move DECL_BIT_INDEX to java-tree.h
* class.c (init_test_hash_newfunc): New function.
(decl_hash): New function.
(decl_compare): New function.
* decl.c (emit_init_test_initialization): New function.
(complete_start_java_method): Traverse the init test hashtable,
calling emit_init_test_initialization.
(always_initialize_class_p): Define.
* expr.c (build_class_init): Use initialization tests when
emitting class initialization code.
(always_initialize_class_p): Declare.
* jcf-parse.c (parse_class_file): Set always_initialize_class_p to
1.
* java-tree.h: Include hash.h.
(DECL_FUNCTION_INIT_TEST_TABLE): Define.
(struct lang_decl): Add init_test_table field.
(init_test_hash_entry): Define.

From-SVN: r32166

24 years ago* gcc.c-torture/execute/20000225-1.c: New test.
Jeffrey A Law [Sat, 26 Feb 2000 04:46:00 +0000 (04:46 +0000)]
* gcc.c-torture/execute/20000225-1.c: New test.

From-SVN: r32165

24 years agogjavah.c (main): Avoid using `argi' to report unimplemented options.
Alexandre Petit-Bianco [Sat, 26 Feb 2000 04:32:08 +0000 (04:32 +0000)]
gjavah.c (main): Avoid using `argi' to report unimplemented options.

* gjavah.c (main): Avoid using `argi' to report unimplemented
options.

From-SVN: r32164

24 years ago* rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
John Wehle [Sat, 26 Feb 2000 02:58:08 +0000 (02:58 +0000)]
* rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.

From-SVN: r32163

24 years agotoplev.c (rest_of_compilation): Rebuild jump labels if combine_instructions has creat...
Anthony Green [Sat, 26 Feb 2000 02:54:36 +0000 (02:54 +0000)]
toplev.c (rest_of_compilation): Rebuild jump labels if combine_instructions has created a new direct jump.

* toplev.c (rest_of_compilation): Rebuild jump labels if
combine_instructions has created a new direct jump.
* combine.c (try_combine): Add new_direct_jump_p argument.  Set it
when appropriate.
(combine_instructions): Call try_combine with new argument.
Return non-null value when new direct jump instruction is created.
* rtl.h: combine_instructions returns an int.

From-SVN: r32162

24 years agojcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR: initialize locals to avoid...
Alexandre Petit-Bianco [Sat, 26 Feb 2000 02:50:37 +0000 (02:50 +0000)]
jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR: initialize locals to avoid warnings.

Fri Feb 25 18:47:25 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* jcf-write.c (generate_bytecode_insns): TRY_FINALLY_EXPR:
  initialize locals to avoid warnings. Local `exception_type' moved
into if statement.

From-SVN: r32161

24 years agocse.c (cse_insn): Replace the PATTERN of the insn with an new jump when...
Jeffrey A Law [Sat, 26 Feb 2000 02:50:12 +0000 (02:50 +0000)]
cse.c (cse_insn): Replace the PATTERN of the insn with an new jump when...

* cse.c (cse_insn): Replace the PATTERN of the insn with an new
jump when changing a computed jump into a jump to a known
target.

From-SVN: r32160

24 years ago*** empty log message ***
Graham Stott [Sat, 26 Feb 2000 02:24:11 +0000 (02:24 +0000)]
*** empty log message ***

From-SVN: r32159

24 years agoparse.y (resolve_expression_name): Use `orig' as a second argument to resolve_field_a...
Alexandre Petit-Bianco [Sat, 26 Feb 2000 02:05:35 +0000 (02:05 +0000)]
parse.y (resolve_expression_name): Use `orig' as a second argument to resolve_field_access.

Fri Feb 25 18:00:37 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (resolve_expression_name): Use `orig' as a second
  argument to resolve_field_access.
(resolve_field_access): Removed unecessary code when dealing with
  static fields.

From-SVN: r32158

24 years ago* rtl.texi: Fix typo.
K. Richard Pixley [Sat, 26 Feb 2000 01:50:50 +0000 (18:50 -0700)]
* rtl.texi: Fix typo.

From-SVN: r32157

24 years agojni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on `INTERPRETER'.
Tom Tromey [Fri, 25 Feb 2000 23:49:34 +0000 (23:49 +0000)]
jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on `INTERPRETER'.

* jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
`INTERPRETER'.

From-SVN: r32156

24 years agoChangeLog typo fix for last final.c change: LABEL_ALIGN -> LOOP_ALIGN
Joern Rennecke [Fri, 25 Feb 2000 23:09:16 +0000 (23:09 +0000)]
ChangeLog typo fix for last final.c change: LABEL_ALIGN -> LOOP_ALIGN

From-SVN: r32155

24 years agoTypo fix in ChangeLog: 1,$:s/sh_label_align/sh_loop_align/g
Joern Rennecke [Fri, 25 Feb 2000 23:03:23 +0000 (23:03 +0000)]
Typo fix in ChangeLog: 1,$:s/sh_label_align/sh_loop_align/g

From-SVN: r32154

24 years agore GNATS libgcj/38 (Static initializer in DecimalFormat eventually depends on itself)
Bryce McKinlay [Fri, 25 Feb 2000 22:38:33 +0000 (22:38 +0000)]
re GNATS libgcj/38 (Static initializer in DecimalFormat eventually depends on itself)

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

        * java/net/URLConnection.java (initializeDateFormats): New
        private method.
        (getHeaderFieldDate): Call initializeDateFormats if required.
        locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
        these.
        Fix for PR libgcj/38.

From-SVN: r32153

24 years agosh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by UNITS_PER_WORD.
J"orn Rennecke [Fri, 25 Feb 2000 20:12:02 +0000 (20:12 +0000)]
sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by UNITS_PER_WORD.

* sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
UNITS_PER_WORD.  Change caller initial_elimination_offset.
(rounded_frame_size): Take into account that argument pushed has
changed.  Fix TARGET_ALIGN_DOUBLE problem.

From-SVN: r32152

24 years agoffi.c, [...]: New files.
Hans Boehm [Fri, 25 Feb 2000 19:13:44 +0000 (19:13 +0000)]
ffi.c, [...]: New files.

2000-02-25  Hans Boehm <boehm@acm.org>

* src/ia64/ffi.c, src/ia64/ia64_flags.h, src/ia64/unix.S: New
files.
* src/raw_api.c (ffi_translate_args): Fixed typo in argument
list.
(ffi_prep_raw_closure): Use ffi_translate_args, not
ffi_closure_translate.
* src/java_raw_api.c: New file.
* src/ffitest.c (closure_test_fn): New function.
(main): Define `rint' as long long on IA64.  Added new test when
FFI_CLOSURES is defined.
* include/ffi.h.in (ALIGN): Use size_t, not unsigned.
(ffi_abi): Recognize IA64.
(ffi_raw): Added `flt' field.
Added "Java raw API" code.
* configure.in: Recognize ia64.
* Makefile.am (TARGET_SRC_IA64): New macro.
(libffi_la_common_SOURCES): Added java_raw_api.c.
(libffi_la_SOURCES): Define in IA64 case.

From-SVN: r32151

24 years agohaifa-sched.c (schedule_block): Explain the real reason we delete REG_SAVE_NOTEs...
Geoff Keating [Fri, 25 Feb 2000 18:17:40 +0000 (18:17 +0000)]
haifa-sched.c (schedule_block): Explain the real reason we delete REG_SAVE_NOTEs on the first insn of a block.

* haifa-sched.c (schedule_block): Explain the real reason
we delete REG_SAVE_NOTEs on the first insn of a block.
Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.

* compile/20000224-1.c: New test.

From-SVN: r32150

24 years ago* compile/cpp-2.c: New test.
Alexandre Oliva [Fri, 25 Feb 2000 11:21:25 +0000 (11:21 +0000)]
* compile/cpp-2.c: New test.

From-SVN: r32149

24 years ago* compile/cpp-1.c: New test.
Alexandre Oliva [Fri, 25 Feb 2000 11:18:22 +0000 (11:18 +0000)]
* compile/cpp-1.c: New test.

From-SVN: r32148

24 years agoDaily bump.
Jeff Law [Fri, 25 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32147

24 years ago* gcc.dg/cpp-li2.c: New test.
Alexandre Oliva [Fri, 25 Feb 2000 05:05:40 +0000 (05:05 +0000)]
* gcc.dg/cpp-li2.c: New test.

From-SVN: r32146

24 years ago* gcc.dg/cpp-wi1.c: New test.
Alexandre Oliva [Fri, 25 Feb 2000 04:59:04 +0000 (04:59 +0000)]
* gcc.dg/cpp-wi1.c: New test.

From-SVN: r32145

24 years ago* gcc.dg/cpp-li1.c: New test.
Alexandre Oliva [Fri, 25 Feb 2000 04:44:41 +0000 (04:44 +0000)]
* gcc.dg/cpp-li1.c: New test.

From-SVN: r32144

24 years agoBigInteger.java (ival): Made private.
Warren Levy [Fri, 25 Feb 2000 04:00:09 +0000 (04:00 +0000)]
BigInteger.java (ival): Made private.

* java/math/BigInteger.java(ival): Made private.
(words): Ditto.
(neg): Ditto.

From-SVN: r32143

24 years agolex.c (check_newline): Use push_srcloc and pop_srcloc, rather than duplicating functi...
Mark Mitchell [Fri, 25 Feb 2000 01:36:03 +0000 (01:36 +0000)]
lex.c (check_newline): Use push_srcloc and pop_srcloc, rather than duplicating functionality here.

* lex.c (check_newline): Use push_srcloc and pop_srcloc, rather
than duplicating functionality here.
* optimize.c: Include input.h.
(expand_call_inline): Use push_srcloc and pop_srcloc.
* parse.y (maybe_cv_qualifier): Remove calls to emit_line_note.
* parse.c: Regenerated.
* Makefile.in (lex.o): Depend on input.h.
(optimize.o): Likewise.

From-SVN: r32142

24 years agoinput.h (push_srcloc): New function.
Mark Mitchell [Fri, 25 Feb 2000 01:07:31 +0000 (01:07 +0000)]
input.h (push_srcloc): New function.

* input.h (push_srcloc): New function.
(pop_srcloc): Likewise.
* toplev.c (push_srcloc): Define it.
(pop_srcloc): Likewise.

From-SVN: r32141

24 years agoflow.c (life_analysis): When collecting reg info, clear regs_ever_live.
Richard Henderson [Thu, 24 Feb 2000 22:32:10 +0000 (14:32 -0800)]
flow.c (life_analysis): When collecting reg info, clear regs_ever_live.

        * flow.c (life_analysis): When collecting reg info, clear
        regs_ever_live.

From-SVN: r32139

24 years agoFix bug exposed by reload.c no longer rounding the frame size to BIGGEST_ALIGNMENT:
J"orn Rennecke [Thu, 24 Feb 2000 22:14:14 +0000 (22:14 +0000)]
Fix bug exposed by reload.c no longer rounding the frame size to BIGGEST_ALIGNMENT:

Fix bug exposed by reload.c no longer rounding the frame
size to BIGGEST_ALIGNMENT:
* sh.c (rounded_frame_size): New function.
(sh_expand_prologue, sh_expand_epilogue): Use it.
(initial_elimination_offset): Likewise.

From-SVN: r32138

24 years agoAdd support for an OS of "wince"
Nick Clifton [Thu, 24 Feb 2000 21:21:31 +0000 (21:21 +0000)]
Add support for an OS of "wince"

From-SVN: r32137

24 years agoFix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
J"orn Rennecke [Thu, 24 Feb 2000 20:09:30 +0000 (20:09 +0000)]
Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:

* sh-protos.h (sh_need_epilogue): Declare.
* sh.c (sh_need_epilogue_known): New static variable.
(sh_need_epilogue): New function.
(function_epilogue): Clear need_epilogue_known.
* sh.md (return): Split into expander / insn pattern.
Make the expander conditional on ! sh_need_epilogue ().

From-SVN: r32136

24 years agomachmode.h (get_mode_alignment): Declare.
Nathan Sidwell [Thu, 24 Feb 2000 10:07:32 +0000 (10:07 +0000)]
machmode.h (get_mode_alignment): Declare.

* machmode.h (get_mode_alignment): Declare.
(GET_MODE_ALIGNMENT): Call it.
* stor-layout.c (get_mode_alignment): New function. Make
sure alignment is always power of 2.

From-SVN: r32134

24 years ago* g++.old-deja/g++.other/sizeof5.C: New test.
Nathan Sidwell [Thu, 24 Feb 2000 09:48:41 +0000 (09:48 +0000)]
* g++.old-deja/g++.other/sizeof5.C: New test.

From-SVN: r32133

24 years agodecl.c (grokdeclarator): Diagnose qualifiers on non-member function type, rather...
Nathan Sidwell [Thu, 24 Feb 2000 09:48:18 +0000 (09:48 +0000)]
decl.c (grokdeclarator): Diagnose qualifiers on non-member function type, rather than ICE.

* decl.c (grokdeclarator): Diagnose qualifiers on non-member
function type, rather than ICE.

From-SVN: r32132

24 years agoDaily bump.
Jeff Law [Thu, 24 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32131

24 years agoi386.h: Remove useless definition of "I386" and misleading comment above it.
Zack Weinberg [Thu, 24 Feb 2000 04:59:34 +0000 (04:59 +0000)]
i386.h: Remove useless definition of "I386" and misleading comment above it.

* i386.h: Remove useless definition of "I386" and misleading
comment above it.

From-SVN: r32130

24 years agoThis has worked for the past three months
Zack Weinberg [Thu, 24 Feb 2000 04:35:59 +0000 (04:35 +0000)]
This has worked for the past three months

From-SVN: r32129

24 years agotree.h (TREE_SET_PERMANENT): New macro.
Zack Weinberg [Thu, 24 Feb 2000 04:04:06 +0000 (04:04 +0000)]
tree.h (TREE_SET_PERMANENT): New macro.

* tree.h (TREE_SET_PERMANENT): New macro.  Document conditions
under which TREE_PERMANENT will be set.
* tree.c (make_node, copy_node, make_tree_vec, tree_cons,
build1): Use TREE_SET_PERMANENT.
* print-tree.c (print_node): Don't report value of
TREE_PERMANENT if ggc_p is true.

* c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
decide whether to give a type a new alias set.
* objc/objc-act.c (build_objc_string_object): Never copy the string.
* tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
of value of 'obstack'.

* f/com.c (ffecom_type_permanent_copy_): Delete unused function.
        (finish_decl): Don't change TREE_PERMANENT (DECL_INITIAL (decl)).

From-SVN: r32128

24 years ago* execute/va-arg-13.c: New test.
Franz Sirl [Wed, 23 Feb 2000 23:16:36 +0000 (23:16 +0000)]
* execute/va-arg-13.c: New test.

From-SVN: r32127

24 years agoNew test. Approved by rth.
Donald Lindsay [Wed, 23 Feb 2000 22:17:04 +0000 (22:17 +0000)]
New test. Approved by rth.

From-SVN: r32126

24 years ago* config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
Michael Hayes [Wed, 23 Feb 2000 21:03:21 +0000 (21:03 +0000)]
* config/c4x/c4x.c (c4x_process_after_reload): Split all insns.

From-SVN: r32125

24 years agogjavah.c (print_name): In JNI case, correctly quote string.
Tom Tromey [Wed, 23 Feb 2000 20:46:18 +0000 (20:46 +0000)]
gjavah.c (print_name): In JNI case, correctly quote string.

* gjavah.c (print_name): In JNI case, correctly quote string.
(print_method_info): Don't handle overrides in JNI mode.

From-SVN: r32124

24 years agodecl.c (grokdeclarator): Call decl_type_access_control.
Jason Merrill [Wed, 23 Feb 2000 20:25:49 +0000 (20:25 +0000)]
decl.c (grokdeclarator): Call decl_type_access_control.

        * decl.c (grokdeclarator): Call decl_type_access_control.
        * parse.y (parse_end_decl): Don't call decl_type_access_control if
        decl is null.

From-SVN: r32123

24 years agonew
Jason Merrill [Wed, 23 Feb 2000 20:23:15 +0000 (15:23 -0500)]
new

From-SVN: r32122

24 years agocpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
Alexandre Oliva [Wed, 23 Feb 2000 19:21:07 +0000 (19:21 +0000)]
cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.

* cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
* cpplib.c (cpp_get_token): Produce them.
* cppexp.c (cpp_lex): Handle them.

From-SVN: r32121

24 years ago(arm_comp_type_attributes): Simply and comment tests on type attributes.
Nick Clifton [Wed, 23 Feb 2000 19:08:51 +0000 (19:08 +0000)]
(arm_comp_type_attributes): Simply and comment tests on type attributes.

From-SVN: r32120

24 years agooops - fixed typo in previous delta
Nick Clifton [Wed, 23 Feb 2000 18:30:27 +0000 (18:30 +0000)]
oops - fixed typo in previous delta

From-SVN: r32119

24 years agoFix arm_comp_type_attributes
Nick Clifton [Wed, 23 Feb 2000 18:29:25 +0000 (18:29 +0000)]
Fix arm_comp_type_attributes

From-SVN: r32118

24 years ago* execute/20000223-1.c: New test.
Nathan Sidwell [Wed, 23 Feb 2000 18:14:28 +0000 (18:14 +0000)]
* execute/20000223-1.c: New test.

From-SVN: r32117

24 years ago* g++.old-deja/g++.pt/memtemp79.C: Fixed. Remove XFAIL.
Nathan Sidwell [Wed, 23 Feb 2000 17:27:07 +0000 (17:27 +0000)]
* g++.old-deja/g++.pt/memtemp79.C: Fixed. Remove XFAIL.

From-SVN: r32116

24 years ago* decl.c (decls_match): Remove obsolete static member nadgering.
Nathan Sidwell [Wed, 23 Feb 2000 17:25:29 +0000 (17:25 +0000)]
* decl.c (decls_match): Remove obsolete static member nadgering.

From-SVN: r32115

24 years agofinal.c (shorten_branches): Make value passed to LABEL_ALIGN conform to documentation.
J"orn Rennecke [Wed, 23 Feb 2000 17:18:15 +0000 (17:18 +0000)]
final.c (shorten_branches): Make value passed to LABEL_ALIGN conform to documentation.

* final.c (shorten_branches): Make value passed to LABEL_ALIGN
conform to documentation.
* sh.h (LABEL_ALIGN): If aligning loops, call sh_label_align
to check for special cases.
* sh-protos.h (sh_label_align): Declare.
* sh.c (sh_label_align): Define.

From-SVN: r32114

24 years agomips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
Andrew Haley [Wed, 23 Feb 2000 14:37:05 +0000 (14:37 +0000)]
mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.

2000-02-22  Andrew Haley  <aph@cygnus.com>

* config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
(SIZE_TYPE): Is 32 bits when using -mgp32.
(PTRDIFF_TYPE): Ditto.

From-SVN: r32113

24 years ago* diagnostic.c (init_output_buffer): Handle case of null PREFIX.
Richard Kenner [Wed, 23 Feb 2000 12:17:57 +0000 (12:17 +0000)]
* diagnostic.c (init_output_buffer): Handle case of null PREFIX.

From-SVN: r32112

24 years agoDaily bump.
Jeff Law [Wed, 23 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32111

24 years agoMakefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
Zack Weinberg [Wed, 23 Feb 2000 08:43:44 +0000 (08:43 +0000)]
Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.

* libobjc/Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
* gcc/config/i386/i386.h: If IN_TARGET_LIBS is defined, make
BIGGEST_FIELD_ALIGNMENT a constant.

From-SVN: r32110

24 years agoAdd support for sh-pe and arm-wince-pe targets.
Nick Clifton [Wed, 23 Feb 2000 01:25:56 +0000 (01:25 +0000)]
Add support for sh-pe and arm-wince-pe targets.

From-SVN: r32109

24 years agoAdd data member test
Mark Mitchell [Tue, 22 Feb 2000 22:47:56 +0000 (22:47 +0000)]
Add data member test

From-SVN: r32108

24 years ago* g++.old-deja/g++.abi/ptrmem.C: New test.
Mark Mitchell [Tue, 22 Feb 2000 22:17:33 +0000 (22:17 +0000)]
* g++.old-deja/g++.abi/ptrmem.C: New test.

From-SVN: r32107

24 years agofix comment
Jason Merrill [Tue, 22 Feb 2000 22:12:59 +0000 (17:12 -0500)]
fix comment

From-SVN: r32106

24 years agodwarf2out.c (output_line_info): Put the marker for the end of the line number info...
Jason Merrill [Tue, 22 Feb 2000 22:04:35 +0000 (22:04 +0000)]
dwarf2out.c (output_line_info): Put the marker for the end of the line number info at the actual end.

        * dwarf2out.c (output_line_info): Put the marker for the end of
        the line number info at the actual end.
        (gen_struct_or_union_type_die): Use decl_function_context
        to check for local classes.
        * dwarfout.c (output_type): Likewise.

From-SVN: r32105

24 years agoparse.y (init_decl_processing): `_Jv_IsInstanceOf' returned value type set to `boolea...
Alexandre Petit-Bianco [Tue, 22 Feb 2000 09:12:48 +0000 (09:12 +0000)]
parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned value type set to `boolean_type_node'.

2000-02-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned
value type set to `boolean_type_node'.

From-SVN: r32104

24 years agoFix thinko in last change.
Jeff Law [Tue, 22 Feb 2000 09:05:22 +0000 (02:05 -0700)]
Fix thinko in last change.

From-SVN: r32103

24 years agoDaily bump.
Jeff Law [Tue, 22 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32102

24 years agopa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference for arguments with...
Jeffrey A Law [Tue, 22 Feb 2000 08:40:16 +0000 (08:40 +0000)]
pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference for arguments with a mode, but no type.

        * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
        for arguments with a mode, but no type.
        (FUNCTION_ARG_CALLEE_COPIES): Similarly.
        * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
        * pa/long_double.h: New file.
        * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
        both have 128bit wide long doubles.
        * configure: Rebuilt.

From-SVN: r32101

24 years agoRefer to the standard as an ISO document, not an ANSI one.
Martin v. Löwis [Tue, 22 Feb 2000 07:25:31 +0000 (07:25 +0000)]
Refer to the standard as an ISO document, not an ANSI one.

* decl.c (grokdeclarator): Change ANSI to ISO.
* lex.c (consume_string, readescape, do_identifier): Likewise.
(parse_float, real_yylex): Likewise.
* parse.y (paren_expr_or_null, paren_cond_or_null): Likewise.
(unary_expr, new_initializer, cast_expr, primary, primary_no_id,
new_type_id, maybe_label_decls, simple_stmt,
for.init.statement): Likewise.
* pt.c (do_decl_instantiation, do_type_instantiation): Likewise.
* semantics.c (finish_named_return_value): Likewise.
* parse.c: Regenerate.

From-SVN: r32100

24 years agocp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
Mark Mitchell [Tue, 22 Feb 2000 02:30:54 +0000 (02:30 +0000)]
cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.

* cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
(CPTI_CLASS_STAR_TYPE): Remove.
(vtable_index_type): Likewise.
(class_star_type_node): Remove.
(TYPE_PTRMEMFUNC_FN_TYPE): Adjust for the new ABI.
(build_binary_op_nodefault): Remove.
* call.c (build_new_op): Use build_binary_op instead of
build_binary_op_nodefault.
* decl.c (init_decl_processing): Remove class_star_type_node
initialization.  Make delta_type_node ptrdiff_type_node under the
new ABI.  Initialize vtable_index_type.
(build_ptrmemfunc_type): Build different structures for the new
ABI.
(build_enumerator): Use build_binary_op instead of
build_binary_op_nodefault.
* method.c (build_overload_value): Mangle pointers-to-members
appropriately under the new ABI.
* typeck.c (build_array_ref): Use build_binary_op instead of
build_binary_op_nodefault.
(get_member_function_from_ptrfunc): Adjust for the new ABI.
(build_binary_op_nodefault): Rename to ...
(build_binary_op): ... this.  Remove old version.  Adjust for
pointer-to-member comparisons under the new ABI.
(build_ptrmemfunc1): Remove dead code.  Adjust for the new ABI.
(build_ptrmemfunc): Adjust for the new ABI.
(expand_ptrmemfunc_cst): Likewise.
(delta2_from_ptrmemfunc): Assert that we're not using the new ABI.
(pfn_from_ptrmemfunc): Adjust for the new ABI.

From-SVN: r32099

24 years agore GNATS gcj/147 (Problem parsing comments)
Alexandre Petit-Bianco [Tue, 22 Feb 2000 00:13:54 +0000 (00:13 +0000)]
re GNATS gcj/147 (Problem parsing comments)

2000-02-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* lex.c (java_parse_doc_section): Alway unget the last unicode
when returning 0.
(java_lex): Call java_parse_end_comment with fetched unicode.

This is a fix to the Java PR #47
(http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00042.html)

From-SVN: r32097

24 years agoRemove conflict marker
Martin v. Löwis [Tue, 22 Feb 2000 00:04:20 +0000 (00:04 +0000)]
Remove conflict marker

From-SVN: r32096

24 years ago[multiple changes]
Alexandre Petit-Bianco [Mon, 21 Feb 2000 23:53:36 +0000 (23:53 +0000)]
[multiple changes]

Thu Feb 17 14:30:37 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* jcf-write.c (generate_bytecode_insns): Don't generate empty
  `finally' clauses.

Thu Feb 17 13:20:58 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* jcf-parse.c (load_class): Call `fatal' if no file containing
the target class are found.

From-SVN: r32095

24 years agodefaults.h (ASM_OUTPUT_ASCII): Constify a char*.
Kaveh R. Ghazi [Mon, 21 Feb 2000 23:27:01 +0000 (23:27 +0000)]
defaults.h (ASM_OUTPUT_ASCII): Constify a char*.

* defaults.h (ASM_OUTPUT_ASCII): Constify a char*.

* flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
(life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.

* haifa-sched.c (rank_for_schedule): Don't cast away const-ness.

* integrate.c (compare_blocks, find_block): Likewise.

* rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.

* rtl.h (set_file_and_line_for_stmt): Constify a char*.

* stmt.c (stmt_status, set_file_and_line_for_stmt,
expand_asm_operands): Likewise.

From-SVN: r32094

24 years agopredict.c (estimate_probability): Added the pointer heuristic to the collection of...
Jason Eckhardt [Mon, 21 Feb 2000 23:04:43 +0000 (23:04 +0000)]
predict.c (estimate_probability): Added the pointer heuristic to the collection of static branch predictors.

        * predict.c (estimate_probability): Added the pointer heuristic to
        the collection of static branch predictors.

From-SVN: r32093

24 years agomips.h (ASM_SPEC): Add -mfix700.
Catherine Moore [Mon, 21 Feb 2000 20:48:23 +0000 (15:48 -0500)]
mips.h (ASM_SPEC): Add -mfix700.

        * config/mips/mips.h (ASM_SPEC): Add -mfix700.
        * invoke.texi (-mfix7000): Document.

From-SVN: r32092

24 years agodiagnostic.c (init_output_buffer): Make it possible to output at least 32 characters...
Gabriel Dos Reis [Mon, 21 Feb 2000 20:17:41 +0000 (20:17 +0000)]
diagnostic.c (init_output_buffer): Make it possible to output at least 32 characters if we're given a too long prefix.

2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>

        * diagnostic.c (init_output_buffer): Make it possible to output at
        least 32 characters if we're given a too long prefix.

From-SVN: r32091

24 years agocall.c (build_object_call): Compress consecutive calls to cp_error.
Gabriel Dos Reis [Mon, 21 Feb 2000 19:51:44 +0000 (19:51 +0000)]
call.c (build_object_call): Compress consecutive calls to cp_error.

2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>

        * call.c (build_object_call): Compress consecutive calls to
        cp_error.
        (build_conditional_expr): Say 'ISO C++' not 'ANSI C++'.
        (build_op_delete_call): Adjust message formatting.

        * class.c (check_bases): Compress consecutive calls to
        cp_pedwarn.
        (finish_struct_anon): Say 'ISO C++'.

        * decl.c (start_decl): Same here.
        (grok_reference_init): Likewise.
        (grokfndecl): Correct message formatting.
        (grokfndecl): Improve diagnostic.
        (check_static_variable_definition): Likewise. Say 'ISO C++'
        (compute_array_index_type): Say 'ISO C++'
        (create_array_type_for_decl): Compress consecutive calls to
        cp_error.
        (grokdeclarator): Say 'ISO C++'
        (grok_op_properties): Likewise.

        * decl2.c (delete_sanity): Clairify diagnostic.
        (check_member_template): Same here.
        (grok_function_init): Use consistent terminology.

        * expr.c (do_case): Say 'ISO C++'

        * friend.c (do_friend): Compress consecutive calls to warning.

From-SVN: r32090

24 years agojcf-dump.c (main): Test for correct condition after output file creation.
Joerg Brunsmann [Mon, 21 Feb 2000 16:36:55 +0000 (16:36 +0000)]
jcf-dump.c (main): Test for correct condition after output file creation.

Mon Jan 18 14:30:09 2000  Joerg Brunsmann  <joerg.brunsmann@fernuni-hagen.de>

* jcf-dump.c (main): Test for correct condition after
output file creation.

From-SVN: r32089

24 years agoDaily bump.
Jeff Law [Mon, 21 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32088

24 years agoForgot to commit ChangeLog
Anthony Green [Mon, 21 Feb 2000 08:21:52 +0000 (08:21 +0000)]
Forgot to commit ChangeLog

From-SVN: r32087

24 years agoMakefile.in: Rebuilt.
Anthony Green [Mon, 21 Feb 2000 05:54:29 +0000 (05:54 +0000)]
Makefile.in: Rebuilt.

        * Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Add
        gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java

        * scripts/MakeDefaultMimeTypes.java: New file.
        * scripts/mime.types: New file.
* scripts/classes.pl: Moved from top level.
        * classes.pl: Moved to scripts directory.

        * java/net/URLConnection.java: Implement guessContentTypeFromName.

        * gnu/gcj/io/MimeTypes.java: New file.
        * gnu/gcj/io/DefaultMimeTypes.java: New file.

From-SVN: r32086

24 years ago* boehm.cc (_Jv_AllocBytes): Clear returned memory.
Tom Tromey [Mon, 21 Feb 2000 05:14:06 +0000 (05:14 +0000)]
* boehm.cc (_Jv_AllocBytes): Clear returned memory.

From-SVN: r32085

24 years agovarasm.c (initializer_constant_valid_p): Call lang_expand_constant to simplify the...
Mark Mitchell [Mon, 21 Feb 2000 04:25:11 +0000 (04:25 +0000)]
varasm.c (initializer_constant_valid_p): Call lang_expand_constant to simplify the constant.

* varasm.c (initializer_constant_valid_p): Call
lang_expand_constant to simplify the constant.

From-SVN: r32084

24 years agocp-tree.h (merge_primary_and_secondary_vtables_p): New macro.
Mark Mitchell [Mon, 21 Feb 2000 04:19:12 +0000 (04:19 +0000)]
cp-tree.h (merge_primary_and_secondary_vtables_p): New macro.

* cp-tree.h (merge_primary_and_secondary_vtables_p): New macro.
* class.c (build_secondary_vtable): Reorganize.  Don't create a
new vtable under the new ABI.
(layout_vtable_decl): Don't add num_extra_vtbl_entries when
computing the size.
(build_vtbl_initializer): Don't return a CONSTRUCTOR; just return
the initializing elements.
(initialize_vtable): New function.
(dfs_finish_vtbls): Use it.
(dfs_accumulate_vtbl_inits): New function.
(finish_vtbls): Merge primary and secondary vtables under the new
ABI.
(finish_struct_1): Remove redundant call to layout_vtable_decl.
* init.c (expand_virtual_init): Deal with BINFO_VTABLEs that
aren't VAR_DECLs.

From-SVN: r32083

24 years agoclass.c (build_vtable): New function, split out from ...
Mark Mitchell [Sun, 20 Feb 2000 23:24:58 +0000 (23:24 +0000)]
class.c (build_vtable): New function, split out from ...

* class.c (build_vtable): New function, split out from ...
(get_vtable_decl): ... here, and ...
(build_secondary_vtable): ... here.

* pt.c (tsubst_decl): Fix formatting.

From-SVN: r32082

24 years agoregenerate
Bruce Korb [Sun, 20 Feb 2000 23:15:50 +0000 (23:15 +0000)]
regenerate

From-SVN: r32081

24 years agova_list typedef needs to be disabled
Bruce Korb [Sun, 20 Feb 2000 23:15:32 +0000 (23:15 +0000)]
va_list typedef needs to be disabled

From-SVN: r32080

24 years agoprint-rtl.c (print_rtx): Don't print addresses when flag_dump_unnumbered.
Geoff Keating [Sun, 20 Feb 2000 21:26:53 +0000 (21:26 +0000)]
print-rtl.c (print_rtx): Don't print addresses when flag_dump_unnumbered.

* print-rtl.c (print_rtx): Don't print addresses when
flag_dump_unnumbered.

From-SVN: r32079

24 years agosparc.c (sparc_output_scratch_registers): Mark parameter with ATTRIBUTE_UNUSED.
Kaveh R. Ghazi [Sun, 20 Feb 2000 13:43:58 +0000 (13:43 +0000)]
sparc.c (sparc_output_scratch_registers): Mark parameter with ATTRIBUTE_UNUSED.

* sparc.c (sparc_output_scratch_registers): Mark parameter with
ATTRIBUTE_UNUSED.
(sparc_va_arg, sparc_flat_output_function_prologue,
sparc_flat_output_function_epilogue): Cast value to unsigned in
comparison.
(sparc_emit_float_lib_cmp): Remove unused variable `cmp'.

* sparc.md: Add default case in switch.

From-SVN: r32078

24 years agoDaily bump.
Jeff Law [Sun, 20 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32077

24 years agoc-typeck.c (add_pending_init): Don't abort for multiple fields at the same offset.
Richard Henderson [Sun, 20 Feb 2000 08:30:30 +0000 (00:30 -0800)]
c-typeck.c (add_pending_init): Don't abort for multiple fields at the same offset.

        * c-typeck.c (add_pending_init): Don't abort for multiple
        fields at the same offset.
        (pending_init_member): Test the correct member.

From-SVN: r32076

24 years agoNew test.
Richard Henderson [Sun, 20 Feb 2000 08:28:28 +0000 (00:28 -0800)]
New test.

From-SVN: r32075

24 years agoexcept.c (start_dynamic_handler): Use TYPE_MODE (integer_type_node) instead of SImode.
Herman A.J. ten Brugge [Sun, 20 Feb 2000 06:43:00 +0000 (07:43 +0100)]
except.c (start_dynamic_handler): Use TYPE_MODE (integer_type_node) instead of SImode.

        * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
        instead of SImode.
        (start_catch_handler) : Same.

From-SVN: r32074

24 years ago* Makefile.in: Have flow.o depend on $(EXPR_H)
Brad Lucier [Sun, 20 Feb 2000 06:41:47 +0000 (06:41 +0000)]
* Makefile.in: Have flow.o depend on $(EXPR_H)

From-SVN: r32073

24 years ago* jcf-depend.c (add_entry): Fix test for first list entry.
Anthony Green [Sun, 20 Feb 2000 04:16:42 +0000 (04:16 +0000)]
* jcf-depend.c (add_entry): Fix test for first list entry.

From-SVN: r32072

24 years agoMove language-specific entries
Richard Kenner [Sun, 20 Feb 2000 03:53:02 +0000 (22:53 -0500)]
Move language-specific entries

From-SVN: r32071

24 years agoc-common.c (decl_attributes): Set DECL_SIZE_UNIT.
Richard Kenner [Sun, 20 Feb 2000 03:49:14 +0000 (22:49 -0500)]
c-common.c (decl_attributes): Set DECL_SIZE_UNIT.

* c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
* c-decl.c (duplicate_decls, finish_enum): Likewise.
(finish_decl): Remove -Wlarger-than code from here.
* flags.h (id_clash_len): Now int.
(larger_than_size): Now HOST_WIDE_INT.
* fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
Clean up checking to see if in table.
(make_bit_field_ref): Remove extra parm to bitsize_int.
* ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
* print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
* stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
and for computing size of decl.
* stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
Move -Wlarger-than code to here.
(layout_record): Remove extra arg to bitsize_int.
Set TYPE_BINFO_SIZE_UNIT.
(layout_union): Remove extra arg to bitsize_int.
Use proper type for size of QUAL_UNION.
(layout_type): Remove extra arg to bitsize_int.
* toplev.c (id_clash_len): Now int.
(larger_than_size): Now HOST_WIDE_INT.
(decode_W_option): Clean up id-clash and larger-than- cases.
* tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
(expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
* tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
(struct tree_decl): New field size_unit.
(size_int_wide): No HIGH operand; NUMBER is now signed.
(size_int_2): Deleted.
(size_int, bitsize_int): Don't use it and rework args.
* varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
* ch/decl.c (layout_enum): Set DECL_SIZE_UNIT.
* ch/satisfy.c (safe_satisfy_decl): Likewise.
* cp/class.c (build_primary_vtable, layout_vtable_decl): Likewise.
(avoid_overlap, build_base_field): Likewise.
(build_base_field, build_base_fields, is_empty_class):
Test DECL_SIZE with integer_zero.
(layout_class_type): Set CLASSTYPE_SIZE_UNIT.
* cp/cp-tree.h (struct lang_type): New field size_unit.
(CLASSTYPE_SIZE_UNIT): New macro.
* cp/decl.c (init_decl_processing): Set DECL_SIZE_UNIT.
(cp_finish_decl): Delete -Wlarger-than processing.
* cp/optimize.c (remap_decl): Walk DECL_SIZE_UNIT.
* cp/pt.c (tsubst_decl): Set DECL_SIZE_UNIT.
* cp/tree.c (make_binfo): binfo vector is one entry longer.
(walk_tree): Walk DECL_SIZE_UNIT.
* f/com.c (ffecom_sym_transform): Use DECL_SIZE_UNIT.
(ffecom_transform_common_, ffecom_transform_equiv_): Likewise.
(duplicate_decls): Likewise.
(ffecom_tree_canonize_ptr_): Delete extra arg to bitsize_int.
(finish_decl): Delete -Wlarger-than processing.
* java/class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT.
* java/constants.c (build_constants_constructor): Likewise.

From-SVN: r32070

24 years agoclass.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in comment.
Mark Mitchell [Sun, 20 Feb 2000 02:46:56 +0000 (02:46 +0000)]
class.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in comment.

* class.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in
comment.
(build_vtable_entry): Don't assume all vtable entries are
functions.
(build_vtbl_initializer): Adjust accordingly.
(get_vtable_decl): Fix formatting.

From-SVN: r32069