Files
Simon Marchi 184cde7552 Fix copy-pasto, allocate objfile_per_bfd_storage with obstack_new
I realized after pushing that I made a copy-pasto, I had:

  # define HAVE_IS_TRIVIALLY_COPYABLE 1

instead of

  # define HAVE_IS_TRIVIALLY_CONSTRUCTIBLE 1

with the consequence that IsMallocable was always std::true_type (and
was therefore not enforcing anything).  Fixing that mistake triggered a
build failure:

/home/simark/src/binutils-gdb/gdb/objfiles.c:150:12:   required from here
/home/simark/src/binutils-gdb/gdb/common/poison.h:228:3: error: static assertion failed: Trying to use XOBNEW with a non-POD data type.

I am not sure why I did not see this when I originally wrote the patch
(but I saw and fixed other failures).  In any case, I swapped XOBNEW
with obstack_new to get rid of it.

Regtested on the buildbot.

gdb/ChangeLog:

	* common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
	instance to...
	(HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
	* objfiles.c (get_objfile_bfd_data): Allocate
	objfile_per_bfd_storage with obstack_new when allocating on
	obstack.
2018-05-20 23:19:35 -04:00
..
2018-02-28 11:34:39 -05:00
2018-05-04 12:20:37 -06:00
2018-04-30 11:33:11 -06:00
2018-04-09 14:20:46 -04:00
2018-04-09 14:20:46 -04:00
2018-03-02 23:22:10 -05:00
2018-03-19 09:37:49 -06:00
2018-02-09 14:03:18 +01:00
2018-02-09 14:03:19 +01:00
2018-04-18 20:44:39 +01:00