[llvm-commits] [llvm-gcc-4.2] r40524 - /llvm-gcc-4.2/trunk/gcc/gcc.c
Duncan Sands
baldrick at free.fr
Thu Jul 26 05:52:30 PDT 2007
Author: baldrick
Date: Thu Jul 26 07:52:29 2007
New Revision: 40524
URL: http://llvm.org/viewvc/llvm-project?rev=40524&view=rev
Log:
Tweak this uninitialized variable fix in a way that
minimizes the differences with mainline.
Modified:
llvm-gcc-4.2/trunk/gcc/gcc.c
Modified: llvm-gcc-4.2/trunk/gcc/gcc.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/gcc.c?rev=40524&r1=40523&r2=40524&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/gcc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/gcc.c Thu Jul 26 07:52:29 2007
@@ -6460,8 +6460,7 @@
main (int argc, char **argv)
{
size_t i;
- /* APPLE LOCAL uninit warning */
- int value = 0;
+ int value;
int linker_was_run = 0;
int lang_n_infiles = 0;
int num_linker_inputs = 0;
@@ -6989,7 +6988,9 @@
infiles[i].incompiler = lookup_compiler (infiles[i].name,
strlen (infiles[i].name),
infiles[i].language);
-
+
+ if (value < 0)
+ this_file_error = 1;
}
else if (traditional_cpp_flag)
{
@@ -7002,9 +7003,6 @@
}
}
- if (value < 0)
- this_file_error = 1;
-
if (this_file_error)
{
delete_failure_queue ();
More information about the llvm-commits
mailing list