summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:03:23 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:03:23 +0000
commitd4a62d57058c7af6d9e776afeeea6fc6b440d092 (patch)
treec31d05681f41f9c7c074038d1ce61e1ad01930a6
parent6140fdc649c236722cfa1cb6e2d3bd40013bf0cf (diff)
parent9a2c12f67dfc425b788c970dc70f439fbe1ab9c6 (diff)
downloadobstack-android14-mainline-os-statsd-release.tar.gz
Change-Id: I73770301bdfa47244c871b69ce7bf4adcdfd8eac
-rw-r--r--METADATA8
-rw-r--r--include/obstack.h8
-rw-r--r--libiberty/obstack.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/METADATA b/METADATA
index 3d6465d..1e1d850 100644
--- a/METADATA
+++ b/METADATA
@@ -7,13 +7,13 @@ third_party {
}
url {
type: ARCHIVE
- value: "https://github.com/gcc-mirror/gcc/archive/releases/gcc-11.2.0.tar.gz"
+ value: "https://github.com/gcc-mirror/gcc/archive/releases/gcc-12.2.0.tar.gz"
}
- version: "releases/gcc-11.2.0"
+ version: "releases/gcc-12.2.0"
license_type: RESTRICTED
last_upgrade_date {
- year: 2021
+ year: 2022
month: 10
- day: 1
+ day: 7
}
}
diff --git a/include/obstack.h b/include/obstack.h
index a6eb6c9..ee71cda 100644
--- a/include/obstack.h
+++ b/include/obstack.h
@@ -1,5 +1,5 @@
/* obstack.h - object stack macros
- Copyright (C) 1988-2021 Free Software Foundation, Inc.
+ Copyright (C) 1988-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -137,9 +137,9 @@
relative to B. Otherwise, use the faster strategy of computing the
alignment relative to 0. */
-#define __PTR_ALIGN(B, P, A) \
- __BPTR_ALIGN (sizeof (ptrdiff_t) < sizeof (void *) ? (B) : (char *) 0, \
- P, A)
+#define __PTR_ALIGN(B, P, A) \
+ (sizeof (ptrdiff_t) < sizeof (void *) ? __BPTR_ALIGN (B, P, A) \
+ : (char *) (((ptrdiff_t) (P) + (A)) & ~(A)))
#ifndef __attribute_pure__
# if defined __GNUC_MINOR__ && __GNUC__ * 1000 + __GNUC_MINOR__ >= 2096
diff --git a/libiberty/obstack.c b/libiberty/obstack.c
index aa1173d..1415a87 100644
--- a/libiberty/obstack.c
+++ b/libiberty/obstack.c
@@ -1,5 +1,5 @@
/* obstack.c - subroutines used implicitly by object stack macros
- Copyright (C) 1988-2021 Free Software Foundation, Inc.
+ Copyright (C) 1988-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or