binutils-gdb/gdb/compile
Pedro Alves 66eb1ed388 Fix gdb build with -std=gnu++11
The options framework series broken the build with gcc 4.8, or any
other compiler were we end up forcing -std=gnu++11, causing errors
like these:

 ../../binutils-gdb/gdb/compile/compile.c: In function gdb::option::option_def_group make_compile_options_def_group(compile_options*):
 ../../binutils-gdb/gdb/compile/compile.c:266:44: error: could not convert (const gdb::option::option_def*)(& compile_command_option_defs) from const gdb::option::option_def* to gdb::array_view<const gdb::option::option_def>
    return {compile_command_option_defs, opts};
					     ^
   CXX    copying.o
 ../../binutils-gdb/gdb/compile/compile.c:267:1: error: control reaches end of non-void function [-Werror=return-type]
  }
  ^

This is a C++11 vs C++14 difference -- C++14 relaxed the rules for
eliding braces.

This commit fixes it by adding the missing (in C++11) braces.  Tested
with g++ 4.8.

gdb/ChangeLog:
2019-06-13  Pedro Alves  <palves@redhat.com>

	* compile/compile.c (make_compile_options_def_group): Add braces
	around array_view initializer.
	* thread.c (make_thread_apply_all_options_def_group)
	(make_thread_apply_all_options_def_group): Likewise.
2019-06-13 08:58:54 +01:00
..
compile-c-support.c Allow really large fortran array bounds: TYPE_LENGTH to ULONGEST 2019-03-29 10:15:38 -07:00
compile-c-symbols.c Rename gdb exception types 2019-04-08 09:05:40 -06:00
compile-c-types.c
compile-c.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
compile-cplus-symbols.c Rename gdb exception types 2019-04-08 09:05:40 -06:00
compile-cplus-types.c Introduce and use make_unique_xstrdup 2019-06-04 22:48:32 +01:00
compile-cplus.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
compile-internal.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
compile-loc2c.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
compile-object-load.c Rename gdb exception types 2019-04-08 09:05:40 -06:00
compile-object-load.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
compile-object-run.c Replace throw_exception with throw in some cases 2019-04-08 09:05:41 -06:00
compile-object-run.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
compile.c Fix gdb build with -std=gnu++11 2019-06-13 08:58:54 +01:00
compile.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gcc-c-plugin.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gcc-cp-plugin.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00