Kazu Hirata
73d1943acd
* sched-int.h: Fix comment typos.
...
From-SVN: r117532
2006-10-07 11:20:13 +00:00
Kazu Hirata
f63645be07
* gimplify.c, sched-int.h: Fix comment typos.
...
From-SVN: r117531
2006-10-07 11:07:14 +00:00
Richard Sandiford
0c391506fc
debug-1.c: Use -fno-if-conversion MIPS targets.
...
gcc/testsuite/
* gcc.dg/debug/debug-1.c: Use -fno-if-conversion MIPS targets.
* gcc.dg/debug/debug-2.c: Likewise.
From-SVN: r117530
2006-10-07 09:22:20 +00:00
Ion Gaztanaga
55ce980dc2
stl_tree.h (_Rb_tree<>::erase(const _Key&)): Don't call std::distance unnecessarily.
...
2006-10-07 Ion Gaztanaga <igaztanaga@gmail.com>
Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_tree.h (_Rb_tree<>::erase(const _Key&)): Don't
call std::distance unnecessarily.
Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
From-SVN: r117529
2006-10-07 08:20:35 +00:00
GCC Administrator
defaac100c
Daily bump.
...
From-SVN: r117525
2006-10-07 00:17:14 +00:00
Uros Bizjak
b66e01e5ce
sync-2.c: New test.
...
* gcc.c-torture/compile/sync-2.c: New test.
From-SVN: r117519
2006-10-07 00:24:04 +02:00
Tobias Schlüter
f5b2d77b6c
actual_array_substr_2.f90: Remove '\r's from line endings.
...
* gfortran.dg/actual_array_substr_2.f90: Remove '\r's from
line endings.
From-SVN: r117518
2006-10-07 00:02:43 +02:00
Tobias Schlüter
dfe4ab155e
add missed aprt of patch
...
From-SVN: r117517
2006-10-06 23:50:18 +02:00
Maxim Kuvyrkov
d7bfd90745
sched-int.h (IS_SPECULATION_CHECK_P, [...]): New macros.
...
2006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
* sched-int.h (IS_SPECULATION_CHECK_P, IS_SPECULATION_SIMPLE_CHECK_P):
New macros.
* sched-ebb.c (begin_schedule_ready): Use them.
* haifa-sched.c (schedule_insn, move_insn, try_ready,
add_to_speculative_block, create_check_block_twin, speculate_insn,
fix_jump_move, move_block_after_check): Ditto.
* sched-rgn.c (new_ready): Ditto.
From-SVN: r117516
2006-10-06 21:49:07 +00:00
Maxim Kuvyrkov
7ea84dc44c
re PR rtl-optimization/29128 (ICE: in move_block_after_check, at haifa-sched.c:4337)
...
2006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
PR rtl-optimization/29128
* sched-int.h (IS_SPECULATION_BRANCHY_CHECK_P): New macro.
* sched-ebb.c (advance_target_bb): Use it to fix condition to
allow interblock movement of speculation checks.
* gcc.c-torture/compile/pr29128.c: New test.
From-SVN: r117515
2006-10-06 21:45:13 +00:00
Tobias Schlüter
b5b8e31b32
actual_array_constructor_2.f90: Remove '\r's from line endings.
...
* gfortran.dg/actual_array_constructor_2.f90: Remove '\r's from
line endings.
From-SVN: r117514
2006-10-06 23:40:14 +02:00
Zdenek Dvorak
975626a7f4
re PR target/29256 (loop performance regression)
...
PR middle-end/29256
* tree-ssa-loop-ivopts.c (determine_base_object): Handle pointers
casted to integer type.
(get_address_cost): Decrease cost of [symbol + index] addressing modes
if they are significantly more expensive than [reg + index] ones.
* gcc.dg/tree-ssa/loop-19.c: New test.
From-SVN: r117513
2006-10-06 19:32:04 +00:00
Jakub Jelinek
3ac5712013
re PR tree-optimization/29330 (-O -ftree-loop-linear --> virtual memory exhausted)
...
PR tree-optimization/29330
* tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro.
(initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer
on newly allocated ddrs.
(find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer
to VEC (loop_p, heap) pointer.
(compute_data_dependences_for_loop): Adjust caller.
(free_dependence_relations): Free DDR_LOOP_NEST.
* tree-loop-linear.c (linear_transform_loops): Don't forget to
free DEPENDENCE_RELATIONS and DATAREFS.
* gcc.dg/pr29330.c: New test.
From-SVN: r117509
2006-10-06 18:57:27 +02:00
Jakub Jelinek
c66475078c
re PR target/28924 (x86 sync builtins fail for char and short memory operands)
...
PR target/28924
* builtins.c (expand_builtin_sync_operation,
expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set):
Use convert_to_mode to handle promoted arguments.
* gcc.c-torture/compile/20061005-1.c: New test.
From-SVN: r117508
2006-10-06 18:54:43 +02:00
J"orn Rennecke
a192f4ae53
* print-tree.c (print_node_brief, print_node): Print sign of Inf.
...
From-SVN: r117506
2006-10-06 16:59:47 +01:00
J"orn Rennecke
0a08751870
* config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define
...
From-SVN: r117505
2006-10-06 15:44:18 +01:00
Uros Bizjak
662e96c548
sync.md ("sync_add<mode>", [...]): Use <modeconstraint> instead of "r" as operand 1 constraint.
...
* config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>",
"sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"):
Use <modeconstraint> instead of "r" as operand 1 constraint.
From-SVN: r117499
2006-10-06 13:51:29 +02:00
Paolo Carlini
9f23fee697
re PR libstdc++/29368 (wrong STL docs for rfind())
...
2006-10-06 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/29368
* include/bits/basic_string.h: Adjust rfind documentation.
* include/ext/vstring.h: Likewise.
From-SVN: r117496
2006-10-06 11:47:56 +00:00
Paolo Carlini
bcf0248a99
re PR libstdc++/29354 (Error when seeking on an ostringstream)
...
2006-10-06 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/29354
* include/bits/sstream.tcc (basic_stringbuf<>::seekpos(pos_type,
ios_base::openmode)): Allow for seek to pos_type(off_type(0))
when the stream is empty.
* testsuite/27_io/basic_stringbuf/seekpos/char/29354.cc: New.
* testsuite/27_io/basic_stringbuf/seekpos/wchar_t/29354.cc: New.
From-SVN: r117494
2006-10-06 09:57:43 +00:00
Olivier Hainque
706c4bb76c
gimplify.c (gimplify_type_sizes): Don't recurse on the pointed-to type.
...
* gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
Don't recurse on the pointed-to type.
* c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
types with components of variable size.
* testsuite/gcc.dg/typename-vla-1.c: New case.
* testsuite/gnat.dg/forward_vla.adb: New case.
From-SVN: r117493
2006-10-06 09:12:09 +00:00
Danny Smith
4d51dc9ec6
* config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
...
From-SVN: r117492
2006-10-06 08:46:18 +00:00
Danny Smith
b50019f0aa
barrier-1.c: Change timestamp tests from '<' to '<='.
...
* testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
'<' to '<='.
From-SVN: r117491
2006-10-06 08:32:33 +00:00
Danny Smith
8887708edc
acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
...
* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
* configure: Regenerate.
* fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
From-SVN: r117490
2006-10-06 08:25:32 +00:00
Danny Smith
76be85be9c
acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
...
* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
* configure: Regenerate.
From-SVN: r117489
2006-10-06 08:21:49 +00:00
Danny Smith
16a314a996
acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
...
* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
* configure: Regenerate.
From-SVN: r117488
2006-10-06 08:21:22 +00:00
Jakub Jelinek
9731a71c57
re PR tree-optimization/29290 (SPEC CPU2000 178.galgel ICE using -O3 -ftree-loop-linear)
...
PR tree-optimization/29290
* tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
multiple exits.
* gfortran.dg/loop_nest_1.f90: New test.
From-SVN: r117484
2006-10-06 09:27:28 +02:00
Jakub Jelinek
c1a46941d4
re PR target/29198 (Incorrect reference to __thread array with -fPIC -O2 on x86)
...
PR target/29198
* config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
* config/i386/predicates.md (local_symbolic_operand): Likewise.
* gcc.dg/tls/opt-12.c: New test.
From-SVN: r117483
2006-10-06 09:25:02 +02:00
Jakub Jelinek
9eccb94dff
re PR fortran/28415 (4.2.0 ICE when using automatic array and -fno-automatic)
...
PR fortran/28415
* trans-decl.c (gfc_finish_var_decl): With -fno-automatic, don't
make artificial variables or pointer to variable automatic array
TREE_STATIC.
* gfortran.dg/save_2.f90: New test.
From-SVN: r117482
2006-10-06 09:23:00 +02:00
Jakub Jelinek
86a0f64291
re PR c/29091 (vector constant not fully outputed)
...
PR c/29091
* varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
the number of vector elements fill the rest with zeros.
* gcc.dg/pr29091.c: New test.
From-SVN: r117481
2006-10-06 09:15:48 +02:00
Jakub Jelinek
0d3abf6f9e
scanner.c (skip_free_comments): Return bool instead of void.
...
* scanner.c (skip_free_comments): Return bool instead of void.
(gfc_next_char_literal): Don't return ' ' if & is missing after
!$omp or !$. Use skip_{free,fixed}_comments directly instead
of gfc_skip_comments.
From-SVN: r117480
2006-10-06 09:10:55 +02:00
Joseph Myers
e87a56b45d
* lib/target-supports.exp
...
(check_effective_target_vect_cmdline_needed): Handle i?86-*-* the
same as x86_64-*-*; check for LP64.
From-SVN: r117477
2006-10-06 01:47:35 +01:00
GCC Administrator
2406129ccd
Daily bump.
...
From-SVN: r117475
2006-10-06 00:17:15 +00:00
Mike Stump
b376472f31
Update comment
...
From-SVN: r117470
2006-10-05 23:12:04 +00:00
Richard Sandiford
c671c14680
mips.c (mips_pass_by_reference): Do not return false for EABI if type is NULL.
...
gcc/
* config/mips/mips.c (mips_pass_by_reference): Do not return false
for EABI if type is NULL. Use a size check based on GET_MODE_SIZE
instead.
From-SVN: r117468
2006-10-05 22:19:35 +00:00
Steven G. Kargl
2c3c88ec20
Makefile.am: Use $(M4) instead of m4.
...
2006-10-05 Steven G. Kargl <kargl@gcc.gnu.org>
* Makefile.am: Use $(M4) instead of m4.
* Makefile.in: Regenerated.
From-SVN: r117467
2006-10-05 21:21:53 +00:00
Joseph Myers
49eb113ddc
* sv.po: Update.
...
From-SVN: r117463
2006-10-05 18:03:18 +01:00
Bernd Schmidt
d4e8505009
bfin.md (subsi3): Lose expander, change previously unnamed pattern into subsi3.
...
* config/bfin/bfin.md (subsi3): Lose expander, change previously
unnamed pattern into subsi3. Use correct constraints/predicates.
* config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
* config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.
From-SVN: r117455
2006-10-05 10:46:41 +00:00
Gary Benson
afd4a54a00
2006-10-05 Gary Benson <gbenson@redhat.com>
...
* java/net/SocketPermission.java
(processHostport): Cope with IPv6 addresses with a
one-digit first component.
From-SVN: r117454
2006-10-05 09:32:57 +00:00
Ira Rosen
7251a8d1c5
loop.texi: Add data references analysis description.
...
* doc/loop.texi: Add data references analysis description.
From-SVN: r117453
2006-10-05 08:47:11 +00:00
Brooks Moses
cf822c0484
gfortran.texi: (Current Status): update and rewrite to reflect actual status more accurately.
...
2006-10-04 Brooks Moses <bmoses@stanford.edu>
* gfortran.texi: (Current Status): update and rewrite to reflect
actual status more accurately.
From-SVN: r117449
2006-10-04 21:58:18 -07:00
GCC Administrator
dfb2717d35
Daily bump.
...
From-SVN: r117446
2006-10-05 00:17:15 +00:00
Brooks Moses
7fc15ba549
gfortran.texi: Consistently refer to the compiler as "GNU Fortran".
...
2006-10-04 Brooks Moses <bmoses@stanford.edu>
* gfortran.texi: Consistently refer to the compiler as "GNU
Fortran".
* intrinsic.texi: Ditto.
* invoke.texi: Ditto.
From-SVN: r117442
2006-10-04 16:07:39 -07:00
Brooks Moses
4afc7adf84
gcov.texi: Add formatting to "Invoking gcov" section head.
...
2006-10-04 Brooks Moses <bmoses@stanford.edu>
* doc/gcov.texi: Add formatting to "Invoking gcov" section head.
From-SVN: r117441
2006-10-04 15:40:45 -07:00
Richard Henderson
e701a32a98
Makefile.in (libgcc.mk, [...]): Add emutls.c.
...
gcc/
* Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
* builtin-types.def (BT_WORD): Make unsigned.
(BT_FN_VOID_PTR_WORD_WORD_PTR): New.
* builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
(BUILT_IN_EMUTLS_REGISTER_COMMON): New.
* c-decl.c (grokdeclarator): Don't error if !have_tls.
* c-parser.c (c_parser_omp_threadprivate): Likewise.
* cgraph.c (decide_is_variable_needed): Look at force_output.
Recurse for emulated tls.
* cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
checks redundant with decide_is_variable_needed.
(cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
* dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
emulated tls.
* expr.c (emutls_var_address): New.
(expand_expr_real_1): Expand emulated tls.
(expand_expr_addr_expr_1): Likewise.
* libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
* output.h (emutls_finish): Declare.
* toplev.c (compile_file): Call it.
* tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
address before wrapping in CONST.
* varasm.c (emutls_htab, emutls_object_type): New.
(EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
(get_emutls_object_name, get_emutls_object_type): New.
(get_emutls_init_templ_addr, emutls_decl): New.
(emutls_common_1, emutls_finish): New.
(assemble_variable): When emulating tls, swap decls; generate
constructor for the emutls objects.
(do_assemble_alias): When emulating tls, swap decl and target name.
(default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
for emulated tls.
* emutls.c: New file.
* config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
tls_object for real tls.
gcc/cp/
* decl.c (grokvardecl): Don't error if !have_tls.
(grokdeclarator): Likewise.
* parser.c (cp_parser_omp_threadprivate): Likewise.
gcc/fortran/
* f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
and __emutls_register_common.
* openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
* trans-common.c (build_common_decl): Don't check have_tls.
* trans-decl.c (gfc_finish_var_decl): Likewise.
* types.def (BT_WORD, BT_FN_PTR_PTR): New.
(BT_FN_VOID_PTR_WORD_WORD_PTR): New.
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_tls): Redefine
to mean non-emulated tls.
* gcc.dg/tls/alias-1.c: Remove tls requirement.
* gcc.dg/tls/asm-1.c, gcc.dg/tls/debug-1.c, gcc.dg/tls/diag-1.c,
gcc.dg/tls/diag-2.c, gcc.dg/tls/diag-3.c, gcc.dg/tls/diag-4.c,
gcc.dg/tls/diag-5.c, gcc.dg/tls/init-1.c, gcc.dg/tls/nonpic-1.c,
gcc.dg/tls/opt-10.c, gcc.dg/tls/opt-5.c, gcc.dg/tls/opt-6.c,
gcc.dg/tls/opt-8.c, gcc.dg/tls/opt-9.c, gcc.dg/tls/pic-1.c,
gcc.dg/tls/struct-1.c, gcc.dg/tls/trivial.c: Likewise.
From-SVN: r117440
2006-10-04 14:09:20 -07:00
Brooks Moses
7d61041445
MAINTAINERS (Write After Approval): Add myself.
...
2006-10-04 Brooks Moses <bmoses@stanford.edu>
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r117437
2006-10-04 11:30:49 -07:00
Paul Thomas
25e8cb2e47
[multiple changes]
...
2006-10-04 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29343
* resolve.c (resolve_allocate_expr): Exclude derived types from
search for dependences between allocated variables and the
specification expressions for other allocations in the same
statement.
2006-10-04 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29343
* gfortran.dg/alloc_alloc_expr_2.f90: New test.
From-SVN: r117435
2006-10-04 16:54:19 +00:00
Zack Weinberg
9e8265851d
Fix bug in constraint-check generator, reported by Rask Ingemann Lambertsen:
...
Fix bug in constraint-check generator, reported by Rask Ingemann
Lambertsen:
* genpreds.c (add_constraint): Don't remove anything from the
expression here.
(write_tm_constrs_h): Detect whether "op" argument is used, and
mark it ARG_UNUSED if it isn't.
(write_insn_const_int_ok_for_constraint): Skip the part of the
expression that would test whether "op" (which is not available
here) is a CONST_INT.
From-SVN: r117433
2006-10-04 16:41:55 +00:00
Francois-Xavier Coudert
2e38371e01
* gfortran.dg/bounds_check_fail_1.f90: New test.
...
From-SVN: r117431
2006-10-04 15:44:32 +00:00
Ryan Mansfield
1576e2be33
re PR c++/28448 (doc reference to -fdiagnostics-show-options looks like it should be -fdiagnostics-show-option)
...
2006-10-02 Ryan Mansfield <rmansfield@qnx.com>
PR c++/28448
* doc/invoke.texi (fdiagnostics-show-option): Fix typos.
From-SVN: r117429
2006-10-04 10:21:08 +00:00
Benjamin Kosnik
58e93a261f
2.cc: Fail on Darwin 8.[0-4].* only.
...
2006-10-04 Benjamin Kosnik <bkoz@redhat.com>
Mike Stump <mrs@apple.com>
* testsuite/27_io/ios_base/storage/2.cc: Fail on Darwin 8.[0-4].* only.
* testsuite/23_containers/vector/resize/1.cc: Same.
Co-Authored-By: Mike Stump <mrs@apple.com>
From-SVN: r117428
2006-10-04 07:57:34 +00:00