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]

Release note for stricter command-line option checks


I've applied this patch to add a release note for stricter checks on 
command-line options in 4.6 - in particular, rejection of invalid -- 
options that were previously silently accepted (but ignored, not passed to 
the linker) when linking (see PR 46410; the need for a release note was 
noted in PR 47390, for which the fix is still under discussion).

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.6/changes.html,v
retrieving revision 1.111
diff -u -r1.111 changes.html
--- changes.html	8 Feb 2011 17:31:25 -0000	1.111
+++ changes.html	9 Feb 2011 00:32:36 -0000
@@ -21,6 +21,17 @@
     <code>&lt;<em>machine</em>&gt;-gcc-&lt;<em>version</em>&gt;</code>
     to run a different version of <code>gcc</code>. </li>
 
+    <li>GCC now has stricter checks for invalid command-line options.
+    In particular, when <code>gcc</code> was called to link object
+    files rather than compile source code, it would previously accept
+    and ignore all options starting with <code>--</code>, including
+    linker options such as <code>--as-needed</code>
+    and <code>--export-dynamic</code>, although such options would
+    result in errors if any source code was compiled.  Such options,
+    if unknown to the compiler, are now rejected in all cases; if the
+    intent was to pass them to the linker, options such
+    as <code>-Wl,--as-needed</code> should be used.</li>
+
     <li>Versions of the GNU C library up to and including 2.11.1
     included an <a
     href="http://sourceware.org/bugzilla/show_bug.cgi?id=10401";>incorrect

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]