aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2006-09-10re PR middle-end/26983 (Missing label with builtin_setjmp/longjmp)Steven Bosscher4-0/+36
PR middle-end/26983 gcc/ * builtins.c (expand_builtin_setjmp): Force next_lab to be preserved. testsuite/ * gcc.dg/pr26983.c: New test. From-SVN: r116826
2006-09-10re PR target/29006 (Incorrect zeroing of unaligned 64-bit fields on MIPS ↵Richard Sandiford6-6/+43
targets) gcc/ PR target/29006 * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare. * config/mips/mips.c (mips_expand_unaligned_store): Use the mode returned by mode_for_size, rather than the mode of src itself, to choose between 32-bit and 64-bit patterns. (mips_mem_fits_mode_p): New function. * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check that the size of the source matches the size of the destination. (mov_<store>l, mov_<store>r): Likewise. gcc/testsuite/ PR target/29006 * gcc.c-torture/execute/pr29006.c: New test. From-SVN: r116822
2006-09-10darwin.c (machopic_select_rtx_section): Add CONST_VECTOR for literal16.Eric Christopher2-1/+7
2006-09-10 Eric Christopher <echristo@apple.com> * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR for literal16. From-SVN: r116821
2006-09-10Add missing ChangeLog entry.H.J. Lu1-0/+5
From-SVN: r116820
2006-09-10re PR fortran/28947 (Double MATMUL() uses wrong array elements)Paul Thomas2-0/+27
2006-09-10 Paul Thomas <pault@gcc.gnu.org> PR libfortran/28947 * m4/matmul.m4: For the case where the second input argument is transposed, ensure that the case with rank (a) == 1 is correctly calculated. * generated/matmul_r4.c: Regenerate. * generated/matmul_r8.c: Regenerate. * generated/matmul_r10.c: Regenerate. * generated/matmul_r16.c: Regenerate. * generated/matmul_c4.c: Regenerate. * generated/matmul_c8.c: Regenerate. * generated/matmul_c10.c: Regenerate. * generated/matmul_c16.c: Regenerate. * generated/matmul_i4.c: Regenerate. * generated/matmul_i8.c: Regenerate. * generated/matmul_i16.c: Regenerate. 2006-09-10 Paul Thomas <pault@gcc.gnu.org> PR libfortran/28947 gfortran.dg/matmul_4.f90: New test. From-SVN: r116817
2006-09-10re PR fortran/28959 (ICE on derived type with host association)Paul Thomas4-2/+90
2006-09-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/28959 trans-types.c (gfc_get_derived_type): Use the parent namespace of the procedure if the type's own namespace does not have a parent. 2006-09-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/28959 gfortran.dg/used_types_10: New test. From-SVN: r116816
2006-09-10re PR fortran/28923 (Bad triplet interpretation in initialization)Paul Thomas5-14/+32
2006-09-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/28923 expr.c (find_array_section): Only use the array lower and upper bounds for the start and end of the sections, where the expr is NULL. 2006-09-10 Paul Thomas <pault@gcc.gnu.org> PR libfortran/28923 gfortran.dg/array_initializer_2.f90: Fill in missing index start value. gfortran.dg/array_initializer_3.f90: New test. From-SVN: r116815
2006-09-10re PR target/28995 (libgfortran build now fails on Darwin PPC)Eric Christopher2-1/+8
2006-09-09 Eric Christopher <echristo@apple.com> PR target/28995 * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT for literal16. From-SVN: r116810
2006-09-10re PR fortran/28914 (Code inside loop hangs; outside loop runs normally; ↵Jerry DeLisle2-0/+30
runs OK on other compilers) 2006-09-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/28914 * gfortran.dg/actual_array_constructor_3.f90: New test. From-SVN: r116809
2006-09-10re PR fortran/28914 (Code inside loop hangs; outside loop runs normally; ↵Paul Thomas2-0/+16
runs OK on other compilers) 2006-09-09 Paul Thomas <pault@gcc.gnu.org> PR fortran/28914 * trans-array.c (gfc_trans_array_constructor_value): Create a temporary loop variable to hold the current loop variable in case it is modified by the array constructor. From-SVN: r116808
2006-09-10dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.Roger Sayle2-0/+6
* dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc. Co-Authored-By: Nicolas Setton <setton@adacore.com> From-SVN: r116807
2006-09-10Daily bump.GCC Administrator1-1/+1
From-SVN: r116805
2006-09-09* config/m68k/m68k.md (bungt_rev): New pattern.Andreas Schwab2-0/+15
From-SVN: r116801
2006-09-09re PR c++/28996 (ICE with statement forming unused static member function ↵Jason Merrill3-4/+14
reference) PR c++/28996 * cvt.c (convert_to_void): Strip COMPONENT_REF to functions. From-SVN: r116800
2006-09-09re PR target/26778 (GCC4 moves the result of a conditional block through ↵Paolo Bonzini4-4/+47
inadequate registers) gcc: 2006-09-09 Paolo Bonzini <bonzini@gnu.org> Dale Johannesen <dalej@apple.com> PR target/26778 * regclass.c (struct reg_pref): Update documentation. (regclass): Set prefclass to NO_REGS if memory is the best option. (record_reg_classes): Cope with a prefclass set to NO_REGS. gcc/testsuite: 2006-09-09 Eric Christopher <echristo@apple.com> PR target/26778 * gcc.target/i386/pr26778.c: New testcase. Co-Authored-By: Dale Johannesen <dalej@apple.com> From-SVN: r116798
2006-09-09config.gcc (i?86-*-darwin): Add 64-bit HWI support.Eric Christopher26-97/+338
2006-09-08 Eric Christopher <echristo@apple.com> * config.gcc (i?86-*-darwin): Add 64-bit HWI support. * config/t-slibgcc-darwin: Support x86_64 multilib. * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION): Return 1 for x86_64-darwin. * config/i386/t-darwin: Add m64 multilib. (LIB2_SIDITI_CONV_FUNCS): Use. (LIB2FUNCS_EXTRA): Ditto. * config/i386/darwin.h: Support x86_64. * config/i386/i386.c (override_options): Turn on flag_pic for x86_64-darwin. Disable flag_omit_pointer. (get_pc_thunk_name): Assert !TARGET_64BIT. (legitimate_address_p): Disable machopic addressing for x86_64. (legitimize_pic_address): Ditto. (ix86_expand_move): Ditto. (ix86_expand_call): Ditto. (machopic_output_stub): Ditto. * config/darwin.c (machopic_select_section): Support literal16. (machopic_select_rtx_section): Ditto. * config/darwin-sections.def: Ditto. * config/darwin-64.c: New. 2006-09-08 Eric Christopher <echristo@apple.com> * gcc.target/i386/20060512-3.c: Run test on ilp32 only. * gcc.target/i386/memcpy-1.c: Ditto. * gcc.target/i386/asm-1.c: Ditto. * gcc.target/i386/20060512-4.c: Ditto. * gcc.target/i386/compress-float-387.c: Ditto. * gcc.target/i386/20060512-1.c: Ditto. * gcc.target/i386/compress-float-sse.c: Ditto. * gcc.target/i386/20060512-2.c: Ditto. * gcc.target/i386/compress-float-sse-pic.c: Ditto. * gcc.target/i386/stack-prot-kernel.c: Ditto. * gcc.target/i386/compress-float-387-pic.c: Ditto. * gcc.dg/pr26449.c: Ditto. * gcc.dg/attr-ms_struct-2.c: Ditto. * gcc.dg/attr-ms_struct-1.c: Ditto. * gcc.misc-tests/linkage.exp: Fix 64-bit darwin support. 2006-09-08 Eric Christopher <echristo@apple.com> * configure.ac: Add 64-bit HWI support for i?86-darwin. From-SVN: r116795
2006-09-09Daily bump.GCC Administrator1-1/+1
From-SVN: r116793
2006-09-09re PR c/28504 (ICE with variable sized array)Joseph Myers6-0/+37
PR c/28504 * c-tree.h (struct c_arg_info): Add pending_sizes. * c-parser.c (c_parser_parms_declarator, c_parser_parms_list_declarator): Initialize pending_sizes. * c-decl.c (get_parm_info): Initialize pending_sizes. (get_parm_info): Set pending_sizes. (grokdeclarator): Call put_pending_sizes for parameters for function definition only. testsuite: * gcc.dg/vla-10.c: New test. From-SVN: r116789
2006-09-08re PR c++/28858 (Algorithm to find the end of a template parameter list is ↵Volker Reichelt7-36/+62
flawed) PR c++/28858 * parser.c (cp_parser_skip_until_found): Rename to cp_parser_skip_to_end_of_template_parameter_list. Remove last two parameters. Track levels of '< ... >'. Stop at '{', '}', or ';'. Reorganize. Adjust comment. (cp_parser_template_declaration_after_export): Adjust call. (cp_parser_enclosed_template_argument_list): Likewise. * g++.dg/parse/template20.C: New test. * g++.dg/template/operator8.C: Remove obsolete part. * g++.dg/parse/def-tmpl-arg1.C: Adjust error-markers. * g++.old-deja/g++.pt/crash65.C: Likewise. From-SVN: r116788
2006-09-08re PR middle-end/27724 (internal compiler error: no-op convert from 4 to 8 ↵Jason Merrill3-4/+24
bytes in initializer) PR middle-end/27724 * varasm.c (output_constant): Only strip actual no-op conversions. From-SVN: r116777
2006-09-07006-09-07 Andrew Pinski <pinskia@physics.uc.edu>Andrew Pinski6-4/+64
PR C++/28906 * init.c (build_new_1): Build a distinct type copy for the array type that was returned from build_cplus_array_type. 2006-09-07 Andrew Pinski <pinskia@physics.uc.edu> PR C++/28906 * g++.dg/other/array3.C: New test. * g++.dg/other/array4.C: New test. * g++.dg/other/array5.C: New test. From-SVN: r116776
2006-09-07re PR target/13685 (Building simple test application with -march=pentium3 ↵Jason Merrill3-16/+48
-Os gives SIGSEGV (unaligned sse instruction)) PR target/13685 * config/i386/i386.c (override_options): Use 128-bit stack boundary if -msse. From-SVN: r116775
2006-09-08darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update comment.Eric Christopher3-1/+15
2006-09-07 Eric Christopher <echristo@apple.com> * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update comment. * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Redefine. From-SVN: r116774
2006-09-08Daily bump.GCC Administrator1-1/+1
From-SVN: r116772
2006-09-07dwarf2out.c: Remove strange characters from comment above ↵Geoffrey Keating2-3/+8
dwarf2out_frame_debug_expr. * dwarf2out.c: Remove strange characters from comment above dwarf2out_frame_debug_expr. From-SVN: r116767
2006-09-07re PR c++/27371 (Does not warn about unused function result ↵Jason Merrill2-1/+4
(__attribute__((warn_unused_result)))) PR c++/27371 * cvt.c (convert_to_void): Enable previous change. From-SVN: r116765
2006-09-07darwin.h (HANDLE_SYSV_PRAGMA): Move from here...Eric Christopher3-10/+14
2006-09-07 Eric Christopher <echristo@apple.com> * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here... * config/darwin.h: ... to here. From-SVN: r116762
2006-09-07Add the entry for g++.dg/warn/unused-result1.C.H.J. Lu1-0/+5
From-SVN: r116761
2006-09-07re PR c++/26957 (ICE in make_decl_rtl, at varasm.c:871)Jason Merrill3-2/+25
PR c++/26957 * method.c (use_thunk): Clear DECL_HAS_VALUE_EXPR_P on copied parms. From-SVN: r116760
2006-09-07pr28946.c (dg-options): Use -Os instead -O.H.J. Lu2-1/+5
2006-09-07 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/pr28946.c (dg-options): Use -Os instead -O. From-SVN: r116758
2006-09-07i386.c (x86_partial_flag_reg_stall): New.H.J. Lu4-27/+147
2006-09-07 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (x86_partial_flag_reg_stall): New. * config/i386/i386.h (x86_partial_flag_reg_stall): New. (TARGET_PARTIAL_FLAG_REG_STALL): New. * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for TARGET_PARTIAL_FLAG_REG_STALL. (*ashldi3_cconly_rex64): Likewise. (*ashlsi3_cmp): Likewise. (*ashlsi3_cconly): Likewise. (*ashlsi3_cmp_zext): Likewise. (*ashlhi3_cmp): Likewise. (*ashlhi3_cconly): Likewise. (*ashlqi3_cmp): Likewise. (*ashlqi3_cconly): Likewise. (*ashrdi3_cmp_rex64): Likewise. (*ashrdi3_cconly_rex64): Likewise. (*ashrsi3_cmp): Likewise. (*ashrsi3_cconly): Likewise. (*ashrsi3_cmp_zext): Likewise. (*ashrhi3_cmp): Likewise. (*ashrhi3_cconly): Likewise. (*ashrqi3_cmp): Likewise. (*ashrqi3_cconly): Likewise. (*lshrdi3_cmp_rex64): Likewise. (*lshrdi3_cconly_rex64): Likewise. (*lshrsi3_cmp): Likewise. (*lshrsi3_cconly): Likewise. (*lshrsi3_cmp_zext): Likewise. (*lshrhi3_cmp): Likewise. (*lshrhi3_cconly): Likewise. (*lshrqi2_cmp): Likewise. (*lshrqi2_cconly): Likewise. From-SVN: r116757
2006-09-07re PR target/28946 (assembler shifts set the flag ZF, no need to re-test to ↵Uros Bizjak4-0/+395
zero) PR target/28946 * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly", "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64", "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly", "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly", "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly", "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64", "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly", "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly", "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to implement only CC setting effects of shift instructions. testsuite/ChangeLog: PR target/28946 * gcc.target/i386/pr28946.c: New test. From-SVN: r116756
2006-09-07re PR c++/28284 (ICE with invalid static const variable)Simon Martin3-0/+21
PR c++/28284 * pt.c (fold_non_dependent_expr): Make sure expr is not dereferenced if it is NULL. From-SVN: r116755
2006-09-07Add myself to doc/contrib.texiMartin Michlmayr2-0/+8
From-SVN: r116754
2006-09-07data_1.f90: Fix integer oveflow in integer literal constant.Steven G. Kargl8-15/+31
2006-09-07 Steven G. Kargl <kargls@comcast.net> * gfortran.fortran-torture/compile/data_1.f90: Fix integer oveflow in integer literal constant. * gfortran.dg/enum_8.f90: Ditto. * gfortran.dg/g77/20030326-1.f: Ditto. 2006-09-07 Steven G. Kargl <kargls@comcast.net> * gfortran.h (gfc_integer_info): Eliminate max_int. * arith.c (gfc_arith_init_1): Remove initialization of max_int. (gfc_arith_done_1): Remove clearing of max_int. (gfc_check_integer_range): Fix range chekcing of overflow. * simplify.c (gfc_simplify_not): Construct mask that was max_int. From-SVN: r116753
2006-09-07intrinsic_set_exponent.f90: Fix nonconformance usage.Feng Wang2-17/+18
2006-09-07 Feng Wang <fengwang@nudt.edu.cn> * gfortran.fortran-torture/execute/intrinsic_set_exponent.f90: Fix nonconformance usage. From-SVN: r116752
2006-09-07re PR middle-end/28862 (attribute ((aligned)) ignored on vector variables)Andrew Pinski4-1/+24
2006-09-07 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/28862 * stor-layout.c (relayout_decl): Don't zero the alignment if it was set by the user. 2006-09-07 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/28862 * gcc.c-torture/compile/vector-align-1.c: New test. From-SVN: r116751
2006-09-07re PR target/27117 (SH backend cheats to reload -- disables indexed ↵Paolo Bonzini2-4/+38
addressing but uses it internally) 2006-09-07 Paolo Bonzini <bonzini@gnu.org> PR target/27117 * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns. (divsi_inv_m1): Use them. (UNSPEC_DIV_INV_TABLE): New constant. From-SVN: r116746
2006-09-07re PR c++/26195 (pragma interface no longer handles explicit names)Zak Kipling13-5/+80
PR c++/26195 * decl.c (make_rtl_for_nonlocal_decl), (start_preparsed_function): Don't use lbasename on input_filename when calling get_fileinfo. * semantics.c (begin_class_definition): Likewise. * lex.c (cxx_make_type): Likewise. (handle_pragma_interface): Call get_fileinfo on input_filename, not on the parameter to the directive. From-SVN: r116740
2006-09-06[multiple changes]Andrew Pinski4-0/+32
2006-09-06 James E Wilson <wilson@specifix.com> PR rtl-opt/27883 * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES then call count_or_remove_death_notes. 2006-09-06 Andrew Pinski <pinskia@physics.uc.edu> PR rtl-opt/27883 * g++.dg/opt/copysign-1.C: New test. From-SVN: r116739
2006-09-06re PR c++/27371 (Does not warn about unused function result ↵Jason Merrill7-7/+85
(__attribute__((warn_unused_result)))) PR c++/27371 * tree-inline.c (copy_result_decl_to_var): New fn. (declare_return_variable): Use it. Call declare_inline_vars here. (expand_call_inline): Not here. * cp/cvt.c (convert_to_void): Strip useless TARGET_EXPR. * cp/cp-tree.h (TARGET_EXPR_IMPLICIT_P): New macro. * cp/tree.c (build_cplus_new): Set it. From-SVN: r116737
2006-09-07re PR c++/28903 (Rejects VLA in template class's member with using)Mark Mitchell5-12/+98
PR c++/28903 * pt.c (tsubst): Use fold_non_dependent_expr to fold array dimensions. PR c++/28886 * pt.c (unify): Avoid unnecessary calls to fold_build2 for array dimensions. From-SVN: r116736
2006-09-07Daily bump.GCC Administrator1-1/+1
From-SVN: r116734
2006-09-06contrib.texi: Update my entry.Diego Novillo2-2/+6
* doc/contrib.texi: Update my entry. From-SVN: r116727
2006-09-06re PR c++/26696 (ICE with statement forming unused static member function ↵Jason Merrill6-6/+30
reference) PR c++/26696 * cvt.c (convert_to_void): Replace a subexpression with no side effects with void_zero_node. * tree.c (is_overloaded_fn): Look through COMPONENT_REF. (get_first_fn): Ditto. * decl.c (grokdeclarator): No need to look through COMPONENT_REF. From-SVN: r116724
2006-09-06pr27226.c: Remove testcase again.Richard Guenther2-19/+4
2006-09-06 Richard Guenther <rguenther@suse.de> * gcc.dg/pr27226.c: Remove testcase again. From-SVN: r116722
2006-09-06* config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.Nick Clifton2-0/+7
From-SVN: r116719
2006-09-05Remove extra blank line.Andrew Pinski1-1/+0
From-SVN: r116718
2006-09-05re PR tree-optimization/28937 (ICE in add_virtual_operand, at ↵Andrew Pinski9-29/+99
tree-ssa-operands.c:1309) 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/28937 * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int. (canonicalize_induction_variables): Likewise. (tree_unroll_loops_completely): Likewise. (tree_ssa_prefetch_arrays): Likewise. (remove_empty_loops): Likewise. * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return TODO_cleanup_cfg instead of directly calling cleanup_tree_cfg_loop. * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise. (tree_unroll_loops_completely): Likewise. (remove_empty_loops): Likewise. * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise. * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value of tree_ssa_unswitch_loops. (tree_ssa_loop_ivcanon): Use the return value of canonicalize_induction_variables. (tree_ssa_empty_loop): Use the return value of remove_empty_loops. (tree_complete_unroll): Use the return value of tree_unroll_loops_completely. (tree_ssa_loop_prefetch): Use the return value of tree_ssa_prefetch_arrays. * passes.c (execute_todo): Before Cleanup CFG, set updating_used_alone and after cleanup CFG, call recalculate_used_alone. 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/28937 * g++.dg/opt/unroll2.C: New test. From-SVN: r116717
2006-09-05re PR tree-optimization/28952 (tree check: expected class 'expression', have ↵Andrew Pinski4-7/+49
'exceptional' (ssa_name) in vectorizable_condition, at tree-vect-transform.c:2122) 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/28952 * tree-vect-transform.c (vectorizable_condition): Move the check for the type after the check for simple condition. 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/28952 * gcc.dg/vect/pr28952.c: New test. From-SVN: r116716