public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* bootstrap failure for cygwin, mingw targets due recent changes to hash_table
@ 2014-06-24 21:06 Kai Tietz
  2014-06-25  0:19 ` Trevor Saunders
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Tietz @ 2014-06-24 21:06 UTC (permalink / raw)
  To: GCC Patches; +Cc: tsaunders

Hi Trevor,

your recent commits have broken bootstrap for cygwin/mingw i386 targets with:

../../gcc/gcc/config/i386/winnt.c: In Funktion »unsigned int
i386_pe_section_type_flags(tree, const char*, int)«:
../../gcc/gcc/config/i386/winnt.c:503:61: Fehler: keine passende
Funktion für Aufruf von »hash_table<pointer_hash<unsigned int>
>::find_slot(const unsigned int*, insert_option)«
   slot = htab->find_slot ((const unsigned int *)name, INSERT);
                                                             ^
../../gcc/gcc/config/i386/winnt.c:503:61: Anmerkung: Kandidat ist:
In file included from ../../gcc/gcc/config/i386/winnt.c:35:0:
../../gcc/gcc/hash-table.h:1030:15: Anmerkung: hash_table<Descriptor,
Allocator, true>::value_type* hash_table<Descriptor, Allocator,
true>::find_slot(const val
ue_type&, insert_option) [with Descriptor = pointer_hash<unsigned
int>; Allocator = xcallocator; hash_table<Descriptor, Allocator,
true>::value_type = unsigned int*] <nahe Übereinstimmung>
   value_type *find_slot (const value_type &value, insert_option insert)
               ^
../../gcc/gcc/hash-table.h:1030:15: Anmerkung:   keine bekannte Umwandlung für A
rgument 1 von »const unsigned int*« nach »unsigned int* const&«
../../gcc/gcc/config/i386/t-cygming:26: recipe for target 'winnt.o' failed
make[1]: *** [winnt.o] Error 1
make[1]: Leaving directory '/home/ktietz/source/gcc-head/buildw64/gcc'
Makefile:4006: recipe for target 'all-gcc' failed
make: *** [all-gcc] Error 2

Please fix that or revert.

Thanks,
Kai

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bootstrap failure for cygwin, mingw targets due recent changes to hash_table
  2014-06-24 21:06 bootstrap failure for cygwin, mingw targets due recent changes to hash_table Kai Tietz
@ 2014-06-25  0:19 ` Trevor Saunders
  0 siblings, 0 replies; 2+ messages in thread
From: Trevor Saunders @ 2014-06-25  0:19 UTC (permalink / raw)
  To: Kai Tietz; +Cc: GCC Patches

On Tue, Jun 24, 2014 at 11:06:33PM +0200, Kai Tietz wrote:
> Hi Trevor,
> 
> your recent commits have broken bootstrap for cygwin/mingw i386 targets with:

should be fixed in r211962.  Sorry I didn't realize the const
qualification thing matter in other places, it didn't show up in core
gcc so I didn't think to test for it other places.  I supose it might be
argued that changing the qualification of the hash table entry is more
appropriate, but this code seems to be pretty fishey on the strong
typing front much less the const correctness one so I just did what
seemed safest.

btw it seems like the TARGET_SECTION_TYPE_FLAGS  macro is totally unused
at this point.

Trev

> 
> ../../gcc/gcc/config/i386/winnt.c: In Funktion »unsigned int
> i386_pe_section_type_flags(tree, const char*, int)«:
> ../../gcc/gcc/config/i386/winnt.c:503:61: Fehler: keine passende
> Funktion für Aufruf von »hash_table<pointer_hash<unsigned int>
> >::find_slot(const unsigned int*, insert_option)«
>    slot = htab->find_slot ((const unsigned int *)name, INSERT);
>                                                              ^
> ../../gcc/gcc/config/i386/winnt.c:503:61: Anmerkung: Kandidat ist:
> In file included from ../../gcc/gcc/config/i386/winnt.c:35:0:
> ../../gcc/gcc/hash-table.h:1030:15: Anmerkung: hash_table<Descriptor,
> Allocator, true>::value_type* hash_table<Descriptor, Allocator,
> true>::find_slot(const val
> ue_type&, insert_option) [with Descriptor = pointer_hash<unsigned
> int>; Allocator = xcallocator; hash_table<Descriptor, Allocator,
> true>::value_type = unsigned int*] <nahe Ãœbereinstimmung>
>    value_type *find_slot (const value_type &value, insert_option insert)
>                ^
> ../../gcc/gcc/hash-table.h:1030:15: Anmerkung:   keine bekannte Umwandlung für A
> rgument 1 von »const unsigned int*« nach »unsigned int* const&«
> ../../gcc/gcc/config/i386/t-cygming:26: recipe for target 'winnt.o' failed
> make[1]: *** [winnt.o] Error 1
> make[1]: Leaving directory '/home/ktietz/source/gcc-head/buildw64/gcc'
> Makefile:4006: recipe for target 'all-gcc' failed
> make: *** [all-gcc] Error 2
> 
> Please fix that or revert.
> 
> Thanks,
> Kai

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-25  0:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-24 21:06 bootstrap failure for cygwin, mingw targets due recent changes to hash_table Kai Tietz
2014-06-25  0:19 ` Trevor Saunders

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).