Uros Bizjak
77bd31de7e
re PR tree-optimization/33920 (Segfault in combine_blocks/tree-if-conv.c)
...
PR tree-optimization/33920
* tree-if-conv.c (tree_if_conversion): Force predicate of single
successor bb to true when predecessor bb has NULL predicate.
(find_phi_replacement_condition): Assert that tmp_cond is non-null.
testsuite/ChangeLog:
PR tree-optimization/33920
* gcc.dg/tree-ssa/pr33290.c: New test.
From-SVN: r129696
2007-10-28 15:57:50 +01:00
Richard Sandiford
c8d6f9e7e5
mips.md: Add combiner patterns for DImode extensions of HImode and QImode truncations.
...
gcc/
* config/mips/mips.md: Add combiner patterns for DImode extensions
of HImode and QImode truncations. Reformat HImode <- QImode pattern
for consistency.
From-SVN: r129695
2007-10-28 11:37:50 +00:00
Richard Sandiford
9a4a025a01
re PR target/33895 (mips.c:6868: error: 'mips_output_dwarf_dtprel' defined but not used)
...
gcc/
PR target/33895
* config/mips/mips.c (mips_output_dwarf_dtprel): Add ATTRIBUTE_UNUSED.
From-SVN: r129694
2007-10-28 11:19:49 +00:00
Andreas Krebbel
137e9a70b7
dce.c (delete_unmarked_insns): Just delete the RETVAL and LIBCALL notes if...
...
2007-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
* dce.c (delete_unmarked_insns): Just delete the RETVAL and
LIBCALL notes if they are about to be moved to the same insn.
From-SVN: r129693
2007-10-28 10:14:21 +00:00
GCC Administrator
c7a7567d52
Daily bump.
...
From-SVN: r129690
2007-10-28 00:17:15 +00:00
H.J. Lu
b4e9c2c65d
re PR regression/33926 (FAIL: gcc.dg/dfp/convert-dfp-round-thread.c execution test)
...
2007-10-27 H.J. Lu <hongjiu.lu@intel.com>
PR regression/33926
* configure.ac: Replace have_cc_tls with gcc_cv_have_cc_tls.
* configure: Regenerated.
From-SVN: r129687
2007-10-27 16:22:57 -07:00
Jerry DeLisle
19e8402866
re PR fortran/31306 (ICE with implicit character variables)
...
2007-10-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/31306
* gfortran.dg/argument_check_7.f90: New test.
* gfortran.dg/argument_check_8.f90: New test.
From-SVN: r129686
2007-10-27 18:25:43 +00:00
Jerry DeLisle
cba28dad93
re PR fortran/31306 (ICE with implicit character variables)
...
2007-10-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/31306
* decl.c (char_len_param_value): Add check for conflicting attributes of
function argument.
From-SVN: r129685
2007-10-27 17:59:59 +00:00
Uros Bizjak
735da29ae3
i386-2.C: Include bmmintrin.h.
...
* g++.dg/other/i386-2.C: Include bmmintrin.h. Add -msse5 to dg-options.
* gcc.target/i386/sse-13.c: Also include mm3dnow.h. Add
"-march=k8 -m3dnow" to check 3dnow and 3dnowA intrinsics.
* gcc.target/i386/sse-14.c: Ditto.
From-SVN: r129684
2007-10-27 18:17:49 +02:00
Jakub Jelinek
d5aa2cf0de
error.c (reinit_cxx_pp): Initialize cxx_pp->enclosing_scope to current_function_decl rather than 0.
...
* error.c (reinit_cxx_pp): Initialize cxx_pp->enclosing_scope
to current_function_decl rather than 0.
From-SVN: r129683
2007-10-27 17:56:49 +02:00
Jakub Jelinek
1e3eacc7cb
re PR c++/33844 (Broken diagnostic: 'dotstar_expr/member_ref' not supported by pp_cxx_unqualified_id)
...
PR c++/33844
* cxx-pretty-print.c (pp_cxx_pm_expression) <case MEMBER_REF>: Print
->* rather than .*.
* error.c (dump_expr): Handle MEMBER_REF and DOTSTAR_EXPR.
* g++.dg/other/ptrmem8.C: New test.
From-SVN: r129682
2007-10-27 17:55:34 +02:00
Jason Merrill
d02dbde6c7
re PR c++/5247 (Memory eating infinite loop on default parameter in constructor which is reference to class)
...
PR c++/5247
* call.c (convert_default_arg): Detect recursion.
From-SVN: r129681
2007-10-27 11:19:45 -04:00
Tobias Burnus
1200489c46
re PR fortran/33862 (Support .FTN file extension for Fortran fixed-format source files)
...
2007-10-27 Tobias Burnus <burnus@net-b.de>
PR fortran/33862
* lang-specs.h: Support .ftn and .FTN extension, use CPP for .FOR.
* options.c (form_from_filename): Support .ftn extension.
* gfortran.texi: Document support of .for and .ftn file extension.
From-SVN: r129680
2007-10-27 16:43:53 +02:00
Tobias Burnus
094817b070
mk-kinds-h.sh: Change LANG=C to LC_ALL=C.
...
2007-10-27 Tobias Burnus <burnus@net-b.de>
* mk-kinds-h.sh: Change LANG=C to LC_ALL=C.
From-SVN: r129679
2007-10-27 16:07:14 +02:00
Paolo Carlini
f0112db9b3
stl_algobase.h (struct __miter_base): Add.
...
2007-10-27 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algobase.h (struct __miter_base): Add.
(__copy_move_a2, __copy_move_backward_a2): Add.
(copy, copy_backward, move, move_backward): Adjust, call *a2 helpers.
* include/bits/cpp_type_traits.h (struct __is_move_iterator): Add.
* include/bits/streambuf_iterator.h (__copy_move_a<>): Rename
to __copy_move_a2.
* include/std/streambuf (friend __copy_move_a<>): Likewise.
* testsuite/25_algorithms/copy/move_iterators/1.cc: New.
* testsuite/25_algorithms/copy_backward/move_iterators/1.cc: Likewise.
* include/bits/stl_iterator.h (__normal_iterator<>::_Iterator_type):
Rename to iterator_type.
From-SVN: r129678
2007-10-27 12:07:04 +00:00
Jakub Jelinek
094a5fe265
re PR c++/33842 (Broken diagnostic: 'offsetof_expr' not supported by dump_expr)
...
PR c++/33842
* cxx-pretty-print.h (pp_cxx_offsetof_expression): New prototype.
* cxx-pretty-print.c (pp_cxx_primary_expression): Handle
OFFSETOF_EXPR.
(pp_cxx_offsetof_expression_1, pp_cxx_offsetof_expression): New
functions.
* error.c (dump_expr): Handle OFFSETOF_EXPR.
* g++.dg/template/error34.C: New test.
From-SVN: r129677
2007-10-27 13:58:26 +02:00
Uros Bizjak
d449b45833
ivopts-1.C: Also search for "offset: 4294967292".
...
* g++.dg/tree-ssa/ivopts-1.C: Also search for "offset: 4294967292".
From-SVN: r129676
2007-10-27 13:54:19 +02:00
Richard Guenther
03c4c2e0c7
re PR tree-optimization/33870 (miscompiles sqlite)
...
2007-10-27 Richard Guenther <rguenther@suse.de>
PR tree-optimization/33870
* tree-ssa-operands.c (add_vars_for_offset): Reduce code
duplication. Remove redundant call to access_can_touch_variable.
(add_vars_for_bitmap): New helper for recursing over MPT contents.
(add_virtual_operand): Use it.
* gcc.dg/tree-ssa/alias-15.c: New testcase.
* gcc.c-torture/execute/pr33870.c: Likewise.
From-SVN: r129675
2007-10-27 11:10:09 +00:00
Jerry DeLisle
2bd1ffcd4a
re PR fortran/33162 (INTRINSIC functions as ACTUAL argument)
...
2007-10-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33162
* gfortran.dg/argument_checking_9.f90: New test.
From-SVN: r129674
2007-10-27 00:57:26 +00:00
Jerry DeLisle
15ead8598a
re PR fortran/33162 (INTRINSIC functions as ACTUAL argument)
...
2007-10-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33162
* intrinsic.h: Add prototypes for four new functions, gfc_check_datan2,
gfc_check_dprod, gfc_check_fn_d, and gfc_check_x_yd.
* intrinsic.c (add_functions): Add double precision checks for dabs,
dacos, dacosh, dasin, dasinh, datan, datanh, datan2, dbesj0, dbesj1,
dbesy0, dbesy1, dcos, dcosh, ddim, derf, derfc, dexp, dgamma,
dlgama, dlog, dlog10, dmod, dsign, dsin, dsinh, dsqrt, dtan, and dtanh.
Add real check dprod.
* check.c (gfc_check_datan2): New function to check for double precision
argumants. (gfc_check_dprod, gfc_check_fn_d, and gfc_check_x_yd): Ditto.
From-SVN: r129673
2007-10-27 00:54:20 +00:00
Paolo Carlini
61fcb9fb0c
throw_allocator.h (throw_allocator<>:: construct<>(pointer, _Args&&...)): Add.
...
2007-10-26 Paolo Carlini <pcarlini@suse.de>
* include/ext/throw_allocator.h (throw_allocator<>::
construct<>(pointer, _Args&&...)): Add.
* include/ext/pool_allocator.h (__pool_alloc<>::
construct<>(pointer, _Args&&...)): Likewise.
(construct(pointer, const _Tp&)): Cast pointer to void*.
* include/ext/bitmap_allocator.h (bitmap_allocator<>::
construct<>(pointer, _Args&&...)): Add.
(construct(pointer, const _Tp&)): Cast pointer to void*.
* include/ext/new_allocator.h (new_allocator<>::
construct<>(pointer, _Args&&...)): Add.
(construct(pointer, const _Tp&)): Cast pointer to void*.
* include/ext/malloc_allocator.h (malloc_allocator<>::
construct<>(pointer, _Args&&...)): Add.
(construct(pointer, const _Tp&)): Cast pointer to void*.
* include/ext/array_allocator.h (array_allocator<>::
construct<>(pointer, _Args&&...)): Add.
(construct(pointer, const _Tp&)): Cast pointer to void*.
* include/ext/mt_allocator.h (__mt_alloc<>::
construct<>(pointer, _Args&&...)): Add.
(construct(pointer, const _Tp&)): Cast pointer to void*.
* testsuite/util/testsuite_allocator.h (tracker_allocator<>::
construct<>(pointer, _Args&&...)): Add.
(construct(pointer, const _Tp&)): Cast pointer to void*.
(uneq_allocator<>::construct<>(pointer, _Args&&...)): Add.
(construct(pointer, const _Tp&)): Cast pointer to void*.
* testsuite/ext/mt_allocator/variadic_construct.cc: New.
* testsuite/ext/new_allocator/variadic_construct.cc: Likewise.
* testsuite/ext/throw_allocator/variadic_construct.cc: Likewise.
* testsuite/ext/malloc_allocator/variadic_construct.cc: Likewise.
* testsuite/ext/pool_allocator/variadic_construct.cc: Likewise.
* testsuite/ext/bitmap_allocator/variadic_construct.cc: Likewise.
* testsuite/ext/array_allocator/variadic_construct.cc: Likewise.
From-SVN: r129672
2007-10-27 00:41:21 +00:00
John David Anglin
00e65cfa89
re PR fortran/31608 (wrong types in character array/scalar binop)
...
PR fortran/31608
* pa.h (ASM_PN_FORMAT): Delete define.
From-SVN: r129671
2007-10-27 00:21:02 +00:00
GCC Administrator
02c99cd052
Daily bump.
...
From-SVN: r129669
2007-10-27 00:17:28 +00:00
Janis Johnson
d228aace97
invoke.texi (Option Summary, [...]): Remove -fbounds-check.
...
* doc/invoke.texi (Option Summary, optimizations): Remove
-fbounds-check. Add -fassociative-math, -freciprocal-math,
-ftree-vrp and -funit-at-a-time. Change -fno-split-wide-types to
-fsplit-wide-types to match later entry. Break up a long line.
(Option Summary, code gen options) Add -fno-stack-limit. Add
missing @gol to the end of a line.
(Optimization Options): Remove -fbounds-check, which is also
documented under Code Generation Options. Remove =n from
index entry for -ftree-parallelize-loops. Change -fno-cprop-registers
to -fcprop-registers to match other options, and say when it is
enabled rather than disabled. Remove extra index entry for
-fno-cx-limited-range. Add index entries for -fstack-protector
and -fstack-protector-all.
(Code Gen Options): Add index entry for -ftls-model.
From-SVN: r129664
2007-10-26 22:03:57 +00:00
Jerry DeLisle
efb6658632
invoke.texi: Fix typo in -fmax-errors=.
...
2007-10-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* invoke.texi: Fix typo in -fmax-errors=.
From-SVN: r129663
2007-10-26 21:59:07 +00:00
Anatoly Sokolov
96ac4c9bbd
avr.c (avr_OS_task_function_p): Add new function.
...
* config/avr/avr.c (avr_OS_task_function_p): Add new function.
(avr_regs_to_save): Handle functions with 'OS_task' attribute.
(avr_simple_epilogue, expand_prologue, avr_asm_function_end_prologue,
expand_epilogue, output_movhi): Don't handle 'main' function.
(avr_attribute_table): Add 'OS_task' function attribute.
* config/avr/avr.h (machine_function): Remove 'is_main' field, add
'is_OS_task' field.
* config/avr/avr.md (return_from_main_epilogue): Remove insn.
(return_from_epilogue, return_from_interrupt_epilogue): Don't handle
'main' function.
* config/avr/avr.opt (minit-stack): Remove.
From-SVN: r129662
2007-10-27 01:36:25 +04:00
Eric Botcazou
bc4c8d897f
tree-nested.c (get_trampoline_type): Fix thinko.
...
* tree-nested.c (get_trampoline_type): Fix thinko.
From-SVN: r129661
2007-10-26 21:20:36 +00:00
Jason Merrill
91a77d68e7
re PR c++/24791 (ICE on invalid instantiation of template's static member)
...
PR c++/24791
* pt.c (get_template_info): New fn.
(template_class_depth): Use it.
(push_template_decl_real): Check that the template args of the
definition match the args of the previous declaration.
From-SVN: r129660
2007-10-26 15:54:10 -04:00
Douglas Gregor
4552f5a2c8
re PR c++/33601 (ICE with pointers to members using "const C" as the class identifier)
...
2007-10-26 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33601
* tree.c (build_offset_type): Build canonical type based on the
TYPE_MAIN_VARIANT of the base type.
2007-10-26 Douglas Gregor <doug.gregor@gmail.com>
* g++.dg/other/pr33601.C: New.
From-SVN: r129659
2007-10-26 19:34:03 +00:00
Tobias Burnus
84f2b1d168
mk-kinds-h.sh: Add "LANG=C".
...
2007-10-26 Tobias Burnus <burnus@net-b.de>
* mk-kinds-h.sh: Add "LANG=C".
From-SVN: r129658
2007-10-26 21:01:42 +02:00
Paolo Carlini
07021f8c63
re PR c++/31988 (new operator should not permit default first parameter)
...
cp/
2007-10-26 Paolo Carlini <pcarlini@suse.de>
PR c++/31988
* decl2.c (coerce_new_type): Do not allow a default argument for
the first parameter.
testsuite/
2007-10-26 Paolo Carlini <pcarlini@suse.de>
PR c++/31988
* g++.dg/init/new25.C: New.
From-SVN: r129657
2007-10-26 18:32:41 +00:00
Douglas Gregor
2b536806af
re PR c++/33839 (ICE with decltype)
...
2007-10-26 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33839
* parser.c (cp_parser_decltype): Return ERROR_MARK_NODE if we
don't see the leading '('. Only lookup names if we get an
IDENTIFIER_NODE.
2007-10-26 Douglas Gregor <doug.gregor@gmail.com>
* g++.dg/cpp0x/pr33839.C: New.
From-SVN: r129656
2007-10-26 17:53:56 +00:00
Benjamin Kosnik
3f28024c07
unordered_map: Fix for parallel mode.
...
2007-10-26 Benjamin Kosnik <bkoz@redhat.com>
* include/std/unordered_map: Fix for parallel mode.
* include/std/unordered_set: Same.
From-SVN: r129654
2007-10-26 14:38:12 +00:00
Daniel Jacobowitz
90a1c3cea3
reorg.c (emit_delay_sequence): Move insn locator from the first insn to the sequence.
...
* reorg.c (emit_delay_sequence): Move insn locator from the
first insn to the sequence.
From-SVN: r129651
2007-10-26 12:19:34 +00:00
Jakub Jelinek
0f1e332126
re PR c++/33744 (function-style cast and '>' not allowed in template argument)
...
PR c++/33744
* parser.c (cp_parser_parenthesized_expression_list): Set
greater_than_is_operator_p to true in between the parens.
* g++.dg/template/arg6.C: New test.
From-SVN: r129648
2007-10-26 13:57:46 +02:00
Paolo Carlini
9b70c6b078
re PR c++/31747 (ICE combining static and extern)
...
cp/
2007-10-26 Paolo Carlini <pcarlini@suse.de>
PR c++/31747
* decl.c (grokdeclarator): In case of conflicting specifiers
just return error_mark_node.
testsuite/
2007-10-26 Paolo Carlini <pcarlini@suse.de>
PR c++/31747
* g++.dg/parse/crash39.C: New.
From-SVN: r129647
2007-10-26 09:57:12 +00:00
Uros Bizjak
0f095169ae
ivopts-1.C: Remove xfail on the search for "&x\\\[5\\\]" pattern.
...
* g++.dg/tree-ssa/ivopts-1.C: Remove xfail on the search for
"&x\\\[5\\\]" pattern. Search for "offset: 0x0f+fc" insetad of
"offset: -4B".
From-SVN: r129646
2007-10-26 10:33:39 +02:00
Ollie Wild
3459ca230e
expr.c (cxx_expand_expr): Removed.
...
gcc/cp/
* expr.c (cxx_expand_expr): Removed.
* cp-tree.h (exx_expand_expr): Removed.
* cp-objcp-common.h (LANK_HOOKS_EXPAND_EXPR): Replace cxx_expand_expr
with c_expand_expr.
From-SVN: r129645
2007-10-26 08:19:14 +00:00
Samuel Tardieu
eb80272af1
ipa-pure-const.c (check_decl): Return immediately when pure_const_state has been set to IPA_NEITHER.
...
* ipa-pure-const.c (check_decl): Return immediately when
pure_const_state has been set to IPA_NEITHER.
From-SVN: r129644
2007-10-26 09:08:05 +02:00
GCC Administrator
70c0cfc9e5
Daily bump.
...
From-SVN: r129642
2007-10-26 00:17:11 +00:00
David Daney
ccbf3d066f
* g++.dg/tree-ssa/copyprop-1.C: Remove xfail.
...
From-SVN: r129639
2007-10-26 00:06:51 +00:00
Paolo Carlini
6735e374b2
re PR c++/33843 (Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id)
...
2007-10-25 Paolo Carlini <pcarlini@suse.de>
PR c++/33843
* cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with BIT_NOT_EXPR.
2007-10-25 Paolo Carlini <pcarlini@suse.de>
PR c++/33843
* g++.dg/template/error32.C: New.
From-SVN: r129637
2007-10-25 23:42:49 +00:00
Francois-Xavier Coudert
1fa6df85b1
libgfortran.h (GFC_REAL_*_HUGE, [...]): Remove.
...
* libgfortran.h (GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS,
GFC_REAL_*_RADIX): Remove.
* mk-kinds-h.sh: Define GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS and
GFC_REAL_*_RADIX. Don't define GFC_REAL_LARGEST_FORMAT and
GFC_REAL_LARGEST.
From-SVN: r129636
2007-10-25 23:32:07 +00:00
Francois-Xavier Coudert
691307546e
re PR fortran/29784 ([doc] No I/O conversion of logical/integer)
...
PR fortran/29784
* gfortran.texi: Document that there is no logical/integer
conversion performed during I/O operations.
From-SVN: r129635
2007-10-25 23:27:12 +00:00
Doug Evans
7ac6e35e01
Update my email address.
...
From-SVN: r129633
2007-10-25 21:07:12 +00:00
Jakub Jelinek
98a5fa9468
re PR libgomp/33275 (Transient libgomp.fortran/omp_parse3.f90 -O0 failure)
...
PR libgomp/33275
* testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
Make x and y integers rather than (implicit) reals. Add private (j)
clause to the last omp parallel.
From-SVN: r129631
2007-10-25 22:25:12 +02:00
Andreas Tobler
ef99c95ece
Makefile.am (parallel_headers): Remove timing.h.
...
2007-10-25 Andreas Tobler <a.tobler@schweiz.org>
* include/Makefile.am (parallel_headers): Remove timing.h.
* include/Makefile.in: Regenerate.
From-SVN: r129630
2007-10-25 22:22:40 +02:00
Johannes Singler
740936e08e
multiway_merge.h: Removed Timing<inactive_tag>
...
2007-10-25 Johannes Singler <singler@ira.uka.de>
* include/parallel/multiway_merge.h: Removed Timing<inactive_tag>
* include/parallel/random_shuffle.h: Same
* include/parallel/set_operations.h: Same
* include/parallel/tree.h: Same
* include/parallel/multiway_mergesort.h: Same
* include/parallel/timing.h: Removed completely
From-SVN: r129629
2007-10-25 17:07:56 +00:00
Ira Rosen
8d358a4aae
re PR tree-optimization/33833 (ICE in build2_stat, at tree.c:3110 at -O3, tree-vectorizer)
...
PR tree-optimization/33833
* tree-vect-analyze.c (vect_analyze_data_refs): Use POINTER_PLUS_EXPR
and convert init to sizetype in inner_base construction.
From-SVN: r129628
2007-10-25 16:41:45 +00:00
David Daney
7f1d67caa7
* gcc.dg/tree-ssa/20040204-1.c: Un-xfail for mips*-*-*.
...
From-SVN: r129627
2007-10-25 16:11:27 +00:00