re PR target/44754 (m32c_pragma_memregs / m32c_pragma_address warnings)
[gcc.git] / gcc / ChangeLog
index a2e1cc88391b6a2b2874f9f344e25e2ef75d3999..8efea324e9584802f2f708eb0fad6bd10f0adde4 100644 (file)
+2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config.gcc: Support --with-fpmath=avx for x86.
+       * config/i386/avxmath.h: New.
+       * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
+
+2010-11-05  Ian Lance Taylor  <iant@google.com>
+
+       * tree.h (struct tree_type): Don't use descbits in GTY annotation.
+       * gengtype.c (walk_type): Don't recognize descbits option.
+
+2010-11-05  Joseph Myers  <joseph@codesourcery.com>
+
+       * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
+       WORD_SWITCH_TAKES_ARG): Remove.
+       * doc/options.texi (Args): Document.
+       * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
+       * doc/tm.texi: Regenerate.
+       * opt-functions.awk (switch_flags): Handle Args.
+       * opts-common.c: Update comment on tm.h include.
+       (decode_cmdline_option): Handle options with multiple arguments.
+       Don't check WORD_SWITCH_TAKES_ARG for unknown options.
+       * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
+       (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
+       CL_COMMON): Update values.
+       * system.h (WORD_SWITCH_TAKES_ARG): Poison.
+       * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
+       * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
+       sectobjectsymbols, sectorder, segcreate, segprot): New.
+
+2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
+           Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
+       256bit AVX register is used.
+       (ix86_expand_vector_move_misalign): Likewise.
+       (ix86_expand_vector_move): Replace use_avx256_p with
+       VALID_AVX256_REG_MODE.
+
+2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
+
+        PR target/44750
+       * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
+       change.  Set $@-warn.o to -Wno-error.
+
+       PR bootstrap/44756
+       * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
+       comparing it to a signed value.
+
+       PR bootstrap/44756
+       * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
+       * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
+       to i.
+
+       PR target/44754
+       * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
+       (m32c_function_arg).  Add comma between arguments two and three.
+       (m32c_promote_prototypes): Remove declaration.
+       (current_function_special_page_vector): Likewise.
+       (m32c_regno_reg_class): Change return type to enum reg_class.
+       (m32c_pushm_popm): Use add_reg_note.
+       (m32c_push_rounding): Change return type to unsigned int.
+       (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
+       enum reload_type.
+       (m32c_insert_attributes): Constify variable name.
+       (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
+       (m32c_prepare_shift): Remove variable lref.
+       (m32c_expand_movcc): Remove variable cmp.
+       (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
+       (m32c_compare_redundant): Remove variable op2.
+       * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
+       (m32c_pragma_memregs): Assign the number to target_memregs.
+       (m32c_pragma_address): Remove variable var_str.
+       * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
+       enum reg_class.
+       (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
+       * config/m32c/bitops.md (andsi3): Add default case to switch.
+       (iorsi3, xorsi3): Likewise.
+       * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
+       * config/m32c/jump.md (call, call_value): Likewise.
+       * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
+       (m32c_regno_reg_class): Likewise.
+       (current_function_special_page_vector): Declare.
+
+2010-11-05  Jakub Jelinek  <jakub@redhat.com>
+
+       * cfgexpand.c (expand_debug_expr): Handle MEM_REF
+       with non-zero offset.
+
+       PR tree-optimization/46099
+       * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
+       if it is NULL and uid wasn't found in the hash table.  Just fold the
+       result if it is NULL otherwise.  Insert other potentially needed
+       stmts right before current stmt instead of on the entry edge.
+       (struct elv_data): Add gsi and reset fields.
+       (eliminate_local_variables_1): Adjust caller.  If take_address_of
+       failed for debug stmt, set dta->reset and return.
+       (eliminate_local_variables_stmt): Change STMT argument for GSI,
+       pass GSI through to the callback, handle resetting of debug stmts.
+       (eliminate_local_variables): Adjust caller.  Process debug stmts
+       in second phase.
+
+       PR middle-end/43690
+       * gimplify.c (gimplify_asm_expr): If a "m" input is a
+       {pre,post}{in,de}crement, fail.
+
+       PR debug/46307
+       * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
+       * tree-pretty-print.c (dump_generic_node): Likewise.
+       (op_code_prio): Likewise.
+       * cfgexpand.c (expand_debug_expr): Likewise.
+
+2010-11-04  Paul Koning  <ni1d@arrl.net>
+
+       * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
+       constraints.
+
+2010-11-04  Chao-ying Fu  <fu@mips.com>
+
+       * configure.ac: Test assembler support for DSP Rev1 mult.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
+       * config/mips/mips.c (CODE_FOR_mips_mult): New define.
+       (CODE_FOR_mips_multu): New define.
+       (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
+       dspr2_32 to dsp_32.
+       (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
+       Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
+       * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
+       New define_expand patterns.
+       * config/mips/constraints.md (ka): Update the constraint to test
+       ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
+       * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
+       mips_multu): Delete.
+       * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
+       Change target constraint to "ka".
+       Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
+       (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
+       Emit the accumulator destination when ISA_HAS_DSP_MULT.
+       (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
+       Emit the accumulator destination when ISA_HAS_DSP_MULT.
+       (<u>maddsidi4): Likewise.
+       * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
+       msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
+
+2010-11-04  Paul Koning  <ni1d@arrl.net>
+
+       * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
+
+2010-11-04  Paul Koning  <ni1d@arrl.net>
+
+       * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
+
+2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       Fixed using the Objective-C 2.0 dot-syntax with class names.
+       * c-parser.c (c_parser_next_token_starts_declspecs): In
+       Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
+       (c_parser_next_token_starts_declaration): Same.
+       (c_parser_postfix_expression): Parse the Objective-C 2.0
+       dot-syntax with a class name.
+
+2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
+
+       * final.c (compute_alignments): Compute/free loop info all the time.
+       * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
+       * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
+       * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
+       * config/rs6000/rs6000.c (cfgloop.h): Include.
+       (can_override_loop_align): New.
+       (rs6000_option_override_internal): Set it.
+       (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
+       (rs6000_loop_align): New function.
+       (rs6000_loop_align_max_skip): Likewise.
+
+2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       PR driver/45703
+       * collect2.c (main): Print --help output to stdout.  Do not
+       exit right away, so ld --help is appended.  Add empty lines
+       to separate output suitably.
+
+2010-11-04  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/46233
+       * ipa-pure-const.c (local_pure_const): Do noreturn discovery
+       after calling analyze_function, not before.
+
+       PR target/46234
+       * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
+       instead of build_va_arg_indirect_ref.
+       * config/spu/spu.c (spu_va_start): Likewise.
+       * config/s390/s390.c (s390_va_start): Likewise.
+
+2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR middle-end/46292
+       * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
+       if the innermode is not vector mode, determine the mode of a subreg
+       by using mode_for_size of inner_size.
+
+2010-11-04  Richard Guenther  <rguenther@suse.de>
+
+       PR rtl-optimization/46183
+       * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
+       (execute_rtl_pre): Likewise.
+       (execute_rtl_hoist): Likewise.
+
+2010-11-04  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/46068
+       * ipa-split.c (consider_split): Remove gcc_unreachable.
+
+2010-11-04  Richard Guenther  <rguenther@suse.de>
+
+       * tree-nested.c (build_addr): Use build_fold_addr_expr.
+
+2010-11-04  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/45991
+       * gimplify.c (force_gimple_operand_1): Use the provded test
+       function in the initial test.
+
+2010-11-04  Jeff Law  <law@redhat.com>
+
+       * ira.c (validate_equiv_mem): Remove code to avoid invalidation
+       of readonly memory equivalances for const/pure calls.
+
 2010-11-04  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/45733
        * tree-vect-stmts.c (reverse_vec_elements): Honor the
        permute builtins function return type.
 
-2010-10-04  Joern Rennecke  <amylaar@spamcop.net>
+2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
 
        PR middle-end/44765
        * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
        as an index, check it is not INVALID_REGNUM.
 
+       PR bootstrap/44756
+       * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
+       unsignedp.
+       * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
+
+       PR bootstrap/44756
+       * function.c (thread_prologue_and_epilogue_insns): Add
+       ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
+
+       PR bootstrap/44756
+       * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
+
+       PR target/44750
+       * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
+       (pdp11_preferred_reload_class): Rename class to rclass.
+       (pdp11_preferred_output_reload_class): Likewise.
+       * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
+       ALL_COMPILERFLAGS .
+       (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
+
+       PR bootstrap/44756
+       * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
+       iteration variables to enum machine_mode.
+
+       PR target/44751
+       * config/h8300/h8300.c: Include df.h.
+       (push, pop): Use add_reg_note.
+       (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
+       (compute_a_shift_cc): Likewise.
+       (expand_a_shift): Argument code has type enum rtx_code.
+       (struct shift_insn): Member cc_valid has type enum attr_cc.
+       (struct shift_info) <cc_inline, cc_special>: Likewise.
+       enum attr_cc.
+       * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
+       (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
+
 2010-11-04  Ira Rosen  <irar@il.ibm.com>
 
        PR tree-optimization/46213
        MINUS_EXPR only if the first operand is reduction operand.
 
 2010-11-04  Richard Guenther  <rguenther@suse.de>
-       Richard Henderson  <rth@redhat.com>
+           Richard Henderson  <rth@redhat.com>
 
        * tree.def (FMA_EXPR): New tree code.
        * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
        operations.
 
 2010-11-04  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
-       Richard Guenther  <rguenther@suse.de>
+           Richard Guenther  <rguenther@suse.de>
 
        * passes.c (init_optimization_passes): Move veclower after SSA.
        * tree-vect-generic.c (uniform_vector_p): New function.
 
 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
 
-       * gcc/configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
+       * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
        plugin capabilities.
-       * gcc/configure: Regenerate.
+       * configure: Regenerate.
 
 2010-11-03  Xinliang David Li  <davidxl@google.com>
 
-       PR target/46200
-       * tree-ssa-loop-ivopts.c (get_computation_cost_at):
-       Adjust cbase if the use stmt is after iv update.
+       PR target/46200
+       * tree-ssa-loop-ivopts.c (get_computation_cost_at):
+       Adjust cbase if the use stmt is after iv update.
 
 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
 
-       * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for
-       newlib targets.
+       * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
 
 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
 
 2010-11-03  Ian Lance Taylor  <iant@google.com>
 
        PR lto/46273
-       * gcc/config.gcc: Don't set lto_binary_reader.
+       * config.gcc: Don't set lto_binary_reader.
        * doc/install.texi (Prerequisites): Remove libelf paragraphs.
        (Configuration): Mention --disable-lto.  Remove --with-libelf
        paragraph.
 
 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
 
-       * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper):
-       Removed.
+       * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
        * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
 
        * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
 
 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
 
-       * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a
-       typo.
+       * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
 
 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
 
 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
            Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
 
-       * gcc/config/s390/s390.c (z196_cost): New.
+       * config/s390/s390.c (z196_cost): New.
        (s390_handle_arch_option): Add -march=z196.
        (s390_option_override): Use the new cost function and use the z10
        defaults also for z196.
        (s390_fix_long_loop_prediction): ... this.
        (s390_reorg): Apply the z10 adjustments also for z196.
        (s390_loop_unroll_adjust): Do this also for z196.
-       * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
+       * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
        (enum processor_flags): Add PF_Z196.
        (TARGET_AVOID_CMP_AND_BRANCH): New macro.
        (TARGET_CPU_Z196, TARGET_Z196): New macros.
-       * gcc/config.gcc: Enable z196 for --with-arch.
-       * gcc/config/s390/2817.md: New file.
-       * gcc/config/s390/2084.md: New type for multiply and add.
-       * gcc/config/s390/2097.md: Likewise.
-       * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
+       * config.gcc: Enable z196 for --with-arch.
+       * config/s390/2817.md: New file.
+       * config/s390/2084.md: New type for multiply and add.
+       * config/s390/2097.md: Likewise.
+       * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
        (UNSPECV_ATOMIC_OP): New constants.
        (fmadddf, fmaddsf): New values for type attribute.
        (z196prop): New insn attribute.
        use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
        (__chkstk_ms): New function.
        * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
-       * gcc/config/i386/t-interix: Likewise.
+       * config/i386/t-interix: Likewise.
        * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
        (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
        (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
            Dominique Dhumieres  <dominiq@lps.ens.fr>
 
        PR bootstrap/45751
-       * gcc/config/darwin-driver.c (darwin_default_min_version):
+       * config/darwin-driver.c (darwin_default_min_version):
        Adjust size passed to memcpy in two places.
 
 2010-09-24  Richard Guenther  <rguenther@suse.de>
 
 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
-       PR gcc/42525
+       PR other/42525
        * Makefile.in (write_entries_to_file, install-plugin):
        Use \012 instead of \n with tr.