Jim Wilson [Mon, 14 Aug 2000 20:18:17 +0000 (20:18 +0000)]
Support for IA-64 specific elf header flags.
* config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
* config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
to GNU as.
Levente Farkas [Mon, 14 Aug 2000 19:46:44 +0000 (21:46 +0200)]
std_fstream.h: Remove duplicate typdefs for ofstream and wofstream...
2000-08-14 Levente Farkas <lfarkas@mindmaker.hu>
* bits/std_fstream.h: Remove duplicate typdefs for ofstream and
wofstream, filebuf, wfilebuf, fstream, wfstream.
* bits/std_streambuf.h: Same for streambuf, wstreambuf.
* bits/std_sstream.h: Same for stringstream and wstringstream.
Same for stringbuf, wstringbuf, istringstream, wistringstream,
ostringstream, wostringstream.
Zack Weinberg [Mon, 14 Aug 2000 18:08:46 +0000 (18:08 +0000)]
top level:
* configure: Make enable_threads and enable_shared defaults
explicit. Substitute enable_threads into generated Makefiles.
* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
* libtool.m4: Accept *-*-linux* not just *-*-linux-gnu*.
gcc:
* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
* fixinc/inclhack.def: Likewise.
* fixinc/mkfixinc.sh: Likewise.
* configure: Regenerate.
* fixinc/fixincl.x: Regenerate.
* install.texi: Document equivalence of linux and linux-gnu.
libio:
* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
Honor --disable-threads.
libstdc++:
* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
Honor --disable-threads.
libstdc++-v3:
* configure: Regenerate after change to ../libtool.m4.
libobjc:
* configure: Regenerate after change to ../libtool.m4.
J"orn Rennecke [Mon, 14 Aug 2000 17:54:23 +0000 (17:54 +0000)]
cse.c (insert_regs): Also in REG case...
* cse.c (insert_regs): Also in REG case: When finding an invalid
value, and we make a new quantity, make sure that it won't be
mistaken by for a valid one by mention_regs.
Geoff Keating [Mon, 14 Aug 2000 04:15:07 +0000 (04:15 +0000)]
c-torture.exp (c-torture): Make compiler_conditional_xfail_data global.
* lib/c-torture.exp (c-torture): Make
compiler_conditional_xfail_data global.
* lib/f-torture.exp (f-torture): Add in torture_eval_before_compile,
compiler_conditional_xfail_data machinery.
(f-torture-execute): Likewise.
* g77.c-torture/compile/20000629-1.x: The test only fails on x86,
and only when unrolling loops.
Geoff Keating [Sun, 13 Aug 2000 21:49:36 +0000 (21:49 +0000)]
rs6000.c (rs6000_select_section): Rewrite to not put stuff in .sdata unnecessarily.
* config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
not put stuff in .sdata unnecessarily.
(rs6000_unique_section): New function.
* config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
* config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
Geoff Keating [Sun, 13 Aug 2000 21:31:09 +0000 (21:31 +0000)]
In gcc/:
* c-typeck.c (build_array_ref): Don't complain about non-lvalue
arrays in C99. Don't try to look at DECL_REGISTER of a
COMPONENT_REF. Don't complain twice about the same error.
In gcc/testsuite/:
* gcc.dg/c99-array-lval-1.c: The test on line 14 now passes.
Geoff Keating [Sat, 12 Aug 2000 22:45:05 +0000 (22:45 +0000)]
tree.h (DECL_OFFSET_ALIGN): Make the off_align field of the tree structure an exponent rather than an...
* tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
the tree structure an exponent rather than an explicit alignment
so it doesn't overflow.
(SET_DECL_OFFSET_ALIGN): New macro.
* stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
rather than DECL_OFFSET_ALIGN.
(place_field): Likewise.
* expmed.c (store_bit_field): Abort on align==0 to avoid
antisocial machine behaviour.
* configure.in (CC_FOR_TARGET, CHILL_FOR_TARGET,
CXX_FOR_TARGET): Add -B$$r/gcc/ here.
(FLAGS_FOR_TARGET): Not here.
(CHILL_FOR_TARGET, CXX_FOR_TARGET): Don't check the list of languages.
ia64.c (do_spill): Pass cfa offset to move expander.
* config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
(do_restore): Likewise.
(gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
(ia64_expand_prologue, ia64_expand_epilogue): Use them.
(rtx_needs_barrier): Track actual bit manipulation for
ar.unat moves, gr_spill, and gr_restore.
(emit_insn_group_barriers): Special case gr_spill/gr_restore.
(process_set): Don't handle varargs spills.
* config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
.mem.offset here instead of in process_set.
(gr_restore): Likewise.
* class.c (maybe_layout_super_class): Fixed indentation.
* java-tree.h (CLASS_METHOD_CHECKED_P): New macro.
(java_check_methods): New function declaration.
* jcf-parse.c (get_constant): Let `char_len' go up to 3. Use `str'
instead of `str_ptr'.
* jcf-write.c (generate_bytecode_insns): Emit number the of args
of a `invokeinterface' at the right time.
* parse.h (WFL_STRIP_BRACKET): New macro.
(SET_TYPE_FOR_RESOLUTION): Use it.
* parse.y (build_unresolved_array_type): Reuse `type_or_wfl.'
(check_class_interface_creation): Don't check for cross package
innerclass name clashes.
(method_header): Behave properly if MDECL is `error_mark_node.'
(method_declarator): Return `error_mark_node' if bogus current
class.
(resolve_class): Apply WFL_STRIP_BRACKET on `cl' if necessary.
(resolve_and_layout): New local `decl_type', set and used. Call
java_check_methods.
(java_check_methods): New method.
(java_layout_classes): Use it.
(resolve_qualified_expression_name): No EH check necessary in
access$<n>.
(java_complete_lhs): Use VAR_DECL's DECL_INITIAL when evaluating
`case' statement.
(patch_assignment): Set DECL_INITIAL on integral final local.
G. Helffrich [Fri, 11 Aug 2000 16:11:08 +0000 (16:11 +0000)]
com.c (ffecom_transform_equiv_): Make EQUIVALENCEs addressable so that debug info can be attached to their storage.
2000-08-11 G. Helffrich <george@gly.bris.ac.uk>
Toon Moene <toon@moene.indiv.nluug.nl>
* com.c (ffecom_transform_equiv_): Make EQUIVALENCEs addressable
so that debug info can be attached to their storage.
Unconditionally list the storage set aside for them.
function.c (put_reg_into_stack): Allow type to be NULL.
* function.c (put_reg_into_stack): Allow type to be NULL.
(schedule_fixup_var_refs): Likewise.
(gen_mem_addressof): Allow decl to be NULL.
(put_addressof_into_stack): Likewise.
Chris Demetriou [Fri, 11 Aug 2000 03:18:05 +0000 (03:18 +0000)]
elf.h (CTOR_SECTION_NAME, [...]): New macros define the name of CTOR and DTOR sections.
* mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
macros define the name of CTOR and DTOR sections.
(CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
DTOR_LIST_END): Change to use attributes to specify
sections.
* mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
(CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
DTOR_LIST_END): Same as in mips/elf.h.
Tom Tromey [Fri, 11 Aug 2000 03:07:59 +0000 (03:07 +0000)]
natPlainSocketImpl.cc (bind): Don't go to error case when errno not set.
* java/net/natPlainSocketImpl.cc (bind): Don't go to error case
when errno not set.
(connect): Likewise.
(accept): Likewise.
(getOption): Likewise.
* java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
case when errno not set.
(peek): Likewise.
(send): Likewise.
(receive): Likewise.
(mcastGrp): Likewise.
(setOption): Likewise.
(getOption): Likewise.
Kazu Hirata [Thu, 10 Aug 2000 23:21:52 +0000 (23:21 +0000)]
h8300.c: Fix comment typos.
* h8300.c: Fix comment typos.
(dosize): Declare the variable amount as unsigned.
(get_shift_alg): Fix a comparison between signed and unsigned.
(emit_a_shift): Likewise.
(h8300_adjust_insn_length): Simplify the code.
Ovidiu Predescu [Thu, 10 Aug 2000 07:11:44 +0000 (07:11 +0000)]
gthr-posix.h: Include auto-host.h.
Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
* gthr-posix.h: Include auto-host.h. Conditionally include
<sched.h>.
* configure.in: Check for the <sched.h> header file.
* config.in: Added define for HAVE_SCHED_H.
Zack Weinberg [Wed, 9 Aug 2000 19:41:12 +0000 (19:41 +0000)]
configure.in (--enable-c-cpplib): Uncomment.
* configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
instead of extra_c_flags.
(--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
* configure: Regenerate.
* config.in: Regenerate.
* cpperror.c (cpp_type2name): New function.
* cpplex.c (lex_line): If we issued an error for an invalid
preprocessing directive, discard that logical line.
* cpplib.c (do_line): Call a hook function if the current file
is renamed by #line.
(do_ident): Pass the contents of the string, not the entire
token, to the callback function.
* cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
(cb.rename_file): New hook function.
(cb.ident): Adjust prototype.
(cpp_type2name): Prototype.
* cppmacro.c (dump_macro_args): Correct precedence lossage.
* cppmain.c (cb_ident): Update for changed interface.
(cb_rename_file): New function.
(main): Set rename callback.
Nathan Sidwell [Wed, 9 Aug 2000 09:57:55 +0000 (09:57 +0000)]
rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi runtime.
* rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
runtime.
* cp/tinfo.cc (__dynamic_cast): Likewise.
* cp/inc/cxxabi.h (__dynamic_cast): Likewise.