[Bug driver/54789] [4.8 Regression] Error in GCC driver when defining GCC_COMPARE_DEBUG

chrbr at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 4 10:32:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54789

chrbr at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chrbr at gcc dot gnu.org

--- Comment #3 from chrbr at gcc dot gnu.org 2012-10-04 10:32:22 UTC ---
indeed the "known" switch field should be true for this option. but why not
directly call save_switch function ?

 opt = concat ("fcompare-debug=", compare_debug_opt, NULL);
 save_switch (opt, 0, NULL, false, true);

looks more generic to avoid this kind of errors with internal flags and code
duplication.



More information about the Gcc-bugs mailing list