Bug 208669
Summary: | &&label uses generate references to unknown symbols | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jeremy Fitzhardinge <jeremy> | ||||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-10-16 18:43:37 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Jeremy Fitzhardinge
2006-09-29 23:32:38 UTC
Created attachment 137453 [details]
filemap.i exhibits this problem when compiled with gcc -c -O filemap.i
Created attachment 137454 [details]
output assembler, showing dangling reference to .L1020
Reproduced on: static inline __attribute__((always_inline)) void bar (void) { addr:; static const unsigned long b __attribute__((__used__)) __attribute__((section("btable"))) = (unsigned long) &&addr; asm ("" : : "m" (b)); } void foo (void) { bar (); } even on GCC trunk, the tree inliner doesn't correctly remap the static variable when inlining. Tracking this upstream, but I believe your testcase is invalid and GCC should issue an error on it (because of always_inline attribute). |