diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2004-01-07 22:24:44 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-01-07 22:24:44 +0000 |
commit | bca63328817fdf5c02d50ce227de4ef2f1c5dbdf (patch) | |
tree | 758366d4443ad9fd7fd7a5e37a42e69d047dd67a /gcc/f | |
parent | 158960ba7e2e8f5d4ad01e4ceb736bbbfd600e0e (diff) | |
download | gcc-bca63328817fdf5c02d50ce227de4ef2f1c5dbdf.zip gcc-bca63328817fdf5c02d50ce227de4ef2f1c5dbdf.tar.gz gcc-bca63328817fdf5c02d50ce227de4ef2f1c5dbdf.tar.bz2 |
re PR c/6024 (GCC fails to diagnose mismatch of enum types in prototype/function)
PR c/6024
* c-typeck.c (comptypes): Only treat enumerated types in the same
translation unit as compatible with each other when they are the
same type.
* doc/extend.texi: Update.
f:
* com.h (ffecom_gfrt_basictype): Correct return type.
testsuite:
* gcc.dg/enum-compat-1.c: New test.
* gcc.c-torture/execute/builtin-types-compatible-p.c: Update.
From-SVN: r75521
Diffstat (limited to 'gcc/f')
-rw-r--r-- | gcc/f/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/f/com.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 3dcc5628..4ea7b86 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk> + + * com.h (ffecom_gfrt_basictype): Correct return type. + 2003-12-29 Roger Sayle <roger@eyesopen.com> PR fortran/12632 diff --git a/gcc/f/com.h b/gcc/f/com.h index 4a120af..d23db66 100644 --- a/gcc/f/com.h +++ b/gcc/f/com.h @@ -1,5 +1,5 @@ /* com.h -- Public #include File (module.h template V1.0) - Copyright (C) 1995, 1996, 1997, 2000, 2003 + Copyright (C) 1995, 1996, 1997, 2000, 2003, 2004 Free Software Foundation, Inc. Contributed by James Craig Burley. @@ -228,7 +228,7 @@ void ffecom_finish_decl (tree decl, tree init, bool is_top_level); void ffecom_finish_progunit (void); tree ffecom_get_invented_identifier (const char *pattern, ...) ATTRIBUTE_PRINTF_1; -ffeinfoKindtype ffecom_gfrt_basictype (ffecomGfrt ix); +ffeinfoBasictype ffecom_gfrt_basictype (ffecomGfrt ix); ffeinfoKindtype ffecom_gfrt_kindtype (ffecomGfrt ix); void ffecom_init_0 (void); void ffecom_init_2 (void); |