summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* complex.c (csqrtq): NaN and INF fixes.Tobias Burnus2012-10-3111-74/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-10-31 Tobias Burnus <burnus@net-b.de> Joseph Myers <joseph@codesourcery.com> David S. Miller <davem@davemloft.net> Ulrich Drepper <drepper@redhat.com> Marek Polacek <polacek@redhat.com>: Petr Baudis <pasky@suse.cz> * math/complex.c (csqrtq): NaN and INF fixes. * math/sqrtq.c (sqrt): NaN, INF and < 0 fixes. * math/expm1q.c (expm1q): Changes from GLIBC. Use expq for large parameters. Fix errno for boundary conditions. * math/finiteq.c (finiteq): Add comment. * math/fmaq.c (fmaq): Changes from GLIBC. Fix missing underflows and bad results for some subnormal results. Fix sign of inexact zero return. Fix sign of exact zero return. Ensure additions are not scheduled after fetestexcept. * math/jnq.c (jnq): Changes from GLIBC. Set up errno properly for ynq. Fix jnq precision. * math/nearbyintq.c (nearbyintq): Changes from GLIBC. Do not manipulate bits before adding and subtracting TWO112[sx]. * math/rintq.c (rintq): Ditto. * math/scalbnq.c (scalbnq): Changes from GLIBC. Fix integer overflow. Co-Authored-By: David S. Miller <davem@davemloft.net> Co-Authored-By: Joseph Myers <joseph@codesourcery.com> Co-Authored-By: Ulrich Drepper <drepper@redhat.com> From-SVN: r193037
* re PR other/50899 (need @direntry for gcov)Tom Tromey2012-10-312-1/+7
| | | | | | | PR other/50899 * doc/gcc.texi: Add @direntry for gcov. From-SVN: r193036
* * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len.Joern Rennecke2012-10-312-1/+5
| | | | From-SVN: r193035
* Uppercase in ChangeLog.Marc Glisse2012-10-311-1/+1
| | | | From-SVN: r193034
* os_defines.h: Do not define anymore _GLIBCXX_HAVE_BROKEN_VSWPRINTF.Jonathan Yong2012-10-311-6/+1
| | | | | | | | | 2012-10-31 Jonathan Yong <jon_y@users.sourceforge.net> * config/os/mingw32-w64/os_defines.h: Do not define anymore _GLIBCXX_HAVE_BROKEN_VSWPRINTF. From-SVN: r193033
* os_defines.h: Do not define anymore _GLIBCXX_HAVE_BROKEN_VSWPRINTF.Jonathan Yong2012-10-312-2/+8
| | | | | | | | | 2012-10-31 Jonathan Yong <jon_y@users.sourceforge.net> * config/os/mingw32-w64/os_defines.h: Do not define anymore _GLIBCXX_HAVE_BROKEN_VSWPRINTF. From-SVN: r193032
* PR c++/54955 - Fail to parse alignas expr at the beginning of a declarationDodji Seketeli2012-10-314-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In this PR, g++ embarrassingly fails to parse the simple alignas expression below: alignas(double) int f; even though the simple-declaration production in Clause 7 suggests otherwise. Fixed thus and tested on x86_64-unknown-linux-gnu against trunk. gcc/cp PR c++/54955 * parser.c (cp_nth_tokens_can_be_std_attribute_p): Recognize the 'Alignas' keyword as the beginning of a c++11 attribute specifier. Update the comment of the function. (cp_next_tokens_can_be_gnu_attribute_p): Update the comment of the function. gcc/testsuite/ PR c++/54955 * g++.dg/cpp0x/gen-attrs-48-2.C: New test. From-SVN: r193029
* re PR tree-optimization/19105 (fold does not spot anti-range test)Jakub Jelinek2012-10-317-30/+942
| | | | | | | | | | | | | | | | | | | | | | PR tree-optimization/19105 PR tree-optimization/21643 PR tree-optimization/46309 * tree-ssa-reassoc.c (init_range_entry): Add STMT argument and use it if EXP is NULL. (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL. (optimize_range_tests): Likewise. (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops, maybe_optimize_range_tests): New functions. (reassociate_bb): Call maybe_optimize_range_tests if last stmt of bb is GIMPLE_COND that hasn't been visited yet. * gcc.dg/pr19105.c: New test. * gcc.dg/pr21643.c: New test. * gcc.dg/pr46309-2.c: New test. * gcc.c-torture/execute/pr46309.c: New test. From-SVN: r193028
* rs6000.md (insvsi, [...]): Rename to...Richard Sandiford2012-10-312-8/+19
| | | | | | | | | | gcc/ * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename to... (insvsi_internal, insvdi_internal, extvsi_internal) (extvdi_internal): ...this. (insv, extv): Update accordingly. From-SVN: r193027
* combine.c (simplify_comparison): If BITS_BIG_ENDIAN...Richard Sandiford2012-10-312-11/+6
| | | | | | | | gcc/ * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume that zero_extracts of const_ints are doing word-sized extractions. From-SVN: r193026
* combine.c (make_extraction): Remove dead wanted_inner_mode- and ↵Richard Sandiford2012-10-312-15/+5
| | | | | | | | | | pos_rtx-related code. gcc/ * combine.c (make_extraction): Remove dead wanted_inner_mode- and pos_rtx-related code. From-SVN: r193025
* expmed.c (store_bit_field_1): Move generation of MEM insvs to the MEM_P block.Richard Sandiford2012-10-312-15/+31
| | | | | | | | | gcc/ * expmed.c (store_bit_field_1): Move generation of MEM insvs to the MEM_P block. (extract_bit_field_1): Likewise extvs and extzvs. From-SVN: r193024
* expmed.c (store_bit_field_using_insv): New function, split out from...Richard Sandiford2012-10-312-182/+216
| | | | | | | | | | | gcc/ * expmed.c (store_bit_field_using_insv): New function, split out from... (store_bit_field_1): ...here. (extract_bit_field_using_extv): New function, split out from... (extract_bit_field_1): ...here. From-SVN: r193023
* expmed.c (store_bit_field_1): Use OP_MODE to check whether an insv pattern ↵Richard Sandiford2012-10-312-12/+14
| | | | | | | | | | | | | is available. gcc/ * expmed.c (store_bit_field_1): Use OP_MODE to check whether an insv pattern is available. Remove redundant checks for OP_MODE being MAX_MACHINE_MODE. (extract_bit_field_1): Remove redundant checks for EXT_MODE being MAX_MACHINE_MODE. From-SVN: r193022
* expmed.c (store_bit_field_1): Remove test for BLKmode values.Richard Sandiford2012-10-312-1/+4
| | | | | | | gcc/ * expmed.c (store_bit_field_1): Remove test for BLKmode values. From-SVN: r193021
* t-rtems: New (Custom multilibs).Ralf Corsepius2012-10-314-2/+54
| | | | | | | | | | | | | | | 2012-10-31 Ralf Corsépius <ralf.corsepius@rtems.org>, Joel Sherrill <joel.sherrill@oarcorp.com> * config/sparc/t-rtems: New (Custom multilibs). * config/sparc/t-rtems-64: New (Custom multilibs). * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64. (sparc-*-rtems*): Add sparc/t-rtems. Co-Authored-By: Joel Sherrill <joel.sherrill@oarcorp.com> From-SVN: r193018
* Detect assembler support for RTMRichard Henderson2012-10-306-45/+79
| | | | | | | | | * acinclude.m4 (LIBITM_CHECK_AS_RTM): New. * configure.ac: Use it. * config.h.in, configure: Rebuild. * testsuite/Makefile.in: Rebuild. From-SVN: r193017
* rs6000.c (legitimize_reload_address): Remove code handling non-aligned ld/std.Alan Modra2012-10-3111-36/+228
| | | | | | | | | | | | | | | | | gcc/ * config/rs6000/rs6000.c (legitimize_reload_address): Remove code handling non-aligned ld/std. * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'. * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise. * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise. * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'. gcc/testsuite/ * gcc.target/powerpc/dimode_off.c: New. * gcc.target/powerpc/timode_off.c: New. * gcc.target/powerpc/dfmode_off.c: New. * gcc.target/powerpc/tfmode_off.c: New. From-SVN: r193016
* linux64_closure.S: Add new ABI support.Alan Modra2012-10-313-4/+42
| | | | | | | * src/powerpc/linux64_closure.S: Add new ABI support. * src/powerpc/linux64.S: Likewise. From-SVN: r193015
* linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX.Alan Modra2012-10-312-0/+6
| | | | | | * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX. From-SVN: r193014
* re PR target/52498 (vmsdbgout.c fails to build with --enable-werror-always)Joern Rennecke2012-10-312-1/+5
| | | | | | | | PR target/52498 * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of last two parameters. From-SVN: r193013
* lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to hard_reg_class.Joern Rennecke2012-10-312-1/+7
| | | | | | | * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to hard_reg_class. From-SVN: r193012
* config.host (m32r-*-rtems*): Include crtinit.o and crtfinit.o as extra_parts.Joel Sherrill2012-10-312-0/+6
| | | | | | | | | 2012-10-31 Joel Sherrill <joel.sherrill@oarcorp.com> * config.host (m32r-*-rtems*): Include crtinit.o and crtfinit.o as extra_parts. From-SVN: r193010
* forward_list.h (forward_list): Adjust comments.Jonathan Wakely2012-10-313-42/+32
| | | | | | | | | | | | | | | | * include/bits/forward_list.h (forward_list): Adjust comments. (forward_list(const forward_list&, const _Alloc&)): Use _M_range_initialize to copy elements. (forward_list(forward_list&&, const _Alloc&)): Add exception specification. (_Fwd_list_base(const _Fwd_list_base&, const _Node_alloc_type&)): Remove. * include/bits/forward_list.tcc (_Fwd_list_base(const _Fwd_list_base&, const _Node_alloc_type&)): Remove. (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Fix memory leak when allocators are not equal. From-SVN: r193009
* compiler: Add -fgo-relative-import-path.Ian Lance Taylor2012-10-3110-10/+78
| | | | | | | | | | | | | * lang.opt (-fgo-relative-import-path): New option. * go-lang.c (go_relative_import_path): New static variable. (go_langhook_init): Pass go_relative_import_path to go_create_gogo. (go_langhook_handle_option): Handle -fgo-relative-import-path. * go-c.h (go_create_gogo): Update declaration. * gccgo.texi (Invoking gccgo): Document -fgo-relative-import-path. From-SVN: r193008
* Daily bump.GCC Administrator2012-10-311-1/+1
| | | | From-SVN: r193006
* re PR debug/54551 (DF resets some DEBUG_INSNs unnecessarily)Alexandre Oliva2012-10-302-3/+13
| | | | | | | | | | PR debug/54551 PR debug/54693 * valtrack.c (dead_debug_promote_uses): Assert-check that global used bit was clear and initialize entry unconditionally. From-SVN: r193003
* cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in head ↵Eric Botcazou2012-10-302-2/+8
| | | | | | | | | | comment. * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in head comment. (hash_rtx): Likewise. From-SVN: r193001
* Remove lra_in_progress check for ARG_POINTER_REGNUMH.J. Lu2012-10-304-4/+92
| | | | | | | | | | | | | | | gcc/ PR rtl-optimization/55093 * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress check for ARG_POINTER_REGNUM. gcc/testsuite/ PR rtl-optimization/55093 * gcc.target/i386/pr55093.c: New file. From-SVN: r193000
* * gcc-interface/Make-lang.in: Fix and clean up rules for C files.Eric Botcazou2012-10-302-24/+15
| | | | From-SVN: r192998
* Rename pr55116.c to pr55116-1.cH.J. Lu2012-10-302-0/+5
| | | | | | | * gcc.target/i386/pr55116.c: Renamed to ... * gcc.target/i386/pr55116-1.c: This. From-SVN: r192997
* Add another testcase for PR middle-end/55116H.J. Lu2012-10-302-0/+90
| | | | | | * gcc.target/i386/pr55116-2.c: New file. From-SVN: r192996
* mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order and add mabi=64.Steve Ellcey2012-10-303-3/+25
| | | | | | | | | | | | | 2012-10-30 Steve Ellcey <sellcey@mips.com> * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order and add mabi=64. (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs. * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order. (MULTILIB_DIRNAMES): Ditto. (MULTILIB_EXCEPTIONS): New. From-SVN: r192995
* Fix ChangeLog typo.Joern Rennecke2012-10-301-1/+1
| | | | From-SVN: r192994
* lra-constrraints.c (check_secondary_memory_needed_p): Add ATTRIBUTE_UNUSED ↵Joern Rennecke2012-10-302-1/+7
| | | | | | | | | to parameters. * lra-constrraints.c (check_secondary_memory_needed_p): Add ATTRIBUTE_UNUSED to parameters. From-SVN: r192993
* defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition.Richard Sandiford2012-10-305-17/+13
| | | | | | | | | | | gcc/ * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition. * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition. * expr.c (SLOW_UNALIGNED_ACCESS): Likewise. * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise. (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here. From-SVN: r192992
* * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup.Jan Hubicka2012-10-302-10/+14
| | | | From-SVN: r192991
* tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter ↵Jan Hubicka2012-10-301-1/+2
| | | | | | | | | | | | | | | | | | EVERY_ITERATION with implicit value of true. * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter EVERY_ITERATION with implicit value of true. (record_estimate): Check dominance relationship of the basic block we are estimating on instead of relying on UPPER to be false. (struct ilb_data): Drop RELIABLE. (idx_infer_loop_bounds): Update. (infer_loop_bounds_from_ref): Drop parameter RELIABLE. (infer_loop_bounds_from_array): Drop parameter RELIABLE. (infer_loop_bounds_from_undefined): Update comments and handling of RELIABLE. (estimate_numbers_of_iterations_loop): Record all bounds. From-SVN: r192990
* tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter ↵Jan Hubicka2012-10-302-16/+37
| | | | | | | | | | | | | | | | | | EVERY_ITERATION with implicit value of true. * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter EVERY_ITERATION with implicit value of true. (record_estimate): Check dominance relationship of the basic block we are estimating on instead of relying on UPPER to be false. (struct ilb_data): Drop RELIABLE. (idx_infer_loop_bounds): Update. (infer_loop_bounds_from_ref): Drop parameter RELIABLE. (infer_loop_bounds_from_array): Drop parameter RELIABLE. (infer_loop_bounds_from_undefined): Update comments and handling of RELIABLE. (estimate_numbers_of_iterations_loop): Record all bounds. From-SVN: r192989
* lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg rather ↵Richard Sandiford2012-10-302-1/+7
| | | | | | | | | | than gen_rtx_SUBREG. gcc/ * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg rather than gen_rtx_SUBREG. From-SVN: r192988
* gimple.h (gimple_store_p): New predicate.Richard Biener2012-10-305-6/+42
| | | | | | | | | | | | 2012-10-30 Richard Biener <rguenther@suse.de> * gimple.h (gimple_store_p): New predicate. (gimple_assign_load_p): Likewise. * tree-inline.c (estimate_num_insns): Use it. * gcc.dg/vect/slp-perm-2.c: Adjust. From-SVN: r192987
* fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors.Marc Glisse2012-10-302-4/+18
| | | | | | | | | 2012-10-30 Marc Glisse <marc.glisse@inria.fr> * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors. (fold_binary_loc): call it for VEC_COND_EXPR. From-SVN: r192986
* 2012-10-30 James Greenhalgh <james.greenhalgh@arm.com>James Greenhalgh2012-10-303-0/+156
| | | | | | | | | | | | | | | | | Tejas Belagod <tejas.belagod@arm.com> * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal): New pattern. (aarch64_simd_bsl<mode>): Likewise. (aarch64_vcond_internal<mode>): Likewise. (vcondu<mode><mode>): Likewise. (vcond<mode><mode>): Likewise. * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants. Co-Authored-By: Tejas Belagod <tejas.belagod@arm.com> From-SVN: r192985
* re PR tree-optimization/55111 (ICE: tree check: expected ssa_name, have ↵Richard Biener2012-10-304-2/+37
| | | | | | | | | | | | | | integer_cst in live_on_edge, at tree-vrp.c:89) 2012-10-30 Richard Biener <rguenther@suse.de> PR tree-optimization/55111 * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt. * gcc.dg/torture/pr55111.c: New testcase. From-SVN: r192984
* re PR target/54963 (Wrong code generated for ↵Oleg Endo2012-10-303-92/+84
| | | | | | | | | | | | | | | | | | | | | | libgfortran/generated/eoshift3_8.c on SH) PR target/54963 * config/sh/iterators.md (SIDI): New mode iterator. * config/sh/sh.md (negdi2): Use parallel around operation and T_REG clobber in expander. (*negdi2): Mark output operand as early clobbered. Add T_REG clobber. Split after reload. Simplify split code. (abssi2, absdi2): Fold expanders into abs<mode>2. (*abssi2, *absdi2): Fold into *abs<mode>2 insn_and_split. Split insns before reload. (*negabssi2, *negabsdi2): Fold into *negabs<mode>2. Add T_REG clobber. Split insns before reload. (negsi_cond): Reformat. Use emit_move_insn instead of gen_movesi. (negdi_cond): Reformat. Use emit_move_insn instead of a pair of gen_movsi. Split insn before reload. From-SVN: r192983
* re PR c++/54988 (fpmath=sse target pragma causes inlining failure because of ↵Oleg Endo2012-10-305-2/+117
| | | | | | | | | | | | | | target specific option mismatch) PR target/54988 * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero. (*tst<mode>_t_zero): New insns. * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes. PR target/54988 * gcc.target/sh/pr53988.c: New. From-SVN: r192982
* Remove alloca from dump_gimple_bb_headerH.J. Lu2012-10-302-55/+51
| | | | | | * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca. From-SVN: r192981
* Add myself to MAINTAINERSGanesh Gopalasubramanian2012-10-302-0/+5
| | | | From-SVN: r192980
* re PR debug/54953 (New sra-1.c FAILs on powerpc)Jakub Jelinek2012-10-304-5/+26
| | | | | | | | | | | | PR debug/54953 * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New. * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE. * dce.c (word_dce_process_block, dce_process_block): Pass DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore not going to be eliminated. From-SVN: r192978
* re PR target/54989 (FAIL: gcc.dg/hoist-register-pressure.c scan-rtl-dump ↵Bin Cheng2012-10-303-1/+40
| | | | | | | | | | | hoist "PRE/HOIST: end of bb .* copying expression" on darwin) PR target/54989 * gcc.dg/hoist-register-pressure-1.c: Rename from hoist-register-pressure.c. Add nonpic condition. * gcc.dg/hoist-register-pressure-2.c: New testcase. From-SVN: r192976