Hans-Peter Nilsson
f89935ed17
reload.c (find_reloads_address_1): Call REG_OK_FOR_CONTEXT with the autoincdec code, not outer_code.
...
* reload.c (find_reloads_address_1) <autoincdec cases>:
Call REG_OK_FOR_CONTEXT with the autoincdec code, not
outer_code.
From-SVN: r130380
2007-11-23 15:38:29 +00:00
Richard Guenther
27fa4044f1
re PR tree-optimization/34176 (SCCVN breaks gettext)
...
2007-11-23 Richard Guenther <rguenther@suse.de>
Michael Matz <matz@suse.de>
PR tree-optimization/34176
* alloc-pool.h (empty_alloc_pool): Declare.
* alloc-pool.c (empty_alloc_pool): New function.
* tree-ssa-sccvn.c (vn_reference_lookup): Also lookup from the
valid table if a lookup from the optimistic table failed.
(vn_unary_op_lookup): Likewise.
(vn_binary_op_lookup): Likewise.
(vn_phi_lookup): Likewise.
(process_scc): Clear optimistic tables before every iteration.
* gcc.c-torture/execute/pr34176.c: New testcase.
Co-Authored-By: Michael Matz <matz@suse.de>
From-SVN: r130379
2007-11-23 14:28:59 +00:00
Richard Biener
bdcfbbfccb
tree-ssa-copy.c (may_propagate_copy): Remove redundant checks.
...
2007-11-23 Richard Guenther <rguenther@suse.de>
* tree-ssa-copy.c (may_propagate_copy): Remove redundant
checks.
(merge_alias_info): Do verification only if checking is
enabled. Merge flow-sensitive alias information in simple
cases.
* tree-ssa-operands.c (get_addr_dereference_operands): Also
complain about missing NMTs.
* gcc.dg/tree-ssa/alias-17.c: New testcase.
From-SVN: r130378
2007-11-23 14:26:53 +00:00
Jakub Jelinek
cfdaefecf6
re PR c++/34198 (-Wconversion gives apparent erroneous warning with g++ 4.3-20071109)
...
PR c++/34198
* c-common.c (conversion_warning): For INTEGER_TYPE to
INTEGER_TYPE conversions call get_narrower on expr to avoid
spurious warnings from binop shortening or when the implicit
conversion can't change the value.
* gcc.dg/Wconversion-5.c: New test.
* g++.dg/Wconversion3.C: New test.
From-SVN: r130377
2007-11-23 14:39:44 +01:00
Samuel Tardieu
bb1f5840b5
s-inmaop-posix.adb, [...]: Use 'Access instead of 'Unchecked_Access in second and third arguments of...
...
gcc/ada/
* s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
Use 'Access instead of 'Unchecked_Access in second and third
arguments of pthread_sigmask.
From-SVN: r130376
2007-11-23 13:16:54 +00:00
Samuel Tardieu
356d89619e
Add missing commas beween file names in gcc/ada/ChangeLog
...
From-SVN: r130375
2007-11-23 13:08:50 +00:00
Paolo Carlini
360b7bffb1
stl_list.h (insert(iterator, value_type&&)): Just forward to emplace.
...
2007-11-23 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_list.h (insert(iterator, value_type&&)): Just
forward to emplace.
* include/bits/stl_vector.h (insert(iterator, value_type&&)): Likewise.
* include/bits/stl_deque.h (insert(iterator, value_type&&)): Likewise.
* include/debug/list (insert(iterator, value_type&&)): Likewise.
* include/debug/vector (insert(iterator, value_type&&)): Likewise.
* include/debug/deque (insert(iterator, value_type&&)): Likewise.
* include/bits/list.tcc (insert(iterator, value_type&&)): Remove.
* include/bits/vector.tcc (insert(iterator, value_type&&)): Likewise.
* include/bits/deque.tcc (insert(iterator, value_type&&)): Likewise.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Likewise.
From-SVN: r130374
2007-11-23 11:49:07 +00:00
Eric Botcazou
5102fac5fe
decl.c (ceil_alignment): New function.
...
* decl.c (ceil_alignment): New function.
(gnat_to_gnu_entity): Use it to set the alignment on atomic types.
(make_packable_type): Likewise.
From-SVN: r130373
2007-11-23 11:11:04 +00:00
Aldy Hernandez
96d9bb07ad
+ * trans-expr.c (gfc_trans_string_copy): Use "void *" when building a
...
+ memset.
From-SVN: r130371
2007-11-23 10:50:45 +00:00
Richard Guenther
cb2d412c3e
tree-ssa-copy.c (may_propagate_copy): Remove redundant checks.
...
2007-11-23 Richard Guenther <rguenther@suse.de>
* tree-ssa-copy.c (may_propagate_copy): Remove redundant
checks.
(merge_alias_info): Do verification only if checking is
enabled. Merge flow-sensitive alias information in simple
cases.
* tree-ssa-operands.c (get_addr_dereference_operands): Also
complain about missing NMTs.
* gcc.dg/tree-ssa/alias-17.c: New testcase.
From-SVN: r130370
2007-11-23 09:49:29 +00:00
Matthias Klose
a7415017a8
configure.ac: Adjust makeinfo version check.
...
2007-11-23 Matthias Klose <doko@ubuntu.com>
* configure.ac: Adjust makeinfo version check.
* configure: Regenerate.
From-SVN: r130367
2007-11-23 09:29:44 +00:00
GCC Administrator
4d28fa6f10
Daily bump.
...
From-SVN: r130365
2007-11-23 00:17:11 +00:00
Joseph Myers
6ac0194d21
re PR c/14050 ([DR289] c99 restrict doesn't work in abs declarator)
...
PR c/14050
* c-decl.c (set_array_declarator_inner): Don't give error for
static or type qualifiers in abstract declarator. Remove
abstract_p parameter.
* c-tree.h (set_array_declarator_inner): Update prototype.
* c-parser.c (c_parser_direct_declarator_inner): Update call to
set_array_declarator_inner.
* doc/standards.texi: Update for C99 TC3.
testsuite:
* gcc.dg/c99-arraydecl-1.c: Don't expect errors for static or type
qualifiers in abstract declarator.
From-SVN: r130362
2007-11-22 23:12:29 +00:00
Hans-Peter Nilsson
df8702365b
Forgot to save before minor edit of last change
...
From-SVN: r130361
2007-11-22 22:30:23 +00:00
Hans-Peter Nilsson
760d23eaa6
mmix.c (mmix_encode_section_info): Remove duplicate line in my edit of the last change.
...
* config/mmix/mmix.c (mmix_encode_section_info): Remove duplicate
line in my edit of the last change.
From-SVN: r130360
2007-11-22 22:29:40 +00:00
Jakub Jelinek
ebfe65a3be
re PR target/33947 (warning: 'const' attribute directive ignored)
...
PR target/33947
* config/arm/arm.c (arm_init_tls_builtins): Set TREE_NOTHROW
and TREE_READONLY on the fn decl rather than passing a chain
of attributes.
From-SVN: r130359
2007-11-22 22:58:07 +01:00
Tobias Burnus
d4d757e6b5
primary.c (gfc_match_structure_constructor): Allow constructor for types without components.
...
2007-11-22 Tobias Burnus <burnus@net-b.de>
* primary.c (gfc_match_structure_constructor): Allow
constructor for types without components.
2007-11-22 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/derived_constructor_comps_3.f90: New.
From-SVN: r130358
2007-11-22 22:40:22 +01:00
Kaz Kojima
cd9a21ca0b
sh.md (divsi_inv_m3): Handle zero dividend specially.
...
* config/sh/sh.md (divsi_inv_m3): Handle zero dividend
specially.
From-SVN: r130357
2007-11-22 21:15:19 +00:00
Jakub Jelinek
6c01f02b2c
Fix a misformatted entry.
...
From-SVN: r130356
2007-11-22 20:50:45 +01:00
Paolo Carlini
02b27543b7
stl_tree.h (_Rb_tree<>::_Rb_tree_impl<, true>): Remove, identical in mainline to the primary template.
...
2007-11-22 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_tree.h (_Rb_tree<>::_Rb_tree_impl<, true>): Remove,
identical in mainline to the primary template.
From-SVN: r130355
2007-11-22 18:54:36 +00:00
Jakub Jelinek
6d1f904c2e
re PR c++/34094 (Undefined static data member in anonymous namespace can acquire a definition anyway)
...
PR c++/34094
* decl2.c (cp_write_global_declarations): Issue error about static
data members in anonymous namespace which are declared and used,
but not defined.
* g++.dg/ext/visibility/anon7.C: New test.
From-SVN: r130351
2007-11-22 15:06:06 +01:00
Paolo Carlini
60f2c09056
gnu.ver: Adjust new exports for 128-bit long double.
...
2007-11-22 Paolo Carlini <pcarlini@suse.de>
* config/abi/pre/gnu.ver: Adjust new exports for 128-bit long double.
From-SVN: r130350
2007-11-22 12:06:27 +00:00
Uros Bizjak
8383d43c75
i386.h (TARGET_CPU_CPP_BUILTINS): Change checking of ix86_arch and ix86_tune into a switch statement.
...
* config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Change checking
of ix86_arch and ix86_tune into a switch statement.
(enum processor_type): Default PROCESSOR_I386 to 0.
* config/i386/i386.c (ix86_decompose_address): Use TARGET_K6 instead
of "ix86_tune == PROCESSOR_K6".
(ia32_multipass_dfa_lookahead): Change checking of ix86_tune into
a switch statement.
From-SVN: r130349
2007-11-22 12:25:11 +01:00
Johannes Singler
e683ee2a20
re PR libstdc++/33893 ([parallel mode] Algorithms rely on omp_set_dynamic(false))
...
2007-11-22 Johannes Singler <singler@ira.uka.de>
PR libstdc++/33893
* include/parallel/multiway_merge.h: made omp_dynamic-safe
* include/parallel/workstealing.h: made omp_dynamic-safe
* include/parallel/base.h: infrastructure, cleanup
* include/parallel/par_loop.h: made omp_dynamic-safe
* include/parallel/features.h: activate loser tree variant
* include/parallel/quicksort.h: made omp_dynamic-safe
* include/parallel/compiletime_settings.h: settings overridable
* include/parallel/equally_split.h: made omp_dynamic-safe
* include/parallel/omp_loop_static.h: made omp_dynamic-safe
* include/parallel/random_shuffle.h: made omp_dynamic-safe
* include/parallel/balanced_quicksort.h: made omp_dynamic-safe
* include/parallel/set_operations.h: made omp_dynamic-safe
* include/parallel/unique_copy.h: made omp_dynamic-safe
* include/parallel/multiway_mergesort.h: made omp_dynamic-safe
* include/parallel/search.h: made omp_dynamic-safe
* include/parallel/partition.h: made omp_dynamic-safe
* include/parallel/partial_sum.h: made omp_dynamic-safe
* include/parallel/find.h: made omp_dynamic-safe
* include/parallel/omp_loop.h: made omp_dynamic-safe
* include/parallel/losertree.h: avoid default constructor
From-SVN: r130347
2007-11-22 10:13:08 +00:00
Tobias Burnus
7861a5ce14
re PR fortran/34079 (Bind(C): Character argument/return value problems)
...
2007-11-22 Tobias Burnus <burnus@net-b.de>
PR fortran/34079
* trans-expr.c (gfc_conv_function_call): Do not append
string length arguments when calling bind(c) procedures.
* trans-decl.c (create_function_arglist): Do not append
string length arguments when declaring bind(c) procedures.
2007-11-22 Tobias Burnus <burnus@net-b.de>
PR fortran/34079
* gfortran.dg/bind_c_usage_10.f03: Remove .mod file afterwards.
* gfortran.dg/bind_c_usage_13.f03: New.
* gfortran.dg/bind_c_usage_14.f03: New.
From-SVN: r130346
2007-11-22 10:55:47 +01:00
Richard Sandiford
ac605fd66d
re PR rtl-optimization/33848 (reference to non-existent label at -O1 on mips/mipsel)
...
gcc/testsuite/
PR rtl-optimization/33848
* gcc.dg/torture/pr33848.c: New test.
From-SVN: r130345
2007-11-22 09:30:02 +00:00
Olivier Hainque
1fa4dfc6b7
trans.c (gnat_to_gnu): Reformat lines to fit in 80 columns.
...
2007-11-22 Olivier Hainque <hainque@adacore.com>
* trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
to fit in 80 columns.
From-SVN: r130343
2007-11-22 09:04:02 +00:00
Tom Tromey
d26d1cea50
mmix.c (mmix_encode_section_info): Use alloca to avoid writing into string allocated by ggc_alloc_string.
...
* config/mmix/mmix.c (mmix_encode_section_info): Use alloca to
avoid writing into string allocated by ggc_alloc_string.
From-SVN: r130342
2007-11-22 07:34:10 +00:00
GCC Administrator
9aee0967b4
Daily bump.
...
From-SVN: r130340
2007-11-22 00:17:35 +00:00
Joseph Myers
f82d92ba29
* de.po: Update.
...
From-SVN: r130337
2007-11-21 23:10:08 +00:00
Jonathan Wakely
207e08e0b5
C++STYLE: Fix typos.
...
2007-11-21 Jonathan Wakely <jwakely.gcc@gmail.com>
* docs/html/17_intro/C++STYLE: Fix typos.
From-SVN: r130336
2007-11-21 22:42:18 +00:00
Kaz Kojima
f8be3f56c1
re PR target/34155 (ICE in simplify_binary_operation_1, at simplify-rtx.c:2666 on sh64)
...
PR target/34155
* config/sh/sh.md (binary_sf_op): Remove.
(binary_sf_op0, binary_sf_op1): New define_insn_and_split.
* config/sh/sh.c (sh_expand_binop_v2sf): Use gen_binary_sf_op0
and gen_binary_sf_op1.
From-SVN: r130335
2007-11-21 22:29:04 +00:00
Hans-Peter Nilsson
12e8869659
regclass.c (init_reg_autoinc): Fix typo preventing test of secondary output reload when...
...
* regclass.c (init_reg_autoinc): Fix typo preventing test of
secondary output reload when setting forbidden_inc_dec_class.
From-SVN: r130333
2007-11-21 19:59:54 +00:00
Francois-Xavier Coudert
0df50e7a0c
re PR fortran/34083 (internal compiler error: in gfc_conv_array_constructor_expr, at fortran/trans-expr.c:2819)
...
PR fortran/34083
* resolve.c (resolve_structure_cons): Also check for zero rank.
* gfortran.dg/derived_constructor_comps_2.f90: Add check.
From-SVN: r130332
2007-11-21 18:32:40 +00:00
Benjamin Kosnik
c60cd1dcf7
documentation.html: Validate.
...
2007-11-20 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/documentation.html: Validate. Add links to index,
correct broken links.
* docs/html/17_intro/C++STYLE: Add bits.
* docs/html/17_intro/configury.html: Correct, update.
* docs/html/17_intro/api.html: Correct HTML.
* include/bits/stl_algobase.h: Adjust comment.
From-SVN: r130331
2007-11-21 16:37:26 +00:00
Aurelien Jarno
5f45b299ed
s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
...
2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
gcc/ada/
* s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
* Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
From-SVN: r130330
2007-11-21 12:16:51 +00:00
Richard Guenther
11948f6bac
re PR tree-optimization/34148 (Too many VOPs, too deep tree-ssa-sccvn.c recursion)
...
2007-11-21 Richard Guenther <rguenther@suse.de>
PR tree-optimization/34148
* tree-ssa-structalias.c (create_variable_info_for): Do not use
field-sensitive PTA for single-element structures.
* tree-ssa-alias.c (create_overlap_variables_for): Do not create
SFTs for single-element structures.
From-SVN: r130329
2007-11-21 10:16:21 +00:00
GCC Administrator
2bf66d799c
Daily bump.
...
From-SVN: r130327
2007-11-21 00:17:50 +00:00
Richard Guenther
288bd0d74e
re PR middle-end/34154 (gcc 4.1.1 bug / case ranges / unsigned long long)
...
2007-11-20 Richard Guenther <rguenther@suse.de>
PR middle-end/34154
* gimplify.c (gimplify_switch_expr): Use tree_int_cst_lt instead
of the signed INT_CST_LT.
* stmt.c (expand_case): Likewise.
(estimate_case_costs): Likewise.
* testsuite/gcc.c-torture/execute/pr34154.c: New testcase.
From-SVN: r130324
2007-11-20 22:51:23 +00:00
Uros Bizjak
aa7a6eb481
* gcc.dg/tree-ssa/20030714-1.c: Cleanup dom3 dump file.
...
From-SVN: r130323
2007-11-20 23:33:53 +01:00
Thomas Koenig
74c177cbbd
re PR fortran/32770 ([Meta-bug] -fdefault-integer-8 issues)
...
2007-11-20 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/32770
* gfortran.dg/record_marker_1.f90: Explicitly set kinds
so test passes with -frecord-marker=8.
* gfortran.dg/integer_exponentiation_1.f90: Likewise.
* gfortran.dg/integer_exponentiation_2.f90: Likewise.
* gfortran.dg/integer_exponentiation_3.F90: Likewise.
* gfortran.dg/integer_exponentiation_5.F90: Likewise.
* gfortrand.dg/modulo_1.f90: Likewise.
From-SVN: r130322
2007-11-20 21:57:04 +00:00
Richard Sandiford
d8538159f1
target-supports.exp (check_effective_target_mips_soft_float): New procedure.
...
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_mips_soft_float):
New procedure.
* gcc.dg/var-expand1.c: Skip for mips_soft_float.
* gcc.dg/pr30957-1.c: Likewise.
From-SVN: r130321
2007-11-20 21:17:58 +00:00
Richard Sandiford
a7280feff6
variadic_construct.cc: Add dg-require-time.
...
libstdc++-v3/
* testsuite/ext/throw_allocator/variadic_construct.cc: Add
dg-require-time.
From-SVN: r130320
2007-11-20 20:58:38 +00:00
Rask Ingemann Lambertsen
f43e89a3f6
* config.host (ia64*-*-elf*): Build ia64 specific libgcc parts.
...
From-SVN: r130319
2007-11-20 18:11:07 +00:00
Rask Ingemann Lambertsen
8c2123af69
read-rtl.c (fatal_expected_char): Print EOF as text rather that its binary representation.
...
* read-rtl.c (fatal_expected_char): Print EOF as text rather that
its binary representation.
From-SVN: r130318
2007-11-20 17:24:51 +00:00
Jakub Jelinek
542f8eb989
re PR c++/34089 (Segfault on specialization using struct instead of template function.)
...
PR c++/34089
* parser.c (cp_parser_class_head): Reject function template ids.
* g++.dg/template/crash74.C: New test.
From-SVN: r130316
2007-11-20 17:19:40 +01:00
Richard Guenther
8ef62eeb74
tree-ssa-operands.c (add_virtual_operand): Consistently prune accesses.
...
2007-11-20 Richard Guenther <rguenther@suse.de>
* tree-ssa-operands.c (add_virtual_operand): Consistently prune
accesses.
* gcc.c-torture/execute/20071120-1.c: New testcase.
From-SVN: r130315
2007-11-20 15:16:25 +00:00
Paolo Carlini
f22aa574dc
functional_hash.h: Do not include ext/numeric_traits.h.
...
2007-11-20 Paolo Carlini <pcarlini@suse.de>
* include/bits/functional_hash.h: Do not include ext/numeric_traits.h.
* include/tr1/functional_hash.h: Likewise.
* include/std/functional: Include ext/type_traits.h.
* include/tr1/functional: Likewise.
From-SVN: r130314
2007-11-20 14:06:53 +00:00
Thiemo Seufer
0a7ea4078e
mips.c (mips_file_start): Add support for flagging 32-bit code with -mfp64 floating-point.
...
* config/mips/mips.c (mips_file_start): Add support for
flagging 32-bit code with -mfp64 floating-point.
From-SVN: r130313
2007-11-20 13:48:55 +00:00
Paolo Carlini
a0ba4e53fd
functional_hash.h (hash<long double>::operator()(long double)): Only declare.
...
2007-11-20 Paolo Carlini <pcarlini@suse.de>
* include/tr1_impl/functional_hash.h
(hash<long double>::operator()(long double)): Only declare.
* src/hash.cc: Define here.
* config/abi/pre/gnu.ver: Adjust exports.
* include/tr1/functional: Do not include <cmath>.
* include/std/functional: Likewise.
* include/std/functional: Include <new>.
From-SVN: r130312
2007-11-20 12:34:44 +00:00