Age | Commit message (Collapse) | Author |
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ARM/embedded-7-branch@261903 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
2018-06-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
Backport from mainline
2018-06-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
* config/arm/arm_cmse.h (cmse_nsfptr_create): Change typeof to
__typeof__.
(cmse_check_pointed_object): Likewise.
gcc/testsuite/
2018-06-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
Backport from mainline
2018-06-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
* gcc.target/arm/cmse/cmse-1c99.c: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261900 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
2018-06-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
Backport from mainline
2018-05-17 Jerome Lambourg <lambourg@adacore.com>
* config/arm/arm_cmse.h (cmse_nsfptr_create, cmse_is_nsfptr): Remove
#include <stdint.h>. Replace intptr_t with __INTPTR_TYPE__.
libgcc/
2018-06-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
Backport from mainline
2018-05-17 Jerome Lambourg <lambourg@adacore.com>
* config/arm/cmse.c (cmse_check_address_range): Replace
UINTPTR_MAX with __UINTPTR_MAX__ and uintptr_t with __UINTPTR_TYPE__.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261898 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
glibc 2.28 removes ustat.h and the ustat function entirely, which
breaks syscall.Ustat.
Updates golang/go#25990
Reviewed-on: https://go-review.googlesource.com/120535
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261894 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261875 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261864 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
Add multilib variants for -march=rv64imafd, e.g. to support the BOOMv2 core.
Add -mcmodel=medany as a variant of the 64-bit multilibs for RTEMS. The
rationale for this change is that several existing RISC-V chips map the
RAM at 0x80000000. In RTEMS, we do not use virtual memory, so
applications will run at this location which is outside the +-2GiB range
in a 64-bit configuration.
gcc/
* config.gcc (riscv*-*-elf* | riscv*-*-rtems*): Use custom
multilibs for *-*-rtems*.
* config/riscv/t-rtems: New file.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261838 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261828 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261777 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
The issue is caused by reordering of stack pointer update after stack
space allocation with instructions that write to the allocated stack
space. In windowed ABI register spill area for the previous call frame
is located just below the stack pointer and may be reloaded back into
the register file on movsp.
Implement allocate_stack pattern for windowed ABI configuration and
insert an instruction that prevents reordering of frame memory access
and stack pointer update.
gcc/
2018-06-19 Max Filippov <jcmvbkbc@gmail.com>
Backport from mainline
2018-06-19 Max Filippov <jcmvbkbc@gmail.com>
* config/xtensa/xtensa.md (UNSPEC_FRAME_BLOCKAGE): New unspec
constant.
(allocate_stack, frame_blockage, *frame_blockage): New patterns.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261764 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
This header was needed for the declaration of std::terminate but the
calls to it were removed in r242401.
* include/std/utility: Remove unused <exception> header.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261752 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
incomplete constructor if CONSTRUCTOR_NO_CLEARING is set.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261737 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261722 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
gcc/ChangeLog:
PR middle-end/82063
* calls.c (alloc_max_size): Correct a logic error/typo.
Treat excessive arguments as infinite. Warn for invalid arguments.
* doc/invoke.texi (-Walloc-size-larger-than): Update.
gcc/testsuite/ChangeLog:
PR middle-end/82063
* gcc.dg/Walloc-size-larger-than-1.c: New test.
* gcc.dg/Walloc-size-larger-than-10.c: New test.
* gcc.dg/Walloc-size-larger-than-11.c: New test.
* gcc.dg/Walloc-size-larger-than-12.c: New test.
* gcc.dg/Walloc-size-larger-than-13.c: New test.
* gcc.dg/Walloc-size-larger-than-14.c: New test.
* gcc.dg/Walloc-size-larger-than-15.c: New test.
* gcc.dg/Walloc-size-larger-than-16.c: New test.
* gcc.dg/Walloc-size-larger-than-2.c: New test.
* gcc.dg/Walloc-size-larger-than-3.c: New test.
* gcc.dg/Walloc-size-larger-than-4.c: New test.
* gcc.dg/Walloc-size-larger-than-5.c: New test.
* gcc.dg/Walloc-size-larger-than-6.c: New test.
* gcc.dg/Walloc-size-larger-than-7.c: New test.
* gcc.dg/Walloc-size-larger-than-8.c: New test.
* gcc.dg/Walloc-size-larger-than-9.c: New test.
* gcc.dg/Walloc-size-larger-than.c: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261720 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261693 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261684 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261672 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR libstdc++/86169
* include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
(basic_string::data()): Unshare string.
* testsuite/21_strings/basic_string/operations/data/char/86169.cc:
New.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261646 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* include/bits/char_traits.h (__cpp_lib_constexpr_char_traits): Only
define for C++17 and above.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261637 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261615 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
Common systems like glibc and FreeBSD define int32_t to int. This means
a lot of third party code works well in these cases:
#include <stdint.h>
void f(int32_t);
void f(int);
void g(int32_t *);
void h(void)
{
int i;
g(&i);
}
On RTEMS you got however in C
test.c:5:6: error: conflicting types for 'f'
void f(int);
^
test.c:3:6: note: previous declaration of 'f' was here
void f(int32_t);
^
test.c: In function 'h':
test.c:12:4: warning: passing argument 1 of 'g' from incompatible
pointer type [-Wincompatible-pointer-types]
g(&i);
^
test.c:7:6: note: expected 'int32_t * {aka long int *}' but argument
is of type 'int *' void g(int32_t *);
and C++
test.c: In function 'void h()':
test.c:12:4: error: invalid conversion from 'int*' to 'int32_t* {aka
long int*}' [-fpermissive]
g(&i);
^~
test.c:7:6: note: initializing argument 1 of 'void g(int32_t*)'
void g(int32_t *);
^
This was due to a Newlib speciality which uses long for int32_t if long
is a 32-bit type. To ease the use of third party software in RTEMS we
override this Newlib option now and use int for int32_t if int is a
32-bit type.
gcc/
* config/rtems.h (STDINT_LONG32): Define.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261584 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261578 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/86110
* array.c (gfc_resolve_character_array_constructor): Avoid NULL
pointer dereference.
2018-06-13 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/86110
* gfortran.dg/pr86110.f90: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261575 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261533 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* parser.c (cp_parser_postfix_dot_deref_expression): Check
currently_open_class.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261524 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* parser.c (cp_parser_init_statement): Don't clobber *decl after
pedwarn.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261523 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/44491
* expr.c (gfc_check_assign): Select non-NULL locus.
2018-06-12 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/44491
* gfortran.dg/pr44491.f90: New testcase
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261520 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
using TYPE_LANG_FLAG_4 to using TYPE_LANG_FLAG_0.
(TYPE_ALIGN_OK): Move around.
(TYPE_PADDING_FOR_COMPONENT): Remove superfluous parentheses.
* gcc-interface/decl.c (change_qualified_type): Move to...
(gnat_to_gnu_entity): Adjust comment.
* gcc-interface/gigi.h (change_qualified_type): ...here; make inline.
(ceil_pow2): Use ceil_log2.
* gcc-interface/utils.c (finish_subprog_decl): Add couple of comments
and do not set TREE_SIDE_EFFECTS.
(handle_noreturn_attribute): Use change_qualified_type.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261488 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
the expression of a dispatch table that is not being defined.
<E_Record_Subtype>: Remove obsolete kludge.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261485 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
2018-06-02 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: If this is
not a definition, retrieve the expression only if it's a compile-time
known value if we are just annotating types.
* gcc-interface/utils.c (convert): Do not try to upcast properly for a
conversion between tagged types in type_annotate_only mode.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261482 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
2018-06-11 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Reuse the
existing fields of a dummy fat pointer type, if any. Clear the
TYPE_DECL_SUPPRESS_DEBUG on the fat pointer type after completing it.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261478 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261470 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
Backport from mainline
2018-06-08 Peter Bergner <bergner@vnet.ibm.com>
PR target/85755
* config/rs6000/rs6000.c (mem_operand_gpr): Enable PRE_INC and PRE_DEC
addresses.
gcc/testsuite/
Backport from mainline
2018-06-08 Peter Bergner <bergner@vnet.ibm.com>
PR target/85755
* gcc.target/powerpc/pr85755.c: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261442 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261391 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261385 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
Backport from trunk.
PR libgfortran/86070
* io/write_float.def (build_float_string): Initialize *len.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261384 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261379 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/38351
* resolve.c (resolve_operator): Provide better error message for
derived type entity used in an binary intrinsic numeric operator.
2018-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/38351
* gfortran.dg/pr38351.f90: New test.
* gfortran.dg/typebound_operator_4.f03: Adjust for new error message.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261376 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/63514
* symbol.c (gfc_add_volatile): Enforce F2008:C1282 and F2018:C1588.
2018-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/63514
* gfortran.dg/pr63514.f90: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261375 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/78278
* data.c (gfc_assign_data_value): Re-arrange code to allow for
an error for double initialization of CHARACTER entities.
2018-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/78278
* gfortran.dg/data_bounds_1.f90: Add -std=gnu option.
* gfortran.dg/data_char_1.f90: Ditto.
* gfortran.dg/pr78571.f90: Ditto.
* gfortran.dg/pr78278.f90: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261374 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/86059
* array.c (match_array_cons_element): NULL() cannot be in an
array constructor.
2018-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/86059
* gfortran.dg/associate_30.f90: Remove code tested ...
* gfortran.dg/pr67803.f90: Ditto.
* gfortran.dg/pr67805.f90: Ditto.
* gfortran.dg/pr86059.f90: ... here. New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261373 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/85138
PR fortran/85996
PR fortran/86051
* decl.c (gfc_match_char_spec): Use private namespace in attempt to
reduce a charlen to a constant.
2018-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/85138
PR fortran/85996
PR fortran/86051
* gfortran.dg/pr85138_1.f90: New test.
* gfortran.dg/pr85138_2.f90: Ditto.
* gfortran.dg/pr85996.f90: Ditto.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261371 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261355 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261301 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/86045
Backport from trunk.
* simplify.c (gfc_simplify_mod): Re-arrange code to test whether
'P' is zero and issue an error if it is.
2018-06-07 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/86045
Backport from trunk.
* gfortran.dg/pr86045.f90: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261291 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR fortran/85641
Backport from trunk.
* frontend-passes.c (is_fe_temp): Add prototype.
(realloc_string_callback): Early return for frontend-generated
temporary.
2018-06-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/85641
Backport from trunk.
* gfortran.dg/realloc_on_assign_30.f90: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261289 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
2018-06-06 Peter Bergner <bergner@vnet.ibm.com>
PR target/63177
* /config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mpower9.
Don't handle -mcpu=power8 if -mpower9-vector is also used.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261276 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
Backport from mainline
2018-03-19 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/84761
* sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
Define if not defined.
(DL_INTERNAL_FUNCTION): Don't define.
(InitTlsSize): For __i386__ if not compiled against glibc 2.27+
determine at runtime whether to use regparm(3), stdcall calling
convention for older glibcs or normal calling convention for
newer glibcs for call to _dl_get_tls_static_info.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261272 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
Backport from mainline
2018-05-04 Richard Biener <rguenther@suse.de>
PR middle-end/85588
* fold-const.c (negate_expr_p): Restrict negation of operand
zero of a division to when we know that can happen without
overflow.
(fold_negate_expr_1): Likewise.
* gcc.dg/torture/pr85588.c: New testcase.
* gcc.dg/torture/pr57656.c: Use dg-additional-options.
2018-05-02 Richard Biener <rguenther@suse.de>
PR middle-end/85567
* gimplify.c (gimplify_save_expr): When in SSA form allow
SAVE_EXPRs to compute to SSA vars.
* gcc.dg/torture/pr85567.c: New testcase.
2018-05-02 Richard Biener <rguenther@suse.de>
PR tree-optimization/85597
* tree-vect-stmts.c (vectorizable_operation): For ternary SLP
do not use split vect_get_vec_defs call but call vect_get_slp_defs
directly.
* gcc.dg/vect/pr85597.c: New testcase.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261269 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@261257 138bc75d-0d04-0410-961f-82ee72b054a4
|