Mercurial > hg > CbC > CbC_gcc
comparison gcc/langhooks.c @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
1 /* Default language-specific hooks. | 1 /* Default language-specific hooks. |
2 Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 | 2 Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 Contributed by Alexandre Oliva <aoliva@redhat.com> | 4 Contributed by Alexandre Oliva <aoliva@redhat.com> |
5 | 5 |
6 This file is part of GCC. | 6 This file is part of GCC. |
7 | 7 |
35 #include "langhooks.h" | 35 #include "langhooks.h" |
36 #include "target.h" | 36 #include "target.h" |
37 #include "langhooks-def.h" | 37 #include "langhooks-def.h" |
38 #include "ggc.h" | 38 #include "ggc.h" |
39 #include "diagnostic.h" | 39 #include "diagnostic.h" |
40 #include "tree-diagnostic.h" | |
40 #include "cgraph.h" | 41 #include "cgraph.h" |
41 #include "output.h" | 42 #include "output.h" |
42 | 43 |
43 /* Do nothing; in many cases the default hook. */ | 44 /* Do nothing; in many cases the default hook. */ |
44 | 45 |
343 diagnostic_info *diagnostic) | 344 diagnostic_info *diagnostic) |
344 { | 345 { |
345 if (diagnostic_last_function_changed (context, diagnostic)) | 346 if (diagnostic_last_function_changed (context, diagnostic)) |
346 { | 347 { |
347 const char *old_prefix = context->printer->prefix; | 348 const char *old_prefix = context->printer->prefix; |
348 tree abstract_origin = diagnostic->abstract_origin; | 349 tree abstract_origin = diagnostic_abstract_origin (diagnostic); |
349 char *new_prefix = (file && abstract_origin == NULL) | 350 char *new_prefix = (file && abstract_origin == NULL) |
350 ? file_name_as_prefix (file) : NULL; | 351 ? file_name_as_prefix (file) : NULL; |
351 | 352 |
352 pp_set_prefix (context->printer, new_prefix); | 353 pp_set_prefix (context->printer, new_prefix); |
353 | 354 |