- 03 Oct, 2016 7 commits
-
-
The compiler defaults to thin LTO objects if built with linker plugin support, and in that case, the error expected by the testcase appears only at link time, if at all. Forcing fat LTO object file creation generates the error consistently at compile time, as expected. gcc/testsuite/ChangeLog: 2016-10-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * gcc.target/avr/torture/builtins-error.c: Add -ffat-lto-objects option. From-SVN: r240711
Senthil Kumar Selvaraj committed -
PR libstdc++/77814 * include/bits/std_abs.h: Use "C++" language linkage. * testsuite/17_intro/headers/c++2011/linkage.cc: Move <complex.h> to the end. Add <stdalign.h>. From-SVN: r240710
Jonathan Wakely committed -
PR libstdc++/77802 * testsuite/20_util/tuple/77802.cc: New. Revert: 2016-09-21 Ville Voutilainen <ville.voutilainen@gmail.com> Implement LWG 2729 for tuple. * include/std/tuple (_Tuple_impl(_Tuple_impl&&)): Suppress conditionally. (_Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&&)): Likewise. (__is_tuple_impl_trait_impl, __is_tuple_impl_trait): New. (_Tuple_impl(const _Head&)): Constrain. (_Tuple_impl(_UHead&&)): Likewise. (_Tuple_impl(_Tuple_impl&&)): Suppress conditionally. (_Tuple_impl(const _Tuple_impl<_Idx, _UHead>&)): Constrain. (_Tuple_impl(_Tuple_impl<_Idx, _UHead>&&)): Likewise. (operator=(const tuple&)): Enable conditionally. (operator=(tuple&&)): Suppress conditionally. (operator=(const tuple<_UElements...>&)): Constrain. (operator=(tuple<_UElements...>&&)): Likewise. (operator=(const tuple&)): Enable conditionally (2-param tuple). (operator=(tuple&&)): Suppress conditionally (2-param tuple). (operator=(const tuple<_U1, _U2>&)): Constrain. (operator=(tuple<_U1, _U2>&&)): Likewise. (operator=(const pair<_U1, _U2>&)): Likewise. (operator=(pair<_U1, _U2>&&)): Likewise. * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust. * testsuite/20_util/tuple/tuple_traits.cc: New. From-SVN: r240709
Ville Voutilainen committed -
Revert: [RTL ifcvt] Transform (X == CST) ? -CST : Y into (X == CST) ? -X : Y when conditional negation is available Revert 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * ifcvt.c (noce_try_avoid_const_materialization): New function. (noce_process_if_block): Use it. * gcc.target/aarch64/ifcvt_avoid_const_materialization_1.c: New test. From-SVN: r240708
Kyrylo Tkachov committed -
Core 903 * typeck.c (cp_build_binary_op): Pass original operands to null_ptr_cst_p, not those after the default conversions. * g++.dg/cpp0x/nullptr37.C: New test. From-SVN: r240707
Marek Polacek committed -
2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> * doc/invoke.texi: Update -Wint-in-bool-context. c-family: 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> * c-common.c (c_common_truthvalue_conversion): Warn for suspicious left shift in boolean context. cp: 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> * parser.c (cp_parser_condition): Fix a warning. testsuite: 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> * c-c++-common/Wint-in-bool-context.c: Update test. From-SVN: r240706
Bernd Edlinger committed -
From-SVN: r240705
GCC Administrator committed
-
- 02 Oct, 2016 3 commits
-
-
* g++.dg/ext/asm3.C (two): Only use register keyword for C++14 and earlier. * g++.dg/charset/asm2.c (memmove): Likewise. * g++.dg/tls/diag-2.C (foo): Expect -Wregister error for C++17. * g++.dg/tls/diag-4.C (foo): Likewise. * c-c++-common/vector-subscript-2.c (vf): Change dg-error to dg-warning, fix up regex. * g++.old-deja/g++.brendan/warnings4.C: Limit to c++14_down targets. * g++.old-deja/g++.mike/p700.C: Add -Wno-register. * g++.old-deja/g++.mike/net31.C: Likewise. * g++.old-deja/g++.other/regstack.C (foo): Expect -Wregister warning for C++17. * g++.old-deja/g++.jason/enum3.C: Add -Wno-register. * g++.old-deja/g++.eh/ia64-1.C: Likewise. From-SVN: r240702
Jakub Jelinek committed -
* dwarf2out.c (output_fde, output_call_frame_info, dwarf2out_do_cfi_startproc, set_indirect_string, gen_internal_sym, output_die, output_line_info): Use MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for ASM_GENERATE_INTERNAL_LABEL output. From-SVN: r240701
Jakub Jelinek committed -
From-SVN: r240699
GCC Administrator committed
-
- 01 Oct, 2016 4 commits
-
-
2016-10-01 Richard Biener <rguenther@suse.de> PR middle-end/77798 * genmatch.c (get_operand_type): Add operand position arg and handle COND_EXPR comparison operand with fixed boolean_type_node. (expr::gen_transform): Adjust. (dt_simplify::gen_1): Likewise. * gfortran.fortran-torture/compile/pr77798.f90: New testcase. From-SVN: r240696
Richard Biener committed -
gcc/testsuite/ChangeLog: 2016-10-01 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/77663 * gfortran.dg/coarray_send_by_ref_1.f08: New test. libgfortran/ChangeLog: 2016-10-01 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/77663 * caf/single.c (caf_internal_error): Fix not terminating va-list. (_gfortran_caf_register): Free memory also when other allocs failed. (_gfortran_caf_get_by_ref): Fixed style. (send_by_ref): Token is now stored at the correct position preventing inaccessible tokens, memory loss and possibly crashes. From-SVN: r240695
Andre Vehreschild committed -
* config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU comments. Simplify asserts, remove unnecessary conditions. Formatting fixes. (*<code><mode>3): Likewise. From-SVN: r240694
Jakub Jelinek committed -
From-SVN: r240691
GCC Administrator committed
-
- 30 Sep, 2016 26 commits
-
-
PR c/77490 * c-c++-common/Wbool-operation-1.c: Add -Wno-psabi to dg-options. Add dg-prune-output directive. From-SVN: r240688
Jakub Jelinek committed -
2016-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/66643 * io.c (match_dt_unit): Peek check for missing format. * gfortran.fortran-torture/compile/arrayio.f90: Update test. * gfortran.fortran-torture/compile/write.f90: Update test. From-SVN: r240686
Jerry DeLisle committed -
From-SVN: r240685
Jakub Jelinek committed -
* configure.ac: Add target-libffi to target_libraries. Readd libgcj target disablings, modified to only target-libffi. Readd target addition of go to unsupported languages. * configure: Regenerated. From-SVN: r240684
Jakub Jelinek committed -
2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de> * configure.ac: Split CHECKING_P into CHECKING_P and ENABLE_EXTRA_CHECKING. * configure: Regenerated. * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING. * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING. From-SVN: r240677
Bernd Edlinger committed -
2016-09-30 Steve Ellcey <sellcey@caviumnetworks.com> * MAINTAINERS: Update email address. From-SVN: r240675
Steve Ellcey committed -
PR libstdc++/77795 * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): Use -std=gnu++11 to check for gets. * config.h.in: Regenerate. * configure: Regenerate. * include/c_global/cstdio [!_GLIBCXX_HAVE_GETS] (gets): Only declare for C++98 and C++11. * include/c_std/cstdio [!_GLIBCXX_HAVE_GETS] (gets): Likewise. * testsuite/27_io/headers/cstdio/functions_neg.cc: New test. From-SVN: r240672
Jonathan Wakely committed -
PR other/31566 * gcc.c (process_command): For @filename handling, output the correct name if the file does not exist. From-SVN: r240669
Prasad Ghangal committed -
From-SVN: r240667
Marek Polacek committed -
From-SVN: r240666
Andrew Haley committed -
2016-09-30 Andrew Haley <aph@redhat.com> * MAINTAINERS: Remove Per Bothner, Andrew Haley, and Tom Tromey rom write-after approval. Remove Tom Tromey and Bryce McKinlay from libgcj. From-SVN: r240665
Andrew Haley committed -
2016-09-30 Tadek Kijkowski <tkijkowski@gmail.com> * check.tpl: Convert line endings to unix on test outputs * fixfixes.c: Fixed passing file name to apply_fix when SEPARATE_FIX_PROC is defined * fixincl.c: Use system_with_shell, fixes for MinGW and DJGPP * fixlib.c, fixlib.h: Added system_with_shell and fix_path_separators From-SVN: r240664
Tadek Kijkowski committed -
2016-09-30 Andrew Haley <aph@redhat.com> * MAINTAINERS: Move Per Bothner, Andrew Haley, and Tom Tromey to write-after approval after GCJ deletion. From-SVN: r240663
Andrew Haley committed -
2016-09-30 Andrew Haley <aph@redhat.com> * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. * gcc/java: Remove. * libjava: Likewise. From-SVN: r240662
Andrew Haley committed -
2016-09-05 Andrew Haley <aph@redhat.com> * Makefile.def: Remove libjava. * Makefile.tpl: Likewise. * Makefile.in: Regenerate. * configure.ac: Likewise. * configure: Likewise. From-SVN: r240661
Andrew Haley committed -
* doc/xml/manual/intro.xml: Document LWG 2192 changes. * doc/html/*: Regenerate. * include/Makefile.am: Add bits/std_abs.h. * include/Makefile.in: Regenerate. * include/bits/std_abs.h: New header defining all required overloads of std::abs in one place (LWG 2294). * include/c_global/cmath (abs(double), abs(float), abs(long double)): Move to bits/std_abs.h. (abs<_Tp>(_Tp)): Remove. * include/c_global/cstdlib (abs(long), abs(long long), abs(__int<N>)): Move to bits/std_abs.h. * testsuite/26_numerics/headers/cmath/dr2192.cc: New test. * testsuite/26_numerics/headers/cmath/dr2192_neg.cc: New test. * testsuite/26_numerics/headers/cstdlib/dr2192.cc: New test. * testsuite/26_numerics/headers/cstdlib/dr2192_neg.cc: New test. From-SVN: r240660
Jonathan Wakely committed -
Remove the old locking code written in C. Add a shell script mkrsysinfo.sh to generate the runtime_sysinfo.go file, so that we can get Go copies of the system time structures and other types. Tweak the compiler so that when compiling the runtime package the address operator does not cause local variables to escape. When the gc compiler compiles the runtime, an escaping local variable is treated as an error. We should implement that, instead of this change, when escape analysis is turned on. Tweak the compiler so that the generated C header does not include names that start with an underscore followed by a non-upper-case letter, except for the special cases of _defer and _panic. Otherwise we translate C types to Go in runtime_sysinfo.go and then generate those Go types back as C types in runtime.inc, which is useless and painful for the C code. Change entersyscall and friends to take a dummy argument, as the gc versions do, to simplify calls from the shared code. Reviewed-on: https://go-review.googlesource.com/30079 From-SVN: r240657
Ian Lance Taylor committed -
PR libstdc++/77801 * include/experimental/numeric: Include <numeric>. (__abs): Define. (gcd, lcm): Use __abs instead of std::abs. * testsuite/experimental/numeric/77801.cc: New test. * testsuite/experimental/numeric/gcd.cc: Test unsigned inputs. * testsuite/experimental/numeric/lcm.cc: Likewise. From-SVN: r240656
Jonathan Wakely committed -
2016-09-30 Matthew Wawhab <matthew.wahab@arm.com> * gcc.target/arm/fp16-aapcs-3.c: Replace arm_fp16_ok with arm_fp16_alternative_ok as the required effective target. * gcc.target/arm/fp16-aapcs-4.c: Likewise. Also add -mfp16-format=alternative to the dg-options directive and remove the dg-add-options directive. From-SVN: r240655
Matthew Wahab committed -
From-SVN: r240653
Marek Polacek committed -
2016-09-30 Fritz Reese <fritzoreese@gmail.com> Fix ICE for maps with zero components. PR fortran/77764 * gcc/fortran/interface.c (gfc_compare_union_types): Null-guard map components. PR fortran/77764 * gcc/testsuite/gfortran.dg/dec_union_8.f90: New testcase. From-SVN: r240652
Fritz Reese committed -
2016-09-30 Fritz Reese <fritzoreese@gmail.com> Fix ICE caused by union types comparing equal to structures. PR fortran/77782 * gcc/fortran/interface.c (gfc_compare_derived_types): Use gfc_compare_union_types to compare union types. PR fortran/77782 * gcc/testsuite/gfortran.dg/dec_structure_16.f90: New testcase. From-SVN: r240651
Fritz Reese committed -
gcc/fortran/ChangeLog: 2016-09-30 Andre Vehreschild <vehre@gcc.gnu.org> * trans-array.c (gfc_array_allocate): Use the token from coarray's .token member. * trans-intrinsic.c (conv_expr_ref_to_caf_ref): Only generate caf-reference chains from the first coarray references on. * trans-types.c (gfc_get_derived_type): Switch on mandatory .token member generation for allocatable arrays in coarrays in derived types. gcc/testsuite/ChangeLog: 2016-09-30 Andre Vehreschild <vehre@gcc.gnu.org> * gfortran.dg/coarray_allocate_10.f08: New test. * gfortran.dg/coindexed_1.f90: Above fixes allow execution. From-SVN: r240650
Andre Vehreschild committed -
[RTL ifcvt] Transform (X == CST) ? -CST : Y into (X == CST) ? -X : Y when conditional negation is available * ifcvt.c (noce_try_avoid_const_materialization): New function. (noce_process_if_block): Use it. * gcc.target/aarch64/ifcvt_avoid_const_materialization_1.c: New test. From-SVN: r240649
Kyrylo Tkachov committed -
* doc/invoke.texi: Document asan-use-after-return that it's disabled by default in runtime. From-SVN: r240648
Martin Liska committed -
tree-vrp.c (intersect_ranges): If we failed to handle the intersection choose a constant singleton range if... 2016-09-30 Richard Biener <rguenther@suse.de> * tree-vrp.c (intersect_ranges): If we failed to handle the intersection choose a constant singleton range if available. From-SVN: r240647
Richard Biener committed
-