Skip to content

Commit 13f77d5

Browse files
author
Damian Rouson
committed
Merge branch 'master' of https://github.com/gcc-mirror/gcc
2 parents b9951ae + 0f63740 commit 13f77d5

File tree

317 files changed

+15085
-1728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+15085
-1728
lines changed

gcc/ChangeLog

Lines changed: 387 additions & 1 deletion
Large diffs are not rendered by default.

gcc/DATESTAMP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20171020
1+
20171023

gcc/ada/ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2017-10-21 Eric Botcazou <[email protected]>
2+
3+
* gcc-interface/Makefile.in: Remove bogus settings for VxWorks.
4+
5+
2017-10-21 Eric Botcazou <[email protected]>
6+
7+
* gcc-interface/utils.c (pad_type_hash): Use hashval_t for hash value.
8+
(convert): Do not use an unchecked conversion for converting from a
9+
type to another type padding it.
10+
111
2017-10-20 Doug Rupp <[email protected]>
212

313
* libgnarl/s-osinte__linux.ads (Relative_Timed_Wait): Add variable

gcc/ada/gcc-interface/Makefile.in

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,10 @@ ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7,$(target_cpu) $(targe
627627

628628
ifeq ($(strip $(filter-out x86_64, $(target_cpu))),)
629629
X86CPU=x86_64
630-
LIBGNAT_TARGET_PAIRS=s-atocou.adb<libgnat/s-atocou__builtin.adb
630+
LIBGNAT_TARGET_PAIRS=$(X86_64_TARGET_PAIRS)
631631
else
632632
X86CPU=x86
633-
LIBGNAT_TARGET_PAIRS=s-atocou.adb<libgnat/s-atocou__x86.adb
633+
LIBGNAT_TARGET_PAIRS=$(X86_TARGET_PAIRS)
634634
endif
635635

636636
LIBGNAT_TARGET_PAIRS+= \
@@ -653,10 +653,7 @@ ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7,$(target_cpu) $(targe
653653
g-socthi.ads<libgnat/g-socthi__vxworks.ads \
654654
g-socthi.adb<libgnat/g-socthi__vxworks.adb \
655655
g-stsifd.adb<libgnat/g-stsifd__sockets.adb \
656-
$(ATOMICS_TARGET_PAIRS) \
657-
$(CERTMATH_TARGET_PAIRS) \
658-
$(CERTMATH_TARGET_PAIRS_SQRT_FPU) \
659-
$(CERTMATH_TARGET_PAIRS_X86TRA)
656+
$(ATOMICS_TARGET_PAIRS)
660657

661658
TOOLS_TARGET_PAIRS=indepsw.adb<indepsw-gnu.adb
662659

@@ -745,8 +742,7 @@ ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7,$(target_cpu) $(targe
745742
endif
746743
endif
747744

748-
EXTRA_GNATRTL_NONTASKING_OBJS += s-stchop.o \
749-
$(CERTMATH_GNATRTL_OBJS) $(CERTMATH_GNATRTL_X86TRA_OBJS)
745+
EXTRA_GNATRTL_NONTASKING_OBJS += s-stchop.o
750746
EXTRA_GNATRTL_TASKING_OBJS += i-vxinco.o s-vxwork.o s-vxwext.o
751747

752748
EXTRA_LIBGNAT_OBJS+=vx_stack_info.o
@@ -845,7 +841,7 @@ ifeq ($(strip $(filter-out arm% coff wrs vx%,$(target_cpu) $(target_vendor) $(ta
845841
endif
846842
endif
847843

848-
EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o $(CERTMATH_GNATRTL_OBJS) \
844+
EXTRA_GNATRTL_NONTASKING_OBJS=i-vxwork.o i-vxwoio.o \
849845
s-stchop.o
850846
EXTRA_GNATRTL_TASKING_OBJS=i-vxinco.o s-vxwork.o s-vxwext.o
851847

gcc/ada/gcc-interface/utils.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static tree handle_vector_type_attribute (tree *, tree, tree, int, bool *);
101101

102102
/* Fake handler for attributes we don't properly support, typically because
103103
they'd require dragging a lot of the common-c front-end circuitry. */
104-
static tree fake_attribute_handler (tree *, tree, tree, int, bool *);
104+
static tree fake_attribute_handler (tree *, tree, tree, int, bool *);
105105

106106
/* Table of machine-independent internal attributes for Ada. We support
107107
this minimal set of attributes to accommodate the needs of builtins. */
@@ -222,8 +222,9 @@ static GTY((deletable)) tree free_block_chain;
222222
/* A hash table of padded types. It is modelled on the generic type
223223
hash table in tree.c, which must thus be used as a reference. */
224224

225-
struct GTY((for_user)) pad_type_hash {
226-
unsigned long hash;
225+
struct GTY((for_user)) pad_type_hash
226+
{
227+
hashval_t hash;
227228
tree type;
228229
};
229230

@@ -4249,10 +4250,13 @@ convert (tree type, tree expr)
42494250
return convert (type, TREE_OPERAND (expr, 0));
42504251

42514252
/* If the inner type is of self-referential size and the expression type
4252-
is a record, do this as an unchecked conversion. But first pad the
4253-
expression if possible to have the same size on both sides. */
4253+
is a record, do this as an unchecked conversion unless both types are
4254+
essentially the same. But first pad the expression if possible to
4255+
have the same size on both sides. */
42544256
if (ecode == RECORD_TYPE
4255-
&& CONTAINS_PLACEHOLDER_P (DECL_SIZE (TYPE_FIELDS (type))))
4257+
&& CONTAINS_PLACEHOLDER_P (DECL_SIZE (TYPE_FIELDS (type)))
4258+
&& TYPE_MAIN_VARIANT (etype)
4259+
!= TYPE_MAIN_VARIANT (TREE_TYPE (TYPE_FIELDS (type))))
42564260
{
42574261
if (TREE_CODE (TYPE_SIZE (etype)) == INTEGER_CST)
42584262
expr = convert (maybe_pad_type (etype, TYPE_SIZE (type), 0, Empty,

gcc/brig/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2017-10-23 Richard Sandiford <[email protected]>
2+
3+
* brig-lang.c (brig_langhook_type_for_mode): Use scalar_int_mode
4+
and scalar_float_mode.
5+
16
2017-10-09 Pekka Jääskeläinen <[email protected]>
27

38
* brigfrontend/brig-to-generic.cc: Support BRIG_KIND_NONE

gcc/brig/brig-lang.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,11 @@ brig_langhook_type_for_mode (machine_mode mode, int unsignedp)
278278
return NULL_TREE;
279279
}
280280

281-
enum mode_class mc = GET_MODE_CLASS (mode);
282-
if (mc == MODE_FLOAT)
281+
scalar_int_mode imode;
282+
scalar_float_mode fmode;
283+
if (is_int_mode (mode, &imode))
283284
{
284-
switch (GET_MODE_BITSIZE (mode))
285+
switch (GET_MODE_BITSIZE (imode))
285286
{
286287
case 32:
287288
return float_type_node;
@@ -290,15 +291,15 @@ brig_langhook_type_for_mode (machine_mode mode, int unsignedp)
290291
default:
291292
/* We have to check for long double in order to support
292293
i386 excess precision. */
293-
if (mode == TYPE_MODE (long_double_type_node))
294+
if (imode == TYPE_MODE (long_double_type_node))
294295
return long_double_type_node;
295296

296297
gcc_unreachable ();
297298
return NULL_TREE;
298299
}
299300
}
300-
else if (mc == MODE_INT)
301-
return brig_langhook_type_for_size(GET_MODE_BITSIZE(mode), unsignedp);
301+
else if (is_float_mode (mode, &fmode))
302+
return brig_langhook_type_for_size (GET_MODE_BITSIZE (fmode), unsignedp);
302303
else
303304
{
304305
/* E.g., build_common_builtin_nodes () asks for modes/builtins

gcc/builtins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ expand_builtin_setjmp_receiver (rtx receiver_label)
900900
to the underlying register (fp in this case) that makes
901901
the original assignment true.
902902
So the following insn will actually be decrementing fp by
903-
STARTING_FRAME_OFFSET. */
903+
TARGET_STARTING_FRAME_OFFSET. */
904904
emit_move_insn (virtual_stack_vars_rtx, hard_frame_pointer_rtx);
905905

906906
/* Restoring the frame pointer also modifies the hard frame pointer.

gcc/c-family/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2017-10-23 Marek Polacek <[email protected]>
2+
3+
PR c/82681
4+
* c-warn.c (warnings_for_convert_and_check): Fix typos.
5+
16
2017-10-19 Eric Botcazou <[email protected]>
27

38
* c-common.c (check_builtin_function_arguments): Also check arguments

gcc/c-family/c-warn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,12 +1215,12 @@ warnings_for_convert_and_check (location_t loc, tree type, tree expr,
12151215
if (cst)
12161216
warning_at (loc, OPT_Woverflow,
12171217
"overflow in conversion from %qT to %qT "
1218-
"chages value from %qE to %qE",
1218+
"changes value from %qE to %qE",
12191219
exprtype, type, expr, result);
12201220
else
12211221
warning_at (loc, OPT_Woverflow,
12221222
"overflow in conversion from %qT to %qT "
1223-
"chages the value of %qE",
1223+
"changes the value of %qE",
12241224
exprtype, type, expr);
12251225
}
12261226
else

0 commit comments

Comments
 (0)