C++ PATCH for c++/89705 - ICE with reference binding with conversion function

2019-03-16 Thread Marek Polacek
Here we have code like struct X { operator const int(); }; int&& rri = X(); which I think is invalid, because [dcl.init.ref] says that if types T1 and T2 are reference-related, no qualifiers can be dropped, and if the reference is an rvalue reference, the initializer expression can't be an lv

Re: [PATCH] Fix up diagnostics emitted by fortran FE load_line (PR fortran/89724)

2019-03-16 Thread Thomas Koenig
Hi Jakub, Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? OK. Thanks for the patch! Regards Thomas

[committed] Skip tests on 32-bit hppa*-*-hpux* that need .weak assembler directive

2019-03-16 Thread John David Anglin
Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net 2019-03-16 John David Anglin PR testsuite/89393 * g++.dg/abi/ref-temp1.C: Skip on 32-bit hppa*-*-hpux*. * g++.dg/cpp0x/pr84497.C: Likewise. Index: g++.dg/abi/ref-temp1.C =

[committed] Skip tests on 32-bit hppa*-*-hpux* with unsupported attributes

2019-03-16 Thread John David Anglin
Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net 2019-03-16 John David Anglin * c-c++-common/builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*. * gcc.dg/attr-copy-6.c: Likewise. * gcc.dg/pr87793.c: Likewise. Index: c-c++-common/builtin-has-at

[committed] Skip gcc.dg/pr84941.c on hppa*-*-*

2019-03-16 Thread John David Anglin
Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net 2019-03-16 John David Anglin PR testsuite/89471 * gcc.dg/pr84941.c: Skip on hppa*-*-*. Index: gcc.dg/pr84941.c === --- gcc.dg/pr84941.c(revi

[committed] Fix tests needing large alignment on hppa*-*-hpux*

2019-03-16 Thread John David Anglin
We need to disable common for tests needing large alignments. Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net 2019-03-16 John David Anglin * gcc.dg/Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*. * gcc.dg/gimplefe-34.c: Likewise. * gcc.

[committed] Fix "FAIL: gcc.dg/Wattributes-6.c (test for warnings, line 404)" on hppa64-*-*

2019-03-16 Thread John David Anglin
Same as fix for c-c++-common/Wattributes.c. Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net 2019-03-16 John David Anglin PR testsuite/84174 * gcc.dg/Wattributes-6.c: Skip warning check at line 404 on hppa*64*-*-*. Index: gcc.dg/Wattributes-6.c ==

[committed] Fix failure of c-c++-common/Wattributes.c on hppa*64*-*-*

2019-03-16 Thread John David Anglin
Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net 2019-03-16 John David Anglin PR testsuite/83453 * c-c++-common/Wattributes.c: Skip a warning check on hppa*64*-*-*. Index: c-c++-common/Wattributes.c =

[committed] Remove hppa*-*-hpux* from check_ascii_locale_available

2019-03-16 Thread John David Anglin
The previous change was incorrect. POSIX and C locales are available. Dave -- John David Anglin dave.ang...@bell.net 2019-03-16 John David Anglin * lib/target-supports.exp (check_ascii_locale_available): Remove hppa*-*-hpux*. Index: lib/target-supports.exp

[patch, fortran] Fix PR 88008, ICE on invalid

2019-03-16 Thread Thomas Koenig
Hello world, this patch fixes an ICE on invalid 9 regression by converting two asserts into gfc_error, plus fixups to the rest of the code. Regression-tested. OK for trunk? Regards Thomas Index: gfortran.h === --- gfortran

Re: [PATCH 5/5] [ARC] Refactor deprecated macros.

2019-03-16 Thread Andrew Burgess
* Claudiu Zissulescu [2019-03-06 12:20:05 +0200]: > -xx-xx Claudiu Zissulescu > > * config/arc/arc-protos.h (arc_register_move_cost): Remove. > * config/arc/arc.c (arc_register_move_cost): Re-purpose it to > implement target hook. > (arc_memory_move_cost): New func

Re: [PATCH 4/5] [ARC] Fix tst_movb pattern.

2019-03-16 Thread Andrew Burgess
* Claudiu Zissulescu [2019-03-06 12:20:04 +0200]: > -xx-xx Claudiu Zissulescu > > * config/arc/arc.md (tst_movb): Fix constraint. This is fine. Thanks, Andrew > --- > gcc/config/arc/arc.md | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gcc/config/a

Re: [PATCH 3/5] [ARC] Define TARGET_HAVE_SPECULATION_SAFE_VALUE.

2019-03-16 Thread Andrew Burgess
* Claudiu Zissulescu [2019-03-06 12:20:03 +0200]: > -xx-xx Claudiu Zissulescu > > * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define. This is fine. Thanks, Andrew > --- > gcc/config/arc/arc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/gcc/config/ar

Re: [PATCH 2/5] [ARC] Enable code density frame option for elf targets.

2019-03-16 Thread Andrew Burgess
* Claudiu Zissulescu [2019-03-06 12:20:02 +0200]: > -xx-xx Claudiu Zissulescu > > * config/arc/arc.opt (mcode-density-frame): Get the inital value > from TARGET_CODE_DENSITY_FRAME_DEFAULT. > * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define it > to 1.

Re: [PATCH 1/5] [ARC] Introduce ADJUST_REG_ALLOC_ORDER.

2019-03-16 Thread Andrew Burgess
* Claudiu Zissulescu [2019-03-06 12:20:01 +0200]: > The ARC port is changing the allocation order in the > arc_conditional_register_usage function, but this is not the proper > way. Thus, we employ ADJUST_REG_ALLOC_ORDER hook for this task. > > gcc/ > -xx-xx Claudiu Zissulescu > >