public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag
       [not found] <bug-58531-4@http.gcc.gnu.org/bugzilla/>
@ 2013-09-25 16:25 ` guillaume at eulerian dot com
  2013-09-25 16:51 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: guillaume at eulerian dot com @ 2013-09-25 16:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58531

--- Comment #1 from Guillaume <guillaume at eulerian dot com> ---
Created attachment 30897
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30897&action=edit
test.c / Makefile


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag
       [not found] <bug-58531-4@http.gcc.gnu.org/bugzilla/>
  2013-09-25 16:25 ` [Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag guillaume at eulerian dot com
@ 2013-09-25 16:51 ` jakub at gcc dot gnu.org
  2013-09-25 16:55 ` pinskia at gcc dot gnu.org
  2013-09-25 17:29 ` guillaume at eulerian dot com
  3 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-09-25 16:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58531

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There is nothing weird on it, there is nothing that would mandate particular
ordering of different compound literals.  And, the testcase invokes undefined
behavior, you can't subtract pointers to different arrays.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag
       [not found] <bug-58531-4@http.gcc.gnu.org/bugzilla/>
  2013-09-25 16:25 ` [Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag guillaume at eulerian dot com
  2013-09-25 16:51 ` jakub at gcc dot gnu.org
@ 2013-09-25 16:55 ` pinskia at gcc dot gnu.org
  2013-09-25 17:29 ` guillaume at eulerian dot com
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-09-25 16:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58531

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Invalid as mentioned.  There is no requirement for  compound literals to be in
a certain order in the object file.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag
       [not found] <bug-58531-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-09-25 16:55 ` pinskia at gcc dot gnu.org
@ 2013-09-25 17:29 ` guillaume at eulerian dot com
  3 siblings, 0 replies; 4+ messages in thread
From: guillaume at eulerian dot com @ 2013-09-25 17:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58531

--- Comment #4 from Guillaume <guillaume at eulerian dot com> ---
Ok i understand.

I took a sad brain shortcut assuming a single block declaration was generating
an (only possible) increasing address for each compound.
This was working on all previous gcc version i used (as far as i remember).
That's why it is worrying me.
I will correct my mistake and go punish myself ;)

Thanks a lot.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-25 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-58531-4@http.gcc.gnu.org/bugzilla/>
2013-09-25 16:25 ` [Bug c/58531] [4.7/4.8 Regression] Strange array element ordering with O1 flag guillaume at eulerian dot com
2013-09-25 16:51 ` jakub at gcc dot gnu.org
2013-09-25 16:55 ` pinskia at gcc dot gnu.org
2013-09-25 17:29 ` guillaume at eulerian dot com

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).