On 10/29/2025 10:56 PM, Joseph Myers wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know 
the content is safe.

On Mon, 27 Oct 2025,[email protected] wrote:

+      fwrite (data_to_write, sizeof(char), strlen(data_to_write), fptr);
Missing spaces before '('

+      char *env_val = (char *) xmalloc (strlen (temp_file) + strlen(prefix) + 
2);
Likewise.
Hi Joseph,

Thanks for the review. I addressed these missing space in V2.
V2 Link: https://gcc.gnu.org/pipermail/gcc-patches/2025-November/700441.html

diff --git a/gcc/testsuite/gcc.dg/longcmd/pr111527-1.c 
b/gcc/testsuite/gcc.dg/longcmd/pr111527-1.c
new file mode 100644
index 00000000000..a5373f57790
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/longcmd/pr111527-1.c
@@ -0,0 +1,44 @@
+/* { dg-do run } */
This runs on the target; that may not make the file it creates available
on the host.  See e.g. gcc.dg/compat/struct-layout-1.exp for how to run a
generator program on the host.

In V2, I have replaced the target-side generator with a host-side one that compiles with|HOSTCC| and runs using|remote_exec
host|, similar to|struct-layout-1.exp|.


diff --git a/gcc/testsuite/gcc.misc-tests/outputs.exp 
b/gcc/testsuite/gcc.misc-tests/outputs.exp
index 6fd40d714e0..9b553549d9c 100644
--- a/gcc/testsuite/gcc.misc-tests/outputs.exp
+++ b/gcc/testsuite/gcc.misc-tests/outputs.exp
@@ -343,99 +343,99 @@ outest "$b-5 exe default 1" $sing "$oaout" {} {{$aout}}
  outest "$b-6 exe default 2" $mult "$oaout" {} {{$aout}}
Could you please explain what all the changes to this file have to do with
the subject matter of the patch and why they are correct / desirable?
The updates reflect that temporary|COLLECT_GCC_OPTIONS| files are now kept when using|-save-temps|.
The test expectations are updated to include these new temporary files.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111527#c21

diff --git a/libiberty/env-extended.c b/libiberty/env-extended.c
new file mode 100644
index 00000000000..afd6beea83a
--- /dev/null
+++ b/libiberty/env-extended.c
@@ -0,0 +1,68 @@
+/* Extended getenv implementation for handling very long environment variables.
+   Copyright (C) 1992-2025 Free Software Foundation, Inc.
+   Written by Fred Fish @ Cygnus Support
Those dates and author information seem unlikely to be correct for this
new code.
I addressed in v2. Thanks.

+char* getenv_extended (const char* var_name)
The return type should be on its own line, and there should be a space
before not after '*' (likewise below).

+  if (string == NULL)
+    {
+      return NULL;
+    }
Redundant braces around single statement.

+       free(new_string);
Missing space before '('.

+  // Return the environment variable as-is if no file is referenced
I don't think we generally use // comments in C code (which libiberty is).
I addressed in v2. Thanks.

--
Joseph S. Myers
[email protected]

Reply via email to