- 11 May, 2007 7 commits
-
-
2007-05-11 Paolo Carlini <pcarlini@suse.de> PR other/31852 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE. * builtins.def: Add BUILT_IN_MEMCHR, use the latter. * builtins.c (fold_builtin_memchr): New. (expand_builtin_memchr): Call the latter. (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR. * doc/extend.texi ([Other built-in functions provided by GCC]): Document memchr. /testsuite 2007-05-11 Paolo Carlini <pcarlini@suse.de> PR other/31852 * gcc.c-torture/execute/builtins/memchr.c: New. * gcc.c-torture/execute/builtins/memchr-lib.c: New. * gcc.c-torture/execute/builtins/lib/memchr.c: New. From-SVN: r124617
Paolo Carlini committed -
2007-05-11 Paul Thomas <pault@gcc.gnu.org> PR fortran/30876 * trans-expr.c (gfc_conv_function_call): Reduce indirection for direct assignments of recursive array valued functions. * primary.c (gfc_match_rvalue): Correct error for recursive function calls such that directly recursive calls of scalar function without an explicit result are disallowed. 2007-05-11 Paul Thomas <pault@gcc.gnu.org> PR fortran/30876 * gfortran.dg/recursive_reference_1.f90: Put error at correct line. * gfortran.dg/recursive_reference_2.f90: New test. From-SVN: r124616
Paul Thomas committed -
2007-05-11 Paul Thomas <pault@gcc.gnu.org> PR fortran/30878 * resolve.c (resolve_fl_namelist): It is not an error if the namelist element is the result variable of the enclosing function. Search for the symbol in current and all parent namespaces for a potential conflict. * symbol.c (check_conflict): Remove the conflict between 'in_namelist' and 'FL_PROCEDURE' because the symbol info is not available to exclude function result variables. * trans-io.c (nml_get_addr_expr): Use the fake result decl if the symbol is an implicit result variable. 2007-05-11 Paul Thomas <pault@gcc.gnu.org> PR fortran/30878 * gfortran.dg/namelist_29.f90: New test. From-SVN: r124615
Paul Thomas committed -
2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM, PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF, PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT, PFPO_OP1_TYPE_SHIFT): Constants added. (DFP_ALL): Mode macro defined. ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2", "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"): Insn definitions added. ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2", "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"): Expanders added. From-SVN: r124614
Andreas Krebbel committed -
2007-05-11 Paul Thomas <pault@gcc.gnu.org> PR fortran/31474 * decl.c (get_proc_name): If an entry has already been declared as a module procedure, pick up the symbol and the symtree and use them for the entry. 2007-05-11 Paul Thomas <pault@gcc.gnu.org> PR fortran/31474 * gfortran.dg/entry_10.f90: New test. From-SVN: r124613
Paul Thomas committed -
2007-05-10 Paolo Carlini <pcarlini@suse.de> * 27_io/objects/wchar_t/11.cc: Include <cstring>. * 27_io/objects/wchar_t/10.cc: Likewise. * 27_io/objects/wchar_t/12.cc: Likewise. * 27_io/basic_streambuf/sputbackc/char/9538.cc: Likewise. * 27_io/basic_streambuf/sgetn/char/1.cc: Likewise. * 27_io/basic_streambuf/overflow/char/1.cc: Likewise. * 27_io/basic_streambuf/sgetc/char/1.cc: Likewise. * 27_io/basic_streambuf/sputn/wchar_t/1.cc: Likewise. * 27_io/basic_streambuf/sputn/char/1.cc: Likewise. * 27_io/basic_ios/cons/char/3.cc: Likewise. * 27_io/basic_stringbuf/setbuf/char/2.cc: Likewise. * 27_io/basic_stringbuf/setbuf/char/3.cc: Likewise. * 27_io/basic_stringbuf/setbuf/char/4.cc: Likewise. * 27_io/basic_istream/extractors_character/char/4.cc: Likewise. * 27_io/fpos/mbstate_t/1.cc: Likewise. * 27_io/basic_filebuf/setbuf/char/2.cc: Likewise. * 27_io/basic_filebuf/setbuf/char/3.cc: Likewise. * 25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise. * 25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise. * 19_diagnostics/stdexceptions.cc: Likewise. * 21_strings/char_traits/requirements/short/1.cc: Likewise. * 21_strings/basic_string/compare/char/1.cc: Likewise. * 21_strings/basic_string/capacity/1.cc: Likewise. * ext/codecvt/char-1.cc: Likewise. * ext/codecvt/char-2.cc: Likewise. * ext/codecvt/1.cc: Likewise. * ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise. * ext/stdio_sync_filebuf/char/1.cc: Likewise. * ext/stdio_filebuf/char/2.cc: Likewise. * ext/stdio_filebuf/char/10063-1.cc: Likewise. * 22_locale/ctype/narrow/char/19955.cc: Likewise. * 22_locale/codecvt/unshift/wchar_t/1.cc: Likewise. * 22_locale/codecvt/unshift/wchar_t/2.cc: Likewise. * 22_locale/codecvt/unshift/wchar_t/3.cc: Likewise. * 22_locale/codecvt/unshift/wchar_t/4.cc: Likewise. * 22_locale/codecvt/unshift/char/1.cc: Likewise. * 22_locale/codecvt/length/wchar_t/1.cc: Likewise. * 22_locale/codecvt/length/wchar_t/2.cc: Likewise. * 22_locale/codecvt/length/wchar_t/3.cc: Likewise. * 22_locale/codecvt/length/wchar_t/4.cc: Likewise. * 22_locale/codecvt/length/wchar_t/5.cc: Likewise. * 22_locale/codecvt/length/wchar_t/6.cc: Likewise. * 22_locale/codecvt/length/wchar_t/7.cc: Likewise. * 22_locale/codecvt/always_noconv/char/1.cc: Likewise. * 22_locale/codecvt/encoding/char/1.cc: Likewise. * 22_locale/codecvt/in/wchar_t/1.cc: Likewise. * 22_locale/codecvt/in/wchar_t/2.cc: Likewise. * 22_locale/codecvt/in/wchar_t/3.cc: Likewise. * 22_locale/codecvt/in/wchar_t/4.cc: Likewise. * 22_locale/codecvt/in/wchar_t/5.cc: Likewise. * 22_locale/codecvt/in/wchar_t/6.cc: Likewise. * 22_locale/codecvt/in/wchar_t/7.cc: Likewise. * 22_locale/codecvt/in/wchar_t/8.cc: Likewise. * 22_locale/codecvt/in/wchar_t/9.cc: Likewise. * 22_locale/codecvt/in/char/1.cc: Likewise. * 22_locale/codecvt/max_length/char/1.cc: Likewise. * 22_locale/codecvt/out/wchar_t/1.cc: Likewise. * 22_locale/codecvt/out/wchar_t/2.cc: Likewise. * 22_locale/codecvt/out/wchar_t/3.cc: Likewise. * 22_locale/codecvt/out/wchar_t/4.cc: Likewise. * 22_locale/codecvt/out/wchar_t/5.cc: Likewise. * 22_locale/codecvt/out/wchar_t/6.cc: Likewise. * 22_locale/codecvt/out/wchar_t/7.cc: Likewise. * 22_locale/codecvt/out/char/1.cc: Likewise. * 22_locale/locale/cons/5.cc: Likewise. * 22_locale/collate_byname/named_equivalence.cc: Likewise. From-SVN: r124610
Paolo Carlini committed -
From-SVN: r124607
GCC Administrator committed
-
- 10 May, 2007 14 commits
-
-
PR tree-optimization/31885 * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE to be undetermined. (automatically_generated_chrec_p): Return false for NULL. * gcc.dg/tree-ssa/loop-29.c: New test. From-SVN: r124602
Zdenek Dvorak committed -
* src/m68k/ffi.c (ffi_prep_incoming_args_SYSV, ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support. * src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise. * src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise. (FFI_CLOSURES): Enable closure support. From-SVN: r124601
Roman Zippel committed -
* configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test. * configure: Regenerate. * fficonfig.h.in: Regenerate. * src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC, CFI_OFFSET,CFI_DEF_CFA): New macros. (ffi_call_SYSV): Add callframe annotation. From-SVN: r124600
Roman Zippel committed -
* src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix numerous test suite failures. * src/m68k/sysv.S (ffi_call_SYSV): Likewise. From-SVN: r124599
Roman Zippel committed -
2007-05-10 Dominique d'Humieres <dominiq@lps.ens.fr> * assumed_dummy_1.f90: Fix dg directive. * char_initialiser_actual.f90: Likewise. * nested_modules_2.f90: Likewise. * shift-alloc.f90: Likewise. From-SVN: r124598
Dominique d'Humieres committed -
From-SVN: r124597
Mike Stump committed -
* config/bfin/bfin.h (MOVE_RATIO): Define. From-SVN: r124596
Bernd Schmidt committed -
gcc/ * config.gcc (sparc-wrs-vxworks): New target. * config/sparc/vxworks.h, config/sparc/t-vxworks: New files. * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare. * config/sparc/sparc.h: Include vxworks-dummy.h. (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to include LABEL_REFs too. * config/sparc/sparc.c (sparc_expand_move): Don't assume that _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on VxWorks. (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs on VxWorks. (load_pic_register): Use gen_vxworks_load_got for VxWorks. (sparc_emit_call_insn): New function. (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding functions when generating VxWorks PIC. * config/sparc/sparc.md (vxworks_load_got): New pattern. (call, call_value): Use sparc_emit_call_insn instead of emit_call_insn. libgcc/ * config.host (sparc-wrs-vxworks): New target. From-SVN: r124595
Richard Sandiford committed -
2007-05-10 Andreas Krebbel <krebbel1@de.ibm.com> * gcc.dg/20070507-1.c: Disable for non-pic targets. From-SVN: r124593
Andreas Krebbel committed -
2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/31880 * gfortran.dg/unf_read_corrupted_2.f90: Fix test. From-SVN: r124591
Jerry DeLisle committed -
2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/31880 * gfortran.dg/unf_read_corrupted_2.f90: New test. From-SVN: r124590
Jerry DeLisle committed -
From-SVN: r124589
Mike Stump committed -
2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/31880 * io/unix.c (fd_alloc_r_at): Fix calculation of physical offset. From-SVN: r124588
Jerry DeLisle committed -
From-SVN: r124586
GCC Administrator committed
-
- 09 May, 2007 10 commits
-
-
From-SVN: r124583
Mike Stump committed -
From-SVN: r124580
Mike Stump committed -
From-SVN: r124579
Bob Wilson committed -
xtensa.c (xtensa_output_literal): Mask out high bits for floating-point values if HOST_BITS_PER_LONG > 32. * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits for floating-point values if HOST_BITS_PER_LONG > 32. Use split_double instead of operand_subword. From-SVN: r124578
Bob Wilson committed -
* config/bfin/bfin.h (LOCAL_ALIGNMENT): Define. * config/bfin/bfin.c (bfin_local_alignment): New function. * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it. From-SVN: r124570
Bernd Schmidt committed -
2007-05-09 Andreas Krebbel <krebbel1@de.ibm.com> * gcc.dg/20070507-1.c: New testcase. From-SVN: r124567
Andreas Krebbel committed -
From-SVN: r124566
Mark Mitchell committed -
* libstdc++-v3/libsupc++/cxxabi.h (_GLIBCXX_NOTHROW): New macro. (__cxa_atexit): Use it. * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): For installed-tree testing, search more include directories. From-SVN: r124565
Mark Mitchell committed -
2007-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com> * typeck.c (build_unary_op): Remove code that used to handle non lvalue increments/decrements. From-SVN: r124564
Andrew Pinski committed -
From-SVN: r124562
GCC Administrator committed
-
- 08 May, 2007 9 commits
-
-
* gcc.target/mips/msub-3.c, gcc.target/mips/msub-4.c, * gcc.target/mips/msubu-1.c, gcc.target/mips/msubu-2.c, * gcc.target/mips/msubu-3.c, gcc.target/mips/msubu-4.c: New tests. From-SVN: r124559
Chao-ying Fu committed -
* doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document. * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes. (smsub_widen_optab, umsub_widen_optab): Define. * optabs.c (init_optabs): Initialize smsub_widen_optab and umsub_widen_optab. * genopinit.c (optabs): Fill in smsub_widen_optab and umsub_widen_optab. * expr.c (expand_expr_real_1): Try to use smsub_widen_optab and umsub_widen_optab to implement multiply-subtract sequences. * config/mips/mips.md (*msac<u>_di): Rename to... (<u>msubsidi4): ...this. Extend condition to include GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint of operand 0 to "ka" and use the three-operand form of msub<u> for TARGET_DSPR2. * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert to define_expands. From-SVN: r124558
Chao-ying Fu committed -
re PR rtl-optimization/28011 ([SH] g++ generates wrong code, if '-fno-exceptions' and '-O' options are specified) PR rtl-optimization/28011 * reload.c (push_reload): Set dont_share if IN appears in OUT also when IN is a PLUS rtx. (reg_overlap_mentioned_for_reload_p): Return true if X and IN are same PLUS rtx. From-SVN: r124557
Kaz Kojima committed -
* emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't call unshare_all_decls. (unshare_all_rtl): Adjust the call to unshare_all_rtl_1. (unshare_all_decls): Remove. From-SVN: r124556
Kazu Hirata committed -
2007-05-08 Simon Martin <simartin@users.sourceforge.net> PR 31847 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree dumps. From-SVN: r124551
Simon Martin committed -
2007-05-08 Paul Thomas <pault@gcc.gnu.org> PR fortran/31630 * resolve.c (resolve_symbol): Remove the flagging mechanism from the formal namespace resolution and instead check that the formal namespace is not the current namespace. From-SVN: r124550
Paul Thomas committed -
2007-05-08 Paul Thomas <pault@gcc.gnu.org> PR fortran/31692 * trans-array.c (gfc_conv_array_parameter): Convert full array references to the result of the procedure enclusing the call. 2007-05-08 Paul Thomas <pault@gcc.gnu.org> PR fortran/31692 * gfortran.dg/actual_array_result_1.f90: New test. From-SVN: r124546
Paul Thomas committed -
2007-05-08 Sandra Loosemore <sandra@codesourcery.com> Nigel Stephens <nigel@mips.com> gcc/ * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC. Update comments and all uses. (MIN_FPRS_PER_FMT): Define. * config/mips/mips.c (function_arg): Fix to correctly handle the -mips32r2 -mfp64 -mabi=32 case. (override_options): Enable use of odd-numbered registers for SFmode values on MIPS32. (mips_save_reg_p): Save whole floating-point register pair if either half is used. (compute_frame_size): Fix comment. Co-Authored-By: Nigel Stephens <nigel@mips.com> From-SVN: r124545
Sandra Loosemore committed -
* config/bfin/bfin-protos.h (enum bfin_cpu): Add BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561. * config/bfin/bfin.c (bfin_handle_option): Handle -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561. * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Support bf534, bf536 and bf561. * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim. From-SVN: r124544
Jie Zhang committed
-