public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/26007]  New: initialized final static data should go in .rodata, not .data
@ 2006-01-28 20:36 green at redhat dot com
  2006-01-28 20:38 ` [Bug java/26007] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: green at redhat dot com @ 2006-01-28 20:36 UTC (permalink / raw)
  To: gcc-bugs

For the following code...

public class b
{
  public static final int FOOBAR = 555;
}

..I would expect to see FOOBAR in .rodata.  However gcj currently places this
in .data.

If you poke through the .jar.so files we have in Fedora Core you'll see big
chunks of .data that should actually .rodata.


-- 
           Summary: initialized final static data should go in .rodata, not
                    .data
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at redhat dot com


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


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

* [Bug java/26007] initialized final static data should go in .rodata, not .data
  2006-01-28 20:36 [Bug java/26007] New: initialized final static data should go in .rodata, not .data green at redhat dot com
@ 2006-01-28 20:38 ` pinskia at gcc dot gnu dot org
  2006-01-28 20:44 ` pinskia at gcc dot gnu dot org
  2006-01-31 17:31 ` daney at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-28 20:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-28 20:38 -------
Note there are ticks for final static data to be changed IIRC.  I don't know
how useful they are or if they really are valid.


-- 


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


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

* [Bug java/26007] initialized final static data should go in .rodata, not .data
  2006-01-28 20:36 [Bug java/26007] New: initialized final static data should go in .rodata, not .data green at redhat dot com
  2006-01-28 20:38 ` [Bug java/26007] " pinskia at gcc dot gnu dot org
@ 2006-01-28 20:44 ` pinskia at gcc dot gnu dot org
  2006-01-31 17:31 ` daney at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-28 20:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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


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

* [Bug java/26007] initialized final static data should go in .rodata, not .data
  2006-01-28 20:36 [Bug java/26007] New: initialized final static data should go in .rodata, not .data green at redhat dot com
  2006-01-28 20:38 ` [Bug java/26007] " pinskia at gcc dot gnu dot org
  2006-01-28 20:44 ` pinskia at gcc dot gnu dot org
@ 2006-01-31 17:31 ` daney at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: daney at gcc dot gnu dot org @ 2006-01-31 17:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from daney at gcc dot gnu dot org  2006-01-31 17:31 -------
If you fix this, you need to also make sure the Method.set* never modifies the
data under any circumstances.  Attempts at modification will result in SIGSEGV
which is usually converted to NPE.  The real exception should probably be
IllegalAccessException if modification is attempted.


-- 

daney 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-01-31 17:31:09
               date|                            |


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


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

end of thread, other threads:[~2006-01-31 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-28 20:36 [Bug java/26007] New: initialized final static data should go in .rodata, not .data green at redhat dot com
2006-01-28 20:38 ` [Bug java/26007] " pinskia at gcc dot gnu dot org
2006-01-28 20:44 ` pinskia at gcc dot gnu dot org
2006-01-31 17:31 ` daney 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).