public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/26540]  New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64
@ 2006-03-03  8:30 j_daniel at rbg dot informatik dot tu-darmstadt dot de
  2006-03-03 13:42 ` [Bug libfortran/26540] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: j_daniel at rbg dot informatik dot tu-darmstadt dot de @ 2006-03-03  8:30 UTC (permalink / raw)
  To: gcc-bugs

Compile time warnings which maybe critical to fix:

/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/intrinsics/signal.c: In
function 'signal_sub':
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/intrinsics/signal.c:52:
warning: cast from pointer to integer of different size
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/intrinsics/signal.c: In
function 'signal_sub_int':
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/intrinsics/signal.c:73:
warning: cast to pointer from integer of different size
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/intrinsics/signal.c:73:
warning: cast from pointer to integer of different size
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/intrinsics/signal.c:75:
warning: cast to pointer from integer of different size

there are probably more I didn't catch them all and logging is turned off.


-- 
           Summary: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning:
                    cast from/to pointer to/from integer of different size
                    on x86-64
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: j_daniel at rbg dot informatik dot tu-darmstadt dot de
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug libfortran/26540] some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
@ 2006-03-03 13:42 ` pinskia at gcc dot gnu dot org
  2006-05-21 14:11 ` fxcoudert at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-03 13:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-03 13:42 -------
These warnings are semi expected in that signal is expected not to work with
64bit, this is due to g77 compatibility.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


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


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

* [Bug libfortran/26540] some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
  2006-03-03 13:42 ` [Bug libfortran/26540] " pinskia at gcc dot gnu dot org
@ 2006-05-21 14:11 ` fxcoudert at gcc dot gnu dot org
  2006-09-10 18:56 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-05-21 14:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2006-05-21 14:11 -------
Yes, this is confirmed. I'm not sure what is the less dirty way to make the
warnings disappear (and not fix the code, which is, as Andrew said, expected
not to work well on 64bits platforms).


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-21 14:11:19
               date|                            |


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


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

* [Bug libfortran/26540] some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
  2006-03-03 13:42 ` [Bug libfortran/26540] " pinskia at gcc dot gnu dot org
  2006-05-21 14:11 ` fxcoudert at gcc dot gnu dot org
@ 2006-09-10 18:56 ` pinskia at gcc dot gnu dot org
  2006-09-10 19:05 ` howarth at nitro dot med dot uc dot edu
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-10 18:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-09-10 18:55 -------
*** Bug 29005 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howarth at nitro dot med dot
                   |                            |uc dot edu


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


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

* [Bug libfortran/26540] some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
                   ` (2 preceding siblings ...)
  2006-09-10 18:56 ` pinskia at gcc dot gnu dot org
@ 2006-09-10 19:05 ` howarth at nitro dot med dot uc dot edu
  2006-09-10 19:10 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-10 19:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from howarth at nitro dot med dot uc dot edu  2006-09-10 19:04 -------
Andrew,
    The comment...

These warnings are semi expected in that signal is expected not to work with
64bit, this is due to g77 compatibility.

..is confusing. If this is the case, why don't we use preprocessor statements
to
detect the 64-bit builds and eliminate the warning in those cases only.
Especially
as I don't think the warnings occur in 32-bit builds of libgfortran. Is there
really
any legacy g77 code built at 64-bit to support?
                Jack


-- 


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


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

* [Bug libfortran/26540] some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
                   ` (3 preceding siblings ...)
  2006-09-10 19:05 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-10 19:10 ` pinskia at gcc dot gnu dot org
  2006-09-10 19:24 ` howarth at nitro dot med dot uc dot edu
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-10 19:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-09-10 19:08 -------
(In reply to comment #4)
> Andrew,
>     The comment...
> 
> These warnings are semi expected in that signal is expected not to work with
> 64bit, this is due to g77 compatibility.
> 
> ..is confusing. 

How is it confusing?  G77 supported 64bit on most targets before gfotran was
even released.  Alpha-linux-gnu was a 64bit target where g77 was supported. 
x86_64-linux-gnu, ia64-linux-gnu and powerpc64-linux-gnu are others.  It is not
like 64bit support in GCC is new at all. 


-- 


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


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

* [Bug libfortran/26540] some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
                   ` (4 preceding siblings ...)
  2006-09-10 19:10 ` pinskia at gcc dot gnu dot org
@ 2006-09-10 19:24 ` howarth at nitro dot med dot uc dot edu
  2006-10-08 14:27 ` fxcoudert at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-10 19:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from howarth at nitro dot med dot uc dot edu  2006-09-10 19:24 -------
The confusing part was the words "signal is expected not to work with 64-bit"
which left the impression that it only works with 32-bit currently.


-- 


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


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

* [Bug libfortran/26540] some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
                   ` (5 preceding siblings ...)
  2006-09-10 19:24 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-08 14:27 ` fxcoudert at gcc dot gnu dot org
  2006-10-08 14:28 ` [Bug libfortran/26540] [4.1 only] intrinsics/signal.c warnings fxcoudert at gcc dot gnu dot org
  2006-10-13  7:22 ` fxcoudert at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-08 14:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from fxcoudert at gcc dot gnu dot org  2006-10-08 14:27 -------
Subject: Bug 26540

Author: fxcoudert
Date: Sun Oct  8 14:27:22 2006
New Revision: 117556

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117556
Log:
        PR libfortran/26540
        * intrinsics/signal.c (signal_sub, signal_sub_int): Use intptr_t
        if available to cast function pointers to int and back.
        * configure.ac: Check for intptr_t.
        * config.h.in: Regenerate.
        * configure: Regenerate.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/config.h.in
    trunk/libgfortran/configure
    trunk/libgfortran/configure.ac
    trunk/libgfortran/intrinsics/signal.c


-- 


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


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

* [Bug libfortran/26540] [4.1 only] intrinsics/signal.c warnings
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
                   ` (6 preceding siblings ...)
  2006-10-08 14:27 ` fxcoudert at gcc dot gnu dot org
@ 2006-10-08 14:28 ` fxcoudert at gcc dot gnu dot org
  2006-10-13  7:22 ` fxcoudert at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-08 14:28 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |fxcoudert at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
      Known to fail|                            |4.1.2
      Known to work|                            |4.2.0
   Last reconfirmed|2006-05-21 14:11:19         |2006-10-08 14:28:27
               date|                            |
            Summary|some gcc-                   |[4.1 only]
                   |4.1.0/libgfortran/intrinsics|intrinsics/signal.c warnings
                   |/signal.c warning: cast     |
                   |from/to pointer to/from     |
                   |integer of different size on|
                   |x86-64                      |
   Target Milestone|---                         |4.2.0


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


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

* [Bug libfortran/26540] [4.1 only] intrinsics/signal.c warnings
  2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
                   ` (7 preceding siblings ...)
  2006-10-08 14:28 ` [Bug libfortran/26540] [4.1 only] intrinsics/signal.c warnings fxcoudert at gcc dot gnu dot org
@ 2006-10-13  7:22 ` fxcoudert at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-10-13  7:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from fxcoudert at gcc dot gnu dot org  2006-10-13 07:22 -------
Since it's only a build-time warning, I won't backport that patch to 4.1 and I
close the PR.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-10-13  7:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-03  8:30 [Bug libfortran/26540] New: some gcc-4.1.0/libgfortran/intrinsics/signal.c warning: cast from/to pointer to/from integer of different size on x86-64 j_daniel at rbg dot informatik dot tu-darmstadt dot de
2006-03-03 13:42 ` [Bug libfortran/26540] " pinskia at gcc dot gnu dot org
2006-05-21 14:11 ` fxcoudert at gcc dot gnu dot org
2006-09-10 18:56 ` pinskia at gcc dot gnu dot org
2006-09-10 19:05 ` howarth at nitro dot med dot uc dot edu
2006-09-10 19:10 ` pinskia at gcc dot gnu dot org
2006-09-10 19:24 ` howarth at nitro dot med dot uc dot edu
2006-10-08 14:27 ` fxcoudert at gcc dot gnu dot org
2006-10-08 14:28 ` [Bug libfortran/26540] [4.1 only] intrinsics/signal.c warnings fxcoudert at gcc dot gnu dot org
2006-10-13  7:22 ` fxcoudert 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).