Commit Graph

85252 Commits

Author SHA1 Message Date
Tobias Burnus 242633d6ea re PR fortran/34660 (elemental and dummy procedure)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34660
        * resolve.c (resolve_formal_arglist): Reject dummy procedure in
        ELEMENTAL functions.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34660
        * gfortran.dg/elemental_args_check_2.f90: New.

From-SVN: r131349
2008-01-06 10:18:43 +01:00
Tobias Burnus a5c655e832 re PR fortran/34662 (inout argument with parameter)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34662
        * interface.c (compare_actual_formal): Reject parameter
        actual to intent(out) dummy.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34662
        * gfortran.dg/intent_out_3.f90: New.

From-SVN: r131348
2008-01-06 10:07:47 +01:00
GCC Administrator 5c09795d82 Daily bump.
From-SVN: r131346
2008-01-06 00:17:27 +00:00
Andreas Tobler d7b07cc730 re PR testsuite/32843 (libffi.call/return_sc.c)
2008-01-05  Andreas Tobler  <a.tobler@schweiz.org>

	PR testsuite/32843
	* src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
	signed/unsigned int8/16 for X86_DARWIN.
	Updated copyright info.
	Handle one and two byte structs with special cif->flags.
	* src/x86/ffitarget.h: Add special types for one and two byte structs.
	Updated copyright info.
	* src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
	sysv.S
	Remove code to pop args from the stack after call.
	Special-case signed/unsigned for int8/16, one and two byte structs.
	(ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
	FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
	FFI_TYPE_SINT32.
	Updated copyright info.

From-SVN: r131343
2008-01-05 21:49:41 +01:00
Uros Bizjak 5a37a60ccb i386.c (ix86_builtin_reciprocal): Remove check for TARGET_RECIP.
* config/i386/i386.c (ix86_builtin_reciprocal): Remove check
        for TARGET_RECIP.
        (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.

From-SVN: r131342
2008-01-05 21:33:33 +01:00
Richard Sandiford a6514ef2c0 stabs-1.m: Allow labels to be begin with $L as well as .L.
gcc/testsuite/
	* objc.dg/stabs-1.m: Allow labels to be begin with $L as well as .L.

From-SVN: r131341
2008-01-05 16:58:00 +00:00
Richard Sandiford 1a8a3a5ef4 c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
gcc/
	* c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.

From-SVN: r131340
2008-01-05 16:57:00 +00:00
Richard Sandiford 2a4430a6f9 mips.c (mips_in_small_data_p): Reinstate size > 0 check.
gcc/
	* config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.

From-SVN: r131339
2008-01-05 16:47:50 +00:00
Jerry DeLisle 2fd7985e1b re PR fortran/34676 (IO error delayed)
2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34676
	* gfortran.dg/list_read_8.f90: New test.

From-SVN: r131338
2008-01-05 16:12:00 +00:00
Jerry DeLisle fa347f2232 re PR fortran/34676 (IO error delayed)
2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34676
	* io/list_read.c (next_char): Only save the EOF condition for later if
	advance="no".

From-SVN: r131337
2008-01-05 16:00:40 +00:00
Jakub Jelinek 58fcda212f re PR tree-optimization/34618 (ICE with -fmudflap and vectorization)
PR tree-optimization/34618
	* tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
	flag from T.

	* testsuite/libmudflap.c/pass62-frag.c: New test.

From-SVN: r131336
2008-01-05 13:06:54 +01:00
Uros Bizjak f1bf33ce52 re PR target/34673 (ICE in extract_insn, at recog.c:1990)
PR target/34673
        * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
        in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
        Update copyright year.

        * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
        Update copyright year.
        * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
        using NR fixup.

From-SVN: r131335
2008-01-05 12:52:39 +01:00
Zhouyi Zhou 12a6309e7e tree-vrp.c (find_conditional_asserts): Remove redundant check that edge does not point to current bb before changing...
* tree-vrp.c (find_conditional_asserts): Remove redundant check that
        edge does not point to current bb before changing need_assert.

From-SVN: r131333
2008-01-05 10:31:24 +01:00
GCC Administrator 9ed6c6fa7f Daily bump.
From-SVN: r131331
2008-01-05 00:17:34 +00:00
Andrew Haley d5b7beb930 re PR libgcj/34444 (Class.getEnclosingClass() returns null on enclosed class)
2008-01-04  Andrew Haley  <aph@redhat.com>

	PR libgcj/34444
	* java/lang/natClass.cc (Class::getEnclosingClass): Call
	getDeclaringClass().

From-SVN: r131326
2008-01-04 17:18:56 +00:00
Richard Guenther bdb69beee9 re PR tree-optimization/34029 (internal compiler error: verify_stmts failed)
2008-01-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/34029
	* tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
	for verifying purposes if they are is_gimple_min_invariant.

	* gcc.c-torture/compile/pr34029-1.c: New testcase.
	* gcc.c-torture/compile/pr34029-2.c: Likewise.

From-SVN: r131325
2008-01-04 15:56:41 +00:00
Andrew Haley 578c21cb86 re PR java/17779 (ICE: Seg fault)
2008-01-04  Andrew Haley  <aph@redhat.com>

        PR java/17779
        * jcf-parse.c (parse_zip_file_entries): Move decl to compile on
        C90.

From-SVN: r131324
2008-01-04 15:13:53 +00:00
Aldy Hernandez ffed8a0113 re PR tree-optimization/34448 (ICE in declare_inline_vars, at tree-inline.c:3243)
PR tree-optimization/34448
        PR tree-optimization/34465
        * gimplify.c (gimplify_init_constructor): Add new parameter
        notify_temp_creation.  Use it.
        (gimplify_modify_expr_rhs): Take volatiles into account when
        optimizing constructors.
        Do not optimize constructors if gimplify_init_constructor will dump to
        memory.
        * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
        * gcc.c-torture/compile/pr34448.c: New.

From-SVN: r131323
2008-01-04 14:49:28 +00:00
Jakub Jelinek b5ca517cae re PR gcov-profile/34609 (ICE with "-ftest-coverage" and references)
PR gcov-profile/34609
	* tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
	return_slot if result is TREE_ADDRESSABLE.

	* g++.dg/gcov/gcov-6.C: New test.

From-SVN: r131322
2008-01-04 14:58:30 +01:00
Paolo Carlini a9fe2f76d7 re PR c++/34611 (Broken diagnostic: 'tree_list' not supported by dump_expr)
2008-01-04  Paolo Carlini  <pcarlini@suse.de>
	    Jakub Jelinek  <jakub@redhat.com>

	PR c++/34611
	* error.c (dump_template_argument): Deal with TREE_LIST.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r131321
2008-01-04 13:57:34 +00:00
Richard Guenther 9e9f7b9c19 re PR tree-optimization/31081 (Inliner messes up SSA for abnormals)
2008-01-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/31081
	* g++.dg/torture/pr31081-1.C: New testcase.
	* g++.dg/torture/pr31081-2.C: Likewise.

From-SVN: r131320
2008-01-04 11:16:17 +00:00
Andrew Haley 5e96e6c04b re PR java/17779 (ICE: Seg fault)
2008-01-03  Andrew Haley  <aph@redhat.com>

        PR java/17779
        * jcf-parse.c (parse_zip_file_entries): Unset TYPE_ALIAS_SET if
        we're about to re-layout the type.

From-SVN: r131319
2008-01-04 11:06:34 +00:00
Richard Sandiford 6a3d1d4957 mips.md (sqrt_condition): Tweak comment.
gcc/
	* config/mips/mips.md (sqrt_condition): Tweak comment.
	(recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.

gcc/testsuite/
	* gcc.target/mips/rsqrt-1.c: Require -mgp64.
	* gcc.target/mips/rsqrt-2.c: Likewise.
	* gcc.target/mips/rsqrt-4.c: New test.

From-SVN: r131318
2008-01-04 10:26:41 +00:00
Tobias Burnus 3c7215130f re PR fortran/34557 (Rejects valid: EQUIVALENCE of character substrings)
2008-01-04  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34557
       * primary.c (match_varspec): Gobble whitespace before
       checking for '('.

2008-01-04  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34557
       * gfortran.dg/equiv_substr.f90: New.

From-SVN: r131317
2008-01-04 10:11:26 +01:00
GCC Administrator 33af36f7fe Daily bump.
From-SVN: r131314
2008-01-04 00:18:33 +00:00
Tom Tromey 6fc3c3c033 re PR c/34457 (ICE with VLA and -combine)
gcc/
	PR c/34457:
	* c-common.c (c_type_hash): Handle VLAs.
gcc/testsuite
	PR c/34457:
	* gcc.dg/pr34457-2.c: New file.
	* gcc.dg/pr34457-1.c: New file.

From-SVN: r131311
2008-01-04 00:14:31 +00:00
Eric Botcazou 1af0d73792 Tidy.
From-SVN: r131310
2008-01-03 23:26:18 +00:00
Jan Hubicka 0723b99a2e Fix incorrectly applied patch in last commit.
From-SVN: r131309
2008-01-03 23:03:26 +00:00
Sebastian Pop 6b6fa4e9e3 re PR tree-optimization/34458 (ICE in int_cst_value, at tree.c:8047 at -O3)
2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>

	Revert fix for PR tree-optimization/34458.

From-SVN: r131308
2008-01-03 22:59:48 +00:00
Sebastian Pop 2726bafeee re PR tree-optimization/34458 (ICE in int_cst_value, at tree.c:8047 at -O3)
2008-01-02  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/34458
	* tree-data-ref.c (dd_int_cst_value): New.
	(initialize_matrix_A, compute_overlap_steps_for_affine_1_2,
	analyze_subscript_affine_affine, build_classic_dist_vector_1,
	add_multivariate_self_dist, init_omega_eq_with_af): Use 
	dd_int_cst_value instead of int_cst_value.

	* testsuite/gcc.dg/tree-ssa/pr34458.c: New.

From-SVN: r131307
2008-01-03 21:59:38 +00:00
Jan Hubicka 045685a9b5 re PR tree-optimization/31081 (Inliner messes up SSA for abnormals)
PR tree-optimization/31081
	* tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
	0 when inlining and not inlining to first basic block.
	(remap_decl): When var is initialized to 0, don't set default_def.
	(expand_call_inline): Set entry_bb.
	* tree-inline.h (copy_body_data): Add entry_bb.

From-SVN: r131306
2008-01-03 21:23:26 +00:00
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