summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/java/sql
diff options
context:
space:
mode:
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-10 10:25:03 +0000
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-10 10:25:03 +0000
commit3a7190b7f57bb459c236554f6759dff0153eeceb (patch)
tree2d29ef6bfdcbd1ad25cfc850c1e0cf2fe33e563e /libjava/classpath/java/sql
parent21d505d8c0867cd1efafd31923b44328abe257ae (diff)
downloadppe42-gcc-3a7190b7f57bb459c236554f6759dff0153eeceb.tar.gz
ppe42-gcc-3a7190b7f57bb459c236554f6759dff0153eeceb.zip
PR middle-end/54860 - Make sure attributes hash table is created
On targets cris-elf, alpha and sparc (for instance) it can happen that the attribute_tables variable is empty for fortran. Thus register_scoped_attributes (called by init_attributes) won't call register_scoped_attributes, so the hash table member of scoped_attributes is not created. Later when we try to e.g, lookup an attribute by calling lookup_scoped_attribute_spec, that NULL member hash table comes to byte us as htab_find_with_hash crashes. This patch fixes this by ensuring in register_scoped_attributes that the hash table is created. Tested on cris-elf, x86_64-unknown-linux-gnu against trunk and some commenters on the bug bootstrapped it on alpha and sparc. gcc/ * attribs.c (register_scoped_attributes): Ensure the attribute hash table is created. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192301 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/java/sql')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud