X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fc-aux-info.c;h=ddc3e376e92241b3004d09d1b2a0d71953198de5;hp=2ef7324dd1423a90a0ddf7bacdcb37bc02db40bb;hb=10fda9eb3b1584ac33daaf1f7cdcc950f836adbf;hpb=7746224a4b8634a5cd02d2ab5fe2ac7697425400 diff --git a/gcc/c-aux-info.c b/gcc/c-aux-info.c index 2ef7324dd14..ddc3e376e92 100644 --- a/gcc/c-aux-info.c +++ b/gcc/c-aux-info.c @@ -430,7 +430,7 @@ gen_type (const char *ret_val, tree t, formals_style style) data_type = IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (t))); /* Normally, `unsigned' is part of the deal. Not so if it comes with a type qualifier. */ - if (TREE_UNSIGNED (t) && TYPE_QUALS (t)) + if (TYPE_UNSIGNED (t) && TYPE_QUALS (t)) data_type = concat ("unsigned ", data_type, NULL); break; @@ -447,7 +447,7 @@ gen_type (const char *ret_val, tree t, formals_style style) break; default: - abort (); + gcc_unreachable (); } } if (TYPE_READONLY (t)) @@ -554,11 +554,12 @@ gen_aux_info_record (tree fndecl, int is_definition, int is_implicit, if (flag_gen_aux_info) { static int compiled_from_record = 0; + expanded_location xloc = expand_location (DECL_SOURCE_LOCATION (fndecl)); /* Each output .X file must have a header line. Write one now if we have not yet done so. */ - if (! compiled_from_record++) + if (!compiled_from_record++) { /* The first line tells which directory file names are relative to. Currently, -aux-info works only for files in the working @@ -569,8 +570,7 @@ gen_aux_info_record (tree fndecl, int is_definition, int is_implicit, /* Write the actual line of auxiliary info. */ fprintf (aux_info_file, "/* %s:%d:%c%c */ %s;", - DECL_SOURCE_FILE (fndecl), - DECL_SOURCE_LINE (fndecl), + xloc.file, xloc.line, (is_implicit) ? 'I' : (is_prototyped) ? 'N' : 'O', (is_definition) ? 'F' : 'C', gen_decl (fndecl, is_definition, ansi));