This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/30533] minval, maxval missing for kind=1 and kind=2
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2007 22:42:15 -0000
- Subject: [Bug libfortran/30533] minval, maxval missing for kind=1 and kind=2
- References: <bug-30533-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tkoenig at gcc dot gnu dot org 2007-01-29 22:42 -------
For maxval, the usual method of converting the
arguments to default integer kind will have an
"interesting" side effect with an all-false mask:
The value will be a conversion of the default integer
minimum value (soon to be 0x8000000000 after the fix
for PR 30512 goes in) to kind=1 or kind=2.
Definitely not recommended (this will probably be 0x00
or 0x0000)l
The best solution is to generate new maxval_i[12].c files,
which will be better for performance anyway.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tkoenig at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-01-23 13:26:59 |2007-01-29 22:42:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30533