Closed
Bug 575398
Opened 14 years ago
Closed 14 years ago
dehydra: circular typedef field generated with attribute __aligned__
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ehren.m, Unassigned)
References
Details
Attachments
(2 files)
1.92 KB,
patch
|
taras.mozilla
:
review+
|
Details | Diff | Splinter Review |
634 bytes,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
Turns out the fix was pretty easy, although this seems like a genuine gcc bug in that DECL_ORIGINAL_TYPE(TYPE_NAME(type)) == type. As far as I can tell only __attribute__((__aligned__)) triggers this weirdness.
Reporter | ||
Comment 1•14 years ago
|
||
Attachment #454634 -
Flags: review?(tglek)
Comment 2•14 years ago
|
||
Comment on attachment 454634 [details] [diff] [review]
patch
please file a gcc bug to
Attachment #454634 -
Flags: review?(tglek) → review+
Reporter | ||
Comment 3•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 4•14 years ago
|
||
Here is what I get with this patch applied:
Test Failure:
Test command: /usr/bin/g++-4.5 -c -fplugin=../gcc_dehydra.so -o /dev/null -fplugin-arg-gcc_dehydra-script=test_typedef_aligned.js typedef_aligned.cc
Failure msg: Expected 'OK' output; Errors:
typedef_aligned.cc:2:37: error: Must be 5 tests run, instead ran 1
Reporter | ||
Comment 5•14 years ago
|
||
Thanks for pointing this out. I can confirm that with 4.5 tip this struct is only visited once (as opposed to with 4.5.0). I've changed the test to require that 1 visit minimum is made without hardcoding the number of visits.
Mike, I could just land it, but do you mind giving this a look?
Attachment #456910 -
Flags: review?(mh+mozilla)
Reporter | ||
Updated•14 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 6•14 years ago
|
||
Comment on attachment 456910 [details] [diff] [review]
test fix
I can't comment on the correctness, but at least, the test passes. Thanks.
Attachment #456910 -
Flags: review?(mh+mozilla) → review+
Reporter | ||
Comment 7•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•