public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27498] New: fold does not fold reads from constant static strings
@ 2006-05-08 16:14 rguenth at gcc dot gnu dot org
2006-05-08 16:19 ` [Bug middle-end/27498] " rguenth at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-05-08 16:14 UTC (permalink / raw)
To: gcc-bugs
void zconfdump(void)
{
char *p, *p2;
for (p2 = p; p2; )
{
char __a0, __a1, __a2;
__a0 = ((__const char *) ("\"\\"))[0];
if (__a0)
return;
}
}
we do not fold the read from "\"\\". Me & Dirk have a fix.
--
Summary: fold does not fold reads from constant static strings
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27498
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27498] fold does not fold reads from constant static strings
2006-05-08 16:14 [Bug middle-end/27498] New: fold does not fold reads from constant static strings rguenth at gcc dot gnu dot org
@ 2006-05-08 16:19 ` rguenth at gcc dot gnu dot org
2006-05-09 7:21 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-05-08 16:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2006-05-08 16:19 -------
Created an attachment (id=11409)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11409&action=view)
patch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27498
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27498] fold does not fold reads from constant static strings
2006-05-08 16:14 [Bug middle-end/27498] New: fold does not fold reads from constant static strings rguenth at gcc dot gnu dot org
2006-05-08 16:19 ` [Bug middle-end/27498] " rguenth at gcc dot gnu dot org
@ 2006-05-09 7:21 ` pinskia at gcc dot gnu dot org
2006-05-09 14:17 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-09 7:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-09 07:20 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-09 07:20:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27498
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27498] fold does not fold reads from constant static strings
2006-05-08 16:14 [Bug middle-end/27498] New: fold does not fold reads from constant static strings rguenth at gcc dot gnu dot org
2006-05-08 16:19 ` [Bug middle-end/27498] " rguenth at gcc dot gnu dot org
2006-05-09 7:21 ` pinskia at gcc dot gnu dot org
@ 2006-05-09 14:17 ` rguenth at gcc dot gnu dot org
2006-05-09 14:26 ` rguenth at gcc dot gnu dot org
2006-05-15 19:37 ` patchapp at dberlin dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-05-09 14:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2006-05-09 14:16 -------
Subject: Bug 27498
Author: rguenth
Date: Tue May 9 14:16:50 2006
New Revision: 113651
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113651
Log:
2006-05-09 Dirk Mueller <dmueller@suse.de>
Richard Guenther <rguenther@suse.de>
PR middle-end/27498
* fold-const.c (fold_read_from_constant_string): Relax check
for matching types to matching modes.
* gcc.dg/tree-ssa/pr27498.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr27498.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27498
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27498] fold does not fold reads from constant static strings
2006-05-08 16:14 [Bug middle-end/27498] New: fold does not fold reads from constant static strings rguenth at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-05-09 14:17 ` rguenth at gcc dot gnu dot org
@ 2006-05-09 14:26 ` rguenth at gcc dot gnu dot org
2006-05-15 19:37 ` patchapp at dberlin dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-05-09 14:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2006-05-09 14:25 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27498
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/27498] fold does not fold reads from constant static strings
2006-05-08 16:14 [Bug middle-end/27498] New: fold does not fold reads from constant static strings rguenth at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-05-09 14:26 ` rguenth at gcc dot gnu dot org
@ 2006-05-15 19:37 ` patchapp at dberlin dot org
4 siblings, 0 replies; 6+ messages in thread
From: patchapp at dberlin dot org @ 2006-05-15 19:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from patchapp at dberlin dot org 2006-05-15 19:37 -------
Subject: Bug number PR27498
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00326.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27498
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-05-15 19:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08 16:14 [Bug middle-end/27498] New: fold does not fold reads from constant static strings rguenth at gcc dot gnu dot org
2006-05-08 16:19 ` [Bug middle-end/27498] " rguenth at gcc dot gnu dot org
2006-05-09 7:21 ` pinskia at gcc dot gnu dot org
2006-05-09 14:17 ` rguenth at gcc dot gnu dot org
2006-05-09 14:26 ` rguenth at gcc dot gnu dot org
2006-05-15 19:37 ` patchapp at dberlin 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).