Peter Doerfler
6c4e9c60ad
hashtable (identity<>::operator(), [...]): Return by const ref.
...
2006-05-13 Peter Doerfler <gcc@pdoerfler.com>
* include/tr1/hashtable (identity<>::operator(),
extract1st<>::operator()): Return by const ref.
From-SVN: r113737
2006-05-13 10:49:40 +00:00
Tom Tromey
143145daa4
sources.am, [...]: Rebuilt.
...
* sources.am, Makefile.in: Rebuilt.
* java/util/logging/LogManager.java: Removed.
* java/util/logging/Logger.java (resetLogger): New method, from
Classpath.
* java/io/RandomAccessFile.java: Removed.
* gnu/java/nio/channels/FileChannelImpl.java (create): New
method.
(FileChannelImpl): Now private.
* java/io/FileInputStream.java: Removed.
* java/io/FileOutputStream.java: Removed.
* java/security/AccessControlContext.java: Removed.
* java/lang/ThreadLocal.java: Removed.
* java/lang/InheritableThreadLocal.java: Removed.
* java/lang/Thread.java (locals): New field.
(getThreadLocals): New method.
* java/lang/natThread.cc (finish_): Clear 'locals'.
From-SVN: r113735
2006-05-13 02:16:22 +00:00
GCC Administrator
a2038cd64d
Daily bump.
...
From-SVN: r113733
2006-05-13 00:17:10 +00:00
Steve Ellcey
38ccd98ad2
target-supports.dg (check_cxa_atexit_available): Change v3_target_compile to ${tool}_target_compile.
...
* lib/target-supports.dg (check_cxa_atexit_available): Change
v3_target_compile to ${tool}_target_compile.
From-SVN: r113729
2006-05-12 19:52:34 +00:00
Anton Blanchard
824bceb033
cplus-dem.c (demangle_fund_type): Ensure buf is large enough to hold "int%u_t".
...
* cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
hold "int%u_t".
From-SVN: r113728
2006-05-12 15:44:29 -04:00
Andreas Krebbel
651a36e333
s390.c (s390_const_ok_for_constraint_p): Disallow -4G for On contraint.
...
2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
* config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
On contraint.
* config/s390/s390.md: Adjust comment describing On constraint.
From-SVN: r113721
2006-05-12 07:51:35 +00:00
GCC Administrator
66ec80f982
Daily bump.
...
From-SVN: r113719
2006-05-12 00:17:30 +00:00
Bryce McKinlay
c1ef8ca9ac
NameFinder.java (lookup): If exec'ing addr2line fails, don't try again.
...
2006-05-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/NameFinder.java (lookup): If exec'ing addr2line
fails, don't try again.
(use_addr2line): Field no longer final.
From-SVN: r113715
2006-05-11 23:20:07 +01:00
Jason Merrill
a33259d0bd
* lib/scanasm.exp (scan-not-hidden): Fix typo.
...
From-SVN: r113714
2006-05-11 17:49:35 -04:00
Francois-Xavier Coudert
e983d070ff
re PR fortran/27553 ([4.1 only] Testsuite ICE with -Wunused-labels)
...
PR fortran/27553
* parse.c (next_free): Return instead of calling decode_statement
upon error.
* gfortran.dg/label_5.f90: New test.
From-SVN: r113712
2006-05-11 21:37:10 +00:00
Bryce McKinlay
64c9036718
NameFinder.java (blacklist): New static field.
...
2006-05-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/NameFinder.java (blacklist): New static field.
(lookup): If addr2line fails to find an address, flag the binary as
having no debug info and avoid calling addr2line on it again.
From-SVN: r113711
2006-05-11 21:53:04 +01:00
Joseph Myers
1dbf8c2405
target-supports.exp (check_effective_target_powerpc_fprs, [...]): New.
...
* lib/target-supports.exp (check_effective_target_powerpc_fprs,
check_effective_target_powerpc_altivec_ok): New.
* g++.dg/eh/simd-2.C, g++.dg/ext/altivec-1.C,
g++.dg/ext/altivec-10.C, g++.dg/ext/altivec-11.C,
g++.dg/ext/altivec-12.C, g++.dg/ext/altivec-13.C,
g++.dg/ext/altivec-2.C, g++.dg/ext/altivec-3.C,
g++.dg/ext/altivec-4.C, g++.dg/ext/altivec-5.C,
g++.dg/ext/altivec-6.C, g++.dg/ext/altivec-7.C,
g++.dg/ext/altivec-8.C, g++.dg/ext/altivec-9.C,
g++.dg/ext/altivec-types-1.C, g++.dg/ext/altivec-types-2.C,
g++.dg/ext/altivec-types-3.C, g++.dg/ext/altivec-types-4.C,
gcc.dg/dfp/altivec-types.c, gcc.dg/simd-3.c,
gcc.dg/vect/vect-82_64.c, gcc.dg/vect/vect-83_64.c,
gcc.dg/vmx/vmx.exp, gcc.target/powerpc/980827-1.c,
gcc.target/powerpc/altivec-1.c, gcc.target/powerpc/altivec-10.c,
gcc.target/powerpc/altivec-11.c, gcc.target/powerpc/altivec-12.c,
gcc.target/powerpc/altivec-13.c, gcc.target/powerpc/altivec-14.c,
gcc.target/powerpc/altivec-15.c, gcc.target/powerpc/altivec-16.c,
gcc.target/powerpc/altivec-17.c, gcc.target/powerpc/altivec-18.c,
gcc.target/powerpc/altivec-19.c, gcc.target/powerpc/altivec-2.c,
gcc.target/powerpc/altivec-21.c, gcc.target/powerpc/altivec-22.c,
gcc.target/powerpc/altivec-3.c, gcc.target/powerpc/altivec-4.c,
gcc.target/powerpc/altivec-5.c, gcc.target/powerpc/altivec-6.c,
gcc.target/powerpc/altivec-7.c, gcc.target/powerpc/altivec-8.c,
gcc.target/powerpc/altivec-9.c,
gcc.target/powerpc/altivec-consts.c,
gcc.target/powerpc/altivec-pr22085.c,
gcc.target/powerpc/altivec-splat.c,
gcc.target/powerpc/altivec-types-1.c,
gcc.target/powerpc/altivec-types-2.c,
gcc.target/powerpc/altivec-types-3.c,
gcc.target/powerpc/altivec-types-4.c,
gcc.target/powerpc/altivec-varargs-1.c,
gcc.target/powerpc/altivec-vec-merge.c,
gcc.target/powerpc/ppc-vector-memcpy.c,
gcc.target/powerpc/ppc-vector-memset.c,
gcc.target/powerpc/ppc64-abi-2.c, gcc.target/powerpc/pr16155.c,
gcc.target/powerpc/pr16286.c, gcc.target/powerpc/pr27158.c: Use
these effective targets.
* gcc.dg/vmx/pr27006.c: Add missing close brace.
* gcc.dg/20020103-1.c: XFAIL on powerpc*-*-*.
From-SVN: r113709
2006-05-11 20:56:21 +01:00
David Daney
498f0cf38a
re PR java/20418 (ICE if variable name is omitted in an initialiser and a qualified type for the variable is used)
...
* testsuite/libjava.compile/PR20418.java: New.
* testsuite/libjava.compile/PR20418.xfail: New.
From-SVN: r113707
2006-05-11 17:52:42 +00:00
Jan Hubicka
5d342ef9c5
cgraphunit.c (decide_is_function_needed): Don't force always_inline to be output at -O0.
...
* cgraphunit.c (decide_is_function_needed): Don't force always_inline
to be output at -O0.
From-SVN: r113704
2006-05-11 16:11:37 +00:00
Volker Reichelt
7ebcc52c5a
re PR c++/27384 (ICE with invalid array size)
...
PR middle-end/27384
* fold-const.c (size_binop): Move sanity check for arguments to
the beginning of the function.
* g++.dg/other/fold1.C: New test.
From-SVN: r113701
2006-05-11 15:07:45 +00:00
Volker Reichelt
81e61fb4e6
re PR middle-end/27488 (ICE in tree_expr_nonnegative_p)
...
PR middle-end/27488
* fold-const.c (tree_expr_nonnegative_p): Return early on invalid
expression.
* gcc.dg/fold-nonneg-1.c: New test.
From-SVN: r113699
2006-05-11 14:58:54 +00:00
Volker Reichelt
80cdd94a6c
re PR c++/27547 (ICE on invalid operator=)
...
PR c++/27547
* decl.c (copy_fn_p): Return early on non-member functions.
* g++.dg/other/operator1.C: New test.
From-SVN: r113696
2006-05-11 14:41:03 +00:00
Andrew Haley
c6c097b26c
natSharedLibLoader.cc (init): Remove debugging line.
...
2006-05-11 Andrew Haley <aph@redhat.com>
* gnu/gcj/runtime/natSharedLibLoader.cc (init): Remove debugging
line.
From-SVN: r113693
2006-05-11 09:57:53 +00:00
Richard Guenther
497cfe246b
re PR middle-end/27529 (Does not fold (char *)(size_t)char_ptr or (size_t)(char *)size_t_var)
...
2006-05-11 Richard Guenther <rguenther@suse.de>
PR middle-end/27529
* fold-const.c (fold_unary): Handle intermediate conversion
to a pointer type like intermediate conversion to an integer
type in folding of (T1)(T2)var to var.
Match the code to the comment in the final conversion for
(T1)(T2)var to (T1)var regarding to type precision. Rather
than disallow T1 being of pointer type, assert that both T1
and var are of pointer type or not. Make sure not to fall
over the frontends lazyness wrt array to pointer decay though.
* gcc.dg/tree-ssa/foldcast-1.c: New testcase.
From-SVN: r113692
2006-05-11 08:29:40 +00:00
GCC Administrator
34b95ebe0e
Daily bump.
...
From-SVN: r113690
2006-05-11 00:17:24 +00:00
Janis Johnson
65c3758b85
target-supports-dg.exp (check-flags): New.
...
* lib/target-supports-dg.exp (check-flags): New.
(dg-skip-if): Move flag checks.
From-SVN: r113686
2006-05-10 22:13:39 +00:00
Steve Ellcey
403ac6aca3
libstdc++.exp (check_v3_target_cxa_atexit): Move to gcc subdir.
...
* testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit):
Move to gcc subdir.
* testsuite/lib/dg-options.exp (dg-require-iconv): Remove.
(dg-require-cxa-atexit): Move to gcc subdir.
From-SVN: r113685
2006-05-10 21:58:34 +00:00
Steve Ellcey
21f638b9b0
target-supports-dg.exp (dg-require-cxa-atexit): New.
...
* lib/target-supports-dg.exp (dg-require-cxa-atexit): New.
* lib/target-supports.dg (check_cxa_atexit_available): New.
From-SVN: r113684
2006-05-10 21:55:34 +00:00
Richard Earnshaw
29e339b95a
r113709@merlin: rearnsha | 2006-05-10 22:53:26 +0100
...
r113709@merlin: rearnsha | 2006-05-10 22:53:26 +0100
* arm.c (arm_struct_value_rtx): Delete.
(TARGET_STRUCT_VALUE_RTX): Use the default definition.
(arm_init_cumulative_args): Always initialize nregs to zero.
From-SVN: r113683
2006-05-10 21:54:06 +00:00
Richard Guenther
5ac4f3bb75
re PR tree-optimization/27532 (__builtin_object_size does not handle &a + b.)
...
2006-05-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/27532
* tree-object-size.c (plus_expr_object_size): Fix typo.
From-SVN: r113682
2006-05-10 19:41:46 +00:00
Paolo Carlini
0fc125eaee
hashtable (hashtable_iterator<>::hashtable_iterator(), [...]): Add.
...
2006-05-10 Paolo Carlini <pcarlini@suse.de>
Peter Doerfler <gcc@pdoerfler.com>
* include/tr1/hashtable (hashtable_iterator<>::hashtable_iterator(),
hashtable_const_iterator<>::hashtable_const_iterator(),
node_iterator<>::node_iterator(),
node_const_iterator<>::node_const_iterator()): Add.
(node_iterator<>::node_iterator(hash_node<>*),
node_const_iterator<>::node_const_iterator(hash_node<>*)): Tweak,
remove default.
* testsuite/tr1/6_containers/unordered/hashtable/
iterators_default_constructor.c: New.
Co-Authored-By: Peter Doerfler <gcc@pdoerfler.com>
From-SVN: r113681
2006-05-10 18:37:54 +00:00
Thomas Koenig
3a7e3b6994
re PR fortran/27470 (wrong memory allocator for derived types)
...
2005-05-10 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/27470
* trans-array.c(gfc_array_allocate): If ref->next exists
that is if there is a statement like ALLOCATE(foo%bar(2)),
F95 rules require that bar should be a pointer.
2005-05-10 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/27470
* gfortran.dg/multiple_allocation_2.f90: New test case.
From-SVN: r113680
2006-05-10 18:26:51 +00:00
Kazu Hirata
0e2df6898a
* gcc.target/arm/pr27387.C: Fix a comment typo.
...
From-SVN: r113678
2006-05-10 17:50:34 +00:00
Andrew Haley
e68dbbf5a3
natClassLoader.cc: Add comments.
...
2006-05-10 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc: Add comments.
From-SVN: r113677
2006-05-10 17:50:09 +00:00
Andrew Haley
e080b30bd7
class.c (emit_indirect_register_classes): Fix comment.
...
2006-05-10 Andrew Haley <aph@redhat.com>
* class.c (emit_indirect_register_classes): Fix comment.
From-SVN: r113676
2006-05-10 17:49:23 +00:00
Kazu Hirata
e43d8b8a0e
re PR target/24949 (FAIL: gcc.c-torture/compile/20000403-2.c -O0)
...
PR target/24949
* config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
ashrdi_const, ashrdi3): Use a scratch register.
From-SVN: r113675
2006-05-10 17:35:24 +00:00
Andrew Haley
fdafd4613f
prims.cc (_Jv_soleIndirectCompiledEngine): New.
...
2006-05-09 Andrew Haley <aph@redhat.com>
* prims.cc (_Jv_soleIndirectCompiledEngine): New.
* include/execution.h (Jv_CompiledEngine::do_allocate_static_fields):
Remove body.
(_Jv_CompiledEngine::allocate_field_initializers): New.
(_Jv_CompiledEngine::_Jv_CompiledEngine): Initialize
allocate_field_initializers.
(class _Jv_IndirectCompiledClass): New.
(struct _Jv_IndirectCompiledEngine): New.
* java/lang/Class.h: (IndirectCompiledEngine): New.
* java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Set
engine to _Jv_soleIndirectCompiledEngine
* link.cc (ensure_fields_laid_out): Call
engine->allocate_field_initializers().
From-SVN: r113674
2006-05-10 17:17:20 +00:00
Marc Glisse
05a79eb6bc
pool_allocator.h: Add missing std:: qualifications.
...
2006-05-10 Marc Glisse <marc.glisse@normalesup.org>
* include/ext/pool_allocator.h: Add missing std:: qualifications.
* include/ext/mt_allocator.h: Likewise.
* include/ext/pb_assoc/detail/resize_policy/
hash_load_check_resize_trigger_imp.hpp: Likewise.
* include/ext/pb_assoc/detail/resize_policy/
hash_standard_resize_policy_imp.hpp: Likewise.
* include/ext/pb_assoc/detail/lu_policy/
counter_lu_metadata_imp.hpp: Likewise.
* include/ext/pb_assoc/detail/map_debug_base.hpp: Likewise.
* libsupc++/eh_alloc.cc: Typo: memcpy -> memset.
From-SVN: r113673
2006-05-10 15:43:20 +00:00
Francois-Xavier Coudert
7fdf6c6980
re PR fortran/20460 (Nasty extensions that should always warn)
...
PR fortran/20460
* resolve.c (gfc_resolve_index): Make REAL array indices a
GFC_STD_LEGACY feature.
From-SVN: r113672
2006-05-10 14:58:48 +00:00
Francois-Xavier Coudert
8e785b78e8
re PR fortran/24549 ([4.1 only] ICE with invalid pseudo-declaration statement)
...
PR fortran/24549
* parse.c (reject_statement): Clear gfc_new_block.
* gfortran.dg/error_recovery_1.f90: New test.
From-SVN: r113671
2006-05-10 14:51:26 +00:00
Richard Guenther
a04d8591f2
re PR middle-end/27302 (Fold does not fold (i < j) == (j > i) to 1)
...
2006-05-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/27302
* fold-const.c (operand_equal_p): For two comparisons,
try comparison of one comparison code swapped if that yields
the same code.
* gcc.dg/torture/pr27302.c: New testcase.
From-SVN: r113670
2006-05-10 10:22:39 +00:00
Ben Elliston
4db60bd06f
tree-pretty-print.c (pretty_print_string): No need to handle '\0' as a special character.
...
* tree-pretty-print.c (pretty_print_string): No need to handle
'\0' as a special character.
From-SVN: r113669
2006-05-10 11:18:28 +10:00
Ben Elliston
9c5835d588
tree.h: Include "hashtab.h".
...
* tree.h: Include "hashtab.h".
(iterative_hash_expr): Use hashval_t in its prototype.
* Makefile.in (TREE_H): Add $(HASHTAB_H).
From-SVN: r113668
2006-05-10 11:10:11 +10:00
GCC Administrator
88d1293a3a
Daily bump.
...
From-SVN: r113666
2006-05-10 00:17:34 +00:00
Steve Ellcey
543b60091e
re PR bootstrap/26872 (Internal Compiler Error when bootstrap GCC 4.1.0 with GCC 4.0.2)
...
PR bootstrap/26872
* config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
(hppa*64*-*-hpux11*): Ditto.
(hppa[12]*-*-hpux11*): Ditto.
From-SVN: r113661
2006-05-09 20:00:55 +00:00
David Edelsohn
7ac159a508
re PR bootstrap/26545 (undeclared 64bit constants in c-common.c)
...
PR target/26545
* config/rs6000/aix41.h (TARGET_64BIT): Define.
From-SVN: r113659
2006-05-09 13:09:06 -04:00
Steven G. Kargl
08f366731e
Commit chnages missed in the previous commit.
...
From-SVN: r113658
2006-05-09 16:25:21 +00:00
Michael Matz
fa959ce486
config.host (<i[34567]86-*-*, [...]): Set host_extra_gcc_objs and host_xmake_file.
...
* config.host (<i[34567]86-*-*, x86_64-*-*>): Set
host_extra_gcc_objs and host_xmake_file.
(<*-*-linux*>): Don't overwrite host_xmake_file.
* gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
* config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
(host_detect_local_cpu): Declare.
(CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
* config/i386/i386.c (override_options): Handle -mtune=native
as -mtune=generic.
* config/i386/x-i386: New file.
* config/i386/driver-i386.c: New file.
* doc/invoke.texi (<i386 and x86-64 Options>): Describe
cpu-type "native".
From-SVN: r113655
2006-05-09 15:40:12 +00:00
Dirk Mueller
f9c3744b7f
re PR middle-end/27498 (fold does not fold reads from constant static strings)
...
2006-05-09 Dirk Mueller <dmueller@suse.de>
Richard Guenther <rguenther@suse.de>
PR middle-end/27498
* fold-const.c (fold_read_from_constant_string): Relax check
for matching types to matching modes.
* gcc.dg/tree-ssa/pr27498.c: New testcase.
Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r113651
2006-05-09 14:16:50 +00:00
Zdenek Dvorak
2c790a2884
re PR rtl-optimization/27335 (ICE in get_loop_body)
...
PR rtl-optimization/27335
* loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
loops.
* gcc.dg/pr27335.c: New test.
From-SVN: r113648
2006-05-09 09:10:15 +00:00
Richard Sandiford
ec4fc7edaf
mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
...
2006-05-06 Chao-ying Fu <fu@mips.com>
Richard Sandiford <richard@codesourcery.com>
gcc/
* config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
(vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
* config/mips/mips.md (UNSPEC_SCC): New constant.
* config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
* config/mips/mips.c (mips_reverse_fp_cond_p): New function.
(mips_emit_compare): Use it.
(mips_expand_vcondv2sf): New function.
gcc/testsuite/
* gcc.target/mips/mips-ps-5.c: New file.
From-SVN: r113644
2006-05-09 07:42:38 +00:00
Ben Elliston
5038b1e9dd
Remove conflict marker around 2006-05-07.
...
From-SVN: r113643
2006-05-09 15:25:08 +10:00
Daniel Berlin
74be08f84e
re PR tree-optimization/27093 (verify_ssa failed: definition does not dominate use)
...
2006-05-08 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/27093
* tree-ssa-alias.c (recalculate_used_alone): Mark variables for
renaming when they become not-used_alone.
From-SVN: r113641
2006-05-09 01:28:47 +00:00
John David Anglin
fdaaf00202
hpux-unwind.h (pa_fallback_frame_state): Handle return parameter relocation and relocation stubs.
...
* hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
relocation and relocation stubs.
From-SVN: r113640
2006-05-09 00:36:11 +00:00
GCC Administrator
096cc29a10
Daily bump.
...
From-SVN: r113638
2006-05-09 00:17:02 +00:00