[PATCH] D20268: Resolution-based LTO API.

Roger Ferrer Ibanez via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 12 08:13:57 PDT 2016


Hi Teresa,

the issue has been fixed. Thank you very much!

Kind regards,
Roger

From: Teresa Johnson [mailto:tejohnson at google.com]
Sent: 12 August 2016 16:04
To: reviews+D20268+public+3db381562550d75b at reviews.llvm.org
Cc: Rafael Ávila de Espíndola; Peter Collingbourne; Tim Amini Golling; Roger Ferrer Ibanez; lhames at gmail.com; llvm-commits
Subject: Re: [PATCH] D20268: Resolution-based LTO API.



On Fri, Aug 12, 2016 at 6:54 AM, Teresa Johnson <tejohnson at google.com<mailto:tejohnson at google.com>> wrote:


On Fri, Aug 12, 2016 at 1:07 AM, Roger Ferrer Ibanez <roger.ferreribanez at arm.com<mailto:roger.ferreribanez at arm.com>> wrote:
rogfer01 added a subscriber: rogfer01.

================
Comment at: llvm/trunk/tools/gold/gold-plugin.cpp:95
@@ +94,3 @@
+  bool VisibleToRegularObj = false;
+  uint64_t Size = 0;
+  unsigned Align = 0;
----------------
I think this one should be `size_t` as `lto::InputFile::Symbol::getCommonSize` returns `size_t` and then the `std::max` in line 629 fails to build in targets where `size_t` is `unsigned int`.

Can you confirm if changing to `size_t` makes sense here? It does fix the build indeed.

Hi Roger,

Sorry about that and thanks for suggesting a fix. I believe actgually taht getCommonSize should instead be changed to return uint64_t, since it returns the result of DataLayout::getTypeAllocSize which is uint64_t. Will commit that fix in a moment. Please let me know if this fixes your issue but I think it should.

 r278512

Teresa


If this is OK I can commit the change.


Repository:
  rL LLVM

https://reviews.llvm.org/D20268





--
Teresa Johnson |

 Software Engineer |

 tejohnson at google.com<mailto:tejohnson at google.com> |

 408-460-2413<tel:408-460-2413>




--
Teresa Johnson |

 Software Engineer |

 tejohnson at google.com<mailto:tejohnson at google.com> |

 408-460-2413


IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160812/1511d712/attachment.html>


More information about the llvm-commits mailing list