This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Compiling an ada file with -Wno-long-long (as the GCC Makefiles do)
gives a warning:
../../gnat1 -quiet -dumpbase g-regexp.adb -g -gnatpg -O2 -W -Wall -Wno-long-long -mtune=pentiumpro -gnatO g-regexp.o g-regexp.adb -o /tmp/ccJp2hH2.s
gnat1: warning: command line option "-Wno-long-long" is valid for C/C++/ObjC/ObjC++ but not for Ada
-Wno-long-long should be ignored but this is not done the right way
since -Wlong-long is the canonical form.
I've tested the appended patch on i686-linux-gnu, now -Wno-long-long
is really ignored.
Ok to commit?
Andreas
2003-11-14 Andreas Jaeger <aj@suse.de>
* lang.opt: Change -Wno-long-long to -Wlong-long since the latter
is the canonical version.
* misc.c (gnat_handle_option): Likewise.
============================================================
Index: gcc/ada/lang.opt
--- gcc/ada/lang.opt 10 Nov 2003 11:20:03 -0000 1.7
+++ gcc/ada/lang.opt 14 Nov 2003 16:34:54 -0000
@@ -45,7 +45,7 @@ Wwrite-strings
Ada
; Documented for C
-Wno-long-long
+Wlong-long
Ada
; Documented for C
============================================================
Index: gcc/ada/misc.c
--- gcc/ada/misc.c 10 Nov 2003 11:20:02 -0000 1.71
+++ gcc/ada/misc.c 14 Nov 2003 16:34:54 -0000
@@ -259,7 +259,7 @@ gnat_handle_option (size_t scode, const
case OPT_Wmissing_prototypes:
case OPT_Wstrict_prototypes:
case OPT_Wwrite_strings:
- case OPT_Wno_long_long:
+ case OPT_Wlong_long:
break;
/* This is handled by the front-end. */
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Attachment:
pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |