[Bug other/71268] New: [PATCH] Fix description of x86_64's -m32 option

2016-05-24 Thread ismael at linux dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71268

Bug ID: 71268
   Summary: [PATCH] Fix description of x86_64's -m32 option
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: trivial
  Priority: P3
 Component: other
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ismael at linux dot com
  Target Milestone: ---

Created attachment 38558
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38558&action=edit
Patch to fix the description

The -m32 option only instructs GCC to produce 32-bit code, but does
not alter the target processor.

So the original description is wrong in that code generated by using
this option will not run on all i386 processors.

[Bug other/71268] [PATCH] Fix description of x86_64's -m32 option

2016-05-26 Thread ismael at linux dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71268

Ismael Luceno  changed:

   What|Removed |Added

  Attachment #38558|0   |1
is obsolete||

--- Comment #2 from Ismael Luceno  ---
Created attachment 38578
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38578&action=edit
Reviewed version of the patch

[Bug other/71268] [PATCH] Fix description of x86_64's -m32 option

2021-07-01 Thread ismael at linux dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71268

--- Comment #3 from Ismael Luceno  ---
Ping. The issue is still valid. Is the revised patch acceptable? How can I
improve it?

[Bug c++/115442] New: gcc/jit/jit-recording.cc fails to build against musl: attempt to use poisoned "calloc"

2024-06-11 Thread ismael at linux dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115442

Bug ID: 115442
   Summary: gcc/jit/jit-recording.cc fails to build against musl:
attempt to use poisoned "calloc"
   Product: gcc
   Version: 14.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ismael at linux dot com
  Target Milestone: ---

Build error:
/usr/src/gcc-14.1.0.bld/./prev-gcc/xg++
-B/usr/src/gcc-14.1.0.bld/./prev-gcc/ -B/usr/x86_64-pc-linux-musl/bin/
-nostdinc++
-B/usr/src/gcc-14.1.0.bld/prev-x86_64-pc-linux-musl/libstdc++-v3/src/.libs
-B/usr/src/gcc-14.1.0.bld/prev-x86_64-pc-linux-musl/libstdc++-v3/libsupc++/.libs
 -isystem
/usr/src/gcc-14.1.0.bld/prev-x86_64-pc-linux-musl/libstdc++-v3/include/x86_64-pc-linux-musl
 -isystem
/usr/src/gcc-14.1.0.bld/prev-x86_64-pc-linux-musl/libstdc++-v3/include 
-isystem /usr/src/gcc-14.1.0/libstdc++-v3/libsupc++
-L/usr/src/gcc-14.1.0.bld/prev-x86_64-pc-linux-musl/libstdc++-v3/src/.libs
-L/usr/src/gcc-14.1.0.bld/prev-x86_64-pc-linux-musl/libstdc++-v3/libsupc++/.libs
-fcf-protection -fPIC -c  -DIN_GCC_FRONTEND -march=native -mtune=native -m64 
-fPIC -Os -fno-checking -gtoggle -DIN_GCC-fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings   -DHAVE_CONFIG_H -fPIC -I. -Ijit
-I/usr/src/gcc-14.1.0/gcc -I/usr/src/gcc-14.1.0/gcc/jit
-I/usr/src/gcc-14.1.0/gcc/../include 
-I/usr/src/gcc-14.1.0/gcc/../libcpp/include
-I/usr/src/gcc-14.1.0/gcc/../libcody -I//include -I//include -I/usr/include 
-I/usr/src/gcc-14.1.0/gcc/../libdecnumber
-I/usr/src/gcc-14.1.0/gcc/../libdecnumber/bid -I../libdecnumber
-I/usr/src/gcc-14.1.0/gcc/../libbacktrace
-I/usr/src/gcc-14.1.0.bld/./isl/include -I/usr/src/gcc-14.1.0/isl/include  -o
jit/jit-recording.o -MT jit/jit-recording.o -MMD -MP -MF
jit/.deps/jit-recording.TPo /usr/src/gcc-14.1.0/gcc/jit/jit-recording.cc
In file included from /usr/include/pthread.h:30,
 from
/usr/src/gcc-14.1.0.bld/prev-x86_64-pc-linux-musl/libstdc++-v3/include/x86_64-pc-linux-musl/bits/gthr-default.h:35,
 from
/usr/src/gcc-14.1.0.bld/prev-x86_64-pc-linux-musl/libstdc++-v3/include/x86_64-pc-linux-musl/bits/gthr.h:157,
 from
/usr/src/gcc-14.1.0/libstdc++-v3/include/ext/atomicity.h:35,
 from
/usr/src/gcc-14.1.0/libstdc++-v3/include/bits/ios_base.h:39,
 from
/usr/src/gcc-14.1.0/libstdc++-v3/include/std/ios:44,
 from
/usr/src/gcc-14.1.0/libstdc++-v3/include/std/istream:40,
 from
/usr/src/gcc-14.1.0/libstdc++-v3/include/std/sstream:40,
 from /usr/src/gcc-14.1.0/gcc/jit/jit-recording.cc:32:
/usr/include/sched.h:84:7: error: attempt to use poisoned "calloc"
   84 | void *calloc(size_t, size_t);
  |   ^
In file included from /usr/src/gcc-14.1.0/gcc/jit/jit-recording.cc:22:
/usr/src/gcc-14.1.0/gcc/system.h:938:21: note: poisoned here
  938 |  #pragma GCC poison calloc strdup strndup
  | ^~
/usr/include/sched.h:124:36: error: attempt to use poisoned "calloc"
  124 | #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
  |^
/usr/src/gcc-14.1.0/gcc/system.h:938:21: note: poisoned here
  938 |  #pragma GCC poison calloc strdup strndup
  | ^~

[Bug jit/115442] gcc/jit/jit-recording.cc fails to build against musl: attempt to use poisoned "calloc"

2024-06-11 Thread ismael at linux dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115442

--- Comment #2 from Ismael Luceno  ---
Created attachment 58406
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58406&action=edit
Avoid  poisoning on musl

[Bug jit/115442] gcc/jit/jit-recording.cc fails to build against musl: attempt to use poisoned "calloc"

2024-06-11 Thread ismael at linux dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115442

--- Comment #4 from Ismael Luceno  ---
I see, I didn't see your comment before attaching it; I had already come up
with that patch before filing the bug.

[Bug jit/115442] gcc/jit/jit-recording.cc fails to build against musl: attempt to use poisoned "calloc"

2024-06-11 Thread ismael at linux dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115442

--- Comment #5 from Ismael Luceno  ---
Applies fine to 14.1.0  too. Thanks.

[Bug jit/115442] gcc/jit/jit-recording.cc fails to build against musl: attempt to use poisoned "calloc"

2024-06-11 Thread ismael at linux dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115442

Ismael Luceno  changed:

   What|Removed |Added

  Attachment #58406|0   |1
is obsolete||

--- Comment #9 from Ismael Luceno  ---
Created attachment 58407
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58407&action=edit
Avoid  poisoning on musl

Attaching the patch as shipped by Source Mage GNU/Linux.