Thomas Koenig
9370b3c0f9
re PR fortran/34565 (internal write to string array fails)
...
2008-01-03 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/34565
* io/io.h: Adjust protoypes for open_internal(),
next_array_record() and init_loop_spec().
* io/list_read.c (next_char): Use argument "finished"
of next_array_record to check for end on internal file.
* io/unit.c: Calculate the offset for an array
internal file and supply this informatin to open_internal().
* io/unix.c (open_internal): Set the offset for the internal
file on open.
* io/transfer.c (init_loop_spec): Calculate the starting
record in case of negative strides. Return size of 0 for
an empty array.
(next_array_record): Use an extra flag to signal that the
array is finished.
(next_record_r): Use the new flag to next_array_record().
(next_record_w): Likewise.
2008-01-03 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/34565
* gfortran.dg/internal_readwrite_1.f90: New test.
* gfortran.dg/internal_readwrite_2.f90: New test.
From-SVN: r131305
2008-01-03 19:49:38 +00:00
Tom Tromey
33ae48375f
re PR preprocessor/34602 (Internal error with invalid #line directive)
...
libcpp
PR preprocessor/34602.
* directives.c (do_line): Don't try to spell EOF token.
(do_linemarker): Add comment.
gcc/testsuite
PR preprocessor/34602:
* gcc.dg/cpp/pr34602.c: New file.
From-SVN: r131304
2008-01-03 17:58:26 +00:00
Jakub Jelinek
cac67c0835
re PR c++/34619 (ICE with "-fmudflap" and templates)
...
PR c++/34619
* cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
before returning.
* testsuite/libmudflap.c++/pass61-frag.cxx: New test.
From-SVN: r131302
2008-01-03 11:28:30 +01:00
Tero Koskinen
e0658eda3c
re PR ada/34647 (Ada runtime includes unsafe calls to mktemp and tmpname on OpenBSD)
...
2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
gcc/ada/
PR ada/34647
* adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
on OpenBSD as is done on other BSD systems.
PR ada/34645
* sysdep.c (__gnat_ttyname, getc_immediate_nowait,
getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
I/O.
PR ada/34644
* env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
clearenv().
PR ada/34646
* init.c (__gnat_error_handler, __gnat_install_handler,
__gnat_init_float): Define for OpenBSD.
* initialize.c (__gnat_initialize): Define for OpenBSD.
From-SVN: r131301
2008-01-03 09:35:04 +00:00
Jakub Jelinek
2092ee7d08
re PR tree-optimization/29484 (tree-inline.c bug with local static vars)
...
PR tree-optimization/29484
* tree-inline.c (inline_forbidden_p_2): New function.
(inline_forbidden_p): Disallow inlining if some static var
has an address of a local LABEL_DECL in its initializer.
* doc/extend.texi (Labels as Values): Document &&foo behaviour
vs. inlining.
* gcc.c-torture/execute/20071220-1.c: New test.
* gcc.c-torture/execute/20071220-2.c: New test.
From-SVN: r131300
2008-01-03 09:33:57 +01:00
Sebastian Pop
097392de6b
re PR tree-optimization/34635 (tree check: expected polynomial_chrec, have integer_cst in add_multivariate_self_dist, at tree-data-ref.c:2813)
...
2007-12-19 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/34635
* tree-data-ref.c (add_other_self_distances): Make sure that the
evolution step is constant.
* gcc.dg/tree-ssa/pr34635.c: New.
* gcc.dg/tree-ssa/pr34635-1.c: New.
From-SVN: r131275
2008-01-03 02:38:24 +00:00
John David Anglin
8c7cc333be
re PR middle-end/34562 (FAIL: g++.dg/other/first-global.C scan-assembler _GLOBAL__I_foobar)
...
PR middle-end/34562
* g++.dg/other/first-global.C: Also accept _GLOBAL__I_65535_0_foobar in
scan-assembler check.
From-SVN: r131274
2008-01-03 02:33:12 +00:00
GCC Administrator
06448093c6
Daily bump.
...
From-SVN: r131272
2008-01-03 00:17:43 +00:00
Jakub Jelinek
99819c6385
re PR middle-end/34608 (ICE with "-ftest-coverage -fopenmp")
...
PR middle-end/34608
* omp-low.c (expand_omp_parallel): Purge dead EH edges in the
child fn.
* g++.dg/gomp/pr34608.C: New test.
From-SVN: r131264
2008-01-03 00:33:54 +01:00
Tobias Schlüter
caf3856072
Rotate Fortran ChangeLogs.
...
From-SVN: r131261
2008-01-02 18:54:50 +01:00
Paolo Carlini
265a75a2bf
2008-01-02 Paolo Carlini <pcarlini@suse.de>
...
* ChangeLog rotation.
From-SVN: r131260
2008-01-02 15:11:59 +00:00
Richard Sandiford
1463dfa49e
tree-sra.c (scalarize_init): Insert the generate_element_init statements after the generate_element_zero...
...
gcc/
* tree-sra.c (scalarize_init): Insert the generate_element_init
statements after the generate_element_zero statements.
From-SVN: r131258
2008-01-02 13:04:11 +00:00
Richard Guenther
ee6ec6667c
re PR tree-optimization/34093 (ICE in ssa_operand_alloc, at tree-ssa-operands.c:484)
...
2008-01-02 Richard Guenther <rguenther@suse.de>
PR middle-end/34093
PR middle-end/31976
* tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
for very large number of operands instead of ICEing.
* gcc.c-torture/compile/pr34093.c: New testcase.
From-SVN: r131257
2008-01-02 12:35:38 +00:00
Arthur Norman
6893e828e5
(ix86_expand_prologue): Save red-zone while stack probing.
...
PR 34013.
From-SVN: r131255
2008-01-02 11:46:17 +01:00
Douglas Gregor
1a7817e4e8
c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when in C++0x mode.
...
2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
* c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
in C++0x mode.
2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
* parser.c (cp_parser_check_decl_spec): Don't warn about "long
long" in C++0x mode; change the warning to note that "long long"
is only unsupported in C++98 mode.
2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
* g++.dg/cpp0x/long_long.C: New.
From-SVN: r131254
2008-01-02 04:35:50 +00:00
GCC Administrator
224e5fa743
Daily bump.
...
From-SVN: r131252
2008-01-02 00:17:05 +00:00
Volker Reichelt
882e337b65
re PR libmudflap/26442 (ICE on valid unreachable code (and no name) when compiling with -fmudflap)
...
PR libmudflap/26442
* tree-mudflap.c (mx_register_decls): Guard warning by
!DECL_ARTIFICIAL check.
* testsuite/libmudflap.c++/pass60-frag.cxx: New test.
From-SVN: r131249
2008-01-01 23:08:05 +00:00
Andrew Pinski
6b7d5ac969
tag_manager.c: Include stdlib.h.
...
2008-01-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
* gcc.target/spu/tag_manager.c : Include stdlib.h.
* gcc.target/spu/Wmain.c: Fix the line numbers for the
warning on the function main.
From-SVN: r131248
2008-01-01 13:26:29 -08:00
Paolo Carlini
fac9044d26
re PR libstdc++/34095 (parallel mode: segfault in std::sort)
...
2008-01-01 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/34095
* include/parallel/multiway_merge.h (multiway_merge_bubble,
parallel_multiway_merge): Together with ::operator new use
::operator delete.
* include/parallel/losertree.h (LoserTree<>::~LoserTree): Likewise.
* include/parallel/quicksort.h (parallel_sort_qs_divide): Likewise.
* include/parallel/random_shuffle.h (parallel_random_shuffle_drs_pu,
sequential_random_shuffle): Likewise.
* include/parallel/tree.h (_M_not_sorted_bulk_insertion_construction):
Likewise.
* include/parallel/multiway_mergesort.h (parallel_sort_mwms_pu,
parallel_sort_mwms): Likewise.
* include/parallel/partial_sum.h (parallel_partial_sum_linear):
Likewise.
* testsuite/25_algorithms/sort/34095.cc: New.
From-SVN: r131247
2008-01-01 19:05:41 +00:00
Paolo Carlini
33d95150e4
34636.cc: Fix Copyright year.
...
2008-01-01 Paolo Carlini <pcarlini@suse.de>
* testsuite/25_algorithms/sort/34636.cc: Fix Copyright year.
From-SVN: r131246
2008-01-01 16:52:38 +00:00
Paolo Carlini
c5be97a5f0
re PR libstdc++/34636 (Parallel sort fails)
...
2008-01-01 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/34636
* include/parallel/algobase.h (lexicographical_compare_switch(...,
random_access_iterator_tag, random_access_iterator_tag)): Careful
with undereferenceable iterators.
* testsuite/25_algorithms/sort/34636.cc: New.
From-SVN: r131245
2008-01-01 16:42:34 +00:00
Jakub Jelinek
f02ffa1207
sse.md (sse5_pperm, [...]): Fix constraints.
...
* config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
sse5_perm<mode>): Fix constraints.
* gcc.target/i386/i386.exp (check_effective_target_sse5): Use __v8hi
rather than __v2di type.
From-SVN: r131244
2008-01-01 02:13:27 +01:00
GCC Administrator
f844c20ffc
Daily bump.
...
From-SVN: r131242
2008-01-01 00:17:36 +00:00
Paul Thomas
6669dbdf74
re PR fortran/34558 (ICE with same TYPE in both program and interface)
...
2007-12-31 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34558
* interface.c (gfc_compare_types): Prevent linked lists from
putting this function into an endless recursive loop.
2007-12-31 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34558
* gfortran.dg/linked_list_1.f90: New test.
From-SVN: r131239
2007-12-31 18:10:55 +00:00
Paul Thomas
63287e10a8
re PR fortran/34558 (ICE with same TYPE in both program and interface)
...
2007-12-31 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34558
* interface.c (gfc_compare_types): Prevent linked lists from
putting this function into an endless recursive loop.
2007-12-31 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34558
* gfortran.dg/linked_list_1.f90: New test.
From-SVN: r131238
2007-12-31 18:05:10 +00:00
John David Anglin
881466d851
re PR driver/33772 (collect2 doesn't strip .sl version)
...
PR driver/33772
* collect2.c (SHLIB_SUFFIX): Define if not defined.
(write_c_file_stat): Use SHLIB_SUFFIX.
* som.h (SHLIB_SUFFIX): Define.
* doc/tm.texi (SHLIB_SUFFIX): Document.
From-SVN: r131235
2007-12-31 15:02:59 +00:00
GCC Administrator
64aba73899
Daily bump.
...
From-SVN: r131233
2007-12-31 00:17:30 +00:00
Paolo Carlini
ba60f6f952
tuple (_Tuple_impl<>::_Tuple_impl(typename std::remove_reference<>::type&&, typename std::remove_reference<>::type&&...), [...]): Add.
...
2007-12-30 Paolo Carlini <pcarlini@suse.de>
* include/std/tuple (_Tuple_impl<>::_Tuple_impl(typename
std::remove_reference<>::type&&, typename
std::remove_reference<>::type&&...),
_Tuple_impl(const _Tuple_impl<>&), _Tuple_impl(_Tuple_impl&&),
_Tuple_impl(_Tuple_impl<>&&), operator=(_Tuple_impl&&),
operator=(const _Tuple_impl<>&), operator=(_Tuple_impl<>&&)): Add.
(tuple<>::tuple(const _Elements&...), tuple(_UElements&&...),
tuple(tuple&&), tuple(const tuple<>&), tuple(tuple<>&&),
operator=(tuple&&), operator=(const tuple<>&), operator=(tuple<>&&)):
Likewise.
(tuple<_T1, _T2>::tuple(const _T1&, const _T2&, tuple(_U1&&, _U2&&),
tuple(tuple&&), tuple(tuple<>&&), tuple(pair<>&&), operator=(tuple&&),
operator=(tuple<>&&), operator=(pair<>&&)): Likewise.
(tuple<>::tuple(typename __add_c_ref<_Elements>::type...),
tuple<_T1, _T2>::tuple(typename __add_c_ref<>::type,
typename __add_c_ref<>::type)): Remove.
* testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc: New.
* testsuite/20_util/tuple/creation_functions/tie2.cc: Likewise.
* testsuite/20_util/tuple/moveable.cc: Likewise.
From-SVN: r131230
2007-12-30 22:44:42 +00:00
GCC Administrator
da6ea4c802
Daily bump.
...
From-SVN: r131227
2007-12-30 00:17:36 +00:00
Gerald Pfeifer
4c963dced4
* config/os/mingw32/error_constants.h: Fix typo in comment.
...
From-SVN: r131224
2007-12-29 22:33:59 +00:00
Uros Bizjak
3dc0f23ad0
sse.md ("*divv4sf3"): Rename to "sse_divv4sf3".
...
* config/i386/sse.md ("*divv4sf3"): Rename to "sse_divv4sf3".
("*sse_rsqrtv4sf2"): Export.
("*sse_sqrtv4sf2"): Ditto.
* config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_RSQRTPS_NR,
IX86_BUILTIN_SQRTPS_NR]: New constants.
(struct builtin_description) [IX86_BUILTIN_DIVPS]: Use
CODE_FOR_sse_divv4sf3.
[IX86_BUILTIN_SQRTPS]: Use CODE_FOR_sse_sqrtv4sf2.
[IX86_BUILTIN_SQRTPS_NR]: New.
[IX86_BUILTIN_RSQRTPS_NR]: Ditto.
(ix86_init_mmx_sse_builtins): Initialize __builtin_ia32_rsqrtps_nr and
__builtin_ia32_sqrtps_nr.
(ix86_builtin_vectorized_function): Convert BUILT_IN_SQRTF to
IX86_BUILTIN_SQRTPS_NR.
(ix86_builtin_reciprocal): Convert IX86_BUILTIN_SQRTPS_NR to
IX86_BUILTIN_RSQRTPS_NR.
From-SVN: r131220
2007-12-29 16:35:14 +01:00
Richard Sandiford
c6b2c5a191
objc.exp (objc_libgcc_s_path): Set objc_libgcc_s_path instead of appending to it.
...
gcc/testsuite/
* lib/objc.exp (objc_libgcc_s_path): Set objc_libgcc_s_path
instead of appending to it.
From-SVN: r131219
2007-12-29 15:14:16 +00:00
Danny Smith
537a336b3f
error_constants.h (enum posix_errno): Move inside namespace posix_error
...
* config/os/mingw32/error_constants.h (enum posix_errno): Move
inside namespace posix_error
From-SVN: r131218
2007-12-29 05:32:16 +00:00
GCC Administrator
01e493bf4c
Daily bump.
...
From-SVN: r131216
2007-12-29 00:17:22 +00:00
Brian Dessent
e0d9197566
invoke.texi (Optimize Options): Add missing opindex for -fno-toplevel-reorder.
...
* doc/invoke.texi (Optimize Options): Add missing opindex for
-fno-toplevel-reorder.
From-SVN: r131213
2007-12-28 12:18:05 +00:00
GCC Administrator
69dd3885bf
Daily bump.
...
From-SVN: r131210
2007-12-28 00:17:29 +00:00
Dorit Nuzman
0e1b778acf
re PR tree-optimization/34591 (internal compiler error: in cost_for_stmt, at tree-vect-transform.c:98)
...
PR tree-optimization/34591
* tree-vect-trasnform.c (vect_estimate_min_profitable_iters): Skip
stmts (including reduction stmts) that are not live.
From-SVN: r131206
2007-12-27 19:14:17 +00:00
Thomas Koenig
e608204146
re PR libfortran/22423 (Warnings when building libgfortran)
...
2007-12-27 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/22423
* intrinsics/pack_generic.c (pack): Change type of mask argument
to gfc_array_l1 * in prototype and function.
(pack_char): Likewise.
* intrinsics/unpack_generic.c (unpack1): Likewise.
(unpack1_char): Likewise.
(unpack0): Likewise.
(unpack0_char): Likewise.
From-SVN: r131204
2007-12-27 15:00:10 +00:00
Samuel Tardieu
18bc9ccabb
re PR ada/34553 (Unsafe calls to mktemp and tmpname)
...
gcc/ada/
PR ada/34553
* adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
instead of mktemp() or tmpnam() on NetBSD.
From-SVN: r131201
2007-12-27 13:04:14 +00:00
Paolo Carlini
83588991c1
re PR libstdc++/34538 ([DR 697] combination of sstream, invalid_argument and -std=c++0x breaks valid code)
...
2007-12-27 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/34538
* config/os/generic/error_constants.h (enum posix_errno): Move
inside namespace posix_error.
* include/std/system_error (error_category::posix,
error_code::error_code(posix_errno), error_code::posix): Adjust.
* src/system_error.cc (gnu_error_category::posix): Likewise.
* testsuite/27_io/basic_ostream/inserters_other/wchar_t/error_code.cc:
Adjust.
* testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
Likewise.
* testsuite/19_diagnostics/error_code/cons/1.cc: Likewise.
* testsuite/19_diagnostics/error_code/operators/bool.cc: Likewise.
* testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise.
* testsuite/19_diagnostics/error_code/operators/not_equal.cc:
Likewise.
* testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Likewise.
* testsuite/19_diagnostics/error_category/cons/default.cc: Likewise.
* testsuite/19_diagnostics/error_category/operators/equal.cc:
Likewise.
* testsuite/19_diagnostics/error_category/operators/not_equal.cc:
Likewise.
* testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc:
Likewise.
* testsuite/19_diagnostics/system_error/cons-1.cc: Likewise.
* testsuite/19_diagnostics/system_error/what-4.cc: Likewise.
* testsuite/19_diagnostics/headers/system_error/34538.cc: New.
From-SVN: r131200
2007-12-27 12:59:01 +00:00
Thomas Koenig
ceac3d59ad
re PR fortran/34594 (On error and END, no jump to ERR=<label>)
...
2007-12-27 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/34594
* runtime/error.c: If there was a previous error, don't
mask it with another error mesage, EOF or EOR condition.
2007-12-27 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/34594
* gfortran.dg/direct_io_8.f90: New test case.
From-SVN: r131199
2007-12-27 12:33:52 +00:00
Richard Sandiford
edbf8b1698
Makefile.in (all): Use install-leaf rather than install.
...
libgcc/
* Makefile.in (all): Use install-leaf rather than install.
(install): Split most of the rule into...
(install-leaf): ...this new one.
From-SVN: r131198
2007-12-27 11:26:06 +00:00
Jakub Jelinek
22ccaaeea7
re PR target/34281 (ARM: varargs broken with 64bit parameters.)
...
PR target/34281
* config/arm/arm.c (arm_setup_incoming_varargs): If last named
argument needs double word alignment and cum->nregs is odd, account
for the inserted padding.
* gcc.c-torture/execute/20071213-1.c: New test.
From-SVN: r131196
2007-12-27 09:31:54 +01:00
Jakub Jelinek
e2925ff210
re PR debug/34535 (FAIL: libmudflap.c++/fail24-frag.cxx ICE)
...
PR debug/34535
* tree-mudflap.c (mf_make_builtin): Make decl artificial
and don't emit debug info for it.
From-SVN: r131195
2007-12-27 09:28:16 +01:00
Paolo Carlini
82c45e8179
34595.C: Rename to 34595.cc.
...
2007-12-26 Paolo Carlini <pcarlini@suse.de>
* testsuite/25_algorithms/copy/34595.C: Rename to 34595.cc.
From-SVN: r131194
2007-12-27 04:27:41 +00:00
GCC Administrator
4fd577c4ed
Daily bump.
...
From-SVN: r131192
2007-12-27 00:17:31 +00:00
Anatoly Sokolov
9628d76b2a
avr.h (LINK_SPEC, [...]): Move AT90USB82 and AT90USB162 devices from 'avr5' to 'avr35' architecture.
...
* config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Move AT90USB82
and AT90USB162 devices from 'avr5' to 'avr35' architecture.
(ASM_SPEC): Add 'avr35' architecture.
* config/avr/avr.c (avr_mcu_types): Move AT90USB82 and AT90USB162
devices from 'avr5' to 'avr35' architecture.
(avr_arch_types): Add "avr23" entries.
(avr_arch): Add 'ARCH_AVR35'.
* config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add 'avr35'.
(MULTILIB_MATCHES): Move AT90USB82 and AT90USB162 devices from 'avr5'
to 'avr35' architecture.
From-SVN: r131189
2007-12-27 01:02:14 +03:00
Paolo Carlini
5f6d5f0af6
re PR libstdc++/34595 (std::copy copies the output iterator before assigning)
...
2007-12-26 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/34595
* include/bits/stl_algobase.h (struct __cm_assign): Remove.
(struct __copy_move<true, false, _Category>,
struct __copy_move<true, false, random_access_iterator_tag>,
struct __copy_move_backward<true, false, _Category>,
struct __copy_move_backward<true, false, random_access_iterator_tag>):
Add.
(struct __copy_move, struct __copy_move_backward,
struct __copy_move<false, false, random_access_iterator_tag>,
struct __copy_move_backward<false, false, random_access_iterator_tag>):
Adjust.
* testsuite/25_algorithms/copy/34595.C: New.
From-SVN: r131188
2007-12-26 21:58:49 +00:00
Sebastian Pop
3dfb41c564
compareSumTests3: Changed to GPLv3.
...
2007-12-26 Sebastian Pop <sebastian.pop@amd.com>
* compareSumTests3: Changed to GPLv3.
* prepare_patch.sh: Same.
* uninclude: Same.
* dglib.pm: Same.
* gennews: Same.
* texi2pod.pl: Same.
* analyze_brprob: Same.
* gcc_build: Same.
From-SVN: r131186
2007-12-26 21:42:35 +00:00
Sebastian Pop
66d3504ca6
patch_tester.sh: Changed to GPLv3.
...
2007-12-26 Sebastian Pop <sebastian.pop@amd.com>
* patch_tester.sh: Changed to GPLv3.
From-SVN: r131185
2007-12-26 21:01:38 +00:00