aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2014-08-07 08:04:55 +0000
committerKirill Yukhin <kyukhin@gcc.gnu.org>2014-08-07 08:04:55 +0000
commitce597aedd79e646c4a5517505088d380239cbfa5 (patch)
tree548964f4bdfec21edd46fb5e35bc4d107bcd5203 /gcc
parentddccb16a72ad34a89d4be6382460e0e4d164fd60 (diff)
downloadgcc-ce597aedd79e646c4a5517505088d380239cbfa5.zip
gcc-ce597aedd79e646c4a5517505088d380239cbfa5.tar.gz
gcc-ce597aedd79e646c4a5517505088d380239cbfa5.tar.bz2
elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size instead of type size.
gcc/ * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size instead of type size. (ASM_FINISH_DECLARE_OBJECT): Likewise. gcc/testsuite/ * gcc.target/i386/struct-size.c: New. From-SVN: r213699
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/elfos.h4
-rw-r--r--gcc/testsuite/ChangeLog4
3 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dc23b90..76c6d55 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
+ instead of type size.
+ (ASM_FINISH_DECLARE_OBJECT): Likewise.
+
2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
* config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h
index c1d5553..7929708 100644
--- a/gcc/config/elfos.h
+++ b/gcc/config/elfos.h
@@ -313,7 +313,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
&& (DECL) && DECL_SIZE (DECL)) \
{ \
size_directive_output = 1; \
- size = int_size_in_bytes (TREE_TYPE (DECL)); \
+ size = tree_to_uhwi (DECL_SIZE_UNIT (DECL)); \
ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, size); \
} \
\
@@ -341,7 +341,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
&& !size_directive_output) \
{ \
size_directive_output = 1; \
- size = int_size_in_bytes (TREE_TYPE (DECL)); \
+ size = tree_to_uhwi (DECL_SIZE_UNIT (DECL)); \
ASM_OUTPUT_SIZE_DIRECTIVE (FILE, name, size); \
} \
} \
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1270a35..248a3cc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ * gcc.target/i386/struct-size.c: New.
+
2014-08-07 Tom de Vries <tom@codesourcery.com>
* gcc.dg/cproj-fails-with-broken-glibc.c: Remove test.