Summary: | [4.1 Regression] Compile failure with --combine and packed structures. | ||
---|---|---|---|
Product: | gcc | Reporter: | David Woodhouse <dwmw2> |
Component: | c | Assignee: | Jakub Jelinek <jakub> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexandre.nunes, dwmw2, gcc-bugs, pinskia |
Priority: | P2 | Keywords: | rejects-valid |
Version: | 4.1.1 | ||
Target Milestone: | 4.2.0 | ||
URL: | http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00447.html | ||
Host: | Target: | ||
Build: | Known to work: | 3.4.0 4.2.0 | |
Known to fail: | 4.0.0 4.0.4 4.1.0 4.1.3 | Last reconfirmed: | 2006-08-14 17:47:00 |
Bug Depends on: | |||
Bug Blocks: | 28779 |
Description
David Woodhouse
2006-08-13 23:36:00 UTC
Confirmed, this worked in 3.4.0. The C front end part of the patch is OK. Subject: Bug 28712 Author: jakub Date: Sat Sep 23 07:15:37 2006 New Revision: 117167 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117167 Log: PR c/28706 PR c/28712 * tree.c (merge_attributes, attribute_list_contained): If both TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of simple_cst_equal. * c-typeck.c (comptypes_internal): Don't consider aggregates in different TUs as compatible if there one set of attributes is not a subset of the other type's attributes. (composite_type): Try harder not to create a new aggregate type. * gcc.dg/pr28706.c: New test. * gcc.dg/pr28712.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr28706.c trunk/gcc/testsuite/gcc.dg/pr28712.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-typeck.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree.c won't fix in GCC-4.0.x. Adjusting milestone. (In reply to comment #4) > won't fix in GCC-4.0.x. Adjusting milestone. > For anyone interested, I think this is fixed for at least gcc 4.2.2; I couldn't reproduce it. Closing 4.1 branch. |