aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-streamer-in.c
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@redhat.com>2012-10-10 10:25:03 +0000
committerDodji Seketeli <dodji@gcc.gnu.org>2012-10-10 12:25:03 +0200
commitf739e97a835efea413749d5505cd64fe1d0ad922 (patch)
tree2d29ef6bfdcbd1ad25cfc850c1e0cf2fe33e563e /gcc/tree-streamer-in.c
parentd072812eb51d021d887430459b60a5b627eae7f3 (diff)
downloadgcc-f739e97a835efea413749d5505cd64fe1d0ad922.zip
gcc-f739e97a835efea413749d5505cd64fe1d0ad922.tar.gz
gcc-f739e97a835efea413749d5505cd64fe1d0ad922.tar.bz2
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. From-SVN: r192301
Diffstat (limited to 'gcc/tree-streamer-in.c')
0 files changed, 0 insertions, 0 deletions