aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-11-26func-indirect.c: New.Kai Tietz2-0/+28
2008-11-26 Kai Tietz <kai.tietz@onevision.com> * gcc.dg/callabi/func-indirect.c: New. From-SVN: r142214
2008-11-26re PR tree-optimization/37869 (PTA results wrong for "non-pointer" variables)Daniel Berlin2-34/+13
2008-11-25 Daniel Berlin <dberlin@dberlin.org> Richard Guenther <rguenther@suse.de> PR tree-optimization/37869 * tree-ssa-structalias.c (struct constraint_graph): Remove pt_used and number_incoming members. (build_pred_graph): Do not allocate them. (condense_visit): Do not use them. (label_visit): Likewise. (free_var_substitution_info): Do not free them. Co-Authored-By: Richard Guenther <rguenther@suse.de> From-SVN: r142213
2008-11-25re PR c++/28743 (ICE with invalid specialization)Jason Merrill4-3/+27
PR c++/28743 * decl2.c (check_classfn): Error rather than abort on parameter list mismatch. From-SVN: r142212
2008-11-26Daily bump.GCC Administrator1-1/+1
From-SVN: r142210
2008-11-25invoke.texi (ira-max-loops-num): Change semantics.Vladimir Makarov7-39/+134
2008-11-25 Vladimir Makarov <vmakarov@redhat.com> * doc/invoke.texi (ira-max-loops-num): Change semantics. * ira-int.h (struct ira_loop_tree_node): New member to_remove_p. * ira-color.c (allocno_spill_priority): New function. (remove_allocno_from_bucket_and_push, push_allocno_to_spill): Print more info about the spilled allocno. (push_allocnos_to_stack): Use allocno_spill_priority. Add more checks on bad spill. * ira-build.c (loop_node_to_be_removed_p): Remove. (loop_compare_func, mark_loops_for_removal): New functions. (remove_uneccesary_loop_nodes_from_loop_t): Use member to_remove_p. (remove_unnecessary_allocnos): Call mark_loops_for_removal. * ira.c (ira): Don't change flag_ira_algorithm. * params.def (ira-max-loops-num): Change the value. From-SVN: r142207
2008-11-25m68k.md (extendsidi2, [...]): Merge, clean up.Maxim Kuvyrkov4-16/+68
* config/m68k/m68k.md (extendsidi2, extendsidi2_mem): Merge, clean up. Disable unsupported alternative for ColdFire, add new alternative that ColdFire can handle. * gcc.c-torture/compile/20080929-1.c: New. From-SVN: r142205
2008-11-25regrename.c (merge_overlapping_regs): Add registers artificially defined at ↵Eric Botcazou2-0/+13
the top of the basic block to the set of... * regrename.c (merge_overlapping_regs): Add registers artificially defined at the top of the basic block to the set of live ones just before the first insn. From-SVN: r142203
2008-11-25* gfortran.dg/default_format_denormal_1.f90: Fix xfail for darwin.Janis Johnson2-1/+5
From-SVN: r142196
2008-11-25re PR middle-end/37843 (unaligned stack in main due to tail call optimization)H.J. Lu7-0/+77
gcc/ 2008-11-25 H.J. Lu <hongjiu.lu@intel.com> Joey Ye <joey.ye@intel.com> PR middle-end/37843 * config/i386/i386.c (ix86_function_ok_for_sibcall): Return false if we need to align the outgoing stack. (ix86_update_stack_boundary): Check parm_stack_boundary. gcc/testsuite/ 2008-11-25 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/37843 * gcc.target/i386/align-main-3.c: New. * gcc.target/i386/pr37843-1.c: Likewise. * gcc.target/i386/pr37843-2.c: Likewise. * gcc.target/i386/pr37843-3.c: Likewise. Co-Authored-By: Joey Ye <joey.ye@intel.com> From-SVN: r142193
2008-11-25module.c (gfc_dump_module): Report error on unlink only if errno != ENOENT.H.J. Lu2-1/+6
2008-11-25 H.J. Lu <hongjiu.lu@intel.com> * module.c (gfc_dump_module): Report error on unlink only if errno != ENOENT. From-SVN: r142192
2008-11-25re PR fortran/36463 (gfc_get_default_type(): Bad symbol)Mikael Morin4-2/+46
2008-11-25 Mikael Morin <mikael.morin@tele2.fr> PR fortran/36463 * expr.c (replace_symbol): Don't replace the symtree if the expresion is an intrinsic function. Don't create non-existent symtrees. Use symbol's name instead of symtree's, different in case of module procedure dummy arguments. 2008-11-25 Mikael Morin <mikael.morin@tele2.fr> PR fortran/36463 * gfortran.dg/proc_decl_20.f90: New test. From-SVN: r142191
2008-11-25re PR fortran/38248 (Ignored temporary module files manipulation errors)Jan Kratochvil2-3/+16
2008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com> PR fortran/38248 * module.c (gfc_dump_module): Check rename/unlink syscalls errors. From-SVN: r142190
2008-11-25re PR middle-end/38151 (structures with _Complex arguments are not passed ↵Richard Guenther6-58/+130
correctly) 2008-11-25 Richard Guenther <rguenther@suse.de> PR middle-end/38151 PR middle-end/38236 * tree-ssa-alias.c (struct alias_info): Remove written_vars. Remove dereferenced_ptrs_store and dereferenced_ptrs_load in favor of dereferenced_ptrs. (init_alias_info): Adjust. (delete_alias_info): Likewise. (compute_flow_insensitive_aliasing): Properly include all aliased variables. (update_alias_info_1): Use dereferenced_ptrs. (setup_pointers_and_addressables): Likewise. (get_smt_for): Honor ref-all pointers and pointers with known alias set properly. * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers. * gcc.c-torture/execute/pr38151.c: New testcase. * gcc.c-torture/execute/pr38236.c: Likewise. From-SVN: r142189
2008-11-25re PR fortran/37319 (gfortran.dg/function_kinds_5.f90 fails)Eric Botcazou2-2/+9
PR fortran/37319 * parse.c (match_deferred_characteristics): Make sure 'name' is initialized before reading it. From-SVN: r142188
2008-11-25re PR fortran/37803 (Call mpfr_check_range after setting emin/emax)Jerry DeLisle3-0/+8
2008-11-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/37803 * arith.c (gfc_check_real_range): Add mpfr_check_range. * simplify.c (gfc_simplify_nearest): Add mpfr_check_range. From-SVN: r142187
2008-11-25weak1.C: Don't xfail hppa*64*-*-*.John David Anglin2-1/+5
* g++.dg/eh/weak1.C: Don't xfail hppa*64*-*-*. From-SVN: r142183
2008-11-25* ChangeLog: Wix wrong PR number in my previous commit.Uros Bizjak1-1/+1
From-SVN: r142182
2008-11-25Daily bump.GCC Administrator1-1/+1
From-SVN: r142180
2008-11-25re PR c++/38256 (ICE with "operator auto")Uros Bizjak2-7/+24
PR target/38256 * config/i386/sync.md (memory_barrier_nosse): New insn (memory_barrier): Generate memory_barrier_nosse insn for !TARGET_SSE2. From-SVN: r142177
2008-11-24* config/m68k/m68k.md (cmpdi): Use (scratch) instead of pseudo.Maxim Kuvyrkov2-3/+7
From-SVN: r142176
2008-11-24mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.Richard Sandiford2-0/+30
gcc/ * config/mips/mips.h (ASM_OUTPUT_DEBUG_LABEL): Define. From-SVN: r142173
2008-11-24* gcc.c-torture/execute/pr36321.c: Don't rely on argv[0] being set.DJ Delorie2-1/+7
From-SVN: r142170
2008-11-24re PR fortran/38184 (invariant RESHAPE not expanded if SOURCE is empty)Mikael Morin4-3/+31
2008-11-24 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38184 * simplify.c (is_constant_array_expr): Return true instead of false if the array constructor is empty. 2008-11-24 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38184 * gfortran.dg/reshape_empty_1.f03: New test. From-SVN: r142168
2008-11-24re PR testsuite/38241 (g++.old-deja/g++.pt/const2.C fails on *-apple-darwin9)Jack Howarth2-0/+4
2008-11-24 Jack Howarth <howarth@bromo.med.uc.edu> PR testsuite/38241 * g++.old-deja/g++.pt/const2.C: Prune output for Darwin. From-SVN: r142164
2008-11-24re PR c++/38076 (FAIL: g++.dg/other/anon5.C)Jack Howarth2-1/+4
2008-11-24 Jack Howarth <howarth@bromo.med.uc.edu> PR testsuite/38076 * g++.dg/other/anon5.C: Skip on Darwin. From-SVN: r142163
2008-11-24default_format_denormal_1.f90: XFAIL on darwin8 and darwin9 subversions.Jack Howarth2-1/+6
2008-11-24 Jack Howarth <howarth@bromo.med.uc.edu> * gfortran.dg/default_format_denormal_1.f90: XFAIL on darwin8 and darwin9 subversions. From-SVN: r142162
2008-11-24re PR target/35018 ([m68k-elf] Gcc ouputs invalid asm when compiling with ↵Maxim Kuvyrkov4-3/+55
-O2 or higher) PR target/35018 * config/m68k/m68k.md (ok_for_coldfire, enabled): New attributes. (addsi_lshrsi_31): Add ColdFire-friendly alternatives. * gcc.target/m68k/pr35018.c: New. From-SVN: r142161
2008-11-24re PR target/36793 (x86-64 does not get __sync_synchronize right)Uros Bizjak3-15/+42
* config/i386/i386.md (UNSPECV_CMPXCHG): Rename from UNSPECV_CMPXCHG_[12]. * config/i386/sync.md: Use UNSPECV_CMPXCHG instead of UNSPECV_CMPXCHG_[12]. PR target/36793 * config/i386/sync.md (memory_barrier): New expander. From-SVN: r142160
2008-11-24re PR fortran/37779 (Missing RECURSIVE not detected)Daniel Kraft7-5/+109
2008-11-24 Daniel Kraft <d@domob.eu> PR fortran/37779 * resolve.c (resolve_procedure_expression): New method. (resolve_variable): Call it. (resolve_actual_arglist): Call gfc_resolve_expr for procedure arguments. 2008-11-24 Daniel Kraft <d@domob.eu> PR fortran/37779 * gfortran.dg/c_funloc_tests.f03: Added missing `RECURSIVE'. * gfortran.dg/c_funloc_tests_2.f03: Ditto. * gfortran.dg/recursive_check_4.f03: New test. * gfortran.dg/recursive_check_5.f03: New test. From-SVN: r142158
2008-11-24re PR middle-end/37135 (code size increase for struct assignment)Jakub Jelinek2-0/+28
PR middle-end/37135 * dse.c (find_shift_sequence): Optimize extraction from a constant. From-SVN: r142157
2008-11-24re PR fortran/35681 (wrong result for vector subscripted array expression in ↵Mikael Morin2-0/+88
MVBITS) 2008-11-24 Mikael Morin <mikael.morin@tele2.fr> PR fortran/35681 * gfortran.dg/elemental_dependency_1.f90: Really commit it. From-SVN: r142155
2008-11-24re PR fortran/34820 (internal compiler error: in ↵Paul Thomas10-38/+255
gfc_conv_descriptor_data_get, at fortran/trans-array.c:147) 2008-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/34820 * trans-expr.c (gfc_conv_function_call): Remove all code to deallocate intent out derived types with allocatable components. (gfc_trans_assignment_1): An assignment from a scalar to an array of derived types with allocatable components, requires a deep copy to each array element and deallocation of the converted rhs expression afterwards. * trans-array.c : Minor whitespace. * trans-decl.c (init_intent_out_dt): Add code to deallocate allocatable components of derived types with intent out. (generate_local_decl): If these types are unused, set them referenced anyway but allow the uninitialized warning. PR fortran/34143 * trans-expr.c (gfc_trans_subcomponent_assign): If a conversion expression has a null data pointer argument, nullify the allocatable component. PR fortran/32795 * trans-expr.c (gfc_trans_subcomponent_assign): Only nullify the data pointer if the source is not a variable. 2008-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/34820 * gfortran.dg/alloc_comp_constructor_6.f90 : New test. * gfortran.dg/alloc_comp_basics_1.f90 : Reduce expected refs to 'builtin_free' from 24 to 18. PR fortran/34143 * gfortran.dg/alloc_comp_constructor_5.f90 : New test. PR fortran/32795 * gfortran.dg/alloc_comp_constructor_4.f90 : New test. From-SVN: r142148
2008-11-24pa.c (function_arg): Revert 2008-10-26 change.John David Anglin2-1/+5
* pa.c (function_arg): Revert 2008-10-26 change. From-SVN: r142147
2008-11-24Daily bump.GCC Administrator1-1/+1
From-SVN: r142145
2008-11-23re PR fortran/37735 (Allocatable components in vectors of derived types ↵Paul Thomas4-4/+57
cause ICE on assignment) 2008-11-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/37735 * trans-array.c (structure_alloc_comps): Do not duplicate the descriptor if this is a descriptorless array! 2008-11-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/37735 * gfortran.dg/alloc_comp_assign_7.f90: New test. From-SVN: r142142
2008-11-23linux-atomic.c (EBUSY): Define if not _LP64.Helge Deller2-1/+15
* pa/linux-atomic.c (EBUSY): Define if not _LP64. (__kernel_cmpxchg): Return -EBUSY if the kernel LWS call succeeded and lws_ret is not equal to oldval. From-SVN: r142141
2008-11-23tmplattr9.C: Require weak.John David Anglin2-0/+2
* g++.dg/ext/tmplattr9.C: Require weak. From-SVN: r142139
2008-11-23static6.C: Remove xfail for *-*-hpux*.John David Anglin2-1/+5
* g++.old-deja/g++.pt/static6.C: Remove xfail for *-*-hpux*. From-SVN: r142138
2008-11-23re PR libfortran/38234 (In Reshape, SOURCE can be bigger than result)Thomas Koenig2-0/+20
2008-11-23 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/38234 * intrinsics/reshape_generic.c (reshape_internal): Source can be larger than shape. * m4/reshape.m4: Likewise. * generated/reshape_c10.c Regenerated. * generated/reshape_c16.c Regenerated. * generated/reshape_c4.c Regenerated. * generated/reshape_c8.c Regenerated. * generated/reshape_i16.c Regenerated. * generated/reshape_i4.c Regenerated. * generated/reshape_i8.c Regenerated. * generated/reshape_r10.c Regenerated. * generated/reshape_r16.c Regenerated. * generated/reshape_r4.c Regenerated. * generated/reshape_r8.c Regenerated. 2008-11-23 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/38234 * gfortran.dg/reshape_4.f90: New test. From-SVN: r142137
2008-11-23* ru.po: Update.Joseph Myers2-79/+83
From-SVN: r142135
2008-11-23sh.md (consttable_4): Call mark_symbol_refs_as_used.Kaz Kojima2-1/+8
* config/sh/sh.md (consttable_4): Call mark_symbol_refs_as_used. From-SVN: r142132
2008-11-23Daily bump.GCC Administrator1-1/+1
From-SVN: r142129
2008-11-22varasm.c (default_file_start): Suppress ASM_APP_OFF also with -dA and -dP.Andreas Schwab2-1/+7
* varasm.c (default_file_start): Suppress ASM_APP_OFF also with -dA and -dP. From-SVN: r142126
2008-11-22re PR libfortran/38225 (RESHAPE bounds with multi-dimensional SOURCE)Thomas Koenig2-0/+17
2008-11-22 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/38225 * intrinsics/reshape_generic.c (reshape_internal): Use all dimensions of source for bounds checking. * m4/reshape.m4: Likewise. * generated/reshape_c10.c Regenerated. * generated/reshape_c16.c Regenerated. * generated/reshape_c4.c Regenerated. * generated/reshape_c8.c Regenerated. * generated/reshape_i16.c Regenerated. * generated/reshape_i4.c Regenerated. * generated/reshape_i8.c Regenerated. * generated/reshape_r10.c Regenerated. * generated/reshape_r16.c Regenerated. * generated/reshape_r4.c Regenerated. * generated/reshape_r8.c Regenerated. 2008-11-22 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/38225 * gfortran.dg/reshape_3.f90: New test. From-SVN: r142125
2008-11-22re PR fortran/38160 (C Binding: Kind parameter checking too strict and too late)Tobias Burnus10-52/+70
2008-11-22 Tobias Burnus <burnus@net-b.de> PR fortran/38160 * trans-types.c (gfc_validate_c_kind): Remove function. * decl.c (gfc_match_kind_spec): Add C kind parameter check. (verify_bind_c_derived_type): Remove gfc_validate_c_kind call. (verify_c_interop_param): Update call. * gfortran.h (verify_bind_c_derived_type): Update prototype. (gfc_validate_c_kind): Remove. * symbol.c (verify_bind_c_derived_type): Update verify_c_interop * call. * resolve.c (gfc_iso_c_func_interface): Ditto. 2008-11-22 Tobias Burnus <burnus@net-b.de> PR fortran/38160 * gfortran.dg/bind_c_usage_18.f90: New test. * gfortran.dg/c_kind_tests_2.f03: Update dg-messages. * gfortran.dg/interop_params.f03: Ditto. From-SVN: r142124
2008-11-22mips.md (rdhwr): Rename to rdhwr_synci_step_<mode>.Adam Nemet3-6/+16
* config/mips/mips.md (rdhwr): Rename to rdhwr_synci_step_<mode>. Use constant 1 as the operand. * config/mips/mips.c (mips_expand_synci_loop): Make INC Pmode. Rename gen_rdhwr to gen_rdhwr_synci_step_si or gen_rdhwr_synci_step_di depending on the size of Pmode. From-SVN: r142123
2008-11-22Fix ChangeLog entry for config/i386/avxintrin.h.H.J. Lu1-1/+1
From-SVN: r142122
2008-11-22re PR target/38222 (gcc.target/i386/sse4_2-popcntl.c fails on ↵Uros Bizjak4-62/+55
i686-apple-darwin9) PR target/38222 * config/i386/i386.md (SWI248): New mode iterator. (SWI32): Remove mode iterator. (popcount<mode>2): Rename from popcounthi2, popcountsi2 and popcounthi2 insn patterns. Macroize pattern using SWI248 mode iterator. Generate popcnt mnemonic without mode extensions for Darwin x86 targets. (*popcount<mode>2_cmp): Ditto. (*popcountsi2_cmp_zext): Generate popcnt mnemonic without mode extensions for Darwin x86 targets. testsuite/ChangeLog: PR target/38222 * gcc.target/i386/funcspec-3.c: Scan for popcnt on Darwin targets. From-SVN: r142121
2008-11-22sparc.c (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define only if ↵Eric Botcazou2-1/+6
HAVE_AS_SPARC_UA_PCREL is defined. * config/sparc/sparc.c (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define only if HAVE_AS_SPARC_UA_PCREL is defined. From-SVN: r142118
2008-11-22ira-costs.c (find_allocno_class_costs): Work out the maximum allocno_costs ↵Richard Sandiford2-15/+38
value of the classees with the lowest... gcc/ * ira-costs.c (find_allocno_class_costs): Work out the maximum allocno_costs value of the classees with the lowest total_costs value. Use this to set ALLOCNO_COVER_CLASS_COST here... (setup_allocno_cover_class_and_costs): ...rather than here. Use the ALLOCNO_COVER_CLASS_COST for all registers in the preferred class. From-SVN: r142117