aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2011-02-17re PR c++/47783 (Warning 'set but not used' [-Wunused-but-set-parameter] ↵Jakub Jelinek4-0/+35
incorrectly issued for update through reference wrapper) PR c++/47783 * cvt.c (convert_from_reference): Call mark_exp_read. * g++.dg/warn/Wunused-parm-4.C: New test. From-SVN: r170255
2011-02-17re PR driver/47390 (Linking with -export-dynamic broken)Joseph Myers3-0/+14
PR driver/47390 * common.opt (export-dynamic): New Driver option. * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}. From-SVN: r170253
2011-02-17* config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.Joseph Myers2-2/+6
From-SVN: r170252
2011-02-17re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining ↵Alexandre Oliva9-68/+109
-flto -fconserve-stack) PR debug/47106 PR debug/47402 * cfgexpand.c (account_used_vars_for_block): Remove. (estimated_stack_frame_size): Use referenced vars. * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced that were referenced in the original function. Test src_fn rather than cfun. Drop redundant get_var_ann. (setup_one_parameter): Drop redundant get_var_ann. (declare_return_variable): Likewise. (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn. (copy_arguments_for_versioning): Drop redundant get_var_ann. * ipa-inline.c (compute_inline_parameters): Do not compute disregard_inline_limits here. are not available. (compute_inlinable_for_current, pass_inlinable): New. (pass_inline_parameters): Require PROP_referenced_vars. * cgraphunit.c (cgraph_process_new_functions): Don't run compute_inline_parameters explicitly unless function is in SSA form. (cgraph_analyze_function): Set .disregard_inline_limits. * tree-sra.c (convert_callers): Compute inliner parameters only for functions already in SSA form. * g++.dg/debug/pr47106.C: New. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r170249
2011-02-17sparc.h (CPP_ENDIAN_SPEC): Don't handle -mlittle-endian-data.Joseph Myers2-3/+7
* config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle -mlittle-endian-data. From-SVN: r170247
2011-02-17linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and -mno-fpu, not -fpu and ↵Joseph Myers4-5/+12
-no-fpu. * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and -mno-fpu, not -fpu and -no-fpu. * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise. * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise. From-SVN: r170246
2011-02-17re PR target/43653 (ICE at reload1.c:1188 with -O1 -ftree-vectorize and ↵Uros Bizjak4-16/+78
empty struct) PR target/43653 * config/i386/i386.c (ix86_secondary_reload): Handle SSE input reload with PLUS RTX. testsuite/ChangeLog: PR target/43653 * gcc.target/i386/pr43653.c: New test. From-SVN: r170241
2011-02-17re PR c++/47172 ([C++0x] cannot call member function without object)Dodji Seketeli5-3/+52
Fix PR c++/47172 gcc/cp/ PR c++/47172 * pt.c (finish_call_expr): Consider a call expression that has a dependent "this" pointer as being dependent. Add comments. (dependent_type_p, type_dependent_expression_p): Update comments. gcc/testsuite/ * g++.dg/template/inherit6.C: New test. From-SVN: r170240
2011-02-17mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead of InverseVar(MDMX).Joseph Myers2-1/+6
* config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead of InverseVar(MDMX). From-SVN: r170237
2011-02-17Daily bump.GCC Administrator1-1/+1
From-SVN: r170234
2011-02-17embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of --m4-340.Joseph Myers2-2/+7
* config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of --m4-340. From-SVN: r170230
2011-02-16* config/mn10300/mn10300.opt (mno-crt0): New.Joseph Myers2-0/+8
From-SVN: r170228
2011-02-16* config/m68k/uclinux.opt (static-libc): New Driver option.Joseph Myers2-0/+7
From-SVN: r170227
2011-02-16* config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.Joseph Myers2-8/+12
From-SVN: r170226
2011-02-16lm32.h (ASM_SPEC): Use %{muser-enabled} instead of %{muser-extend-enabled}.Joseph Myers2-2/+7
* config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of %{muser-extend-enabled}. From-SVN: r170224
2011-02-16re PR fortran/47745 ([OOP] Segfault with CLASS(*) and derived type dummy ↵Janus Weil8-13/+60
arguments) 2011-02-16 Janus Weil <janus@gcc.gnu.org> PR fortran/47745 * class.c (gfc_build_class_symbol): Set 'class_ok' attribute. * decl.c (build_sym,attr_decl1): Move setting of 'class_ok' into 'gfc_build_class_symbol'. (gfc_match_decl_type_spec): Reject unlimited polymorphism. * interface.c (matching_typebound_op): Check for 'class_ok' attribute. * match.c (select_type_set_tmp): Move setting of 'class_ok' into 'gfc_build_class_symbol'. * primary.c (gfc_variable_attr): Check for 'class_ok' attribute. 2011-02-16 Janus Weil <janus@gcc.gnu.org> PR fortran/47745 * gfortran.dg/class_39.f03: New. From-SVN: r170223
2011-02-16re PR c++/47326 ([C++0x] ICE in tsubst_copy (triggered by dependency of ↵Dodji Seketeli4-3/+43
return type on parameter pack size)) PR c++/47326 gcc/cp/ PR c++/47326 * pt.c (tsubst_copy)<case SIZEOF_EXPR>: Ensure that even pack expansion arguments are not evaluated. gcc/testsuite/ PR c++/47326 * g++.dg/cpp0x/variadic106.C: New test. From-SVN: r170222
2011-02-16re PR libfortran/47757 (Unintentionally? not exported _gfortran_* symbols in ↵Jakub Jelinek4-0/+73
libgfortran.so.3) PR libfortran/47757 * gfortran.map (GFORTRAN_1.4): Export _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and _gfortran_{cshift0,eoshift{0,2}}_16_char4. * gfortran.dg/pr47757-1.f90: New test. * gfortran.dg/pr47757-2.f90: New test. * gfortran.dg/pr47757-3.f90: New test. From-SVN: r170215
2011-02-16re PR tree-optimization/47738 (ICE: verify_ssa failed: no immediate_use list ↵Richard Guenther2-2/+7
with -O3 -fno-tree-vectorize) 2011-02-12 Richard Guenther <rguenther@suse.de> PR tree-optimization/47738 * tree-ssa-loop.c (run_tree_predictive_commoning): Return the TODO from tree_predictive_commoning. From-SVN: r170212
2011-02-16re PR c++/47704 ([C++0x] Java-related error message when trying to ↵Jakub Jelinek5-2/+28
instantiate a strongly typed enum with new) PR c++/47704 * cp-tree.h (ENUM_FIXED_UNDERLYING_TYPE_P): Use TYPE_LANG_FLAG_5 instead of TYPE_LANG_FLAG_3. * pt.c (lookup_template_class): Copy over ENUM_FIXED_UNDERLYING_TYPE_P. * g++.dg/cpp0x/enum8.C: New test. From-SVN: r170209
2011-02-15re PR c++/46807 (internal compiler error: in synthesized_method_walk)Jason Merrill5-11/+61
PR c++/46807 * method.c (synthesized_method_walk): Always exit early for trivial fn in C++98 mode. From-SVN: r170207
2011-02-16Daily bump.GCC Administrator1-1/+1
From-SVN: r170206
2011-02-15Don't crash on erroneous thunk call.Ian Lance Taylor1-7/+24
From-SVN: r170201
2011-02-15RevertJeff Law2-17/+14
2011-01-25 Jeff Law <law@redhat.com> PR rtl-optimization/37273 * ira-costs.c (scan_one_insn): Detect constants living in memory and handle them like argument loads from stack slots. Do not double count memory for memory constants and argument loads from stack slots. From-SVN: r170199
2011-02-15Don't crash on interface loop with forwarding types.Ian Lance Taylor1-2/+3
From-SVN: r170198
2011-02-15Revert cant_combine_insn_p change.H.J. Lu4-22/+10
gcc/ 2011-02-15 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47725 * combine.c (cant_combine_insn_p): Revert the last change. gcc/testsuite/ 2011-02-15 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47725 * gcc.dg/torture/pr47725.c: Removed. From-SVN: r170197
2011-02-15Don't crash on defer of type conversion.Ian Lance Taylor1-5/+3
From-SVN: r170196
2011-02-15re PR fortran/47633 (Result of COMPILER_VERSION() has NULL byte appended)Steven G. Kargl2-3/+8
2011-02-15 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/47633 . simplify.c (gfc_simplify_compiler_version): Fix off-by-one issue. From-SVN: r170195
2011-02-15Don't crash lowering self-referential variable initializer.Ian Lance Taylor1-1/+17
From-SVN: r170194
2011-02-15Don't let array indexes be untyped.Ian Lance Taylor1-3/+2
From-SVN: r170193
2011-02-15Don't crash defining function in different package.Ian Lance Taylor1-2/+3
From-SVN: r170192
2011-02-15Fix PR 47755Michael Meissner4-5/+31
From-SVN: r170189
2011-02-15re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining ↵Alexandre Oliva3-3/+9
-flto -fconserve-stack) PR debug/47106 PR debug/47402 * cgraph.h (compute_inline_parameters): Return void. * ipa-inline.c (compute_inline_parameters): Adjust. From-SVN: r170188
2011-02-15re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining ↵Alexandre Oliva4-14/+23
-flto -fconserve-stack) PR debug/47106 PR debug/47402 * tree-inline.h (estimated_stack_frame_size): Take cgraph node rather than decl. * cfgexpand.c (estimated_stack_frame_size): Likewise. * ipa-inline.c (compute_inline_parameters): Adjust. From-SVN: r170187
2011-02-15re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining ↵Alexandre Oliva12-19/+37
-flto -fconserve-stack) PR debug/47106 PR debug/47402 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument. Adjust all users. Pass FN to... * tree-flow-inline.h (first_referenced_var): ... this. Add fn argument. * ipa-struct-reorg.c: Adjust. * tree-dfa.c: Adjust. * tree-into-ssa.c: Adjust. * tree-sra.c: Adjust. * tree-ssa-alias.c: Adjust. * tree-ssa-live.c: Adjust. * tree-ssa.c: Adjust. * tree-ssanames.c: Adjust. * tree-tailcall.c: Adjust. From-SVN: r170186
2011-02-15re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining ↵Alexandre Oliva8-8/+21
-flto -fconserve-stack) PR debug/47106 PR debug/47402 * tree-flow.h (referenced_var_lookup): Add fn parameter. Adjust all callers. * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun. * tree-flow-inline.h: Adjust. * gimple-pretty-print.c: Adjust. * tree-into-ssa.c: Adjust. * tree-ssa.c: Adjust. * cfgexpand.c: Adjust. From-SVN: r170185
2011-02-15make iq2000 use constraints.mdNathan Froyd4-80/+111
make iq2000 use constraints.md * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete. (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete. (EXTRA_CONSTRAINT): Delete. * config/iq2000/constraints.md: New file. * config/iq2000/iq2000.md: Include it. (define_insn ""): Delete. (movsi_internal2, movhi_internal2, movqi_internal2): Delete unsupported constraint letters from patterns. (call_value, call_value_internal1): Likewise. (call_value_multiple_internal1): Likewise. From-SVN: r170184
2011-02-15mn10300.c: Include tm-constrs.h.Nick Clifton5-140/+218
* config/mn10300/mn10300.c: Include tm-constrs.h. (struct liw_data): New data structure describing an LIW candidate instruction. (extract_bundle): Use struct liw_data. Allow small integer operands for some instructions. (check_liw_constraints): Use struct liw_data. Remove swapped parameter. Add comments describing the checks. Fix bug when assigning the source of liw1 to the source of liw2. (liw_candidate): Delete. Code moved into extract_bundle. (mn10300_bundle_liw): Use struct liw_data. Check constraints before swapping. * config/mn10300/predicates.md (liw_operand): New predicate. Allows registers and small integer constants. * config/mn10300/constraints.md (O): New constraint. Accetps integers in the range -8 to +7 inclusive. * config/mn10300/mn10300.md (movesi_internal): Add an alternative for moving a small integer into a register. Give this alternative LIW attributes. (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise. (ashlsi3): Likewise, plus give LIW attributes to the alternatives using the J,K,L and M constraints, (liw): Remove SI mode on second operands to allow for HI and QI mode values. (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the instruction. From-SVN: r170182
2011-02-15Check zero/sign extended hard registers.H.J. Lu4-0/+33
gcc/ 2011-02-15 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47725 * combine.c (cant_combine_insn_p): Check zero/sign extended hard registers. gcc/testsuite/ 2011-02-15 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47725 * gcc.dg/torture/pr47725.c: New. From-SVN: r170179
2011-02-15re PR middle-end/47743 (PRE ICE in fold_convert_loc)Richard Guenther4-0/+39
2011-02-15 Richard Guenther <rguenther@suse.de> PR tree-optimization/47743 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number for a non-type-compatible VN lookup bail out. * gcc.dg/torture/pr47743.c: New testcase. From-SVN: r170173
2011-02-15make fr30 use constraints.mdNathan Froyd4-71/+81
make fr30 use constraints.md * config/fr30/constraints.md: New file. * config/fr30/fr30.md: Include it. * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete. (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete. (EXTRA_CONSTRAINT): Delete. From-SVN: r170172
2011-02-15make frv use constraints.mdNathan Froyd5-182/+193
make frv use constraints.md * config/frv/constraints.md: New file. * config/frv/predicates.md: Include it. * config/frv/frv.c (reg_class_from_letter): Delete. (frv_option_override): Don't initialize it. * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete. (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete. (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete. (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete. (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete. (CONST_DOUBLE_OK_FOR_LETTER_P): Delete. (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete. (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete. (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete. (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete. (REG_CLASS_FROM_CONSTRAINT): Delete. From-SVN: r170171
2011-02-15re PR middle-end/47581 (Unnecessary adjustments to stack pointer)Jakub Jelinek4-1/+28
PR middle-end/47581 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset if frame size is 0 in a leaf function. * gcc.target/i386/pr47581.c: New test. From-SVN: r170170
2011-02-15Fixed ChangeLog typo.Rainer Orth1-1/+1
From-SVN: r170169
2011-02-15re PR pch/14940 (PCH largefile test fails on various platforms)Rainer Orth4-1/+163
PR pch/14940 * config/alpha/host-osf.c: New file. * config/alpha/x-osf: New file. * config.host (alpha*-dec-osf*): Use it. From-SVN: r170166
2011-02-15Daily bump.GCC Administrator1-1/+1
From-SVN: r170163
2011-02-14re PR fortran/47730 ([OOP] ICE on invalid source in connection with SELECT TYPE)Janus Weil4-0/+28
2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47730 * parse.c (gfc_build_block_ns): Commit 'block@' symbol. 2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47730 * gfortran.dg/select_type_22.f03: New. From-SVN: r170157
2011-02-14re PR c++/47482 ([C++0x] ICE: unexpected expression ‘sizeof ("A")’ of ↵Jason Merrill4-0/+22
kind sizeof_expr) PR c++/47482 * parser.c (cp_parser_enumerator_definition): Call fold_non_dependent_expr. From-SVN: r170156
2011-02-15rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.Anatoly Sokolov4-13/+18
* config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove. * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove. * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to... (rx_mode_dependent_address_p): ...this. Make static. Change argument type to const_rtx. (TARGET_MODE_DEPENDENT_ADDRESS_P): Define. From-SVN: r170154
2011-02-14make stormy16 use constraints.mdNathan Froyd7-94/+139
make stormy16 use constraints.md * config/stormy16/constraints.md: New file. * config/stormy16/predicates.md (nonimmediate_nonstack_operand): Use satisfies_constraint_Q and satisfies_constraint_R. * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p): Delete. (xstormy16_legitiamte_address_p): Declare. * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete. (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete. (EXTRA_CONSTRAINT): Delete. * config/stormy16/stormy16.c (xstormy16_legitiamte_address_p): Un-staticize. (xstormy16_extra_constraint_p): Delete. From-SVN: r170152