public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
@ 2009-03-18 21:13 hjl dot tools at gmail dot com
2009-03-18 21:14 ` [Bug bootstrap/39497] " hjl dot tools at gmail dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-18 21:13 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 5287 bytes --]
On Linux/x86-64, I got
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function encode_decimal32:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:142: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function decode_decimal32:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:158: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function encode_decimal64:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:182: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:188: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function decode_decimal64:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:207: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:212: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function
encode_decimal128:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:238: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:248: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function
decode_decimal128:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:267: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:274: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:267: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:267: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:268: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:268: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:269: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:269: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:270: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:270: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function
encode_decimal128:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:238: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:238: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:239: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:239: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:240: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:240: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:241: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:241: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function decode_decimal32:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:158: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:158: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function encode_decimal64:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:182: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:182: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:183: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:183: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c: In function decode_decimal64:
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:207: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:207: note: initialized from here
/export/gnu/import/svn/gcc-model/gcc/gcc/dfp.c:208: warning: dereferencing
pointer ({anonymous}) does break strict-aliasing rules
--
Summary: dfp.c:239: warning: dereferencing pointer
'({anonymous})' does break strict-aliasing rules
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39497
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
2009-03-18 21:13 [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules hjl dot tools at gmail dot com
@ 2009-03-18 21:14 ` hjl dot tools at gmail dot com
2009-03-18 21:16 ` [Bug middle-end/39497] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-03-18 21:14 UTC (permalink / raw)
To: gcc-bugs
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |bootstrap
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39497
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
2009-03-18 21:13 [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules hjl dot tools at gmail dot com
2009-03-18 21:14 ` [Bug bootstrap/39497] " hjl dot tools at gmail dot com
@ 2009-03-18 21:16 ` pinskia at gcc dot gnu dot org
2009-03-18 21:24 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-03-18 21:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-03-18 21:16 -------
Related to PR 37897.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|bootstrap |middle-end
Target Milestone|4.4.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39497
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
2009-03-18 21:13 [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules hjl dot tools at gmail dot com
2009-03-18 21:14 ` [Bug bootstrap/39497] " hjl dot tools at gmail dot com
2009-03-18 21:16 ` [Bug middle-end/39497] " pinskia at gcc dot gnu dot org
@ 2009-03-18 21:24 ` rguenth at gcc dot gnu dot org
2009-03-18 21:34 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-03-18 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-03-18 21:24 -------
A patch to build dfp.c with -fno-strict-aliasing is pre-approved (just use the
dfp.o-warn variable in Makefile.in)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39497
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
2009-03-18 21:13 [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2009-03-18 21:24 ` rguenth at gcc dot gnu dot org
@ 2009-03-18 21:34 ` rguenth at gcc dot gnu dot org
2009-03-24 15:37 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-03-18 21:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2009-03-18 21:33 -------
Confirmed. dfp.c is crap.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |build, wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2009-03-18 21:33:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39497
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
2009-03-18 21:13 [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2009-03-18 21:34 ` rguenth at gcc dot gnu dot org
@ 2009-03-24 15:37 ` rguenth at gcc dot gnu dot org
2009-03-25 12:01 ` rguenth at gcc dot gnu dot org
2009-03-25 12:01 ` rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-03-24 15:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-03-24 15:37 -------
Patch sent.
http://gcc.gnu.org/ml/gcc-patches/2009-03/msg01129.html
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2009-03-18 21:33:49 |2009-03-24 15:37:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39497
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
2009-03-18 21:13 [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules hjl dot tools at gmail dot com
` (5 preceding siblings ...)
2009-03-25 12:01 ` rguenth at gcc dot gnu dot org
@ 2009-03-25 12:01 ` rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-03-25 12:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2009-03-25 12:01 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39497
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39497] dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules
2009-03-18 21:13 [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2009-03-24 15:37 ` rguenth at gcc dot gnu dot org
@ 2009-03-25 12:01 ` rguenth at gcc dot gnu dot org
2009-03-25 12:01 ` rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-03-25 12:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-03-25 12:00 -------
Subject: Bug 39497
Author: rguenth
Date: Wed Mar 25 12:00:32 2009
New Revision: 145057
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145057
Log:
2009-03-24 Richard Guenther <rguenther@suse.de>
PR middle-end/39497
* Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
of -Wno-error.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39497
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-03-25 12:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-18 21:13 [Bug middle-end/39497] New: dfp.c:239: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules hjl dot tools at gmail dot com
2009-03-18 21:14 ` [Bug bootstrap/39497] " hjl dot tools at gmail dot com
2009-03-18 21:16 ` [Bug middle-end/39497] " pinskia at gcc dot gnu dot org
2009-03-18 21:24 ` rguenth at gcc dot gnu dot org
2009-03-18 21:34 ` rguenth at gcc dot gnu dot org
2009-03-24 15:37 ` rguenth at gcc dot gnu dot org
2009-03-25 12:01 ` rguenth at gcc dot gnu dot org
2009-03-25 12:01 ` rguenth 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).