diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-11-05 22:17:22 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-11-05 22:17:22 +0000 |
commit | 10a241382b3fed4c7bb090fcc2b686d74eb99d6c (patch) | |
tree | 8249e806b1ac70a853b9112a20e3ef9a27d08c1f /libiberty/filename_cmp.c | |
parent | 14abf8cae10a18fc348df4e1ae93c6afc097d2cb (diff) | |
download | gcc-10a241382b3fed4c7bb090fcc2b686d74eb99d6c.zip gcc-10a241382b3fed4c7bb090fcc2b686d74eb99d6c.tar.gz gcc-10a241382b3fed4c7bb090fcc2b686d74eb99d6c.tar.bz2 |
Revert revision 217149 because it breaks Ada:
gcc/testsuite/ChangeLog:
2014-11-05 Anthony Brandon <anthony.brandon@gmail.com>
PR driver/36312
* gcc.misc-tests/output.exp: New test case for identical input and
output files.
include/ChangeLog:
2014-11-05 Anthony Brandon <anthony.brandon@gmail.com>
PR driver/36312
* filenames.h: Add prototype for canonical_filename_eq.
gcc/ChangeLog:
2014-11-05 Anthony Brandon <anthony.brandon@gmail.com>
PR driver/36312
* diagnostic-core.h: Add prototype for fatal_error.
* diagnostic.c (fatal_error): New function fatal_error.
* gcc.c (store_arg): Remove have_o_argbuf_index.
(process_command): Check if input and output files are the same.
* toplev.c (init_asm_output): Check if input and output files are
the same.
libiberty/ChangeLog:
2014-11-05 Anthony Brandon <anthony.brandon@gmail.com>
PR driver/36312
* filename_cmp.c (canonical_filename_eq): New function to check if
file names are the same.
* functions.texi: Updated with documentation for new function.
From-SVN: r217159
Diffstat (limited to 'libiberty/filename_cmp.c')
-rw-r--r-- | libiberty/filename_cmp.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libiberty/filename_cmp.c b/libiberty/filename_cmp.c index 150488c..9e16d24 100644 --- a/libiberty/filename_cmp.c +++ b/libiberty/filename_cmp.c @@ -24,13 +24,8 @@ #include <string.h> #endif -#ifdef HAVE_STDLIB_H -#include <stdlib.h> -#endif - #include "filenames.h" #include "safe-ctype.h" -#include "libiberty.h" /* @@ -195,27 +190,3 @@ filename_eq (const void *s1, const void *s2) /* The casts are for -Wc++-compat. */ return filename_cmp ((const char *) s1, (const char *) s2) == 0; } - -/* - -@deftypefn Extension int canonical_filename_eq (const char *@var{a}, const char *@var{b}) - -Return non-zero if file names @var{a} and @var{b} are equivalent. -This function compares the canonical versions of the filenames as returned by -@code{lrealpath()}, so that so that different file names pointing to the same -underlying file are treated as being identical. - -@end deftypefn - -*/ - -int -canonical_filename_eq (const char * a, const char * b) -{ - char * ca = lrealpath(a); - char * cb = lrealpath(b); - int res = filename_eq (ca, cb); - free (ca); - free (cb); - return res; -} |