https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64583
Bug ID: 64583 Summary: [5 Regression] recent inliner changes cause Chromium build failure Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: hubicka at gcc dot gnu.org Final chrome link fails due to relocations to discarded comdat sections: ... obj/third_party/WebKit/Source/web/libblink_web.a(obj/third_party/WebKit/Source/web/blink_web.PopupListBox.o):PopupListBox.cpp:function blink::PopupListBox::getRowHeight(int) const: warning: relocation refers to discarded section obj/third_party/WebKit/Source/web/libblink_web.a(obj/third_party/WebKit/Source/web/blink_web.PopupListBox.o):PopupListBox.cpp:function blink::PopupListBox::getRowHeight(int) const: warning: relocation refers to discarded section obj/third_party/WebKit/Source/web/libblink_web.a(obj/third_party/WebKit/Source/web/blink_web.PopupListBox.o):PopupListBox.cpp:function blink::PopupListBox::paintRow(blink::Gr aphicsContext*, blink::IntRect const&, int): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_html.a(obj/third_party/WebKit/Source/core/html/canvas/webcore_html.CanvasRenderingContext2D.o):CanvasRenderingContext2D.cpp:func tion WTF::BoundFunctionImpl<WTF::FunctionWrapper<void (blink::GraphicsContext::*)(blink::Font const&, blink::TextRunPaintInfo const&, blink::FloatPoint const&, blink::Font::C ustomFontNotReadyAction)>, void (blink::GraphicsContext*, blink::Font, blink::TextRunPaintInfo, blink::FloatPoint, blink::Font::CustomFontNotReadyAction)>::~BoundFunctionImpl (): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_html.a(obj/third_party/WebKit/Source/core/html/canvas/webcore_html.CanvasRenderingContext2D.o):CanvasRenderingContext2D.cpp:func tion WTF::BoundFunctionImpl<WTF::FunctionWrapper<void (blink::GraphicsContext::*)(blink::Font const&, blink::TextRunPaintInfo const&, blink::FloatPoint const&, blink::Font::C ustomFontNotReadyAction)>, void (blink::GraphicsContext*, blink::Font, blink::TextRunPaintInfo, blink::FloatPoint, blink::Font::CustomFontNotReadyAction)>::~BoundFunctionImpl (): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_html.a(obj/third_party/WebKit/Source/core/html/canvas/webcore_html.CanvasRenderingContext2D.o):CanvasRenderingContext2D.cpp:func tion blink::Font::~Font(): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_html.a(obj/third_party/WebKit/Source/core/html/canvas/webcore_html.CanvasRenderingContext2D.o):CanvasRenderingContext2D.cpp:func tion blink::CanvasRenderingContext2D::setFont(WTF::String const&): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_html.a(obj/third_party/WebKit/Source/core/html/canvas/webcore_html.CanvasRenderingContext2D.o):CanvasRenderingContext2D.cpp:func tion blink::CanvasRenderingContext2D::setFont(WTF::String const&): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::setScript(WTF::String const&): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::setStyle(blink::FontStyle): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::setVariantLigatures(blink::FontDescription::VariantLigatures const&): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::setFontSmoothing(blink::FontSmoothingMode): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::setFamilyDescription(blink::FontDescription::FamilyDescription const&): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::setInitial(float): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::setInitial(float): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::checkForOrientationChange(blink::RenderStyle*): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::checkForOrientationChange(blink::RenderStyle*): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::checkForGenericFamilyChange(blink::RenderStyle*, blink::RenderStyle const*): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_remaining.a(obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.FontBuilder.o):FontBuilder.cpp:function blink::Fon tBuilder::updateComputedSize(blink::RenderStyle*, blink::RenderStyle const*): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_rendering.a(obj/third_party/WebKit/Source/core/rendering/style/webcore_rendering.RenderStyle.o):RenderStyle.cpp:function blink:: RenderStyle::setFontDescription(blink::FontDescription const&): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_rendering.a(obj/third_party/WebKit/Source/core/rendering/style/webcore_rendering.RenderStyle.o):RenderStyle.cpp:function blink:: RenderStyle::setWordSpacing(float): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_rendering.a(obj/third_party/WebKit/Source/core/rendering/style/webcore_rendering.RenderStyle.o):RenderStyle.cpp:function blink:: RenderStyle::setLetterSpacing(float): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_rendering.a(obj/third_party/WebKit/Source/core/rendering/style/webcore_rendering.RenderStyle.o):RenderStyle.cpp:function blink:: RenderStyle::setTextAutosizingMultiplier(float): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_generated.a(obj/third_party/WebKit/Source/core/gen/blink/core/webcore_generated.StyleBuilderFunctions.o):StyleBuilderFunctions.c pp:function blink::StyleBuilderFunctions::applyInitialCSSPropertyFontFamily(blink::StyleResolverState&): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_generated.a(obj/third_party/WebKit/Source/core/gen/blink/core/webcore_generated.StyleBuilderFunctions.o):StyleBuilderFunctions.c pp:function blink::StyleBuilderFunctions::applyInheritCSSPropertyFontFamily(blink::StyleResolverState&): warning: relocation refers to discarded section obj/third_party/WebKit/Source/core/libwebcore_generated.a(obj/third_party/WebKit/Source/core/gen/blink/core/webcore_generated.StyleBuilderFunctions.o):StyleBuilderFunctions.c pp:function blink::StyleBuilderFunctions::applyValueCSSPropertyFontFamily(blink::StyleResolverState&, blink::CSSValue*): warning: relocation refers to discarded section /usr/lib/gcc/x86_64-pc-linux-gnu/5.0.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: treating warnings as errors collect2: error: ld returned 1 exit status Haven't looked deeper yet. gcc-4.9 is fine. gcc trunk from 11 January, too.