public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug driver/44076] New: -MT <target> behaves different as -MT<target> (w/o space) @ 2010-05-11 10:07 christian dot eggers at kathrein dot de 2010-05-11 23:14 ` [Bug driver/44076] " pinskia at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: christian dot eggers at kathrein dot de @ 2010-05-11 10:07 UTC (permalink / raw) To: gcc-bugs > cat test.c #include "test.h" int main(void) { return 0; } /* EOF */ > gcc -c -o test.o -MMD -MT other.c test.c > cat test.d other.c: test.c test.h ==> seems to be correct > gcc -c -o test.o -MMD -MTother.c test.c > cat test.d other.c test.o: test.c test.h ==> seems to be wrong "-MT<file>" should either behave equal as "-MT <file>" or be rejected. -- Summary: -MT <target> behaves different as -MT<target> (w/o space) Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: minor Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: christian dot eggers at kathrein dot de GCC build triplet: don't care GCC host triplet: don't care GCC target triplet: don't care http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44076 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/44076] -MT <target> behaves different as -MT<target> (w/o space) 2010-05-11 10:07 [Bug driver/44076] New: -MT <target> behaves different as -MT<target> (w/o space) christian dot eggers at kathrein dot de @ 2010-05-11 23:14 ` pinskia at gcc dot gnu dot org 2010-05-12 6:29 ` christian dot eggers at kathrein dot de ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2010-05-11 23:14 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2010-05-11 23:14 ------- I think this is related to PR 12448 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44076 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/44076] -MT <target> behaves different as -MT<target> (w/o space) 2010-05-11 10:07 [Bug driver/44076] New: -MT <target> behaves different as -MT<target> (w/o space) christian dot eggers at kathrein dot de 2010-05-11 23:14 ` [Bug driver/44076] " pinskia at gcc dot gnu dot org @ 2010-05-12 6:29 ` christian dot eggers at kathrein dot de 2010-09-02 11:42 ` jsm28 at gcc dot gnu dot org 2010-09-02 11:46 ` jsm28 at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: christian dot eggers at kathrein dot de @ 2010-05-12 6:29 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from christian dot eggers at kathrein dot de 2010-05-12 06:29 ------- (In reply to comment #1) > I think this is related to PR 12448 > Yes, it's a similar. PR 12448 says that "-MT <file>" produces a wrong result, but it seems that this has already been fixed. Can the behavior of "-MT<file>" be changed in the same way? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44076 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/44076] -MT <target> behaves different as -MT<target> (w/o space) 2010-05-11 10:07 [Bug driver/44076] New: -MT <target> behaves different as -MT<target> (w/o space) christian dot eggers at kathrein dot de 2010-05-11 23:14 ` [Bug driver/44076] " pinskia at gcc dot gnu dot org 2010-05-12 6:29 ` christian dot eggers at kathrein dot de @ 2010-09-02 11:42 ` jsm28 at gcc dot gnu dot org 2010-09-02 11:46 ` jsm28 at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: jsm28 at gcc dot gnu dot org @ 2010-09-02 11:42 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from jsm28 at gcc dot gnu dot org 2010-09-02 11:42 ------- Subject: Bug 44076 Author: jsm28 Date: Thu Sep 2 11:41:22 2010 New Revision: 163770 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163770 Log: PR driver/44076 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and alias_target fields. * opt-functions.awk (opt_sanitized_name): Don't handle finline-limit=, Wlarger-than= and ftemplate-depth= specially. * optc-gen.awk: Generate alias fields. * opth-gen.awk: Explicitly give values for OPT_* enum constants. Don't generate such constants for aliases. * opts-common.c (generate_canonical_option): New. (decode_cmdline_option): Handle aliases. Use generate_canonical_option for known options instead of copying the input option text. * doc/options.texi (Alias): Document. * common.opt (W, Wlarger-than-, aux-info=, finline-limit-, fstack-check, specs): Mark as aliases. * gcc.c (driver_handle_option): Canonicalize -L options to joined arguments. (driver_handle_option): Don't handle OPT_specs. * opts.c (common_handle_option): Don't handle options marked as aliases. (enable_warning_as_error): Handle aliases. * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq. * tree-optimize.c (tree_rest_of_compilation): Use OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq. c-family: * c.opt (Wcomments, Werror-implicit-function-declaration, ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as aliases. * c-common.c (option_codes): Use OPT_Wcomment instead of OPT_Wcomments. * c-opts.c (warning_as_error_callback, c_common_handle_option): Don't handle options marked as aliases. java: * lang.opt (CLASSPATH, bootclasspath, classpath, encoding, fCLASSPATH=): Mark as Java options and as aliases. * jvspec.c (jvgenmain_spec): Don't handle -fCLASSPATH*. (lang_specific_driver): Don't handle options marked as aliases. * lang.c (java_handle_option): Don't handle OPT_fCLASSPATH_. testsuite: * gcc.dg/cpp/warn-comments-3.c: New. Based on warn-comments-2.c but using -Werror=comment. * gcc.dg/cpp/warn-comments.c, gcc.dg/cpp/warn-comments-2.c: Adjust expected error messages. Added: trunk/gcc/testsuite/gcc.dg/cpp/warn-comments-3.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/c-family/c-opts.c trunk/gcc/c-family/c.opt trunk/gcc/common.opt trunk/gcc/doc/options.texi trunk/gcc/gcc.c trunk/gcc/java/ChangeLog trunk/gcc/java/jvspec.c trunk/gcc/java/lang.c trunk/gcc/java/lang.opt trunk/gcc/opt-functions.awk trunk/gcc/optc-gen.awk trunk/gcc/opth-gen.awk trunk/gcc/opts-common.c trunk/gcc/opts.c trunk/gcc/opts.h trunk/gcc/stor-layout.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c trunk/gcc/testsuite/gcc.dg/cpp/warn-comments.c trunk/gcc/tree-optimize.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44076 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/44076] -MT <target> behaves different as -MT<target> (w/o space) 2010-05-11 10:07 [Bug driver/44076] New: -MT <target> behaves different as -MT<target> (w/o space) christian dot eggers at kathrein dot de ` (2 preceding siblings ...) 2010-09-02 11:42 ` jsm28 at gcc dot gnu dot org @ 2010-09-02 11:46 ` jsm28 at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: jsm28 at gcc dot gnu dot org @ 2010-09-02 11:46 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from jsm28 at gcc dot gnu dot org 2010-09-02 11:46 ------- Fixed for 4.6. -- jsm28 at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Known to work| |4.6.0 Resolution| |FIXED Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44076 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-09-02 11:46 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-05-11 10:07 [Bug driver/44076] New: -MT <target> behaves different as -MT<target> (w/o space) christian dot eggers at kathrein dot de 2010-05-11 23:14 ` [Bug driver/44076] " pinskia at gcc dot gnu dot org 2010-05-12 6:29 ` christian dot eggers at kathrein dot de 2010-09-02 11:42 ` jsm28 at gcc dot gnu dot org 2010-09-02 11:46 ` jsm28 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).