public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/23684] New: Combine stores for non strict alignment targets
@ 2005-09-01 18:05 pinskia at gcc dot gnu dot org
2005-09-01 18:07 ` [Bug rtl-optimization/23684] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-01 18:05 UTC (permalink / raw)
To: gcc-bugs
Take the following code:
#define OSSwapHostToBigInt32
void foo(char *input) {
input[0] = 'H';
input[1] = 'e';
input[2] = 'l';
input[3] = 'l';
input[4] = 'o';
input[5] = ' ';
input[6] = 'w';
input[7] = 'o';
input[8] = 'r';
input[9] = 'l';
input[10] = 'd';
input[11] = '\0';
}
void bar(char *input) {
((unsigned int *)input)[0] = OSSwapHostToBigInt32('Hell');
((unsigned int *)input)[1] = OSSwapHostToBigInt32('o wo');
((unsigned int *)input)[2] = OSSwapHostToBigInt32('rld\0');
}
They should generate the same asm but currently don't. Note change OSSwapHostToBigInt32 to correct
for little endian.
--
Summary: Combine stores for non strict alignment targets
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23684
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/23684] Combine stores for non strict alignment targets
2005-09-01 18:05 [Bug rtl-optimization/23684] New: Combine stores for non strict alignment targets pinskia at gcc dot gnu dot org
@ 2005-09-01 18:07 ` pinskia at gcc dot gnu dot org
2005-09-07 1:42 ` amodra at bigpond dot net dot au
2005-09-15 20:15 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-01 18:07 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet| |powerpc-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23684
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/23684] Combine stores for non strict alignment targets
2005-09-01 18:05 [Bug rtl-optimization/23684] New: Combine stores for non strict alignment targets pinskia at gcc dot gnu dot org
2005-09-01 18:07 ` [Bug rtl-optimization/23684] " pinskia at gcc dot gnu dot org
@ 2005-09-07 1:42 ` amodra at bigpond dot net dot au
2005-09-15 20:15 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-09-07 1:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From amodra at bigpond dot net dot au 2005-09-07 01:42 -------
Also even when -mstrict-align if using
typedef char align_char __attribute__ ((aligned (4)));
void foo (align_char *input) ...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23684
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/23684] Combine stores for non strict alignment targets
2005-09-01 18:05 [Bug rtl-optimization/23684] New: Combine stores for non strict alignment targets pinskia at gcc dot gnu dot org
2005-09-01 18:07 ` [Bug rtl-optimization/23684] " pinskia at gcc dot gnu dot org
2005-09-07 1:42 ` amodra at bigpond dot net dot au
@ 2005-09-15 20:15 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-15 20:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-15 20:14 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-09-15 20:14:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23684
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-15 20:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01 18:05 [Bug rtl-optimization/23684] New: Combine stores for non strict alignment targets pinskia at gcc dot gnu dot org
2005-09-01 18:07 ` [Bug rtl-optimization/23684] " pinskia at gcc dot gnu dot org
2005-09-07 1:42 ` amodra at bigpond dot net dot au
2005-09-15 20:15 ` 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).