bugThe libunwind project - Bugs: bug #41017, [PATCH] Don't use empty structs...

 
 

bug #41017: [PATCH] Don't use empty structs with clang

Submitted by:  Bernhard Rosenkraenzer <bero>
Submitted on:  Fri 27 Dec 2013 08:45:00 PM UTC  
Votes:  1  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 02 Jun 2015 10:35:17 AM UTC, comment #1:

The patch needs to be updated for other architectures as well...

Marcin CieĊ›lak <saper>
Fri 27 Dec 2013 08:45:00 PM UTC, original submission:

With clang, including an extern "C" header with an empty struct in C++ code results in a build failure:

empty struct has size 0 in C, size 1 in C++

So for the sake of compatibility, the struct should have a size of 1 unconditionally when building with clang. Attaching patch.

Bernhard Rosenkraenzer <bero>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30120:  libunwind-clang-empty-structs.patch added by bero (992B - text/x-patch - Patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by djwatson24 (Updated the item)
  • -email is unavailable- added by saper (Posted a comment)
  • -email is unavailable- added by saper (Voted in favor of this item)
  • -email is unavailable- added by bero
  • -email is unavailable- added by bero (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-13 djwatson24 Open/ClosedOpen => Closed
    2015-06-02 saper Carbon-Copy- => Added saper
    2013-12-27 bero Attached File- => Added libunwind-clang-empty-structs.patch, #30120
        Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.3