public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/25187] New: dereferencing type-punned pointer warnings while building libgcj
@ 2005-11-30 18:53 pinskia at gcc dot gnu dot org
2005-11-30 18:55 ` [Bug libgcj/25187] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-30 18:53 UTC (permalink / raw)
To: gcc-bugs
/home/pinskia/src/newtest/trunk/libjava/java/lang/Class.h: In member function
'java::lang::Class* java::lang::Class::getComponentType()':
/home/pinskia/src/newtest/trunk/libjava/java/lang/Class.h:339: warning:
dereferencing type-punned pointer will break strict-aliasing rules
/home/pinskia/src/newtest/trunk/libjava/prims.cc: In function 'void
catch_segv(int)':
/home/pinskia/src/newtest/trunk/libjava/prims.cc:149: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/home/pinskia/src/newtest/trunk/libjava/prims.cc: In function 'void
catch_fpe(int)':
/home/pinskia/src/newtest/trunk/libjava/prims.cc:161: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/home/pinskia/src/newtest/trunk/libjava/jni.cc: In function 'jint
_Jv_JNI_DestroyJavaVM(JavaVM*)':
/home/pinskia/src/newtest/trunk/libjava/jni.cc:2440: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/home/pinskia/src/newtest/trunk/libjava/interpret.cc: In static member function
'static void _Jv_InterpMethod::run(void*, ffi_raw*, _Jv_InterpMethod*)':
/home/pinskia/src/newtest/trunk/libjava/interpret.cc:808: warning:
dereferencing type-punned pointer will break strict-aliasing rules
/home/pinskia/src/newtest/trunk/libjava/gnu/gcj/io/natSimpleSHSStream.cc: In
static member function 'static JArray<__java_byte>*
gnu::gcj::io::SimpleSHSStream::shsFinal(JArray<__java_byte>*)':
/home/pinskia/src/newtest/trunk/libjava/gnu/gcj/io/natSimpleSHSStream.cc:32:
warning: dereferencing type-punned pointer will break strict-aliasing rules
I have not looked to see if these are false postives at all.
--
Summary: dereferencing type-punned pointer warnings while
building libgcj
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25187
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/25187] dereferencing type-punned pointer warnings while building libgcj
2005-11-30 18:53 [Bug libgcj/25187] New: dereferencing type-punned pointer warnings while building libgcj pinskia at gcc dot gnu dot org
@ 2005-11-30 18:55 ` pinskia at gcc dot gnu dot org
2005-11-30 20:35 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-30 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-30 18:55 -------
Some more:
/home/pinskia/src/newtest/trunk/libjava/java/lang/ref/natReference.cc: In
member function 'void java::lang::ref::Reference::create(java::lang::Object*)':
/home/pinskia/src/newtest/trunk/libjava/java/lang/ref/natReference.cc:366:
warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/pinskia/src/newtest/trunk/libjava/boehm.cc: In function 'void*
_Jv_MarkArray(void*, void*, void*, void*)':
/home/pinskia/src/newtest/trunk/libjava/boehm.cc:377: warning: dereferencing
type-punned pointer will break strict-aliasing rules
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25187
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/25187] dereferencing type-punned pointer warnings while building libgcj
2005-11-30 18:53 [Bug libgcj/25187] New: dereferencing type-punned pointer warnings while building libgcj pinskia at gcc dot gnu dot org
2005-11-30 18:55 ` [Bug libgcj/25187] " pinskia at gcc dot gnu dot org
@ 2005-11-30 20:35 ` rguenth at gcc dot gnu dot org
2006-02-09 1:35 ` bryce at gcc dot gnu dot org
2006-02-09 1:38 ` mckinlay at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-11-30 20:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2005-11-30 20:34 -------
Confirmed, I completely forgot about these. Most of them were false positives,
if I remember correctly.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-11-30 20:34:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25187
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/25187] dereferencing type-punned pointer warnings while building libgcj
2005-11-30 18:53 [Bug libgcj/25187] New: dereferencing type-punned pointer warnings while building libgcj pinskia at gcc dot gnu dot org
2005-11-30 18:55 ` [Bug libgcj/25187] " pinskia at gcc dot gnu dot org
2005-11-30 20:35 ` rguenth at gcc dot gnu dot org
@ 2006-02-09 1:35 ` bryce at gcc dot gnu dot org
2006-02-09 1:38 ` mckinlay at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: bryce at gcc dot gnu dot org @ 2006-02-09 1:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bryce at gcc dot gnu dot org 2006-02-09 01:35 -------
Subject: Bug 25187
Author: bryce
Date: Thu Feb 9 01:35:33 2006
New Revision: 110783
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110783
Log:
2006-02-08 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/25187:
* gnu/gcj/io/natSimpleSHSStream.cc
(gnu::gcj::io::SimpleSHSStream::shsFinal): Remove bogus cast.
* interpret.cc (_Jv_InterpMethod::run): Simplify arguments to
_Jv_InterpFrame().
* boehm.cc: #undef some autoconf macros before including gc-config.h.
(_Jv_MarkObject): Don't mark the class, it is reachable via the vtable.
(_Jv_MarkArray): Likewise.
* java/lang/ref/natReference.cc (java::lang::ref::Reference::create):
Simplify _Jv_GCRegisterDisappearingLink() call.
* java/lang/Class.h (getComponentType): Use element_type.
(element_type): New field declaration, as a union with "methods".
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Use "element_type".
* java/net/natVMNetworkInterfacePosix.cc
(java::net::VMNetworkInterface::getInterfaces): Add "int" cast to
avoid sign comparison warning.
* include/java-interp.h (_Jv_InterpFrame): Take thread as second
argument, not parent call frame.
* include/x86_64-signal.h (MAKE_THROW_FRAME): Use "gregs" directly,
without a cast.
(restore_rt): Declare with hidden visibility, not "static".
* posix.cc (_Jv_platform_initProperties): Make "tmpdir" a string
constant.
* jni.cc (_Jv_JNI_DestroyJavaVM): Use a union to avoid strict alias
warning
Modified:
trunk/libjava/ChangeLog
trunk/libjava/boehm.cc
trunk/libjava/gnu/gcj/io/natSimpleSHSStream.cc
trunk/libjava/include/java-interp.h
trunk/libjava/include/x86_64-signal.h
trunk/libjava/interpret.cc
trunk/libjava/java/lang/Class.h
trunk/libjava/java/lang/natClassLoader.cc
trunk/libjava/java/lang/ref/natReference.cc
trunk/libjava/java/net/natVMNetworkInterfacePosix.cc
trunk/libjava/jni.cc
trunk/libjava/posix.cc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25187
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/25187] dereferencing type-punned pointer warnings while building libgcj
2005-11-30 18:53 [Bug libgcj/25187] New: dereferencing type-punned pointer warnings while building libgcj pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-02-09 1:35 ` bryce at gcc dot gnu dot org
@ 2006-02-09 1:38 ` mckinlay at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: mckinlay at redhat dot com @ 2006-02-09 1:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mckinlay at redhat dot com 2006-02-09 01:38 -------
Fixed.
--
mckinlay at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25187
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-09 1:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-30 18:53 [Bug libgcj/25187] New: dereferencing type-punned pointer warnings while building libgcj pinskia at gcc dot gnu dot org
2005-11-30 18:55 ` [Bug libgcj/25187] " pinskia at gcc dot gnu dot org
2005-11-30 20:35 ` rguenth at gcc dot gnu dot org
2006-02-09 1:35 ` bryce at gcc dot gnu dot org
2006-02-09 1:38 ` mckinlay at redhat 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).