aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2006-06-08re PR target/26427 (with -fsection-anchors with zero sized structs)Mike Stump6-3/+56
PR target/26427 * config/darwin.c (darwin_asm_output_anchor): Disable -fsection-anchors on darwin for now. * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise. * rs6000/rs6000.c (optimization_options): Likewise. testsuite: * gcc.dg/pr26427.c: Test to ensure that -fsection-anchors doesn't produce bad code on darwin. From-SVN: r114498
2006-06-08re PR fortran/27958 (assignments to and from zero-sized string selections ↵Francois-Xavier Coudert4-0/+45
not handled) PR fortran/27958 * trans-expr.c (gfc_conv_substring): If the substring start is greater than its end, the length of the substring is zero, and not negative. (gfc_trans_string_copy): Don't generate a call to _gfortran_copy_string when destination length is zero. * gcc/testsuite/gfortran.dg/substr_2.f: New test. From-SVN: r114496
2006-06-08re PR fortran/27786 ([4.1 only] Bad interaction between Cray pointer, ↵Asher Langton4-2/+14
assumed-size array and bounds checking) * cray_pointers_2.f90: Add -fbounds-check compile flag. PR fortran/27786 * trans-array.c (gfc_conv_array_ref): Eliminate bounds checking for assumed-size Cray pointees. From-SVN: r114495
2006-06-08re PR target/27421 (ICE with invalid array in struct)Volker Reichelt4-0/+25
PR target/27421 * config/i386/i386.c (classify_argument): Skip fields with invalid types in unions. * gcc.dg/union-3.c: New test. From-SVN: r114494
2006-06-08cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.Steven Bosscher2-2/+7
* cse.c (flush_hash_table): Use VOIDmode to invalidate a REG. (cse_insn): Likewise for the stack_pointer_rtx. From-SVN: r114492
2006-06-08intrinsic.c (add_subroutine): Make make_noreturn() conditional on the ↵Steven G. Kargl2-2/+9
appropriate symbol name. 2006-06-08 Steven G. Kargl <kargls@comcat.net> * intrinsic.c (add_subroutine): Make make_noreturn() conditional on the appropriate symbol name. From-SVN: r114490
2006-06-08tree-ssa-dom.c (record_conditions): Only record "unordered" conditions from ↵Roger Sayle2-17/+47
floating point comparisons. * tree-ssa-dom.c (record_conditions): Only record "unordered" conditions from floating point comparisons. From-SVN: r114489
2006-06-08re PR middle-end/27733 (Large compile time regression)Paolo Bonzini2-1/+12
2006-06-08 Paolo Bonzini <bonzini@gnu.org> PR middle-end/27733 * expmed.c (struct alg_hash_entry): Fix type of field T to match synth_mult argument. (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT. From-SVN: r114488
2006-06-08expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to ↵Andrew Haley5-28/+76
get_symbol_table_index(). 2006-06-08 Andrew Haley <aph@redhat.com> * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to get_symbol_table_index(). (maybe_rewrite_invocation): Set SPECIAL if we need to access a private method. (build_known_method_ref): New arg: special. Pass it to get_symbol_table_index. (get_symbol_table_index): Put SPECIAL in the TREE_PURPOSE field of the method list. (build_invokevirtual): New arg: special. Pass it to get_symbol_table_index. (expand_invoke): New variable: special. Pass it to maybe_rewrite_invocation(). Pass it to build_known_method_ref(). * class.c (build_symbol_entry): Add new arg: special. Use it to build the symbol table conbstructor. (emit_symbol_table): Extract SPECIAL from the method list and pass it to build_symbol_entry(). * parse.y (patch_invoke): Call maybe_rewrite_invocation() and set special accordingly. From-SVN: r114487
2006-06-08re PR target/27863 (ICE in check_cfg, at haifa-sched.c:4615)Maxim Kuvyrkov2-0/+26
2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru> PR target/27863 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic block boundaries. From-SVN: r114484
2006-06-08re PR middle-end/27116 (Incorrect integer division (wrong sign).)Richard Guenther5-8/+34
2006-06-08 Richard Guenther <rguenther@suse.de> PR middle-end/27116 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR only, if overflow is defined and not trapping. (negate_expr): Likewise. * gcc.dg/torture/pr27116.c: New testcase. * gcc.dg/pr15785-1.c: Remove test for invalid transformation. From-SVN: r114483
2006-06-08re PR rtl-optimization/27872 (Internal compiler error in verify_loop_structure)Zdenek Dvorak2-1/+8
PR tree-optimization/27872 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP flag on the new exit edge of the unrolled loop. From-SVN: r114482
2006-06-08re PR rtl-optimization/26449 (ICE in loop invariant motion)Zdenek Dvorak4-0/+30
PR rtl-optimization/26449 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails. * gcc.dg/pr26449.c: New test. From-SVN: r114481
2006-06-08re PR middle-end/27793 (num_ssa_names inconsistent or immediate use iterator ↵Andrew MacLeod4-29/+71
wrong) 2006-06-07 Andrew MacLeod <amacleod@redhat.com> PR middle-end/27793 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate referenced_variables with matching DECL_UID's. (find_referenced_vars): Make sure duplicate list is empty to start. (referenced_var_p): Remove. (referenced_var_check_and_insert): Renamed from referenced_var_insert. Check if var is in the list, and add if needed. Update the duplicate list if a different var is in the list with the same DECL_UID. (add_referenced_var): Call routine to check and insert. * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates. * tree-flow.h (referenced_vars_dup_list): External declaration. From-SVN: r114480
2006-06-08Daily bump.GCC Administrator1-1/+1
From-SVN: r114478
2006-06-07t-elf (MULTILIB_MATCHES): Combine two entries into single entry.Fred Fish2-2/+6
* config/mips/t-elf (MULTILIB_MATCHES): Combine two entries into single entry. From-SVN: r114472
2006-06-07re PR c++/27601 (ICE (in fold_offsetof_1, at c-common.c:5998) on strange ↵Volker Reichelt7-2/+37
offsetof) PR c++/27601 * cp-tree.h (finish_offsetof): Add prototype. * semantics.c (finish_offsetof): New function. * parser.c (cp_parser_builtin_offsetof): Call it instead of fold_offsetof. * pt.c (tsubst_copy_and_build): Likewise. * g++.dg/ext/offsetof1.C: Test member functions. From-SVN: r114469
2006-06-07* gcc.dg/pr27095.c: Improve scanning.Steve Ellcey2-1/+10
From-SVN: r114467
2006-06-07re PR target/27390 (gcc.target/x86_64/abi/test_complex_returning.c execution ↵Paolo Bonzini2-7/+18
fails at -O0) 2006-06-07 Paolo Bonzini <bonzini@gnu.org> PR target/27390 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of the imaginary and real parts of a clobbered register. Emit insn to set the imaginary part. From-SVN: r114462
2006-06-07re PR fortran/23091 (ICE in gfc_trans_auto_array_allocation)Paul Thomas9-14/+243
2006-06-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/23091 * resolve.c (resolve_fl_variable): Error if an automatic object has the SAVE attribute. PR fortran/24168 * expr.c (simplify_intrinsic_op): Transfer the rank and the locus to the simplified expression. PR fortran/25090 PR fortran/25058 * gfortran.h : Add int entry_id to gfc_symbol. * resolve.c : Add static variables current_entry_id and specification_expr. (resolve_variable): During code resolution, check if a reference to a dummy variable in an executable expression is preceded by its appearance as a parameter in an entry. Likewise check its specification expressions. (resolve_code): Update current_entry_id on EXEC_ENTRY. (resolve_charlen, resolve_fl_variable): Set and reset specifiaction_expr. (is_non_constant_shape_array): Do not return on detection of a variable but continue to resolve all the expressions. (resolve_codes): set current_entry_id to an out of range value. 2006-06-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/23091 * gfortran.dg/saved_automatic_1.f90: New test. PR fortran/24168 * gfortran.dg/array_simplify_1.f90: New test. PR fortran/25090 * gfortran.dg/entry_dummy_ref_1.f90: New test. PR fortran/25058 * gfortran.dg/entry_dummy_ref_2.f90: New test. From-SVN: r114461
2006-06-07Daily bump.GCC Administrator1-1/+1
From-SVN: r114456
2006-06-06re PR c++/27177 (ICE in build_simple_base_path, at cp/class.c:474)Mark Mitchell4-1/+37
PR c++/27177 * call.c (standard_conversion): Require that the derived type be complete when performing a derived-to-base conversion. PR c++/27177 * g++.dg/expr/cast7.C: New test. From-SVN: r114448
2006-06-06gcc-dg.exp (gcc-dg-test-1): Detect and report ICE.Janis Johnson4-0/+32
* lib/gcc-dg.exp (gcc-dg-test-1): Detect and report ICE. * lib/gcc-defs.exp (tool_check_compile): Ditto. * lib/fortran-torture.exp (fortran-torture-compile, fortran-torture-execute): Ditto. From-SVN: r114445
2006-06-06t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c in lieu of unwind-dw2-fde.c.Peter Lemieszewski2-2/+7
2006-06-06 Peter Lemieszewski <lemie@us.ibm.com> * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c in lieu of unwind-dw2-fde.c. From-SVN: r114443
2006-06-06time.c: New file.Francois-Xavier Coudert2-0/+8
* config/mingw32/time.c: New file. * configure.tgt: Use it. * config/i386/mingw32.h (GOMP_SELF_SPECS): Define. From-SVN: r114442
2006-06-06re PR target/27842 (Miscompile of Altivec vec_abs (float) inside loop)Ulrich Weigand4-31/+55
PR target/27842 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove. ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove. ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use V4SImode temporaries and operations instead. PR target/27842 * gcc.dg/vmx/pr27842.c: New test. From-SVN: r114438
2006-06-06gcj.texi (libgcj Runtime Properties): Document ↵David Daney2-0/+21
gnu.gcj.runtime.NameFinder.show_raw and... 2006-06-05 David Daney <ddaney@avtrex.com> * gcj.texi (libgcj Runtime Properties): Document gnu.gcj.runtime.NameFinder.show_raw and gnu.gcj.runtime.NameFinder.remove_unknown. 2006-06-05 David Daney <ddaney@avtrex.com> * gnu/gcj/runtime/NameFinder.java (show_raw): New field. (showRaw): New method. * stacktrace.cc : Include gnu/gcj/runtime/StringBuffer.h. (getLineNumberForFrame): Show IP offset in trace if line number not available and show_raw true. From-SVN: r114437
2006-06-06jcf-dump.c (print_access_flags): Handle varargs, bridge, synthetic, enum, ↵Tom Tromey3-3/+23
annotation. * jcf-dump.c (print_access_flags): Handle varargs, bridge, synthetic, enum, annotation. * jcf.h (ACC_BRIDGE): New macro. (ACC_VARARGS): Likewise. (ACC_SYNTHETIC): Likewise. (ACC_ENUM): Likewise. (ACC_ANNOTATION): Likewise. From-SVN: r114436
2006-06-06t-linux64 (tp-bit.c): Append to tp-bit.c, not dp-bit.c.Joseph Myers2-1/+6
* config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not dp-bit.c. From-SVN: r114433
2006-06-06re PR ada/27769 (cross-gnatmake needs host gcc)Laurent GUERBY2-3/+8
2006-06-06 Laurent GUERBY <laurent@guerby.net> PR ada/27769 mlib-utl.adb: Use Program_Name. From-SVN: r114429
2006-06-06Fix up whitespacingMike Stump27-436/+418
From-SVN: r114428
2006-06-06* objc-act.c: Remove prototype for objc_build_volatilized_type.Mike Stump2-1/+4
From-SVN: r114427
2006-06-06Makefile.in: Rename to htmldir to build_htmldir to avoid installing during ↵Mike Stump10-20/+101
build. * Makefile.in: Rename to htmldir to build_htmldir to avoid installing during build. java,fortran: * Make-lang.in: Rename to htmldir to build_htmldir to avoid installing during build. treelang: * Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid installing during build. From-SVN: r114426
2006-06-06params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default value to 0.Maxim Kuvyrkov7-3/+30
2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru> * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default value to 0. * doc/invoke.texi (max-sched-extend-regions-iters): Document. * config/ia64/ia64.c (params.h): New header. (ia64_optimization_options): New function to adjust parameters. * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype. * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro. * config/ia64/t-ia64 (ia64.o): Add dependence from params.h . From-SVN: r114425
2006-06-06re PR fortran/27897 (ICE on common block with the same name as the program.)Paul Thomas3-3/+9
2006-06-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/27897 * match.c (gfc_match_common): Fix code typo. Remove sym->name, since sym is NULL, and replace with name. * fortran/ChangeLog : Fix typo: 20838 to 20839. * testsuite/ChangeLog : The same. From-SVN: r114422
2006-06-06Daily bump.GCC Administrator1-1/+1
From-SVN: r114419
2006-06-05re PR libfortran/27895 (problem with RESHAPE and zero-sized arrays)François-Xavier Coudert4-9/+192
PR libfortran/27895 * resolve.c (compute_last_value_for_triplet): New function. (check_dimension): Correctly handle zero-sized array sections. Add checking on last element of array sections. * gfortran.dg/bounds_check_3.f90: New test. From-SVN: r114414
2006-06-05* stor-layout.c (debug_rli): Fix a typo in a debug message.Kazu Hirata2-1/+5
From-SVN: r114409
2006-06-05data.c (gfc_assign_data_value): Fix comment typo.Steven G. Kargl2-2/+6
2006-06-05 Steven G. Kargl <kargls@comcast.net> * data.c (gfc_assign_data_value): Fix comment typo. Remove a spurious return. From-SVN: r114406
2006-06-05Fix typo...Mike Stump1-1/+1
From-SVN: r114405
2006-06-05* objc.dg/objc-fast-4.m: Skip for ppc64.Mike Stump2-2/+9
From-SVN: r114404
2006-06-05re PR testsuite/27705 (gcc.dg/sibcall-7.c execution test fails)Steve Ellcey2-1/+9
PR testsuite/27705 * gcc.dg/sibcall-7.c: Do not run on ia64-*-* platforms. From-SVN: r114391
2006-06-05re PR target/27051 (Compiler generates .sdata when -mno-sdata specified)Steve Ellcey2-1/+7
PR target/27051 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA. From-SVN: r114390
2006-06-05re PR tree-optimization/26360 (Autovectorization of char -> int loop gets ICE)Dorit Nuzman4-1/+40
Changelog: PR tree-optimization/26360 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern stmts. testsuite/Changelog: PR tree-optimizations/26360 * gcc.dg/vect/vect.exp: Compile tests prefixed with "no-tree-dce" with -fno-tree-dce. * gcc.dg/vect/no-tree-dce-pr26360.c: New test. Co-Authored-By: Victor Kaplansky <victork@il.ibm.com> From-SVN: r114386
2006-06-05re PR fortran/14067 (no warning when character data statement overflows ↵Paul Thomas10-13/+163
declared size) 2006-06-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/14067 * data.c (create_character_intializer): Add warning message for truncated string. PR fortran/16943 * symbol.c : Include flags.h. (gfc_add_type): If a procedure and types are the same do not throw an error unless standard is less than gnu or pedantic. PR fortran/20838 * parse.c (parse_do_block): Error if named block do construct does not have a named enddo. PR fortran/27655 * check.c (gfc_check_associated): Pick up EXPR_NULL for pointer as well as target and put error return at end of function. 2006-06-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/14067 * gfortran.dg/data_char_1.f90: Add messages for truncated strings. PR fortran/16943 * gfortran.dg/func_decl_2.f90: New test. PR fortran/20838 * gfortran.dg/do_2.f90: New test. PR fortran/27655 * gfortran.dg/associated_3.f90: New test. From-SVN: r114385
2006-06-05re PR c++/27819 (ICE casting static const variables)Mark Mitchell10-50/+159
PR c++/27819 * decl.c (cp_finish_decl): Process initializers for static data members with non-dependent initializers, even in templates. PR c++/27722 * decl.c (maybe_deduce_size_from_array_init): If the declaration is erroneous, give it an erroneous type. (layout_var_decl): If the type is erroneous, give up. (check_initializer): Likewise. PR c++/27807 * cp-tree.h (TYPE_OBJ_P): New macro. (TYPE_PTROB_P): Use it. (TYPE_REF_OBJ_P): Likewise. * semantics.c (finish_compound_literal): Do not permit compound literals of non-object types. PR c++/27806 * typeck.c (original_type): Robustify. PR c++/27819 * g++.dg/template/static25.C: New test. PR c++/27722 * g++.dg/init/array21.C: New test. PR c++/27807 * g++.dg/ext/complit7.C: New test. PR c++/27806 * g++.dg/parse/ptrmem5.C: New test. From-SVN: r114382
2006-06-05re PR middle-end/27382 (ICE in c_common_truthvalue_conversion with label ↵Roger Sayle1-0/+9
address) PR middle-end/27382 PR c/27150 * gcc.dg/pr27150-1.c: New testcase. * gcc.dg/pr27382-1.c: New testcase. * gcc.dg/pr27382-2.c: New testcase. From-SVN: r114381
2006-06-05re PR middle-end/27382 (ICE in c_common_truthvalue_conversion with label ↵Roger Sayle6-3/+43
address) PR middle-end/27382 * c-common.c (c_common_truthvalue_conversion): Explicitly check for LABEL_DECL before calling DECL_WEAK. PR c/27150 * c-typeck.c (build_binary_op): Likewise, explicitly check for LABEL_DECL and PARM_DECL. * gcc.dg/pr27150-1.c: New testcase. * gcc.dg/pr27382-1.c: New testcase. * gcc.dg/pr27382-2.c: New testcase. Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu> From-SVN: r114380
2006-06-05re PR c/25161 (Internal compiler error (segfault) instead of error message)Joseph Myers4-1/+67
PR c/25161 PR c/27020 * c-decl.c (grokdeclarator): Disallow variably modified types at file scope. Avoid marking shared array type of constant size as VLA. testsuite: * gcc.dg/array-10.c: New test. From-SVN: r114378
2006-06-05re PR c++/27804 (ICE with invalid const variable)Volker Reichelt6-3/+24
PR c++/27804 * init.c (constant_value_1): Return decl instead of error_mark_node for invalid initializers. PR c++/27804 * g++.dg/init/const4.C: New test. * g++.dg/init/member1.C: Add error-marker. * g++.dg/other/fold1.C: Adjust error-marker. From-SVN: r114377