OSDN Git Service

compiler: Use backend interface for type sizes and alignments.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jan 2012 04:48:22 +0000 (04:48 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jan 2012 04:48:22 +0000 (04:48 +0000)
commit927a01eba66c97c810b74e48669832863c8b846d
tree5bbea3053021715319cc56c179b13eb1af9ea5af
parentfdc214958edc1060dcbc0c7e5567a6b1d0ce84e8
compiler: Use backend interface for type sizes and alignments.

* go-gcc.cc (Gcc_backend::type_size): New function.
(Gcc_backend::type_alignment): New function.
(Gcc_backend::type_field_alignment): New function.
(Gcc_backend::type_field_offset): New function.
* go-backend.c (go_type_alignment): Remove.
* go-c.h (go_type_alignment): Don't declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183089 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/ChangeLog
gcc/go/go-backend.c
gcc/go/go-c.h
gcc/go/go-gcc.cc
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h