[Patch]: Add '\n' to --demangle error message

Tristan Gingold gingold@adacore.com
Mon Mar 26 13:05:00 GMT 2012


Hi,

there is a missing '\n' to the --demangle error message, resulting in weird messages such as:

ld: unknown demangling style `no'collect2: error: ld returned 1 exit status

Committed as obvious.

Tristan.

ld/
2012-03-26  Tristan Gingold  <gingold@adacore.com>

	* lexsup.c (parse_args): Add a missing '\n'.

RCS file: /cvs/src/src/ld/lexsup.c,v
retrieving revision 1.130
diff -c -r1.130 lexsup.c
*** ld/lexsup.c	5 Mar 2012 22:43:40 -0000	1.130
--- ld/lexsup.c	26 Mar 2012 13:03:04 -0000
***************
*** 834,840 ****
  
  	      style = cplus_demangle_name_to_style (optarg);
  	      if (style == unknown_demangling)
! 		einfo (_("%F%P: unknown demangling style `%s'"),
  		       optarg);
  
  	      cplus_demangle_set_style (style);
--- 834,840 ----
  
  	      style = cplus_demangle_name_to_style (optarg);
  	      if (style == unknown_demangling)
! 		einfo (_("%F%P: unknown demangling style `%s'\n"),
  		       optarg);
  
  	      cplus_demangle_set_style (style);



More information about the Binutils mailing list