1. 01 Sep, 2014 10 commits
  2. 31 Aug, 2014 8 commits
    • Commit missing patch part · e0416079
      From-SVN: r214773
      Jan-Benedict Glaw committed
    • Fix build error with Debian's 4.8.1-2 due to wrong declaration · d96be87b
      This patch fixes a non-matching declaration, which lets G++ 4.8.1 (as of
      Debian's g++ package) barf:
      
      g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/home/vaxbuild/repos/gcc/gcc -I/home/vaxbuild/repos/gcc/gcc/. -I/home/vaxbuild/repos/gcc/gcc/../include -I/home/vaxbuild/repos/gcc/gcc/../libcpp/include  -I/home/vaxbuild/repos/gcc/gcc/../libdecnumber -I/home/vaxbuild/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/vaxbuild/repos/gcc/gcc/../libbacktrace    -o mcore.o -MT mcore.o -MMD -MP -MF ./.deps/mcore.TPo /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c: In function ‘const char* output_inline_const(machine_mode, rtx_def**)’:
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1216:82: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\tnot\t%s\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                        ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1216:82: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1219:87: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\taddi\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                             ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1219:87: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1222:87: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\tsubi\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                             ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1222:87: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1226:88: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\trsubi\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                              ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1226:88: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1229:89: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\tbseti\t%s,%%P2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                               ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1229:89: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1232:89: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\tbclri\t%s,%%Q2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                               ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1232:89: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1235:88: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\trotli\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                              ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1235:88: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1238:87: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\tlsli\t%s,%%2\t// %ld 0x%lx", load_op, dst_fmt, value, value);
                                                                                             ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1238:87: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1241:94: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\tixh\t%s,%s\t// %ld 0x%lx", load_op, dst_fmt, dst_fmt, value, value);
                                                                                                    ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1241:94: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1244:94: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘long long int’ [-Wformat=]
             sprintf (buf, "%s\n\tixw\t%s,%s\t// %ld 0x%lx", load_op, dst_fmt, dst_fmt, value, value);
                                                                                                    ^
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:1244:94: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘long long int’ [-Wformat=]
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c: At global scope:
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:100:19: warning: ‘int try_constant_tricks(long int, long long int*, long long int*)’ used but never defined [enabled by default]
       static int        try_constant_tricks           (long, HOST_WIDE_INT *, HOST_WIDE_INT *);
                         ^
      [...]
      g++   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-array-notation.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o default-c.o \
        cc1-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
      libbackend.a(mcore.o): In function `mcore_const_ok_for_inline':
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:751: undefined reference to `try_constant_tricks(long, long long*, long long*)'
      libbackend.a(mcore.o): In function `mcore_const_ok_for_inline(long long)':
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:751: undefined reference to `try_constant_tricks(long, long long*, long long*)'
      libbackend.a(mcore.o): In function `mcore_const_trick_uses_not(long long)':
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:761: undefined reference to `try_constant_tricks(long, long long*, long long*)'
      libbackend.a(mcore.o): In function `mcore_const_ok_for_inline':
      /home/vaxbuild/repos/gcc/gcc/config/mcore/mcore.c:751: undefined reference to `try_constant_tricks(long, long long*, long long*)'
      collect2: error: ld returned 1 exit status
      make[1]: *** [cc1] Error 1
      make[1]: Leaving directory `/home/vaxbuild/build/mcore-elf/build-gcc/gcc'
      make: *** [all-gcc] Error 2
      
      This patch fixes only the wrong declaration of try_constant_tricks().
      
      2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
      
      	* config/mcore/mcore.c (try_constant_tricks): Fix declaration.
      
      From-SVN: r214772
      Jan-Benedict Glaw committed
    • re PR fortran/62309 (-fno-automatic with -finit-local prevents initialization of… · 03e46144
      re PR fortran/62309 (-fno-automatic with -finit-local prevents initialization of automatics in recursive functions)
      
      2014-08-31  Fritz Reese  <Reese-Fritz@zai.com>
      
              PR fortran/62309
              * resolve.c (apply_default_init_local): Don't treat variables
              in RECURSIVE procedures as saved.
      
      2014-08-31  Fritz Reese  <Reese-Fritz@zai.com>
                  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/62309
              * gcc/testsuite/gfortran.dg/auto_save_2.f90: New.
      
      
      Co-Authored-By: Tobias Burnus <burnus@net-b.de>
      
      From-SVN: r214771
      Fritz Reese committed
    • re PR c++/62302 (Change in the comdat used for constructors) · cbb4d6a4
      	PR c++/62302
      	* optimize.c (cdtor_comdat_group): Just look at the
      	DECL_ASSEMBLER_NAME of the 'tors.
      
      From-SVN: r214770
      Jason Merrill committed
    • Fix typo. · a3e3f116
      From-SVN: r214769
      Gerald Pfeifer committed
    • trans-decl.c (gfc_build_builtin_function_decls): Add may_require_tmp dummy argument. · 93e2e046
      2014-08-31  Tobias Burnus  <burnus@net-b.de>
      
      gcc/fortran/
              * trans-decl.c (gfc_build_builtin_function_decls): Add
              may_require_tmp dummy argument.
              * trans-intrinsic.c (gfc_conv_intrinsic_caf_get,
              conv_caf_send): Handle may_require_tmp argument.
              (gfc_conv_intrinsic_function): Update call.
              * gfortran.texi (_gfortran_caf_send, _gfortran_caf_get,
              _gfortran_caf_sendget): Update interface description.
      
      gcc/testsuite/
              * gfortran.dg/coarray_lib_comm_1.f90: New.
      
      libgfortran/
              * caf/libcaf.h (_gfortran_caf_send, _gfortran_caf_get,
              _gfortran_caf_sendget): Update prototype.
              * caf/single.c (_gfortran_caf_send, _gfortran_caf_get,
              _gfortran_caf_sendget): Handle may_require_tmp.
      
      From-SVN: r214764
      Tobias Burnus committed
    • Daily bump. · 5c535ce2
      From-SVN: r214763
      GCC Administrator committed
  3. 30 Aug, 2014 8 commits
    • 20140828-1.c: New testcase. · e4b8a410
      2014-08-30  Andrew Pinski  <apinski@cavium.com>
      
              * gcc.c-torture/execute/20140828-1.c: New testcase.
      
      From-SVN: r214760
      Andrew Pinski committed
    • Add missing ChangeLog items for Rev. 214758. · 695326ef
      From-SVN: r214759
      Tobias Burnus committed
    • trans.h (gfc_caf_get_image_index, [...]): New prototypes. · 2c69df3b
      2014-08-30  Tobias Burnus  <burnus@net-b.de>
      
              * trans.h (gfc_caf_get_image_index,
              gfc_get_caf_token_offset): New prototypes.
              * trans-expr.c (gfc_caf_get_image_index): Moved from
              trans-intrinsic.c and renamed.
              (gfc_get_caf_token_offset) Ditto; support offset = NULL
              with early return.
              * trans-intrinsic.c (get_caf_token_offset, caf_get_image_index):
              Moved to trans-expr.
              (gfc_conv_intrinsic_caf_get, conv_caf_send,
              conv_intrinsic_atomic_op, conv_intrinsic_atomic_ref,
              conv_intrinsic_atomic_cas): Update callers.
      
      From-SVN: r214758
      Tobias Burnus committed
    • re PR fortran/62278 (gfc_check_dependency should also check for TARGET attribute) · e284dec5
      2014-08-30  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/62278
              PR fortran/44735
              PR fortran/60593
              * dependency.c (gfc_check_dependency): Allow for optimizations
              in the pointer-alias check.
      
      From-SVN: r214757
      Tobias Burnus committed
    • pa.c (pa_assemble_integer): Don't add PLABEL relocation prefix to function labels when... · ef719901
      	* config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
      	prefix to function labels when generating fast indirect calls.
      
      From-SVN: r214754
      John David Anglin committed
    • baseline_symbols.txt: Update. · 79c70232
      	* config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
      
      From-SVN: r214753
      John David Anglin committed
    • re PR bootstrap/62304 (ICE in follow_jumps, find_dead_or_set_registers) · c3f14d55
      	PR bootstrap/62304
      
      	* gcc/reorg.c (skip_consecutive_labels): Convert return type and
      	param back from rtx_insn * to rtx.  Rename param from "label" to
      	"label_or_return", reintroducing "label" as an rtx_insn * after
      	we've ensured it's not a RETURN.
      	(first_active_target_insn): Likewise for return type and param;
      	add a checked cast to rtx_insn * once we've ensured "insn" is not
      	a RETURN.
      	(steal_delay_list_from_target): Convert param "pnew_thread" back
      	from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
      	with JUMP_LABEL.
      	(own_thread_p): Convert param "thread" back from an rtx_insn * to
      	an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
      	cast once we've established we're not dealing with a RETURN,
      	renaming subsequent uses of "thread" to "thread_insn".
      	(fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
      	to JUMP_LABEL.
      	(follow_jumps): Convert return type and param "label" from
      	rtx_insn * back to rtx.  Move initialization of "value" to after
      	the handling for ANY_RETURN_P, adding a checked cast there to
      	rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
      	rename to "this_label_or_return", reintroducing "this_label" as
      	an rtx_insn * once we've handled the case where it could be an
      	ANY_RETURN_P.
      	(fill_slots_from_thread): Rename param "thread" to
      	"thread_or_return", converting from an rtx_insn * back to an rtx.
      	Reintroduce name "thread" as an rtx_insn * local with a checked
      	cast once we've handled the case of it being an ANY_RETURN_P.
      	Convert local "new_thread" from an rtx_insn * back to an rtx.
      	Add a checked cast when assigning to "trial" from "new_thread".
      	Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
      	checked cast to rtx_insn * from "new_thread" when invoking
      	get_label_before.
      	(fill_eager_delay_slots): Convert locals "target_label",
      	"insn_at_target" from rtx_insn * back to rtx.
      	Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
      	(relax_delay_slots): Convert locals "trial", "target_label" from
      	rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
      	to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
      	invoking update_block.
      	(dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
      	JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
      
      	* resource.h (mark_target_live_regs): Undo erroneous conversion
      	of second param of r214693, converting it back from rtx_insn * to
      	rtx, since it could be a RETURN.
      
      	* resource.c (find_dead_or_set_registers): Similarly, convert
      	param "jump_target" back from an rtx_insn ** to an rtx *, as we
      	could be writing back a RETURN.  Rename local rtx_insn * "next" to
      	"next_insn", and introduce "lab_or_return" as a local rtx,
      	handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
      	(mark_target_live_regs): Undo erroneous conversion
      	of second param of r214693, converting it back from rtx_insn * to
      	rtx, since it could be a RETURN.  Rename it from "target" to
      	"target_maybe_return", reintroducing the name "target" as a local
      	rtx_insn * with a checked cast, after we've handled the case of
      	ANY_RETURN_P.
      
      From-SVN: r214752
      David Malcolm committed
    • Daily bump. · 124aeea1
      From-SVN: r214751
      GCC Administrator committed
  4. 29 Aug, 2014 14 commits