Roger Sayle
69bd93682e
dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR with *targetm.delegitimize_address.
...
* dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
with *targetm.delegitimize_address.
(rtl_for_decl_location): Likewise.
* dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
* Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
* config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
* config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
prototype.
* config/i386/i386.c (ix86_delegitimize_address): Renamed from
i386_simplify_dwarf_addr. Made static. Prototyped.
(TARGET_DELEGITIMIZE_ADDRESS): Update definition from
i386_simplify_dwarf_addr to ix86_delegitimize_address.
(ix86_find_base_term): Likewise.
(maybe_get_pool_constant): Likewise.
* config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
* config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
prototype.
* config/s390/s390.c (s390_delegitimize_address): Renamed from
s390_simplify_dwarf_addr. Made static. Prototyped.
(TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
From-SVN: r62468
2003-02-06 01:23:41 +00:00
Richard Henderson
8dde7a2c74
Mark PR for last change.
...
From-SVN: r62465
2003-02-05 16:37:34 -08:00
Richard Henderson
7127fd582d
integrate.c (output_inline_function): Reset input_filename and lineno from the decl before rest_of_compilation.
...
* integrate.c (output_inline_function): Reset input_filename
and lineno from the decl before rest_of_compilation.
From-SVN: r62464
2003-02-05 16:37:01 -08:00
Kaveh R. Ghazi
48d1ce967f
20020227-1.x: Update specific XFAIL conditions for SPARC targets.
...
* gcc.c-torture/execute/20020227-1.x: Update specific XFAIL
conditions for SPARC targets.
From-SVN: r62463
2003-02-06 00:33:26 +00:00
GCC Administrator
2113479c7d
Daily bump.
...
From-SVN: r62462
2003-02-06 00:17:07 +00:00
Jakub Jelinek
0fcc9e55d4
ffi.c (ffi_closure_helper_SYSV): Add hidden visibility attribute.
...
* src/s390/ffi.c (ffi_closure_helper_SYSV): Add hidden visibility
attribute.
From-SVN: r62454
2003-02-06 00:58:57 +01:00
Richard Henderson
7dba8395e2
defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
...
* defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
(CTZ_DEFINED_VALUE_AT_ZERO): New.
* doc/rtl.texi, doc/tm.texi: Document them.
* combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
of the value at zero properly.
* fold-const.c (tree_expr_nonnegative_p): Likewise.
* simplify-rtx.c (simplify_unary_operation): Likewise.
* config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
(CTZ_DEFINED_VALUE_AT_ZERO): New.
* config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
(TARGET_EXPAND_BUILTIN): Remove.
(def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
* config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
(enum arm_builtins): Remove.
* config/arm/arm.md (UNSPEC_CLZ): Remove.
(clzsi2): Rename from clz; use clz instead of unspec.
(ctzsi2): New.
* config/arm/arm-protos.h: Update.
From-SVN: r62453
2003-02-05 14:37:54 -08:00
Jan Hubicka
8d705469aa
i386-protos.h (x86_emit_floatuns): Declare.
...
* i386-protos.h (x86_emit_floatuns): Declare.
* i386.c (x86_emit_floatuns): New global function.
* i386.md (floatunssisf2, floatunsdisf2,
floatunsdidf2): New patterns.
From-SVN: r62452
2003-02-05 22:13:40 +00:00
Zdenek Dvorak
bc810602be
* cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
...
From-SVN: r62451
2003-02-05 20:04:53 +00:00
Paolo Carlini
37d055f87f
valarray_name_lookup.cc: Fix typo.
...
2003-02-05 Paolo Carlini <pcarlini@unitus.it>
* testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
From-SVN: r62450
2003-02-05 19:26:24 +00:00
Hans Boehm
07938cec16
unwind-ia64.c: include coretypes.h, tm.h to get config/ia64/linux.h
...
2003-02-04 Hans Boehm <Hans.Boehm@hp.com>
* config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
config/ia64/linux.h
From-SVN: r62448
2003-02-05 18:11:11 +00:00
Roger Sayle
ca9398d170
* cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
...
From-SVN: r62447
2003-02-05 18:03:48 +00:00
Jakub Jelinek
4f6ae35d12
re PR rtl-optimization/8555 (ICE in gen_split_1231)
...
PR optimization/8555
* config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
instead of aborting.
* gcc.dg/20030204-1.c: New test.
From-SVN: r62438
2003-02-05 12:29:15 +01:00
Richard Henderson
8acfdd43da
i386.md (UNSPEC_BSF): Remove.
...
* config/i386/i386.md (UNSPEC_BSF): Remove.
(ffssi2): Split into cmove and no_cmove insns and splitters;
lose pentium float trick for now.
(ffssi_1): Add * to name; use CTZ instead of UNSPEC.
(ctzsi2, clzsi2, bsr): New.
From-SVN: r62434
2003-02-05 01:40:57 -08:00
Richard Henderson
c407570a72
ia64.c (rtx_needs_barrier): Handle POPCOUNT, UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
...
* config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
* config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
(ffsdi2): Use popcount instead of unspec.
(popcountdi2): Rename from *popcnt.
(ctzdi2, clzdi2, getf_exp_tf): New.
From-SVN: r62428
2003-02-04 18:25:36 -08:00
Kazu Hirata
4b3cf52215
genconfig.c (main): Generate CC0_P.
...
* genconfig.c (main): Generate CC0_P.
* rtl.h (CC0_P): Remove.
From-SVN: r62423
2003-02-05 00:56:40 +00:00
Richard Henderson
dfff898c27
libgcc2.h, libgcc2.c (__ffsSI2): New.
...
* libgcc2.h, libgcc2.c (__ffsSI2): New.
(__ffsDI2): Rename from __ffsdi2.
* mklibgcc.in (lib2funcs): Add _ffssi2.
From-SVN: r62422
2003-02-04 16:52:24 -08:00
Richard Henderson
0c9ed8564d
libgcc2.c (__paritysi2, [...]): Replace last two reduction rounds with a "bit table" lookup.
...
* libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
rounds with a "bit table" lookup.
From-SVN: r62421
2003-02-04 16:43:22 -08:00
GCC Administrator
00d3c37653
Daily bump.
...
From-SVN: r62420
2003-02-05 00:17:05 +00:00
Nathan Myers
7ec2271788
min_max.cc (test02): Add.
...
2003-02-04 Nathan Myers <ncm@cantrip.org>
* testsuite/25_algorithms/min_max.cc (test02): Add.
From-SVN: r62412
2003-02-04 23:42:21 +00:00
Ulrich Weigand
9537511bfa
reload.c (find_reloads): Do not use the mode specified in the insn pattern as reload mode for address...
...
* reload.c (find_reloads): Do not use the mode specified in the insn
pattern as reload mode for address operands. Do not generate optional
reloads for operands where a mandatory reload was already pushed.
From-SVN: r62410
2003-02-04 22:47:23 +00:00
Volker Reichelt
2de2cd7851
re PR c++/38 (matching of function signatures)
...
PR c++/38
* g++.dg/parse/array-size1.C: New test.
PR c++/5657
* g++.dg/parse/undefined3.C: New test.
PR c++/5665
* g++.dg/parse/undefined4.C: New test.
PR c++/5975
* g++.dg/parse/undefined5.C: New test.
PR c++/7259
* g++.dg/parse/tmpl-tmpl-param1.C: New test.
PR c++/8578
* g++.dg/parse/casting-operator1.C: New test.
PR c++/8596
* g++.dg/parse/undefined6.C: New test.
PR c++/8736
* g++.dg/parse/missing-template1.C: New test.
From-SVN: r62409
2003-02-04 22:42:34 +00:00
Paolo Carlini
52b62c0e1a
PR libstdc++/9439, PR libstdc++/9425
...
2003-02-04 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9439, PR libstdc++/9425
* config/io/basic_file_stdio.cc
(__basic_file<char>::seekoff, seekpos): Return -1L if
fseek fails.
* include/bits/fstream.tcc (basic_filebuf::seekoff):
Check _M_file.seekoff return value; always return
pos_type(off_type(-1)) in case of failure.
(basic_filebuf::pbackfail): Check this->seekoff return
value and return traits_type::eof() in case of failure.
* testsuite/27_io/filebuf_virtuals.cc (test09): Add.
From-SVN: r62408
2003-02-04 22:42:32 +00:00
Richard Henderson
1efd0b97d6
longlong.h [alpha] (count_leading_zeros, [...]): Use builtins instead of inline assembly.
...
* longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
builtins instead of inline assembly.
From-SVN: r62407
2003-02-04 13:48:42 -08:00
Falk Hueffner
087fc75a00
* libgcc2.c (__subvdi3): Fix typo.
...
From-SVN: r62406
2003-02-04 13:45:40 -08:00
Joseph Myers
0324b6cf66
be.po, de.po: New files.
...
* be.po, de.po: New files.
* da.po, el.po, es.po, fr.po, ja.po, nl.po, sv.po, tr.po: Update.
From-SVN: r62403
2003-02-04 21:11:00 +00:00
Tom Tromey
a1db344663
PipedOutputStream.java (flush): Declare as throwing IOException.
...
* java/io/PipedOutputStream.java (flush): Declare as throwing
IOException.
(close): Likewise.
* java/io/PipedWriter.java (close): Declare as throwing
IOException.
* java/io/StringWriter.java (close): Declare as throwing
IOException.
From-SVN: r62401
2003-02-04 21:07:15 +00:00
Jerry Quinn
8d0a564bba
std_ostream.h (ostream::_M_write): Declare.
...
2003-02-04 Jerry Quinn <jlquinn@optonline.net>
* include/std/std_ostream.h (ostream::_M_write): Declare.
* ostream.tcc (ostream::_M_write): Define.
(basic_ostream::write): Use it.
(operator<<(basic_ostream, _CharT)): Ditto.
(operator<<(basic_ostream, char)): Ditto.
(operator<<(basic_ostream, _CharT*)): Ditto.
(operator<<(basic_ostream, char*)): Ditto.
(operator<<(basic_ostream, basic_string)): Ditto.
From-SVN: r62399
2003-02-04 20:56:50 +00:00
Benjamin Kosnik
431a736388
valarray_name_lookup.cc: Fix.
...
2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/26_numerics/valarray_name_lookup.cc: Fix.
From-SVN: r62398
2003-02-04 20:53:19 +00:00
Jan Hubicka
f0f0d98e16
* i386.md (movti_rex64): Fix constraint.
...
From-SVN: r62396
2003-02-04 20:47:46 +00:00
Jan Hubicka
83dbda5bca
i386-cadd.c: Compile using -march=k8.
...
* gcc.dg/i386-cadd.c: Compile using -march=k8.
* gcc.dg/i386-cmov?.c: Likewise.
* gcc.dg/i386-fpcvt-?.c: Likewise.
* gcc.dg/i386-ssefp-1.c: Likewise.
* gcc.dg/i386-ssetype-?.c: Likewise; fix for register passing
convetions.
From-SVN: r62395
2003-02-04 20:45:00 +00:00
Jan Hubicka
afffc4e236
i386-cadd.c: Compile using -march=k8.
...
* gcc.dg/i386-cadd.c: Compile using -march=k8.
* gcc.dg/i386-cmov?.c: Likewise.
* gcc.dg/i386-fpcvt-?.c: Likewise.
* gcc.dg/i386-ssefp-1.c: Likewise.
* gcc.dg/i386-ssetype-?.c: Likewise; fix for register passing
convetions.
From-SVN: r62394
2003-02-04 20:43:04 +00:00
Jonathan Wakely
6e40349a80
howto.html: Link to Dietmar Kuehl's IOStream page...
...
2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
* docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
add HTML comment about updating links if numbering changes.
From-SVN: r62390
2003-02-04 18:24:07 +00:00
Paolo Carlini
7cd3907b57
[multiple changes]
...
2003-02-04 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9538
* include/bits/streambuf.tcc (sputbackc): Access
this->gptr()[-1] only if _M_in_beg < _M_in_cur.
* testsuite/27_io/filebuf_virtuals.cc (test08): Add.
2003-02-04 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/9507
* include/bits/fstream.tcc (open): If the 'ate' repositioning
operation fails, calls close _and_ returns a null pointer
to indicate failure (27.8.1.3,4).
* testsuite/27_io/filebuf_members.cc (test_06): Add.
2003-02-04 Petur Runolfsson <peturr02@ru.is>
* testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
From-SVN: r62388
2003-02-04 18:08:45 +00:00
Jan Hubicka
09f26fb511
* i386.md (vector push splitters): Fix typo in resolving conflict.
...
From-SVN: r62387
2003-02-04 18:08:16 +00:00
Rodney Brown
ff6e2d3e76
i386.c (x86_function_profiler): Fix typo in format.
...
2003-02-04 Rodney Brown <rbrown64@csc.com.au>
* config/i386/i386.c (x86_function_profiler): Fix typo in format.
From-SVN: r62384
2003-02-04 18:01:20 +00:00
Jonathan Wakely
e7cc090e91
howto.html: New section on stdio_filebuf.
...
2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
* docs/html/27_io/howto.html: New section on stdio_filebuf.
* docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
* docs/html/documentation.html: Regenerate.
From-SVN: r62383
2003-02-04 17:42:19 +00:00
Phil Edwards
9e80ada7a7
install.texi (*-*-linux-gnu): Mention glibc requirements for recent libstdc++.
...
2003-02-04 Phil Edwards <pme@gcc.gnu.org>
* doc/install.texi (*-*-linux-gnu): Mention glibc requirements
for recent libstdc++. Remove formatting cruft.
From-SVN: r62379
2003-02-04 16:27:20 +00:00
Jakub Jelinek
79c758fbcf
dwarf2out.c (dwarf2out_finish): Add AT_comp_dir attribute even if input file name is absolute...
...
* dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
attribute even if input file name is absolute, but one of the
includes is relative.
From-SVN: r62377
2003-02-04 14:30:02 +01:00
Andreas Jaeger
5b59406b2e
configure.in (AC_PROG_CC_WORKS): Define _GNU_SOURCE.
...
* libU77/configure.in (AC_PROG_CC_WORKS): Define _GNU_SOURCE.
* libU77/config.hin: Regenerated.
* libU77/configure: Regenerated.
From-SVN: r62373
2003-02-04 11:04:04 +01:00
Mark Mitchell
b80f8ef302
re PR c++/7129 (ICE with min/max assignment operators (<?= and >?=))
...
PR c++/7129
* call.c (z_candidate): Add args.
(convert_class_to_reference): Set it.
(implicit_conversion): Tidy.
(add_candidate): Add args parameter.
(add_function_candidate): Adjust call to add_candidate.
(add_conv_candidate): Likewise.
(build_builtin_candidate): Likewise.
(build_user_type_conversion_1): Eliminate wasteful tree_cons
usage.
(build_new_function_call): Likewise.
(build_object_call): Likewise.
(add_candidates): New function.
(build_new_op): Use it.
(covert_like_real): Adjust call to build_over_call.
(build_over_call): Remove args parameter.
* operators.def: Add <?= and >?=.
PR c++/7129
* testsuite/g++.dg/ext/max.C: New test.
From-SVN: r62370
2003-02-04 07:23:14 +00:00
Joseph Myers
b3a8389d18
fastjar.texi: Update to GFDL 1.2.
...
fastjar:
* fastjar.texi: Update to GFDL 1.2.
gcc:
* doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
* doc/install.texi: Update copyright dates. Update to GFDL 1.2.
gcc/ada:
* gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
* gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
gnat_ug_wnt.texi: Regenerate.
gcc/f:
* g77.texi, invoke.texi: Update to GFDL 1.2.
gcc/java:
* gcj.texi: Update to GFDL 1.2.
gcc/treelang:
* treelang.texi: Update to GFDL 1.2.
libiberty:
* libiberty.texi: Update to GFDL 1.2.
libstdc++-v3:
* docs/html/17_intro/porting.texi: Update to GFDL 1.2.
* docs/html/17_intro/porting.html: Regenerate.
From-SVN: r62365
2003-02-04 01:27:53 +00:00
GCC Administrator
95628882f0
Daily bump.
...
From-SVN: r62364
2003-02-04 00:18:06 +00:00
Richard Henderson
dabb3f04da
libgcc2.c (__ffsdi2, [...]): Change return type to "int".
...
* libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
__popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
return type to "int". Shuffle declarations and undef int trap.
* libgcc2.h: Remove their declarations.
* optabs.c (expand_unop): Force outmode to int for bitops.
From-SVN: r62353
2003-02-03 14:42:20 -08:00
Ranjit Mathew
d074ed7c01
natRuntime.cc (java::lang::Runtime::_load)): Take care of the fact that on Win32...
...
2003-02-03 Ranjit Mathew <rmathew@hotmail.com>
* java/lang/natRuntime.cc (java::lang::Runtime::_load)): Take care
of the fact that on Win32, JNI_OnLoad is an "stdcall" function and
could also have been exported as "JNI_OnLoad@8" (MinGW) or
"_JNI_OnLoad@8" (MSVC).
From-SVN: r62348
2003-02-03 21:23:59 +00:00
Ranjit Mathew
9762ec767e
resolve.cc (_Jv_JNIMethod::ncode): Use stdcall calling convention on Win32 to invoke native JNI methods.
...
2003-02-03 Ranjit Mathew <rmathew@hotmail.com>
* resolve.cc (_Jv_JNIMethod::ncode): Use stdcall calling
convention on Win32 to invoke native JNI methods.
From-SVN: r62345
2003-02-03 21:07:22 +00:00
Bob Wilson
985d0d50d5
xtensa.c (order_regs_for_local_alloc): Order the coprocessor registers before floating-point registers.
...
* config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
coprocessor registers before floating-point registers.
* config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
to account for a previously removed register.
(SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
Delete unused macros.
From-SVN: r62340
2003-02-03 20:23:24 +00:00
Jan Hubicka
7f0e57bdf7
i386.c (ix86_expand_store_builtin): Always force op1 to register.
...
* i386.c (ix86_expand_store_builtin): Always force op1 to register.
(mov*_internal): Fix predicates; require one of operands to not be
memory.
(SSE?MMX move expanders): Fix predicates; force one of operands to
register.
(SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
(movups/movupd/movdqu patterns): Force one of operands to not be
memory.
From-SVN: r62339
2003-02-03 20:20:36 +00:00
Roger Sayle
7daebb7ae4
hooks.c (hook_rtx_rtx_identity): Generic hook function that takes a single rtx and returns it unmodified.
...
* hooks.c (hook_rtx_rtx_identity): Generic hook function that
takes a single rtx and returns it unmodified.
* hooks.h (hook_rtx_rtx_identity): Prototype here.
* target.h (struct gcc_target): Add "delegitimize_address"
field to target structure.
* target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
for delegitimize_address target using hook_rtx_rtx_identity.
(TARGET_INITIALIZER): Initialize delegitimize_address field
using TARGET_DELEGITIMIZE_ADDRESS macro.
* simplify-rtx.c (avoid_constant_pool_reference): Handle float
extensions of constant pool references. Use delegitimize_address
to undo the obfuscation of "-fpic".
* Makefile.in (simplify-rtx.o): Add dependency on target.h.
* config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
i386_simplify_dwarf_addr.
(ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
(maybe_get_pool_constant): Likewise.
From-SVN: r62336
2003-02-03 19:40:58 +00:00
Falk Hueffner
348b0c3105
std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use numeric_limits for bits-per-word values.
...
2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Phil Edwards <pme@gcc.gnu.org>
* include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
numeric_limits for bits-per-word values.
(_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
Use __builtin_popcountl instead.
(_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
_Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
Use __builtin_ctzl instead.
(_S_bit_count, _S_first_one): Remove.
* config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
* src/Makefile.am (sources): Remove bitset.cc.
* src/bitset.cc: Delete file.
* src/Makefile.in: Regenerate.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r62335
2003-02-03 19:37:53 +00:00