public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h
[not found] <bug-41102-4@http.gcc.gnu.org/bugzilla/>
@ 2011-11-16 17:04 ` fwi at inducks dot org
2015-10-30 17:27 ` dominiq at lps dot ens.fr
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: fwi at inducks dot org @ 2011-11-16 17:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41102
fwi at inducks dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fwi at inducks dot org
--- Comment #13 from fwi at inducks dot org 2011-11-16 16:54:44 UTC ---
For information, the same (however minor) issue appears with MPI (MPICH2), as
expected, with the -pedantic flag:
$ mpif90 -Wall -O3 -march=native -pedantic -cpp test.f90
Warning: Nonstandard type declaration REAL*8 at (1)
mpif.h:491.13:
Included at test.f90:10:
REAL*8 PMPI_WTIME, PMPI_WTICK
(lots of other similar harmless warnings not shown)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h
[not found] <bug-41102-4@http.gcc.gnu.org/bugzilla/>
2011-11-16 17:04 ` [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h fwi at inducks dot org
@ 2015-10-30 17:27 ` dominiq at lps dot ens.fr
2015-10-30 17:31 ` dr.i.j.bush at googlemail dot com
2015-10-30 17:41 ` dominiq at lps dot ens.fr
3 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-10-30 17:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41102
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
--- Comment #14 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Any point to keep this PR opened? The original issue has been fixed and it's
likely that the include files will be fixed well before any progress will be
made in gfortran.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h
[not found] <bug-41102-4@http.gcc.gnu.org/bugzilla/>
2011-11-16 17:04 ` [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h fwi at inducks dot org
2015-10-30 17:27 ` dominiq at lps dot ens.fr
@ 2015-10-30 17:31 ` dr.i.j.bush at googlemail dot com
2015-10-30 17:41 ` dominiq at lps dot ens.fr
3 siblings, 0 replies; 6+ messages in thread
From: dr.i.j.bush at googlemail dot com @ 2015-10-30 17:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41102
--- Comment #15 from dr.i.j.bush at googlemail dot com ---
I'm happy to close,
Ian
On 30/10/2015, dominiq at lps dot ens.fr <gcc-bugzilla@gcc.gnu.org> wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41102
>
> Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|NEW |WAITING
>
> --- Comment #14 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Any point to keep this PR opened? The original issue has been fixed and
> it's
> likely that the include files will be fixed well before any progress will
> be
> made in gfortran.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star.
> ________________________________________________________________________
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h
[not found] <bug-41102-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2015-10-30 17:31 ` dr.i.j.bush at googlemail dot com
@ 2015-10-30 17:41 ` dominiq at lps dot ens.fr
3 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-10-30 17:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41102
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED
--- Comment #16 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I'm happy to close,
>
> Ian
Doing so!-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/41102] New: openMP include file causes errors when compiling with standards checking
@ 2009-08-18 10:52 ian dot bush at nag dot co dot uk
2009-08-19 7:14 ` [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h burnus at gcc dot gnu dot org
2010-05-06 21:40 ` dfranke at gcc dot gnu dot org
0 siblings, 2 replies; 6+ messages in thread
From: ian dot bush at nag dot co dot uk @ 2009-08-18 10:52 UTC (permalink / raw)
To: gcc-bugs
Due to non-standard code in the supplied openMP header file omp_lib.h compiling
with standards checking on results in errors due to the include file and not
the users code:
Wot now ? uname -a
Linux kingswood.nag.co.uk 2.6.27.25-78.2.56.fc9.i686 #1 SMP Thu Jun 18 12:47:50
EDT 2009 i686 i686 i386 GNU/Linux
Wot now ? ~/Download/usr/local/gfortran/bin/gfortran --version
GNU Fortran (GCC) 4.5.0 20090817 (experimental) [trunk revision 150822]
Copyright (C) 2009 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
Wot now ? cat omp.f90
Program annoying
Include 'omp_lib.h'
End Program annoying
Wot now ? ~/Download/usr/local/gfortran/bin/gfortran -fopenmp -std=f95 omp.f90
omp_lib.h:45.15:
Included at omp.f90:3:
logical*4 omp_get_dynamic, omp_get_nested
1
Error: Nonstandard type declaration LOGICAL*4 at (1)
omp_lib.h:47.15:
Included at omp.f90:3:
logical*4 omp_test_lock, omp_in_parallel
1
Error: Nonstandard type declaration LOGICAL*4 at (1)
omp_lib.h:50.15:
Included at omp.f90:3:
integer*4 omp_get_max_threads, omp_get_num_procs
1
Error: Nonstandard type declaration INTEGER*4 at (1)
omp_lib.h:52.15:
Included at omp.f90:3:
integer*4 omp_get_num_threads, omp_get_thread_num
1
Error: Nonstandard type declaration INTEGER*4 at (1)
omp_lib.h:54.15:
Included at omp.f90:3:
integer*4 omp_test_nest_lock
1
Error: Nonstandard type declaration INTEGER*4 at (1)
omp_lib.h:64.15:
Included at omp.f90:3:
integer*4 omp_get_thread_limit, omp_get_max_active_levels
1
Error: Nonstandard type declaration INTEGER*4 at (1)
omp_lib.h:65.15:
Included at omp.f90:3:
integer*4 omp_get_level, omp_get_ancestor_thread_num
1
Error: Nonstandard type declaration INTEGER*4 at (1)
omp_lib.h:66.15:
Included at omp.f90:3:
integer*4 omp_get_team_size, omp_get_active_level
1
Error: Nonstandard type declaration INTEGER*4 at (1)
Wot now ?
The nett result is it is difficult to check for non-standard code in programs
that include omp_lib.h, which is irritating if portability is extremly
important to you. ( Yes, I know there is a work around by using the module
rather than including the file, but both should work ! )
Actually this is a more general problem as MPI include files often have similar
non-standard code, with the same resulting irritation. What would be nice is
some way to say that you wish to ignore all problems caused by a given set of
include files. However it would also be nice to fix the include file !
--
Summary: openMP include file causes errors when compiling with
standards checking
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ian dot bush at nag dot co dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41102
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-10-30 17:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-41102-4@http.gcc.gnu.org/bugzilla/>
2011-11-16 17:04 ` [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h fwi at inducks dot org
2015-10-30 17:27 ` dominiq at lps dot ens.fr
2015-10-30 17:31 ` dr.i.j.bush at googlemail dot com
2015-10-30 17:41 ` dominiq at lps dot ens.fr
2009-08-18 10:52 [Bug fortran/41102] New: openMP include file causes errors when compiling with standards checking ian dot bush at nag dot co dot uk
2009-08-19 7:14 ` [Bug fortran/41102] Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h burnus at gcc dot gnu dot org
2010-05-06 21:40 ` dfranke 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).