[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/21288] Build for 32-bit platform is impossible



https://sourceware.org/bugzilla/show_bug.cgi?id=21288

--- Comment #1 from dodji at seketeli dot org ---
Hello Slava,

Thanks for the patch!

I just applied it to the master branch.

I just amended it slightly to include <stdint.h> (for uint64_t) in the
abg-fwd.h header file.

I have edited the changelog part to make line start with tabs, rather
than spaces.

Below is the final patch that got applied.

Thanks a lot!

commit 0ffa1796e000f4a7a4b9dc93ca50a514cf81850d
Author: Slava Barinov <v.barinov@samsung.com>
Date:   Wed Mar 22 12:21:39 2017 +0300

    Fix types in header to meet sources

    Package fails to build for 32bit architectures since size_t is not 64 bits.

    Make header consistent with source

        * include/abg-fwd.h: Include stdint.h for uint64_t.
        (ir::set_data_member_offset): Take uint64_t rather than size_t.
        (ir::get_data_member_offset): Return uint64_t rather than size_t.

    Signed-off-by: Slava Barinov <v.barinov@samsung.com>
    Signed-off-by: Dodji Seketeli <dodji@redhat.com>

diff --git a/include/abg-fwd.h b/include/abg-fwd.h
index 88f712f..e0fbbcc 100644
--- a/include/abg-fwd.h
+++ b/include/abg-fwd.h
@@ -23,6 +23,7 @@
 #ifndef __ABG_IRFWD_H__
 #define __ABG_IRFWD_H__

+#include <stdint.h>
 #include <cstdlib>
 #include <cstddef>
 #include <tr1/memory>
@@ -572,15 +573,15 @@ array_type_def_sptr
 is_array_type(const type_or_decl_base_sptr& decl);

 void
-set_data_member_offset(var_decl_sptr, size_t);
+set_data_member_offset(var_decl_sptr, uint64_t);

-size_t
+uint64_t
 get_data_member_offset(const var_decl&);

-size_t
+uint64_t
 get_data_member_offset(const var_decl_sptr);

-size_t
+uint64_t
 get_data_member_offset(const decl_base_sptr);

 void

-- 
You are receiving this mail because:
You are on the CC list for the bug.