public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40366] Array + XOR swap fails
[not found] <bug-40366-4@http.gcc.gnu.org/bugzilla/>
@ 2014-02-16 13:15 ` jackie.rosen at hushmail dot com
2021-11-05 23:18 ` timturnerc at yahoo dot com
1 sibling, 0 replies; 4+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 13:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40366
Jackie Rosen <jackie.rosen at hushmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jackie.rosen at hushmail dot com
--- Comment #3 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/40366] Array + XOR swap fails
[not found] <bug-40366-4@http.gcc.gnu.org/bugzilla/>
2014-02-16 13:15 ` [Bug c/40366] Array + XOR swap fails jackie.rosen at hushmail dot com
@ 2021-11-05 23:18 ` timturnerc at yahoo dot com
1 sibling, 0 replies; 4+ messages in thread
From: timturnerc at yahoo dot com @ 2021-11-05 23:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40366
Tim Turner <timturnerc at yahoo dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |timturnerc at yahoo dot com
--- Comment #4 from Tim Turner <timturnerc at yahoo dot com> ---
Tentative patch:
...
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
https://www.webb-dev.co.uk/computers/crypto-apps/
index f318a125319..c20c0d7d649 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c http://www.compilatori.com/health/premium-subscription/
@@ -3625,11 +3625,10 @@ create_exception_master_breakpoint (void)
if (create_exception_master_breakpoint_probe (obj))
continue;
http://www.acpirateradio.co.uk/health/transportation-security/
- /* Iterate over separate debug objects and try an _Unwind_DebugHook
- kind breakpoint. */
http://www.logoarts.co.uk/health/printers-for-health/
- for (objfile *sepdebug = obj->separate_debug_objfile;
- sepdebug != nullptr; sepdebug = sepdebug->separate_debug_objfile)
- if (create_exception_master_breakpoint_hook (sepdebug))
http://www.slipstone.co.uk/health/sound-systems/
+ /* Iterate over main and separate debug objects and try an
+ _Unwind_DebugHook kind breakpoint. */
+ for (objfile *debug_objfile : obj->separate_debug_objfiles ())
http://embermanchester.uk/health/social-privacy/
+ if (create_exception_master_breakpoint_hook (debug_objfile))
break;
Tentative patch: http://connstr.net/health/usb-chargers/
...
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index f318a125319..c20c0d7d649 100644 http://joerg.li/property/latest-suvs/
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3625,11 +3625,10 @@ create_exception_master_breakpoint (void)
http://www.jopspeech.com/property/slim-pen-2/
if (create_exception_master_breakpoint_probe (obj))
continue; http://www.wearelondonmade.com/health/check-ups/
- /* Iterate over separate debug objects and try an _Unwind_DebugHook
- kind breakpoint. */
- for (objfile *sepdebug = obj->separate_debug_objfile;
https://waytowhatsnext.com/computers/discord-and-steam/
- sepdebug != nullptr; sepdebug = sepdebug->separate_debug_objfile)
- if (create_exception_master_breakpoint_hook (sepdebug))
http://www.iu-bloomington.com/computers/real-me-gt2/
+ /* Iterate over main and separate debug objects and try an
+ _Unwind_DebugHook kind breakpoint. */
https://komiya-dental.com/computers/huawei-technology/
+ for (objfile *debug_objfile : obj->separate_debug_objfiles ())
+ if (create_exception_master_breakpoint_hook (debug_objfile))
break; http://www-look-4.com/health/winter-sickness/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/40366] Array + XOR swap fails
2009-06-07 7:15 [Bug c/40366] New: " ashutosh dot sharma dot 0204 at gmail dot com
2009-06-07 7:23 ` [Bug c/40366] " pinskia at gmail dot com
@ 2009-06-07 9:04 ` schwab at linux-m68k dot org
1 sibling, 0 replies; 4+ messages in thread
From: schwab at linux-m68k dot org @ 2009-06-07 9:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from schwab at linux-m68k dot org 2009-06-07 09:04 -------
*** This bug has been marked as a duplicate of 11751 ***
--
schwab at linux-m68k dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40366
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/40366] Array + XOR swap fails
2009-06-07 7:15 [Bug c/40366] New: " ashutosh dot sharma dot 0204 at gmail dot com
@ 2009-06-07 7:23 ` pinskia at gmail dot com
2009-06-07 9:04 ` schwab at linux-m68k dot org
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gmail dot com @ 2009-06-07 7:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gmail dot com 2009-06-07 07:23 -------
Subject: Re: New: Array + XOR swap fails
Both of these are undefined. Look up about sequence point rules.
Sent from my iPhone
On Jun 7, 2009, at 12:15 AM, "ashutosh dot sharma dot 0204 at gmail
dot com" <gcc-bugzilla@gcc.gnu.org> wrote:
> Compiler Version:
> gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
>
> Sample code:
>
> #include <stdio.h>
>
> int main() {
> int a[2];
> a[0]=10;
> a[1]=20;
> printf("a[0] = %d a[1] = %d\n", a[0], a[1]);
> a[0]^=a[1]^=a[0]^=a[1];
> printf("a[0] = %d a[1] = %d\n", a[0], a[1]);
> return 0;
> }
>
> gcc test.c -o test -O2
>
> a[0] = 10 a[1] = 20
> a[0] = 20 a[1] = 10
>
> gcc test.c -o test -O0
>
> a[0] = 10 a[1] = 20
> a[0] = 0 a[1] = 10
>
> Bug: When compiled with -O0 swap fails.
> Swap only fails in case of array. Following code works fine with -O0:
>
> #include <stdio.h>
>
> int main() {
> int a, b;
> a=10;
> b=20;
> printf("a = %d b = %d\n", a, b);
> a^=b^=a^=b;
> printf("a = %d b = %d\n", a, b);
> return 0;
> }
>
>
> --
> Summary: Array + XOR swap fails
> Product: gcc
> Version: unknown
> Status: UNCONFIRMED
> Severity: major
> Priority: P3
> Component: c
> AssignedTo: unassigned at gcc dot gnu dot org
> ReportedBy: ashutosh dot sharma dot 0204 at gmail dot com
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40366
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40366
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-11-05 23:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-40366-4@http.gcc.gnu.org/bugzilla/>
2014-02-16 13:15 ` [Bug c/40366] Array + XOR swap fails jackie.rosen at hushmail dot com
2021-11-05 23:18 ` timturnerc at yahoo dot com
2009-06-07 7:15 [Bug c/40366] New: " ashutosh dot sharma dot 0204 at gmail dot com
2009-06-07 7:23 ` [Bug c/40366] " pinskia at gmail dot com
2009-06-07 9:04 ` schwab at linux-m68k dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).