aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-11-19m68k.c (sched_attr_op_type): Handle all CONSTs.Maxim Kuvyrkov4-3/+11
* config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs. * gcc.target/m68k/xgot-1.c (dg-options): Add -O2. From-SVN: r142005
2008-11-19re PR tree-optimization/38156 (gcc.dg/tree-ssa/update-unswitch-1.c fails ↵Razya Ladelsky2-1/+9
when compiled with -ftree-parallelize-loops=4) 2008-11-19 Razya Ladelsky <razya@il.ibm.com> PR target/38156 * tree-parloops.c (loop_parallel_p): NULL vect_dump. (separate_decls_in_region): Create shared struct even when there are only reductions. From-SVN: r142004
2008-11-19*config/picochip/picochip.c (headers): Removed an unnecessary header.Hariharan Sandanagobalane2-1/+5
From-SVN: r142002
2008-11-19re PR tree-optimization/36038 (miscompiled loop in perlbmk for -Os)Jakub Jelinek2-0/+6
PR tree-optimization/36038 * gcc.c-torture/compile/pr36038.c: Moved to... * gcc.c-torture/execute/pr36038.c: ... here. From-SVN: r142000
2008-11-19re PR target/36133 (GCC creates suboptimal ASM : Code includes unneeded TST ↵Andrew Stubbs6-11/+159
instructions) 2008-11-19 Andrew Stubbs <ams@codesourcery.com> gcc/ PR target/36133 * config/m68k/m68k.h (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY): New defines. * config/m68k/m68k.c (notice_update_cc): Set cc_status properly for shift instructions. * config/m68k/m68k.md: Adjust all conditional branches that use the carry and overflow flags so they understand CC_OVERFLOW_UNUSABLE. gcc/testsuite/ PR target/36133 * gcc.target/m68k/pr36133.c: New test. From-SVN: r141999
2008-11-19wo_prof_global_var.c: Use uninitialized integer values instead of ↵Maxim Kuvyrkov3-4/+10
uninitialized FP values to avoid NaNs. * gcc.gd/struct/wo_prof_global_var.c: Use uninitialized integer values instead of uninitialized FP values to avoid NaNs. * gcc.dg/struct/wo_prof_local_var.c: Same. From-SVN: r141998
2008-11-19f2003_io_1.f03: XFAIL for all SPARC targets.Eric Botcazou6-5/+13
* gfortran.dg/f2003_io_1.f03: XFAIL for all SPARC targets. * gfortran.dg/f2003_io_4.f03: Ditto. * gfortran.dg/f2003_io_5.f03: Ditto. * gfortran.dg/f2003_io_6.f03: Ditto. * gfortran.dg/f2003_io_7.f03: Ditto. From-SVN: r141996
2008-11-19re PR fortran/38171 (equivalence and nested modules broken)Paul Thomas2-1/+2
2008-11-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/38171 * ChangeLog: Correct PR number. From-SVN: r141991
2008-11-19re PR fortran/38119 (character ICE in gfc_trans_create_temp_array)Paul Thomas4-2/+36
2008-11-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/38119 * module.c (load_equiv): Regression fix; check that equivalence members come from the same module only. 2008-11-19 Paul Thomas <pault@gcc.gnu.org> * gfortran.dg/module_equivalence_6.f90: New test. From-SVN: r141990
2008-11-19Daily bump.GCC Administrator1-1/+1
From-SVN: r141987
2008-11-19re PR tree-optimization/38051 (Miscompilation of glibc's memcmp)Jakub Jelinek2-6/+25
PR tree-optimization/38051 * gcc.c-torture/execute/pr38051.c (buf): Remove aligned attribute. (buf2): Removed. (main): Only run on little endian targets with sizeof (long) == sizeof (void *). Use just one buffer, align the pointers at runtime. From-SVN: r141983
2008-11-18re PR fortran/38135 (RESHAPE gives wrong result)Thomas Koenig2-0/+30
2008-11-18 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/38135 * m4/reshape.m4: Correct bounds checking when PAD is present. Treat PAD as if it were SOURCE when SOURCE is empty. * intrinsics/reshape_generic.c: 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-18 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/38135 * gfortran.dg/reshape_pad_1.f90: New test case. From-SVN: r141982
2008-11-18re PR target/37362 (Bootstrap broken on mipsisa64r2-linux-gcc)Uros Bizjak4-9/+40
PR target/37362 * config/mips/mips.md (move_doubleword_fpr<mode>): Check that "high" is a register or zero operand in the correct mode before generating mtch1 insn or a register operand in the correct mode before generating mfch1 insn. (mtch1<mode>): Correct operand 1 predicate to reg_or_0_operand. testsuite/ChangeLog: PR target/37362 * gcc.target/mips/pr37362.c: New test. From-SVN: r141978
2008-11-18config.gcc (mips*-sde-elf*): Handle mipsisa64r2*.Adam Nemet6-13/+40
gcc/ * config.gcc (mips*-sde-elf*): Handle mipsisa64r2*. (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Add new cases to mipsisa*-*-elf*. Handle mipsisa64r2*. * config/mips/sde.h (LINK_SPEC): Handle -mips64r2. * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add mips64r2. (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64. * config/mips/t-sde (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add mips64r2. (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64. Add mips64r2/mips16. Fix mips16 if mips64 or mips64r2 are multilib defaults. * config/mips/t-sdemtk (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add mips64r2. libgcc/ * config.host (mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*): New case. From-SVN: r141976
2008-11-18* gcc.pot: Regenerate.Joseph Myers2-5058/+5856
From-SVN: r141973
2008-11-18* ru.po: Update.Joseph Myers2-5/+9
From-SVN: r141971
2008-11-18re PR c++/37962 (ICE with (auto*) casts)Jason Merrill10-13/+195
PR c++/37962 cp/ * parser.c (cp_parser_type_id): Complain about auto. * decl.c (grokdeclarator): Complain about parameters and conversion functions declared with auto. * call.c (standard_conversion): Use CLASS_TYPE_P instead of MAYBE_CLASS_TYPE_P. * cp-tree.h (TYPE_NON_AGGREGATE_CLASS): Likewise. testsuite/ * g++.dg/cpp0x/auto[38].C: Adjust expected errors. * g++.dg/cpp0x/auto9.C: New test. * g++.dg/cpp0x/auto10.C: New test. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r141970
2008-11-18re PR target/38130 (__builtin_alloca (vs IRA?) testsuite failures on mingw32)Jakub Jelinek3-10/+21
PR target/38130 * config/i386/i386.md (allocate_stack_worker_32, allocate_stack_worker_64): Don't use match_dup between input and output operand. (allocate_stack): Adjust gen_stack_worker_{32,64} caller. * config/i386/i386.c (ix86_expand_prologue): Likewise. From-SVN: r141965
2008-11-18re PR ada/38127 (ACATS cd1c04e fails on sparc, hppa)Eric Botcazou2-2/+10
PR ada/38127 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Propagate the name. From-SVN: r141964
2008-11-18t-cygming (SHLIB_LINK): Make sure that $(SHLIB_MAP).def is forced when ↵Kai Tietz2-1/+6
trying to do a symbol link for it. 2008-11-18 Kai Tietz <kai.tietz@onevision.com> * config/i386/t-cygming (SHLIB_LINK): Make sure that $(SHLIB_MAP).def is forced when trying to do a symbol link for it. From-SVN: r141963
2008-11-18expmed.c (extract_bit_field_1): Also use a temporary and ↵Adam Nemet4-1/+41
convert_extracted_bit_field when... * expmed.c (extract_bit_field_1): Also use a temporary and convert_extracted_bit_field when the conversion from ext_mode to the target mode requires explicit truncation. testsuite/ * gcc.c-torture/execute/20081117-1.c: New test. From-SVN: r141960
2008-11-18Daily bump.GCC Administrator1-1/+1
From-SVN: r141958
2008-11-17mips.h (REG_ALLOC_ORDER): Put accumulators first.Richard Sandiford6-22/+34
gcc/ * config/mips/mips.h (REG_ALLOC_ORDER): Put accumulators first. Tweak formatting. * config/mips/mips.c (mips_ira_cover_classes): Don't use accumulator registers when not optimizing. gcc/testsuite/ * gcc.target/mips/dspr2-MULT.c: Just check for $ac1 and $ac2. * gcc.target/mips/dspr2-MULTU.c: Likewise. From-SVN: r141955
2008-11-17mips.md (*mul_acc_si): Remove middle alternative and its associated ↵Richard Sandiford11-66/+153
define_split. gcc/ * config/mips/mips.md (*mul_acc_si): Remove middle alternative and its associated define_split. Expose the all-d alternative to the register allocator, but mark it with "?". Mark the first alternative with "*?*?". (*mul_sub_si): Likewise. (*mul_acc_si_r3900): New pattern. gcc/testsuite/ * gcc.target/mips/madd-5.c: New test. * gcc.target/mips/madd-6.c: Likewise. * gcc.target/mips/madd-7.c: Likewise. * gcc.target/mips/madd-8.c: Likewise. * gcc.target/mips/msub-5.c: Likewise. * gcc.target/mips/msub-6.c: Likewise. * gcc.target/mips/msub-7.c: Likewise. * gcc.target/mips/msub-8.c: Likewise. From-SVN: r141954
2008-11-17no-smartmips-ror-1.c: Use -march=mips32 instead of -march=mips32r2.Richard Sandiford2-1/+6
gcc/testsuite/ * gcc.target/mips/no-smartmips-ror-1.c: Use -march=mips32 instead of -march=mips32r2. From-SVN: r141953
2008-11-17default_format_denormal_1.f90: Don't XFAIL darwin10 or later.Jack Howarth2-1/+6
2008-11-17 Jack Howarth <howarth@bromo.med.uc.edu> * gfortran.dg/default_format_denormal_1.f90: Don't XFAIL darwin10 or later. From-SVN: r141950
2008-11-17re PR middle-end/38140 (ice for C code with -O2)Jakub Jelinek4-6/+44
PR middle-end/38140 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If propagating x = &a into *x = b, add a cast if not useless type conversion or don't optimize if another stmt would be needed. * gcc.dg/pr38140.c: New test. From-SVN: r141949
2008-11-17re PR testsuite/38099 (tmpdir-gcc.dg-struct-layout-1/t027 ↵Jack Howarth3-2/+11
c_compat_x_tst.o-c_compat_y_tst.o execute failure) 2008-11-14 Jack Howarth <howarth@bromo.med.uc.edu> PR testsuite/38099 * gcc.dg/compat/struct-layout-1_generate.c: Also use -no-mmx on i?86/x86_64 darwin. * g++.dg/compat/struct-layout-1_generate.c: Same. From-SVN: r141948
2008-11-17re PR middle-end/37908 (atomic NAND op generate wrong code; ↵Uros Bizjak15-54/+299
__sync_nand_and_fetch, __sync_fetch_and_nand) PR middle-end/37908 * optabs.c (expand_sync_operation): Properly handle NAND case by calculating ~(t1 & val) instead of (~t1 & val). * builtins.c (expand_builtin_sync_operation): Warn for changed semantics in NAND builtins. * c.opt (Wsync-nand): New warning option. Describe -Wsync-nand. * doc/invoke.texi (Warning options): Add Wsync-nand. * doc/extend.texi (Atomic Builtins) [__sync_fetch_and_nand]: Correct __sync_fetch_and_nand builtin operation in the example. Add a note about changed semantics in GCC 4.4. [__sync_nand_and_fetch]: Correct __sync_nand_and_fetch builtin operation in the example. Add a note about changed semantics in GCC 4.4. testsuite/ChangeLog: PR middle-end/37908 * gcc.dg/pr37908.c: New test. * gcc.dg/ia64-sync-1.c: Correct __sync_fetch_and_nand and __sync_nand_and_fetch results. Add dg-message to look for the warning about changed semantics of NAND builtin. (init_si, init_di): Change init value for __sync_fetch_and_nand to -1. (test_si, test_di): Change expected result of __sync_nand_and_fetch to ~7. * gcc.dg/ia64-sync-2.c: Correct __sync_fetch_and_nand and __sync_nand_and_fetch results. Add dg-message to look for the warning about changed semantics of NAND builtin. (init_noret_si, init_noret_di): Change init value for __sync_fetch_and_nand to -1. (init_noret_si, init_noret_di): Change expected result of __sync_nand_and_fetch to ~7. * gcc.dg/sync-2.c: Correct __sync_fetch_and_nand and __sync_nand_and_fetch results. Add dg-message to look for the warning about changed semantics of NAND builtin. (init_qi, init_qi): Change init value for __sync_fetch_and_nand to -1. (init_hi, init_hi): Change expected result of __sync_nand_and_fetch to ~7. * gcc.dg/sync-3.c: Copy from sync-2.c instead of including the c source file. * gcc.c-torture/compile/sync-1.c: Add dg-message to look for the warning about changed semantics of NAND builtin. * gcc.c-torture/compile/sync-2.c: Ditto. * gcc.c-torture/compile/sync-3.c: Ditto. From-SVN: r141942
2008-11-17re PR c++/36089 (Funny rejects valid with constant integral expression)Jakub Jelinek4-0/+87
PR c++/36089 * init.c (constant_value_1): Handle TREE_LIST init. * g++.dg/template/init8.C: New test. From-SVN: r141941
2008-11-17Daily bump.GCC Administrator1-1/+1
From-SVN: r141934
2008-11-16re PR fortran/35681 (wrong result for vector subscripted array expression in ↵Mikael Morin7-22/+128
MVBITS) 2008-11-16 Mikael Morin <mikael.morin@tele2.fr> PR fortran/35681 * dependency.c (gfc_check_argument_var_dependency): Add elemental check flag. Issue a warning if we find a dependency but don't generate a temporary. Add the case of an elemental function call as actual argument to an elemental procedure. Add the case of an operator expression as actual argument to an elemental procedure. (gfc_check_argument_dependency): Add elemental check flag. Update calls to gfc_check_argument_var_dependency. (gfc_check_fncall_dependency): Add elemental check flag. Update call to gfc_check_argument_dependency. * trans-stmt.c (gfc_trans_call): Make call to gfc_conv_elemental_dependency unconditional, but with a flag whether we should check dependencies between variables. (gfc_conv_elemental_dependency): Add elemental check flag. Update call to gfc_check_fncall_dependency. * trans-expr.c (gfc_trans_arrayfunc_assign): Update call to gfc_check_fncall_dependency. * resolve.c (find_noncopying_intrinsics): Update call to gfc_check_fncall_dependency. * dependency.h (enum gfc_dep_check): New enum. (gfc_check_fncall_dependency): Update prototype. 2008-11-16 Mikael Morin <mikael.morin@tele2.fr> PR fortran/35681 * gfortran.dg/elemental_dependency_1.f90: New test. From-SVN: r141931
2008-11-16cgraph.c (cgraph_function_body_availability): Fix test of externally visible.Jan Hubicka2-1/+6
* cgraph.c (cgraph_function_body_availability): Fix test of externally visible. From-SVN: r141930
2008-11-16mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000 to -mips4.Joshua Kinard2-1/+7
gcc/ 2008-11-16 Joshua Kinard <kumba@gentoo.org> * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000 to -mips4. From-SVN: r141928
2008-11-16re PR fortran/37992 (ICE while resolving charlen for rejected statements)Mikael Morin5-10/+43
2008-11-16 Mikael Morin <mikael.morin@tele2.fr> PR fortran/37992 * gfortran.h (gfc_namespace): Added member old_cl_list, backup of cl_list. (gfc_free_charlen): Added prototype. * symbol.c (gfc_free_charlen): New function. (gfc_free_namespace): Use gfc_free_charlen. * parse.c (next_statement): Backup gfc_current_ns->cl_list. (reject_statement): Restore gfc_current_ns->cl_list. Free cl_list's elements before dropping them. 2008-11-16 Mikael Morin <mikael.morin@tele2.fr> PR fortran/37992 * gfotran.dg/charlen_free_1.f90: New test. From-SVN: r141927
2008-11-16re PR target/38052 (genautomata segfaults when -O2 is enabled)Richard Sandiford2-28/+74
gcc/ PR target/38052 * config/mips/mips.c (mips_cfun_call_saved_reg_p) (mips_cfun_might_clobber_call_saved_reg_p): New functions, split out from... (mips_save_reg_p): ...here. Always consult TARGET_CALL_SAVED_GP rather than call_really_used_regs when handling $gp. From-SVN: r141926
2008-11-16re PR target/38052 (genautomata segfaults when -O2 is enabled)Richard Sandiford2-10/+23
gcc/ PR target/38052 * config/mips/mips.c (machine_function): Update the comment above global_pointer. (mips_global_pointer): Use INVALID_REGNUM rather than 0 to indicate that a function doesn't need a global pointer. (mips_current_loadgp_style): Update accordingly. (mips_restore_gp): Likewise. (mips_output_cplocal): Likewise. (mips_expand_prologue): Likewise. From-SVN: r141925
2008-11-16sparc.c (function_arg_vector_value): Remove 'base_mode' parameter.Eric Botcazou2-10/+12
* config/sparc/sparc.c (function_arg_vector_value): Remove 'base_mode' parameter.  Use DImode for computing the number of registers. (function_arg): Adjust for above change. (function_value): Likewise. From-SVN: r141921
2008-11-16re PR libfortran/38097 (I/O with blanks in exponent fails; blank="NULL", BN ↵Jerry DeLisle2-0/+32
edit descriptor) 2008-11-16 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/38097 * gfortran.dg/fmt_bz_bn.f: New test. From-SVN: r141920
2008-11-16* gnat.dg/boolean_bitfield.adb: New test.Eric Botcazou2-0/+48
From-SVN: r141918
2008-11-16re PR fortran/38095 (character ICE)Tobias Burnus4-4/+51
2008-11-16 Tobias Burnus <burnus@net-b.de> PR fortran/38095 * trans-expr.c (gfc_map_intrinsic_function): Fix pointer access. 2008-11-16 Tobias Burnus <burnus@net-b.de> PR fortran/38095 * gfortran.dg/char_length_13.f90: New test. From-SVN: r141917
2008-11-16pr36246.c: Add -fomit-frame-pointer to dg-options.Uros Bizjak5-8/+15
* gcc.target/i386/pr36246.c: Add -fomit-frame-pointer to dg-options. * gcc.target/i386/pr32661-1.c: Ditto. * gcc.target/i386/pr34256.c: Ditto. * gcc.target/i386/pr22076.c: Ditto. Check for "movl" instruction on nonpic targets only. From-SVN: r141916
2008-11-16re PR fortran/38119 (character ICE in gfc_trans_create_temp_array)Paul Thomas4-12/+49
2008-11-16 Paul Thomas <pault@gcc.gnu.org> PR fortran/38119 * trans-array.c (gfc_trans_create_temp_array): Set the loop->from to zero and the renormalisation of loop->to for all dimensions. 2008-11-16 Paul Thomas <pault@gcc.gnu.org> PR fortran/38119 * gfortran.dg/array_temporaries_3.f90: New test. From-SVN: r141915
2008-11-16re PR fortran/37926 (Program gives wrong output (connected to char len))Paul Thomas2-1/+9
2008-11-16 Paul Thomas <pault@gcc.gnu.org> PR fortran/37926 * trans-expr.c (gfc_free_interface_mapping): Null sym->formal (gfc_add_interface_mapping): Copy the pointer to the formal arglist, rather than using copy_formal_args. From-SVN: r141914
2008-11-16re PR ada/38127 (ACATS cd1c04e fails on sparc, hppa)Eric Botcazou3-21/+15
PR ada/38127 * gcc-interface/decl.c (make_type_from_size): Do not special-case boolean types. * gcc-interface/targtyps.c: Tweak comment. From-SVN: r141913
2008-11-16re PR tree-optimization/37950 (failure in polyhedron benchmark when ↵Zdenek Dvorak2-0/+12
ftree-parallelize-loops is enabled) PR tree-optimization/37950 * tree-flow-inline.h (memory_partition): Return NULL when aliases were not computed for the current function. From-SVN: r141911
2008-11-16Daily bump.GCC Administrator1-1/+1
From-SVN: r141907
2008-11-15re PR libfortran/37294 (Namelist I/O to array character internal units)Jerry DeLisle3-1/+19
2008-11-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/37294 * gfortran.dg/namelist_57.f90: New test. * gfortran.dg/namelist_print_1.f: Adjust test conditions. From-SVN: r141893
2008-11-15re PR fortran/37926 (Program gives wrong output (connected to char len))Paul Thomas4-0/+61
2008-11-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/37926 * trans-expr.c (gfc_add_interface_mapping): Transfer the formal arglist and the always_explicit attribute if the dummy arg is a procedure. 2008-11-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/37926 * gfortran.dg/dummy_procedure_3.f90: New test. From-SVN: r141890
2008-11-15re PR target/38123 (error: incorrect sharing of tree nodes ap->fp_offset = ↵Jakub Jelinek4-2/+27
D.2748;) PR target/38123 * config/i386/i386.c (ix86_gimplify_va_arg): Don't share valist between gpr and other COMPONENT_REFs. * gcc.c-torture/compile/pr38123.c: New test. From-SVN: r141889