Alan Modra
6350c02cb6
prep_cif.c (initialize_aggregate): Include tail padding in structure size.
...
* src/prep_cif.c (initialize_aggregate): Include tail padding in
structure size.
* src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
placement of float result.
* testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
cast of "resp" for big-endian 64 bit machines.
From-SVN: r71323
2003-09-12 09:24:40 +09:30
Kaveh R. Ghazi
fe27b7cc41
builtins.c (fold_builtin_logarithm): if N can't be truncated to MODE exactly...
...
* builtins.c (fold_builtin_logarithm): if N can't be truncated to
MODE exactly, then only convert logN(N) -> 1.0 if
flag_unsafe_math_optimizations is set.
From-SVN: r71322
2003-09-11 22:51:20 +00:00
Kaveh R. Ghazi
ab01a87cbc
builtins.c (builtin_dconsts_init, [...]): Delete.
...
* builtins.c (builtin_dconsts_init, dconstpi, dconste,
init_builtin_dconsts): Delete.
* emit-rtl.c (dconstpi, dconste): Define.
(init_emit_once): Initialize dconstpi & dconste.
* real.h (dconstpi, dconste): Declare.
From-SVN: r71320
2003-09-11 21:40:41 +00:00
David Edelsohn
b44a178ae8
* decl2.c (var_finalized_p): Swap arms of conditional.
...
From-SVN: r71319
2003-09-11 16:47:13 -04:00
Bernardo Innocenti
dfb03c453c
Capitalize my name in an old ChangeLog entry.
...
From-SVN: r71310
2003-09-11 21:49:02 +02:00
Michael Koch
e1a3a7d02b
acconfig.h: Removed most items.
...
2003-09-11 Michael Koch <konqueror@gmx.de>
* acconfig.h: Removed most items.
* configure.in: Added descriptions to AC_DEFINE macros that where in
acconfig.h before.
* include/config.h.in: Regenerated.
From-SVN: r71309
2003-09-11 17:25:47 +00:00
Sascha Brawer
130de16070
Toolkit.java (getSystemEventQueue): Call SecurityManager if one is installed.
...
2003-09-11 Sascha Brawer <brawer@dandelis.ch>
* java/awt/Toolkit.java (getSystemEventQueue): Call SecurityManager
if one is installed. Improve Javadoc.
(getSystemEventQueueImpl): Improve Javadoc.
From-SVN: r71308
2003-09-11 16:45:10 +00:00
Tom Tromey
c203255aba
natFilePosix.cc (getCanonicalPath): Handle case where file does not exist.
...
* java/io/natFilePosix.cc (getCanonicalPath): Handle case where
file does not exist.
From-SVN: r71307
2003-09-11 16:44:39 +00:00
Nathan Sidwell
92af500d3e
re PR c++/11788 (missing implicit instantiation of static member function)
...
cp:
PR c++/11788
* typeck.c (build_address): If it is a function, mark it used.
(build_unary_op): Do not lose object's side-effects when taking
address of static member function.
* class.c (resolve_address_of_overloaded_function): Use
tsubst_flags_t parameter. Only expect overload sets. Adjust.
(instantiate_type): Adjust flags passing. Do not lose object's
side-effects when taking address of static member function.
testsuite:
PR c++/11788
* g++.dg/overload/addr1.C: New test.
From-SVN: r71304
2003-09-11 15:18:52 +00:00
Alexandre Oliva
9bdca184d6
re PR fortran/11522 (g77 dwarf-2 ICE in add_abstract_origin_attribute)
...
PR fortran/11522
* dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
for ultimate origin even if block is abstract.
From-SVN: r71301
2003-09-11 13:41:56 +00:00
Roger Sayle
aa16693981
combine.c (combine_simplify_rtx): Move several NOT and NEG optimizations from here...
...
* combine.c (combine_simplify_rtx): Move several NOT and NEG
optimizations from here...
* simplify-rtx.c (simplify_unary_operation): to here. Recursively
simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
From-SVN: r71300
2003-09-11 13:01:32 +00:00
Anthony Green
cda85569ad
Fix mingw32 builds.
...
From-SVN: r71299
2003-09-11 12:30:05 +00:00
Richard Henderson
6b00c969c4
cgraphunit.c (cgraph_finalize_function): Add nested arg.
...
* cgraphunit.c (cgraph_finalize_function): Add nested arg.
Tweek tests for function already generated.
(cgraph_expand_function): Don't double announce in !unit-at-a-time.
* cgraph.h (cgraph_finalize_function): Update for extra arg.
* c-decl.c (finish_function): Likewise.
* semantics.c (expand_or_defer_fn): Update for new
cgraph_finalize_function argument.
* parse.y (source_end_java_method): Update for new
cgraph_finalize_function argument.
From-SVN: r71298
2003-09-11 00:14:12 -07:00
Joe Buck
dd5c7759f3
* c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
...
From-SVN: r71297
2003-09-10 23:45:20 -07:00
Richard Henderson
08deda2f65
* decl2.c (cxx_callgraph_analyze_expr): Mark argument unused.
...
From-SVN: r71296
2003-09-10 22:55:16 -07:00
Alan Modra
5af1c8062d
types.c (double, longdouble): Merge identical SH and ARM typedefs, and add POWERPC64.
...
* src/types.c (double, longdouble): Merge identical SH and ARM
typedefs, and add POWERPC64.
* src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
struct split over gpr and rest.
(ffi_prep_cif_machdep): Correct intarg_count for structures.
* src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
From-SVN: r71295
2003-09-11 14:47:57 +09:30
Jerry Quinn
64871887a6
real.c: Update URL to VAX floating point docs.
...
* real.c: Update URL to VAX floating point docs.
(decode_vax_d): Extract 8 exponent bits instead of 7.
From-SVN: r71294
2003-09-10 22:08:22 -07:00
Ian Lance Taylor
93dc9a320d
* gcc.dg/20030909-1.c: New test.
...
From-SVN: r71293
2003-09-11 04:45:11 +00:00
Ian Lance Taylor
50b29dbb90
combine.c (force_to_mode): Set fuller_mask based only on mask, not op_mode.
...
* combine.c (force_to_mode): Set fuller_mask based only on mask,
not op_mode.
From-SVN: r71292
2003-09-11 04:44:23 +00:00
Daniel Jacobowitz
dbc66058f0
re PR libstdc++/12189 (abi_check fails to build)
...
PR libstdc++/12189
* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
abi_check if cross compiling.
* aclocal.m4: Regenerated.
* configure: Regenerated.
Co-Authored-By: Andreas Jaeger <aj@suse.de>
From-SVN: r71291
2003-09-11 03:11:31 +00:00
GCC Administrator
6b657b2e09
Daily bump.
...
From-SVN: r71287
2003-09-11 00:16:07 +00:00
Jan Hubicka
c4d2313d39
decl2.c (var_finalized_p): New.
...
* decl2.c (var_finalized_p): New.
(maybe_emit_vtables, write_out_vars, finish_file): Use it.
From-SVN: r71284
2003-09-10 23:46:26 +00:00
Jan Hubicka
f08545a8f2
c-objc-common.c (c_cannot_inline_tree_fn): Warn on why function is not inlinable; do not check the body.
...
* c-objc-common.c (c_cannot_inline_tree_fn): Warn
on why function is not inlinable; do not check
the body.
(inline_forbidden_p): Move to...
* tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
deal with alloca, longjmp.
(inline_forbidden_p): New static function.
(find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
find_builtin_longjmp_call): Kill.
From-SVN: r71283
2003-09-10 23:45:05 +00:00
Richard Henderson
25c84396dd
cgraph.h (struct cgraph_node): Rename lowered to analyzed.
...
* cgraph.h (struct cgraph_node): Rename lowered to analyzed.
* cgraphunit.c: Update to match.
(record_call_1): Rearrange. Call lang hook for language nodes.
(cgraph_analyze_function): Don't call lower_function.
* langhooks.h (struct lang_hooks_for_callgraph): Replace
lower_function with analyze_expr.
* langhooks-def.h: Update to match.
* langhooks.c (lhd_callgraph_analyze_expr): New.
* decl2.c (cxx_callgraph_analyze_expr): New, from corpse of
mark_member_pointers.
(lower_function): Remove.
* cp-tree.h: Update to match.
* cp-lang.c (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): New.
(LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Remove.
From-SVN: r71277
2003-09-10 12:16:20 -07:00
Michael Koch
707691d877
acconfig.h (__NO_MATH_INLINES): Removed.
...
2003-09-10 Michael Koch <konqueror@gmx.de>
* acconfig.h (__NO_MATH_INLINES): Removed.
* configure.in: Removed check for g++ math inlining bug from 2000.
* configure.host: Removed -D__NO_MATH_INLINES in libgcj_cflags and
libgcj_cxxflags.
* configure: Regenerated.
From-SVN: r71276
2003-09-10 18:50:47 +00:00
David Daney
9c9d2cced9
Arrays.java (equals(all variants)): Quit using NullPointerException catching to detect null valued parameters.
...
2003-09-10 David Daney <ddaney@avtrex.com>
* java/util/Arrays.java (equals(all variants)): Quit using
NullPointerException catching to detect null valued parameters.
From-SVN: r71275
2003-09-10 18:11:05 +00:00
Michael Koch
4a503716e0
DatagramSocket.java, [...]: Use gnu.java.net.Plain*SocketImpl instead of java.net.PlainSocketImpl.
...
2003-09-10 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java,
java/net/MulticastSocket.java,
java/net/ServerSocket.java,
java/net/Socket.java:
Use gnu.java.net.Plain*SocketImpl instead of
java.net.PlainSocketImpl.
* java/net/PlainDatagramSocketImpl.java,
java/net/PlainSocketImpl.java,
java/net/SocketInputStream.java,
java/net/SocketOutputStream.java,
java/net/natPlainDatagramSocketImplNoNet.cc,
java/net/natPlainDatagramSocketImplPosix.cc,
java/net/natPlainDatagramSocketImplWin32.cc,
java/net/natPlainSocketImplNoNet.cc,
java/net/natPlainSocketImplPosix.cc,
java/net/natPlainSocketImplWin32.cc:
Removed.
* gnu/java/net/PlainDatagramSocketImpl.java,
gnu/java/net/PlainSocketImpl.java,
gnu/java/net/SocketInputStream.java,
gnu/java/net/SocketOutputStream.java,
gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
gnu/java/net/natPlainDatagramSocketImplPosix.cc,
gnu/java/net/natPlainDatagramSocketImplWin32.cc,
gnu/java/net/natPlainSocketImplNoNet.cc,
gnu/java/net/natPlainSocketImplPosix.cc,
gnu/java/net/natPlainSocketImplWin32.cc:
New files (moved from java/net).
* configure.in: Create links for gnu/java/net/natPlain*SocketImpl.cc
instead of java/net/natPlain*SocketImpl.cc.
* configure: Regenerated.
* Makefile.am: Moved files from java/net to gnu/java/net.
* Makefile.in: Regenerated.
From-SVN: r71274
2003-09-10 17:39:20 +00:00
Jeffrey D. Oldham
520abf6930
vec.cc (__cxa_vec_new2): If the allocator returns NULL, return NULL.
...
2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
* libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
(__cxa_vec_new3): Likewise.
From-SVN: r71273
2003-09-10 15:41:48 +00:00
Petur Runolfsson
8c8dec01e2
fstream.tcc (basic_filebuf::seekoff): Use codecvt::length to handle variable-width stateless encodings correctly.
...
2003-09-10 Petur Runolfsson <peturr02@ru.is>
* include/bits/fstream.tcc (basic_filebuf::seekoff):
Use codecvt::length to handle variable-width stateless encodings
correctly.
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
From-SVN: r71271
2003-09-10 13:43:15 +00:00
Eric Botcazou
1c8b4e29cc
re PR target/11965 (invalid assembler code for a shift << 32 operation)
...
PR target/11965
* config/sparc/sparc.c (sparc_v8plus_shift): Protect against
constants greater than 63.
* config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
against constants greater than 31.
(*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
constants greater than 63.
From-SVN: r71266
2003-09-10 12:59:36 +00:00
Alan Modra
80e46d778a
basic_file_stdio.cc (_M_open_mode): Assign __p_mode rather than or'ing.
...
* config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
rather than or'ing.
From-SVN: r71265
2003-09-10 21:32:51 +09:30
Richard Henderson
39adabaf32
cgraphunit.c (cgraph_finalize_function): Remove unused argument.
...
* cgraphunit.c (cgraph_finalize_function): Remove unused argument.
* cgraph.h (cgraph_finalize_function): Update.
* c-decl.c (finish_function): Update.
cp/
* semantics.c (expand_or_defer_fn): Update call to
cgraph_finalize_function.
java/
* parse.y (source_end_java_method): Update call to
cgraph_finalize_function.
From-SVN: r71263
2003-09-09 20:06:32 -07:00
Richard Henderson
288a242be4
semantics.c (expand_or_defer_fn): Use cgraph_finalize_function always.
...
* semantics.c (expand_or_defer_fn): Use cgraph_finalize_function
always.
From-SVN: r71262
2003-09-09 19:46:35 -07:00
Richard Henderson
e4d9102785
decl2.c (finish_file): Avoid out-of-bounds array reference during memmove.
...
* decl2.c (finish_file): Avoid out-of-bounds array reference
during memmove.
From-SVN: r71261
2003-09-09 19:41:43 -07:00
Devang Patel
e62f462e10
darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
...
gcc
* config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
* doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
testsuite
* gcc.dg/darwin-ld-6.c: New test.
From-SVN: r71259
2003-09-09 17:43:38 -07:00
GCC Administrator
6fe055ae46
Daily bump.
...
From-SVN: r71257
2003-09-10 00:16:07 +00:00
Eric Christopher
bace148a49
configure.in: Change usage of 'head' to 'sed 1q'.
...
2003-09-09 Eric Christopher <echristo@redhat.com>
* configure.in: Change usage of 'head' to 'sed 1q'.
* configure: Regenerate.
From-SVN: r71255
2003-09-10 00:13:11 +00:00
Richard Henderson
dd07abd725
except.c: Include cgraph.h.
...
* except.c: Include cgraph.h.
(output_function_exception_table): Invoke
cgraph_varpool_mark_needed_node.
* Makefile.in (except.o): Update.
* decl2.c (mark_member_pointers): Rename from
mark_member_pointers_and_eh_handlers and don't check eh handlers.
From-SVN: r71254
2003-09-09 17:09:09 -07:00
Kelley Cook
7f5cc0f3d0
Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS and use it throughout.
...
* Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
and use it throughout.
From-SVN: r71253
2003-09-09 22:19:56 +00:00
Kaveh R. Ghazi
f7657db990
builtins.c (real_dconstp, [...]): New, split out from fold_builtin.
...
* builtins.c (real_dconstp, fold_builtin_logarithm,
fold_builtin_exponent): New, split out from fold_builtin. Also
generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
* emit-rtl.c (dconst3, dconst10, dconstthird): New.
(init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
of hardcoded array size.
* fold-const.c (fold): Add cases for exp2, exp10 and pow10.
(tree_expr_nonnegative_p): Likewise.
* real.h (dconst3, dconst10, dconstthird): New.
testsuite:
* gcc.dg/torture/builtin-explog-1.c: New testcase.
From-SVN: r71252
2003-09-09 22:10:32 +00:00
Ian Lance Taylor
dcbdd9cc82
* MAINTAINERS: Update my e-mail address.
...
From-SVN: r71246
2003-09-09 20:30:34 +00:00
Jan Hubicka
cd4dea6224
cgraphunit.c (cgraph_finalize_function): Fix handling of extern inline functions.
...
* cgraphunit.c (cgraph_finalize_function): Fix handling of extern
inline functions.
(cgraph_finalize_compilation_unit): Fix crash when dealing with lost
DECL_SAVED_TREE.
From-SVN: r71245
2003-09-09 20:27:52 +00:00
Roger Sayle
892955bff0
builtins.c (fold_builtin_cabs): Protect the complex argument against multiple evaluation when...
...
* builtins.c (fold_builtin_cabs): Protect the complex argument
against multiple evaluation when optimizing cabs* into sqrt*.
From-SVN: r71242
2003-09-09 19:20:42 +00:00
Andreas Tobler
086a4bd7dd
2003-09-09 Andreas Tobler <a.tobler@schweiz.ch>
...
* src/powerpc/ffi.c (ffi_closure_helper_SYSV) Handle struct
passing correctly.
From-SVN: r71238
2003-09-09 19:37:53 +02:00
Jan Hubicka
f098590080
* varasm.c (notice_global_symbol): Properly deal with weak symbols.
...
From-SVN: r71236
2003-09-09 13:37:17 +00:00
Kelley Cook
94fd51760c
Revert change from yesterday due to parallel make issues.
...
From-SVN: r71235
2003-09-09 11:44:03 +00:00
Christian Ehrhardt
22898f9a4b
re PR bootstrap/12168 (ICE (bus error) in set_mem_attributes_minus_bitpos)
...
PR bootstrap/12168
* method.c (use_thunk): Clear DECL_RTL of copied nodes.
From-SVN: r71234
2003-09-09 08:47:35 +00:00
Bernardo Innocenti
860c4900e5
coff.h (REGISTER_NAMES): Add fake register `argptr'
...
* config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
* config/m68k/hp320.h (REGISTER_NAMES): Likewise.
* config/m68k/linux.h (REGISTER_NAMES): Likewise.
* config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
* gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
* config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
* config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
(m68k_compute_frame_layout): New function.
(m68k_initial_elimination_offset): New function.
(m68k_output_function_prologue): ColdFire-specific movem handling.
(m68k_output_function_epilogue): Likewise.
* config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
(ARG_POINTER_REGNUM): Add new definition.
(INITIAL_FRAME_POINTER_OFFSET): Remove macro.
(ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
(CAN_ELIMINATE): Likewise.
(INITIAL_ELIMINATION_OFFSET): Likewise.
Co-Authored-By: Peter Barada <peter@baradas.org>
From-SVN: r71231
2003-09-09 08:47:19 +02:00
Bernardo Innocenti
ed311a33ac
m68k.c (m68k_output_function_prologue): Simplify by removing redundant variable cfa_store_offset.
...
* config/m68k/m68k.c (m68k_output_function_prologue): Simplify
by removing redundant variable cfa_store_offset.
From-SVN: r71230
2003-09-09 08:40:46 +02:00
Alan Modra
e517f63617
* libtool.m4 (LD): Correct powerpc64 host match.
...
From-SVN: r71229
2003-09-09 15:54:39 +09:30