Bug 28208 - Use default integer kind instead of hardcoding kind=4
Summary: Use default integer kind instead of hardcoding kind=4
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.2.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-30 13:13 UTC by Francois-Xavier Coudert
Modified: 2007-03-18 18:02 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois-Xavier Coudert 2006-06-30 13:13:00 UTC
There are lots of (GNU extensions) intrinsics that are hardcoded as returning integer(kind=4) results, while it would make sense to have them return the default integer type. This is hardcoded both in the front-end (see for example gfc_resolve_getpid in iresolve.c) and the library (where the getpid function is declared as "extern GFC_INTEGER_4 PREFIX(getpid) (void)").
Comment 1 Francois-Xavier Coudert 2007-03-18 18:02:14 UTC
I take that back. We're working on a more global change for these things, so closing this as INVALID.