aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-10-23re PR libfortran/37707 (Namelist read of array of derived type incorrect)Jerry DeLisle4-1/+79
2008-10-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/37707 * gfortran.dg/namelist_18.f90: Update test. * gfortran.dg/namelist_55.f90: New test. * gfortran.dg/namelist_56.f90: New test. From-SVN: r141318
2008-10-23Daily bump.GCC Administrator1-1/+1
From-SVN: r141315
2008-10-22bfin.c (bdesc_2arg): Add mulhisill, mulhisilh, mulhisihl and mulhisihh builtins.Bernd Schmidt5-1/+105
gcc/: * config/bfin/bfin.c (bdesc_2arg): Add mulhisill, mulhisilh, mulhisihl and mulhisihh builtins. gcc/testsuite/: * gcc.target/bfin/hisilh.c: New file. * gcc.target/bfin/hisilh-O0.c: New file. From-SVN: r141312
2008-10-22From Jie Zhang <jie.zhang@analog.com>Bernd Schmidt2-3/+9
* config/bfin/bfin.md (composev2hi): Put operands into vector with correct order. From-SVN: r141311
2008-10-22* config/mips/mips.opt (msmartmips): Accept -mno-smartmips.Chao-ying Fu2-1/+5
From-SVN: r141309
2008-10-22gcc/:Bernd Schmidt30-39/+505
From Mike Frysinger <michael.frysinger@analog.com> * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF512, BFIN_CPU_BF514, BFIN_CPU_BF516, and BFIN_CPU_BF518. * config/bfin/bfin.c (bfin_cpus[]): Add 0.0 for bf512, bf514, bf516, and bf518. Add 0.2 for bf522, bf523, bf524, bf526, and bf527. Add 0.6 for bf533, bf532, and bf531. Add 0.5 for bf538 and bf539. Add 0.2 for bf542, bf544, bf547, bf548, and bf549. * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF512__ for BFIN_CPU_BF512, __ADSPBF514__ for BFIN_CPU_BF514, __ADSPBF516__ for BFIN_CPU_BF516, and __ADSPBF518__ for BFIN_CPU_BF518. Define __ADSPBF51x__ for all of them. * config/bfin/elf.h (LIB_SPEC): Select proper linker scripts for -mcpu bf512, bf514, bf516, and bf518. * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for bf512-none, bf514-none, bf516-none, and bf518-none. * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise. * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise. * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts bf512, bf514, bf516, and bf518. gcc/testsuite/: From Mike Frysinger <michael.frysinger@analog.com> * gcc.target/bfin/mcpu-bf522.c: Check SILICON_REVISION is 0x0002. Invert check for __WORKAROUND_RETS when SILICON_REVISION is 0x0002+. * gcc.target/bfin/mcpu-bf523.c: Likewise. * gcc.target/bfin/mcpu-bf524.c: Likewise. * gcc.target/bfin/mcpu-bf525.c: Likewise. * gcc.target/bfin/mcpu-bf526.c: Likewise. * gcc.target/bfin/mcpu-bf527.c: Likewise. * gcc.target/bfin/mcpu-bf531.c: Check SILICON_REVISION is 0x0006. Invert check for __WORKAROUND_RETS when SILICON_REVISION is 0x0006+. * gcc.target/bfin/mcpu-bf532.c: Likewise. * gcc.target/bfin/mcpu-bf533.c: Likewise. * gcc.target/bfin/mcpu-bf538.c: Check SILICON_REVISION is 0x0005. Invert check for __WORKAROUND_RETS when SILICON_REVISION is 0x0005+. * gcc.target/bfin/mcpu-bf539.c: Likewise. * gcc.target/bfin/mcpu-bf542.c: Check SILICON_REVISION is 0x0002. Invert check for __WORKAROUND_RETS when SILICON_REVISION is 0x0002+. * gcc.target/bfin/mcpu-bf544.c: Likewise. * gcc.target/bfin/mcpu-bf547.c: Likewise. * gcc.target/bfin/mcpu-bf548.c: Likewise. * gcc.target/bfin/mcpu-bf549.c: Likewise. * gcc.target/bfin/mcpu-bf512.c: New file. * gcc.target/bfin/mcpu-bf514.c: Likewise. * gcc.target/bfin/mcpu-bf516.c: Likewise. * gcc.target/bfin/mcpu-bf518.c: Likewise. From-SVN: r141305
2008-10-22re PR middle-end/37882 (Bitfield miscompilation)Jakub Jelinek4-1/+34
PR middle-end/37882 * fold-const.c (build_range_type): For 1 .. signed_max range call build_nonstandard_inter_type if signed_type_for returned a type with bigger precision. * gcc.c-torture/execute/pr37882.c: New test. From-SVN: r141303
2008-10-22tree.def (COMPLEX_TYPE): Constrain element type.Richard Guenther4-3/+14
2008-10-22 Richard Guenther <rguenther@suse.de> * tree.def (COMPLEX_TYPE): Constrain element type. * tree.c (build_complex_type): Assert that. * tree-ssa-structalias.c (could_have_pointers): Complex types cannot have pointers. From-SVN: r141299
2008-10-22re PR c/30949 ("incompatible pointer type" warning does not point to ↵Manuel López-Ibáñez12-26/+57
declaration) 2008-10-22 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c/30949 * c-typeck.c (convert_for_assignment): Do not give declaration's location for builtins. Spell out which type was expected and which was given. testsuite/ * gcc.target/i386/sse-vect-types.c: Update. * gcc.dg/simd-5.c: Update. * gcc.dg/assign-warn-2.c: Update. * gcc.dg/simd-2.c: Update. * gcc.dg/simd-6.c: Update. * gcc.dg/assign-warn-1.c: Update. * gcc.dg/dfp/composite-type.c: Update. * gcc.dg/simd-1.c: Update. * gcc.dg/pr36997.c: Update. From-SVN: r141298
2008-10-22frv.h (HARD_REGNO_RENAME_OK): Define.Nick Clifton2-27/+34
* config/frv/frv.h (HARD_REGNO_RENAME_OK): Define. Do not allow the fdpic register to be a target when running in fdpic mode. From-SVN: r141295
2008-10-22ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the newly ↵Rafael Avila de Espindola2-1/+7
created statements. 2008-10-22 Rafael Espindola <espindola@google.com> * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the newly created statements. From-SVN: r141293
2008-10-22Daily bump.GCC Administrator1-1/+1
From-SVN: r141286
2008-10-21re PR target/37633 (wrong register use on sh64)Kaz Kojima4-47/+114
PR target/37633 * config/sh/sh.c (sh_hard_regno_mode_ok): New function. * config/sh/sh.h (HARD_REGNO_MODE_OK): Use it. * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Declare. From-SVN: r141282
2008-10-22re PR target/37880 (Documentation of option -mcmodel=medium is wrong)Jakub Jelinek2-4/+11
PR target/37880 * doc/invoke.texi: Fix spelling of -mlarge-data-threshold option. Adjust -mcmodel=medium description for 2005-07-31 changes. From-SVN: r141281
2008-10-22re PR middle-end/35853 (-d is still referenced in some cases (documentation))Jan Hubicka2-27/+34
PR middle-end/35853 * doc/invoke.texi: Remove references to obsoleted -d dumps. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r141280
2008-10-21re PR middle-end/37815 (ICE in vt_add_function_parameters (bootstrap error))Richard Henderson4-5/+23
PR 37815 * emit-rtl.c (get_spill_slot_decl): Export. * emit-rtl.h (get_spill_slot_decl): Declare. * var-tracking.c (vt_add_function_parameters): Relax assertion on the contents of MEM_EXPR in a PARM_DECL to include a spill slot. From-SVN: r141278
2008-10-21re PR fortran/36795 (crash with character allocatable array argument)Paul Thomas2-0/+31
2008-10-21 Paul Thomas <pault@gcc.gnu.org> PR libfortran/36795 * gfortran.dg/char_expr_3.f90: Add the original test case. From-SVN: r141277
2008-10-21re PR libfortran/34670 (bounds checking for array intrinsics)Thomas Koenig2-0/+23
2008-10-21 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/34670 * intrinsics/transpose_generic.c: Implement bounds checking. * m4/transpose.m4: Likewise. * generated/transpose_c8.c: Regenerated. * generated/transpose_c16.c: Regenerated. * generated/transpose_r10.c: Regenerated. * generated/transpose_i8.c: Regenerated. * generated/transpose_c10.c: Regenerated. * generated/transpose_r4.c: Regenerated. * generated/transpose_c4.c: Regenerated. * generated/transpose_i16.c: Regenerated. * generated/transpose_i4.c: Regenerated. * generated/transpose_r8.c: Regenerated. * generated/transpose_r16.c: Regenerated. 2008-10-21 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/34670 * gfortran.dg/transpose_2.f90: New test. From-SVN: r141276
2008-10-21var-tracking.c (insn_stack_adjust_offset_pre_post): If insn has a ↵Bob Wilson2-8/+23
REG_FRAME_RELATED_EXPR note... * var-tracking.c (insn_stack_adjust_offset_pre_post): If insn has a REG_FRAME_RELATED_EXPR note, examine the pattern from the note instead of from insn. From-SVN: r141272
2008-10-21re PR middle-end/37669 (ice for legal code with -O2)Adam Nemet4-16/+35
PR middle-end/37669 * tree-ssa-ccp.c (ccp_fold_builtin): Only allow one argument to be processed by get_maxval_strlen. testsuite/ PR middle-end/37669 * gcc.c-torture/compile/pr37669-2.c: New test. From-SVN: r141270
2008-10-21re PR java/35485 (libjava is disabled by default)David Edelsohn2-3/+8
PR target/35485 * tree.c (get_file_function_name): Copy first_global_object_name. Centralize call to clean_symbol_name. From-SVN: r141269
2008-10-21config.gcc (powerpc-*): Make t-ppcgas imply usegas.h.Sandra Loosemore5-15/+41
2008-10-21 Sandra Loosemore <sandra@codesourcery.com> gcc/ * config.gcc (powerpc-*): Make t-ppcgas imply usegas.h. * config/svr4.h (SVR4_ASM_SPEC): New. (ASM_SPEC): Inherit from SVR4_ASM_SPEC. * config/rs6000/sysv4.h (ASM_SPEC): Inherit from SVR4_ASM_SPEC. * doc/invoke.texi (Option Summary): Add -T to linker options. (Link Options): Document -T. From-SVN: r141267
2008-10-21alias-19.c: New testcase.Richard Guenther2-0/+35
2008-10-21 Richard Guenther <rguenther@suse.de> * gcc.dg/tree-ssa/alias-19.c: New testcase. From-SVN: r141261
2008-10-21semantics.c (simplify_aggr_init_exprs_r): Remove.Richard Guenther2-34/+6
2008-10-21 Richard Guenther <rguenther@suse.de> * semantics.c (simplify_aggr_init_exprs_r): Remove. (expand_or_defer_fn): Do not walk the function body to simplify aggr_init_exprs. From-SVN: r141260
2008-10-21Daily bump.GCC Administrator1-1/+1
From-SVN: r141257
2008-10-21re PR debug/37020 (FAIL: gcc.dg/debug/dwarf2/dwarf-die3.c scan-assembler-not ↵Jakub Jelinek2-11/+5
DW_AT_inline) PR debug/37020 * c-decl.c (merge_decls): Don't call outlining_inline_function hook. From-SVN: r141253
2008-10-21tree-inline.c (tree_inlinable_function_p): Remove tuples debugging hack.Jakub Jelinek2-7/+4
* tree-inline.c (tree_inlinable_function_p): Remove tuples debugging hack. From-SVN: r141252
2008-10-21gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.Jakub Jelinek2-0/+15
* gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs. From-SVN: r141251
2008-10-20tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant part of ↵Daniel Berlin2-11/+8
expression. 2008-10-20 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant part of expression. From-SVN: r141249
2008-10-20re PR c/12603 (No return statement warning on function that never returns ↵Manuel López-Ibáñez2-0/+13
with -O3) 2008-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> PR 12603 * gcc.dg/pr12603.c: New testcase. From-SVN: r141244
2008-10-20* doc/install.texi: Fix typos in previous patch.Tobias Schlüter2-6/+10
From-SVN: r141240
2008-10-20Daily bump.GCC Administrator1-1/+1
From-SVN: r141236
2008-10-19re PR c++/37004 ([C++ only] Wconversion warns for short y = 0x7fff; short z ↵Manuel López-Ibáñez5-40/+84
= (short) x & y;) 2008-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/37004 cp/ * typeck.c (cp_common_type): New. The same as type_after_usual_arithmetic_conversions but without promotions. (type_after_usual_arithmetic_conversions): Do the promotions and call cp_common_type. (common_type): Make it behave like the C version of this function. Do not handle pointer types. (common_pointer_type): Move handling of pointer types from common_type to here. (cp_build_binary_op): Use common_pointer_type instead of common_type in call to pointer_diff. Use cp_common_type instead of common_type. * cp-tree.h (common_pointer_type): Declare. testsuite/ * g++.dg/warn/Wconversion-pr34389.C: Remove XFAIL. From-SVN: r141233
2008-10-19* doc/install.texi: Document in-tree building of gcc and mpfr.Tobias Schlüter2-3/+19
From-SVN: r141232
2008-10-19tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.Richard Guenther2-10/+4
2008-10-19 Richard Guenther <rguenther@suse.de> * tree-ssa-alias.c (may_alias_p): Remove bogus shortcut. From-SVN: r141229
2008-10-19re PR c/30260 (Enumeration types and enumeration constants erroneously given ↵Manuel López-Ibáñez4-17/+72
unsigned types) 2008-10-19 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c/30260 * c-decl.c (finish_enum): Convert non-integer enumerators to enum type. (build_enumerator): Convert enumerators that fit in integer to integer type. testsuite/ * gcc.dg/pr30260.c: New. From-SVN: r141224
2008-10-19Convert gcc/testsuite/ChangeLog to UTF-8.Manuel López-Ibáñez1-8/+8
Command used: LC_ALL=C sed -i \ -e 's/D\(o\|\xf6\)nmez/D\xc3\xb6nmez/' \ -e 's/\(Av\|\xc3\xc2v\|\x81\xc1v\|\xc1v\|\xef\xbf\xbdv\?\|\x81\xc3\x81v\|\xc3v\)ila/\xc3\x81vila/' \ -e 's/Esp\(in\|\xc3\xc2\xadn\|\x81\xedn\|\xedn\|\xef\xbf\xbdn\?\|\xef\xbf\xbd\xadn\|\x81\xc3\xadn\)dola/Esp\xc3\xadndola/' \ -e 's/Schl\(u\|\xc3\xc2\xbc\|\xef\xbf\xbd\|\xfcu\?\|\x81\xfc\|\x81\xc3\xbc\|\xc3\xaf\xc2\xbf\xc2\xbd\|\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xc2\xbc\)ter/Schl\xc3\xbcter/' \ -e 's/Humi\(e\|\xe8\|\xc3\xc2\xa8\)res/Humi\xc3\xa8res/' \ -e 's/L\(ow\|\xc3\xaf\xc2\xbf\xc2\xbd\|oew\|\xf6w\)is/L\xc3\xb6wis/' \ -e 's/G\xfctlein/G\xc3\xbctlein/' \ -e 's/G\xe1[b]or/G\xc3\xa1bor/' \ -e 's/L\xf3ki/L\xc3\xb3ki/' \ -e 's/Fautr\xc3 /Fautr\xc3\xa9 /' \ -e 's/S\xe9[b]astian/S\xc3\xa9bastian/' \ -e 's/Th\xef\xbf\xbd[d]ore/Th\xc3\xa9odore/' \ -e 's/Cors\xc3\xc2\xa9pius/Cors\xc3\xa9pius/' \ -e 's/K\xfchl/K\xc3\xbchl/' \ -e 's/R\xf6nnerup/R\xc3\xb6nnerup/' \ -e 's/L\xf8vset/L\xc3\xb8vset/' \ -e 's/Ph\x81\xfb\x81\xf4ng-Th\x81\xe5o/Ph\xc3\xbb\xc3\xb4ng-Th\xc3\xa5o/' \ -e 's/V\x81\xf5/V\xc3\xb5/' \ -e 's/J\xf6nsson/J\xc3\xb6nsson/' \ -e 's/V\xef\xbf\xbdis\xef\xbf\xbdnen/V\xc3\xa4is\xc3\xa4nen/' \ -e 's/J\xef\xbf\xbdrg/J\xc3\xb6rg/' \ -e 's/M\xef\xbf\xbdsli/M\xc3\xb6sli/' \ -e 's/R\xe4ty/R\xc3\xa4ty/' \ -e 's/2003\xc2\xad-/2003-/' \ -e 's/\xc2\xa0/ /g' \ -e 's/ \xa0/ /g' \ -e 's/\xa0 //' \ gcc/testsuite/ChangeLog From-SVN: r141223
2008-10-19re PR fortran/37723 (wrong result for left-right hand side array overlap and ↵Paul Thomas4-0/+47
(possibly) negative strides) 2008-10-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/37723 * dependency.c (gfc_dep_resolver ): If we find equal array element references, go on to the next reference. 2008-10-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/37723 * gfortran.dg/dependency_22.f90: New test. From-SVN: r141221
2008-10-19Daily bump.GCC Administrator1-1/+1
From-SVN: r141217
2008-10-18i386.md (unnamed peephole2): Do not force memory operands of arith or ↵Uros Bizjak3-73/+84
logical instructions into registers... * config/i386/i386.md (unnamed peephole2): Do not force memory operands of arith or logical instructions into registers for non-TARGET_READ_MODIFY targets. (ffs_cmove): Change operand 0 predicate to register_operand. Change operand 1 predicate to nonimmediate_operand. (ffsdi2): Ditto. (*ffs_no_cmove): Change operand 0 predicate to register_operand. From-SVN: r141213
2008-10-18tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard VIEW_CONVERT_EXPR ↵Richard Guenther2-18/+28
case against invalid gimple. 2008-10-18 Richard Guenther <rguenther@suse.de> * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard VIEW_CONVERT_EXPR case against invalid gimple. From-SVN: r141212
2008-10-18dll-2.c: Revert revision 138893: Change "dg-message" back to "dg-warning".Danny Smith3-3/+9
* gcc.dg/dll-2.c: Revert revision 138893: Change "dg-message" back to "dg-warning". * gcc.dg/dll-3.c: Likewise. From-SVN: r141209
2008-10-18Daily bump.GCC Administrator1-1/+1
From-SVN: r141205
2008-10-17trans.c (gnat_to_gnu): Simplify expansion to use only a single check instead ↵Geert Bosch2-47/+48
of three... * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion to use only a single check instead of three, and avoid unnecessary COMPOUND_EXPR. (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes creating more opportunities for optimizations. From-SVN: r141198
2008-10-17c-parser.c (c_parser_binary_expression): Silence the uninitialized variable ↵Andreas Krebbel2-1/+6
warning emitted for binary_loc. 2008-10-17 Andreas Krebbel <krebbel1@de.ibm.com> * c-parser.c (c_parser_binary_expression): Silence the uninitialized variable warning emitted for binary_loc. From-SVN: r141193
2008-10-17Daily bump.GCC Administrator1-1/+1
From-SVN: r141185
2008-10-16tree-ssa-pre.c (phi_translate_set): Add constants to phi translation cache.Daniel Berlin2-3/+7
2008-10-16 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-pre.c (phi_translate_set): Add constants to phi translation cache. From-SVN: r141182
2008-10-16re PR target/37381 (ICE in ia64_speculate_insn, at config/ia64/ia64.c:6902)Alexander Monakov2-0/+102
2008-10-16 Alexander Monakov <amonakov@ispras.ru> PR target/37381 * gcc.c-torture/compile/pr37381.c: New test. From-SVN: r141177
2008-10-16re PR c/33192 (__imag operator drops side effects in subexpr)Joseph Myers4-1/+30
PR c/33192 * c-typeck.c (build_unary_op): Use omit_one_operand for IMAGPART_EXPR of real argument. testsuite: * gcc.dg/imag-1.c: New test. From-SVN: r141176
2008-10-16resolve.c (resolve_elemental_actual): Handle calls to intrinsic subroutines ↵Daniel Kraft4-2/+30
correctly. 2008-10-16 Daniel Kraft <d@domob.eu> * resolve.c (resolve_elemental_actual): Handle calls to intrinsic subroutines correctly. 2008-10-16 Daniel Kraft <d@domob.eu> * gfortran.dg/elemental_intrinsic_1.f03: New test. From-SVN: r141175