aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2011-02-14re PR fortran/47728 ([OOP] ICE on invalid CLASS declaration)Janus Weil5-3/+38
2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47728 * class.c (gfc_build_class_symbol): Give a fatal error on polymorphic arrays. * primary.c (gfc_match_varspec): Avoid ICE for invalid class declaration. 2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47728 * gfortran.dg/class_38.f03: New. From-SVN: r170144
2011-02-14re PR tree-optimization/46494 (ICE: verify_flow_info failed when casting-out ↵Eric Botcazou14-41/+83
attribute noreturn with -fno-tree-ccp -fno-tree-fre -ftree-vrp) PR tree-optimization/46494 * loop-unroll.c (split_edge_and_insert): Adjust comment. * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info. (pass_rtl_loop_done): Add TODO_verify_flow. * fwprop.c (pass_rtl_fwprop): Likewise. * modulo-sched.c (pass_sms): Likewise. * tree-ssa-dom.c (pass_dominator): Likewise. * tree-ssa-loop-ch.c (pass_ch): Likewise. * tree-ssa-loop.c (pass_complete_unrolli): Likewise. (pass_tree_loop_done): Likewise. * tree-ssa-pre.c (execute_pre): Likewise. * tree-ssa-reassoc.c (pass_reassoc): Likewise. * tree-ssa-sink.c (pass_sink_code): Likewise. * tree-vrp.c (pass_vrp): Likewise. From-SVN: r170141
2011-02-14make v850 use constraints.mdNathan Froyd5-100/+144
make v850 use constraints.md * config/v850/constraints.md: New file. * config/v850/v850.md: Include it. * config/v850/predicates.md (reg_or_0_operand): Use satisfies_constraint_G. (special_symbolref_operand): Use satisfies_constraint_K. * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p. (GO_IF_LEGITIMATE_ADDRESS): Likewise. (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete. (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete. (EXTRA_CONSTRAINT): Delete. (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint. (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise. (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise. From-SVN: r170140
2011-02-14re PR target/47696 ([AVR] Compilation for atmega2560 produces incomplete ↵Anatoly Sokolov2-2/+8
interrupt vector table (USART2,3)) PR target/47696 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device description. From-SVN: r170137
2011-02-14make mcore use constraints.mdNathan Froyd5-89/+144
make mcore use constraints.md * config/mcore/constraints.md: New file. * config/mcore/mcore.md: Include it. * config/mcore/mcore.c (reg_class_from_letter): Delete. * config/mcore/mcore.h (reg_class_from_letter): Delete. (REG_CLASS_FROM_LETTER): Delete. (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use insn_const_int_ok_for_constraint. (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise. (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise. (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete. (EXTRA_CONSTRAINT): Delete. From-SVN: r170134
2011-02-14attr-weak-hidden-1.c: Make definition of foo strong.Richard Guenther2-1/+5
2011-02-14 Richard Guenther <rguenther@suse.de> * gcc.dg/attr-weak-hidden-1.c: Make definition of foo strong. From-SVN: r170128
2011-02-14re PR ada/41929 (64-bit null_pointer_deref1 gnat.dg test consumes all ↵Rainer Orth4-360/+314
available memory) gcc: PR ada/41929 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h> (IS_SIGHANDLER): Define. (sparc64_is_sighandler): New function, split off from sparc64_fallback_frame_state. (sparc_is_sighandler): New function, split off from sparc_fallback_frame_state. (sparc64_fallback_frame_state): Merge with ... (sparc_fallback_frame_state): ... this into ... (MD_FALLBACK_FRAME_STATE_FOR): ... this. Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save. Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk stack instead of hardcoded offsets. gcc/testsuite: PR ada/41929 * gnat.dg/null_pointer_deref1.exp: Don't skip on sparc*-sun-solaris2.11. From-SVN: r170126
2011-02-14re PR fortran/47349 (missing warning: Actual argument contains too few elements)Janus Weil4-6/+48
2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47349 * interface.c (get_expr_storage_size): Handle derived-type components. 2011-02-14 Janus Weil <janus@gcc.gnu.org> PR fortran/47349 * gfortran.dg/argument_checking_18.f90: New. From-SVN: r170125
2011-02-14Fixes to gccgo.texi.Ralf Wildenhues2-2/+7
gcc/: * go/gccgo.texi (Top, Import and Export): Fix a typo and a markup nit. From-SVN: r170122
2011-02-14re PR target/45808 (FreeBSD: -pthread is handled incompletely)Andriy Gapon2-0/+8
PR target/45808 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case. From-SVN: r170121
2011-02-14Daily bump.GCC Administrator1-1/+1
From-SVN: r170120
2011-02-13Revert r170108, r170107, r170105, r170104, r170103, r170102, r170101, r170097.Iain Sandoe13-2737/+2441
From-SVN: r170111
2011-02-13re PR fortran/47569 (gfortran does not detect that the parameters for ↵Tobias Burnus5-28/+88
passing a partial string to a subroutine are incorrect) 2011-02-13 Tobias Burnus <burnus@net-b.de> PR fortran/47569 * interface.c (compare_parameter): Avoid ICE with character components. 2011-02-13 Tobias Burnus <burnus@net-b.de> * gfortran.dg/argument_checking_13.f90: Update dg-error. * gfortran.dg/argument_checking_17.f90: New. From-SVN: r170110
2011-02-13* jvspec.c (jvgenmain_spec): Remove %{a*}.Joseph Myers2-2/+6
From-SVN: r170109
2011-02-13t-darwin (config/darwin.h.rebuild): Harden against parallel builds.Mike Stump4-7/+7
* config/t-darwin (config/darwin.h.rebuild): Harden against parallel builds. cp: * Make-lang.in (objcp/plugin/parser.h): Harden against parallel builds. From-SVN: r170108
2011-02-13t-darwin (build/slashify1): Harden against rebuilds.Mike Stump5-10/+19
* config/t-darwin (build/slashify1): Harden against rebuilds. * config/slashify.c: Nix parms to quite the build. cp: (build/slashify): Harden against rebuilds. From-SVN: r170107
2011-02-13Remove freebsd1 from libtool.m4 macros and config.rpath.Ralf Wildenhues2-14/+6
/: Import from Libtool and gnulib: 2011-01-27 Gerald Pfeifer <gerald@pfeifer.com> Prepare for supporting FreeBSD 10. * config.rpath: Remove handling of freebsd1* which soon would match FreeBSD 10.0. 2011-01-20 Gerald Pfeifer <gerald@pfeifer.com> (tiny change) Remove support for FreeBSD 1.x. * libtool.m4 (_LT_LINKER_SHLIBS) (_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. boehm-gc/: * configure: Regenerate. gcc/: * configure: Regenerate. libffi/: * configure: Regenerate. libgfortran/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libgo/: * config/libtool.m4: (_LT_LINKER_SHLIBS) (_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. * configure: Regenerate. libgomp/: * configure: Regenerate. libjava/: * configure: Regenerate. * shlibpath.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. libjava/classpath/: * config.rpath, ltcf-c.sh, ltcf-gcj.sh, ltconfig: Remove handling of freebsd1* which soon would match FreeBSD 10.0. * configure: Regenerate. libjava/libltdl/: * acinclude.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which soon would incorrectly match FreeBSD 10.0. * configure: Regenerate. libmudflap/: * configure: Regenerate. libobjc/: * configure: Regenerate. libquadmath/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libssp/: * Makefile.in: Regenerate. * aclocal.m4: Likewise. * configure: Likewise. libstdc++-v3/: * configure: Regenerate. lto-plugin/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. zlib/: * configure: Regenerate. From-SVN: r170106
2011-02-13parser.h: Add arguments to all plugins.Mike Stump4-21/+24
objcp: * plugin/parser.h: Add arguments to all plugins. cp: * parser.c (cp_parser_primary_expression): Add arguments to all the plugins. From-SVN: r170105
2011-02-13lex.h: Plugify.Mike Stump8-10/+51
objcp: * plugin/lex.h: Plugify. cp: * lex.c: Plugify. * Make-lang.in (objcp/plugin/lex.h): Likewise. From-SVN: r170104
2011-02-13parser.c (cp_parser_declaration): Remove unused variable.Tobias Burnus2-1/+4
2011-02-13 Tobias Burnus <burnus@net-b.de> * parser.c (cp_parser_declaration): Remove unused variable. From-SVN: r170103
2011-02-13Make-lang.in (cp/parser.o): Move c-family/c-objc.h dependancy down.Mike Stump2-3/+8
* Make-lang.in (cp/parser.o): Move c-family/c-objc.h dependancy down. From-SVN: r170102
2011-02-13t-darwin (build/slashify): Allow others to reuse easier.Mike Stump9-2023/+2179
gcc: * config/t-darwin (build/slashify): Allow others to reuse easier. objcp: * Make-lang.in (obj-c++.tags): Plugify Objective-C++. * plugin/parser.h: Likewise. * plugin/parser.c: Likewise. cp: * Make-lang.in (build/slashify): Plugify Objective-C++. (cp/parser.o): Likewise. (objcp/plugin/parser.h): Likewise. From-SVN: r170101
2011-02-13darwin.h: Make pretty.Mike Stump4-414/+493
* config/darwin.h: Make pretty. * config/t-darwin (config/darwin.h.rebuild): Add. (build/slashify): Add. * config/slashify.c: Add. From-SVN: r170097
2011-02-13Daily bump.GCC Administrator1-1/+1
From-SVN: r170096
2011-02-12class.c (gfc_build_class_symbol): Reject polymorphic arrays.Janus Weil8-24/+50
2011-02-12 Janus Weil <janus@gcc.gnu.org> * class.c (gfc_build_class_symbol): Reject polymorphic arrays. * decl.c (build_sym,build_struct,attr_decl1): Use return value of 'gfc_build_class_symbol'. 2011-02-12 Janus Weil <janus@gcc.gnu.org> * gfortran.dg/allocate_derived_1.f90: Modified as polymorphic arrays are temporarily disabled. * gfortran.dg/class_7.f03: Ditto. * gfortran.dg/coarray_14.f90: Ditto. * gfortran.dg/typebound_proc_13.f03: Ditto. From-SVN: r170092
2011-02-12re PR driver/45731 (Header missing for assembler option help.)Joseph Myers2-1/+6
PR driver/45731 * gcc.c (asm_options): Correct spec matching --target-help. From-SVN: r170091
2011-02-12tree-cfg.c (verify_gimple_call): Return true upon invalid argument to gimple ↵Martin Jambor2-0/+6
call error. 2011-02-12 Martin Jambor <mjambor@suse.cz> * tree-cfg.c (verify_gimple_call): Return true upon invalid argument to gimple call error. From-SVN: r170088
2011-02-12gnat_ugn.texi (Compiling Different Versions of Ada): Update link to "Ada ↵Gerald Pfeifer2-1/+6
Issues". * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to "Ada Issues". From-SVN: r170085
2011-02-12frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize comments in backslash regions.Mike Stump2-3/+8
* config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize comments in backslash regions. From-SVN: r170078
2011-02-12re PR target/47324 (r160124 caused g++.dg/torture/stackalign failures with ↵Mike Stump2-24/+115
-O3 -g at -m32 on darwin) gcc: PR target/47324 * dwarf2out.c (output_cfa_loc): When required, apply the DWARF2_FRAME_REG_OUT macro to adjust register numbers. (output_loc_sequence): Likewise. (output_loc_operands_raw): Likewise. (output_loc_sequence_raw): Likewise. (output_cfa_loc): Likewise. (output_loc_list): Suppress register number adjustment when calling output_loc_sequence() (output_die): Likewise. Co-Authored-By: Iain Sandoe <iains@gcc.gnu.org> Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r170077
2011-02-12re PR fortran/45586 (ICE non-trivial conversion at assignment)Mikael Morin2-0/+46
2011-02-12 Mikael Morin <mikael.morin@sfr.fr> PR fortran/45586 * gfortran.dg/extends_11.f03: New. From-SVN: r170074
2011-02-12re PR fortran/45586 (ICE non-trivial conversion at assignment)Michael Matz2-17/+18
2011-02-12 Michael Matz <matz@suse.de> Janus Weil <janus@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/45586 * trans-expr.c (conv_parent_component_references): Avoid unintendent skipping of parent compounds. Co-Authored-By: Janus Weil <janus@gcc.gnu.org> Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r170072
2011-02-12xtensa.h (REGISTER_MOVE_COST, [...]): Remove macros.Anatoly Sokolov3-20/+43
* config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove macros. * config/xtensa/xtensa.c (xtensa_register_move_cost, xtensa_memory_move_cost): New functions. (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define. From-SVN: r170071
2011-02-12re PR lto/47225 (cross-compile fails while configuring libgcc with "xgcc: ↵Alexandre Oliva3-2/+9
fatal error: -fuse-linker-plugin, but liblto_plugin.so not found") ChangeLog: PR lto/47225 * Makefile.def (lto-plugin): Double dash for enable-shared. (configure-gcc): Depend on all-lto-plugin. * Makefile.in: Rebuilt. lto-plugin/ChangeLog: PR lto/47225 * Makefile.am (gcc_build_dir, in_gcc_libs): New. (liblto_plugin_la_LDFLAGS): Add -module. (copy_lto_plugin): Renamed to... ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying of static modules. * Makefile.in: Rebuild. gcc/ChangeLog: PR lto/47225 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la in the current directory. * configure: Rebuilt. From-SVN: r170070
2011-02-12darwin.c (darwin_override_options): Add a hunk missed from the commit of ↵Iain Sandoe2-9/+22
r168571. gcc: * config/darwin.c (darwin_override_options): Add a hunk missed from the commit of r168571. Trim comment line lengths and correct indents of the preceding block. From-SVN: r170069
2011-02-12gcc.c (driver_handle_option): Concatenate the argument to -F with the switch.Iain Sandoe2-0/+10
gcc: * gcc.c (driver_handle_option): Concatenate the argument to -F with the switch. From-SVN: r170068
2011-02-12* common.opt (nostartfiles): New Driver option.Joseph Myers2-0/+7
From-SVN: r170067
2011-02-12Daily bump.GCC Administrator1-1/+1
From-SVN: r170066
2011-02-12Fix PR47707Xinliang David Li4-3/+44
From-SVN: r170062
2011-02-11re PR tree-optimization/47420 (ICE in calc_dfs_tree during RESX lowering)Eric Botcazou4-4/+92
PR tree-optimization/47420 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX. From-SVN: r170061
2011-02-11re PR fortran/47550 (PURE with VALUE and w/o INTENT: add gfc_notify_std ↵Tobias Burnus4-8/+51
(GFC_STD_F2008 ?) 2011-02-11 Tobias Burnus <burnus@net-b.de> PR fortran/47550 * resolve.c (resolve_formal_arglist): PURE with VALUE and no INTENT: Add -std= diagnostics. 2011-02-11 Tobias Burnus <burnus@net-b.de> PR fortran/47550 * gfortran.dg/pure_formal_2.f90: New. From-SVN: r170060
2011-02-11re PR rtl-optimization/47614 (cpu2000 benchmark 301.apsi fails with revision ↵Pat Haugen6-1/+58
169782) PR rtl-optimization/47614 * rtl.h (check_for_inc_dec): Declare. * dse.c (check_for_inc_dec): Externalize... * postreload.c (reload_cse_simplify): ...use it before deleting stmt. (reload_cse_simplify_operands): Don't simplify opnds with side effects. * testsuite/gfortran.dg/pr47614.f: New. From-SVN: r170059
2011-02-11re PR driver/47678 (missing error message for -I)Joseph Myers5-6/+29
PR driver/47678 * gcc.c (main): Do not compile inputs if there were errors in option handling. * opts-common.c (read_cmdline_option): Check for wrong language after other error checks. testsuite: * gcc.dg/opts-6.c: New test. From-SVN: r170056
2011-02-11Revert "Fix PR c++/47172"Dodji Seketeli5-53/+3
gcc/cp/ * pt.c (finish_call_expr, dependent_type_p) (type_dependent_expression_p): Revert the previous attempt to fix PR c++/47172. gcc/testsuite/ * g++.dg/template/inherit6.C: Reverted. From-SVN: r170055
2011-02-11cgraph.c: Fix comment typos.Nathan Froyd10-59/+71
* cgraph.c: Fix comment typos. * cgraph.h: Likewise. * cgraphunit.c: Likewise. * ipa-cp.c: Likewise. * ipa-inline.c: Likewise. * ipa-prop.c: Likewise. * ipa-pure-const.c: Likewise. * ipa-ref.c: Likewise. * ipa-reference.c: Likewise. From-SVN: r170052
2011-02-11re PR debug/47684 (-fcompare-debug failure with -O3)Jakub Jelinek2-5/+4
PR debug/47684 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses. * gcc.dg/pr47684.c: New test. From-SVN: r170051
2011-02-11re PR target/47665 (ICE in trunc_int_for_mode)Jakub Jelinek4-1/+34
PR target/47665 * combine.c (make_compound_operation): Only change shifts into multiplication for SCALAR_INT_MODE_P. * gcc.target/i386/pr47665.c: New test. From-SVN: r170050
2011-02-11re PR target/47629 (gcc.target/i386/pr47312.c fails to link on Solaris 9)Rainer Orth2-1/+10
PR target/47629 * gcc.target/i386/pr47312.c: Use dg-require-effective-target c99_runtime, dg-add-options c99_runtime. (main): Use __asm__. From-SVN: r170049
2011-02-11Added forgotten ChangeLog entry.Rainer Orth1-0/+12
From-SVN: r170048
2011-02-11i gcc/testsuite:Rainer Orth9-6/+40
PR testsuite/47400 * lib/target-supports.exp (check_ascii_locale_available): New proc. * lib/target-supports-dg.exp (dg-require-ascii-locale): New proc. * gcc.dg/attr-alias-5.c: Use dg-require-ascii-locale. * gcc.dg/ucnid-10.c: Likewise. * gcc.dg/ucnid-13.c: Likewise. * gcc.dg/ucnid-7.c: Likewise. * gcc.dg/ucnid-8.c: Likewise. * Adapt dg-warning line number. gcc: PR testsuite/47400 * doc/sourcebuild.texi (Require Support): Document dg-require-ascii-locale. From-SVN: r170046