public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14518] New: Trivial failure with IMA at -O0
@ 2004-03-10 23:43 dalej at gcc dot gnu dot org
2004-03-10 23:55 ` [Bug c/14518] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: dalej at gcc dot gnu dot org @ 2004-03-10 23:43 UTC (permalink / raw)
To: gcc-bugs
The following is a failure with IMA on fairly basic stuff. Compile the files together as
cc -O0 -c -o foo.o file1.c file2.c
You get a multiply defined symbol in the .s file. This goes away with -O2 or higher.
There should probably be an IMA component, I don't think this is the last problem
we'll have with it (and Geoff insists it's not an optimization, so that's inappropriate).
/* file 1 */
char *globals[] = {"a", "b"};
foo() {
printf("%s\n", globals[0]);
}
/* file 2 */
extern char *globals[];
main() {
printf("%s\n", globals[1]);
}
--
Summary: Trivial failure with IMA at -O0
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dalej at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7.2.0
GCC host triplet: powerpc-apple-darwin7.2.0
GCC target triplet: powerpc-apple-darwin7.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14518
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/14518] Trivial failure with IMA at -O0
2004-03-10 23:43 [Bug c/14518] New: Trivial failure with IMA at -O0 dalej at gcc dot gnu dot org
@ 2004-03-10 23:55 ` pinskia at gcc dot gnu dot org
2004-03-10 23:57 ` [Bug c/14518] [non-unit-at-a-time] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-10 23:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-10 23:55 -------
Confirmed, also happens on 3.5.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Known to fail| |3.5.0 tree-ssa
Last reconfirmed|0000-00-00 00:00:00 |2004-03-10 23:55:50
date| |
Version|tree-ssa |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14518
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/14518] [non-unit-at-a-time] Trivial failure with IMA at -O0
2004-03-10 23:43 [Bug c/14518] New: Trivial failure with IMA at -O0 dalej at gcc dot gnu dot org
2004-03-10 23:55 ` [Bug c/14518] " pinskia at gcc dot gnu dot org
@ 2004-03-10 23:57 ` pinskia at gcc dot gnu dot org
2004-06-04 2:47 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-10 23:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-10 23:57 -------
I wish non unit-at-a-time mode will be removed.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Trivial failure with IMA at |[non-unit-at-a-time] Trivial
|-O0 |failure with IMA at -O0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14518
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/14518] [non-unit-at-a-time] Trivial failure with IMA at -O0
2004-03-10 23:43 [Bug c/14518] New: Trivial failure with IMA at -O0 dalej at gcc dot gnu dot org
2004-03-10 23:55 ` [Bug c/14518] " pinskia at gcc dot gnu dot org
2004-03-10 23:57 ` [Bug c/14518] [non-unit-at-a-time] " pinskia at gcc dot gnu dot org
@ 2004-06-04 2:47 ` pinskia at gcc dot gnu dot org
2004-06-18 4:40 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-04 2:47 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |15816
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14518
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/14518] [non-unit-at-a-time] Trivial failure with IMA at -O0
2004-03-10 23:43 [Bug c/14518] New: Trivial failure with IMA at -O0 dalej at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-06-04 2:47 ` pinskia at gcc dot gnu dot org
@ 2004-06-18 4:40 ` pinskia at gcc dot gnu dot org
2004-06-18 4:42 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-18 4:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-18 04:40 -------
Will be fixed when I get IMA working again.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14518
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/14518] [non-unit-at-a-time] Trivial failure with IMA at -O0
2004-03-10 23:43 [Bug c/14518] New: Trivial failure with IMA at -O0 dalej at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-06-18 4:40 ` pinskia at gcc dot gnu dot org
@ 2004-06-18 4:42 ` pinskia at gcc dot gnu dot org
2004-07-15 1:57 ` pinskia at gcc dot gnu dot org
2004-07-29 18:09 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-18 4:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-18 04:42 -------
I should say that it is working in my local compiler which has IMA semi working.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14518
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/14518] [non-unit-at-a-time] Trivial failure with IMA at -O0
2004-03-10 23:43 [Bug c/14518] New: Trivial failure with IMA at -O0 dalej at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-06-18 4:42 ` pinskia at gcc dot gnu dot org
@ 2004-07-15 1:57 ` pinskia at gcc dot gnu dot org
2004-07-29 18:09 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-15 1:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-15 01:57 -------
Fixed in 3.5.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14518
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/14518] [non-unit-at-a-time] Trivial failure with IMA at -O0
2004-03-10 23:43 [Bug c/14518] New: Trivial failure with IMA at -O0 dalej at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-07-15 1:57 ` pinskia at gcc dot gnu dot org
@ 2004-07-29 18:09 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-29 18:09 UTC (permalink / raw)
To: gcc-bugs
--
Bug 14518 depends on bug 15816, which changed state.
Bug 15816 Summary: non-unit-at-a-time should be removed
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15816
What |Old Value |New Value
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14518
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-07-29 18:09 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-10 23:43 [Bug c/14518] New: Trivial failure with IMA at -O0 dalej at gcc dot gnu dot org
2004-03-10 23:55 ` [Bug c/14518] " pinskia at gcc dot gnu dot org
2004-03-10 23:57 ` [Bug c/14518] [non-unit-at-a-time] " pinskia at gcc dot gnu dot org
2004-06-04 2:47 ` pinskia at gcc dot gnu dot org
2004-06-18 4:40 ` pinskia at gcc dot gnu dot org
2004-06-18 4:42 ` pinskia at gcc dot gnu dot org
2004-07-15 1:57 ` pinskia at gcc dot gnu dot org
2004-07-29 18:09 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).